configure revision 6f02d4e9
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xinit 1.3.3.
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='xinit'
563PACKAGE_TARNAME='xinit'
564PACKAGE_VERSION='1.3.3'
565PACKAGE_STRING='xinit 1.3.3'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569ac_unique_file="Makefile.am"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584#  include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589#  include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_subst_vars='am__EXEEXT_FALSE
607am__EXEEXT_TRUE
608LTLIBOBJS
609LIBOBJS
610XINITDIR
611XINIT
612XAUTH
613XSERVER
614XTERM
615XCLOCK
616TWM
617XMODMAP
618XRDB
619XCONFIGFILEMAN
620XCONFIGFILE
621XSERVERNAME
622SCOMAN
623SHELL_CMD
624STARTX_COOKIE_FLAGS
625OPENSSL
626MCOOKIE
627XINIT_LIBS
628XINIT_CFLAGS
629LAUNCHAGENT_XSERVER_FALSE
630LAUNCHAGENT_XSERVER_TRUE
631TIGER_LAUNCHD_FALSE
632TIGER_LAUNCHD_TRUE
633LAUNCHD_FALSE
634LAUNCHD_TRUE
635launchagentxserver
636bundleidprefix
637launchdaemonsdir
638launchagentsdir
639LAUNCHD
640RAWCPPFLAGS
641RAWCPP
642MAN_SUBSTS
643XORG_MAN_PAGE
644ADMIN_MAN_DIR
645DRIVER_MAN_DIR
646MISC_MAN_DIR
647FILE_MAN_DIR
648LIB_MAN_DIR
649APP_MAN_DIR
650ADMIN_MAN_SUFFIX
651DRIVER_MAN_SUFFIX
652MISC_MAN_SUFFIX
653FILE_MAN_SUFFIX
654LIB_MAN_SUFFIX
655APP_MAN_SUFFIX
656SED
657host_os
658host_vendor
659host_cpu
660host
661build_os
662build_vendor
663build_cpu
664build
665INSTALL_CMD
666PKG_CONFIG
667CHANGELOG_CMD
668STRICT_CFLAGS
669CWARNFLAGS
670BASE_CFLAGS
671EGREP
672GREP
673CPP
674am__fastdepCC_FALSE
675am__fastdepCC_TRUE
676CCDEPMODE
677am__nodep
678AMDEPBACKSLASH
679AMDEP_FALSE
680AMDEP_TRUE
681am__quote
682am__include
683DEPDIR
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
691MAINT
692MAINTAINER_MODE_FALSE
693MAINTAINER_MODE_TRUE
694AM_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
758SHELL'
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
762enable_silent_rules
763enable_maintainer_mode
764enable_dependency_tracking
765enable_selective_werror
766enable_strict_compilation
767with_xrdb
768with_xmodmap
769with_twm
770with_xclock
771with_xterm
772with_xserver
773with_xauth
774with_xinit
775with_xinitdir
776with_launchd
777with_launchagents_dir
778with_launchagent_xserver
779with_launchdaemons_dir
780with_launchd_id_prefix
781with_bundle_id_prefix
782'
783      ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
789LIBS
790CPPFLAGS
791CPP
792PKG_CONFIG
793XINIT_CFLAGS
794XINIT_LIBS'
795
796
797# Initialize some variables set by options.
798ac_init_help=
799ac_init_version=false
800ac_unrecognized_opts=
801ac_unrecognized_sep=
802# The variables have the same names as the options, with
803# dashes changed to underlines.
804cache_file=/dev/null
805exec_prefix=NONE
806no_create=
807no_recursion=
808prefix=NONE
809program_prefix=NONE
810program_suffix=NONE
811program_transform_name=s,x,x,
812silent=
813site=
814srcdir=
815verbose=
816x_includes=NONE
817x_libraries=NONE
818
819# Installation directory options.
820# These are left unexpanded so users can "make install exec_prefix=/foo"
821# and all the variables that are supposed to be based on exec_prefix
822# by default will actually change.
823# Use braces instead of parens because sh, perl, etc. also accept them.
824# (The list follows the same order as the GNU Coding Standards.)
825bindir='${exec_prefix}/bin'
826sbindir='${exec_prefix}/sbin'
827libexecdir='${exec_prefix}/libexec'
828datarootdir='${prefix}/share'
829datadir='${datarootdir}'
830sysconfdir='${prefix}/etc'
831sharedstatedir='${prefix}/com'
832localstatedir='${prefix}/var'
833includedir='${prefix}/include'
834oldincludedir='/usr/include'
835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836infodir='${datarootdir}/info'
837htmldir='${docdir}'
838dvidir='${docdir}'
839pdfdir='${docdir}'
840psdir='${docdir}'
841libdir='${exec_prefix}/lib'
842localedir='${datarootdir}/locale'
843mandir='${datarootdir}/man'
844
845ac_prev=
846ac_dashdash=
847for ac_option
848do
849  # If the previous option needs an argument, assign it.
850  if test -n "$ac_prev"; then
851    eval $ac_prev=\$ac_option
852    ac_prev=
853    continue
854  fi
855
856  case $ac_option in
857  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858  *=)   ac_optarg= ;;
859  *)    ac_optarg=yes ;;
860  esac
861
862  # Accept the important Cygnus configure options, so we can diagnose typos.
863
864  case $ac_dashdash$ac_option in
865  --)
866    ac_dashdash=yes ;;
867
868  -bindir | --bindir | --bindi | --bind | --bin | --bi)
869    ac_prev=bindir ;;
870  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871    bindir=$ac_optarg ;;
872
873  -build | --build | --buil | --bui | --bu)
874    ac_prev=build_alias ;;
875  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876    build_alias=$ac_optarg ;;
877
878  -cache-file | --cache-file | --cache-fil | --cache-fi \
879  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880    ac_prev=cache_file ;;
881  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883    cache_file=$ac_optarg ;;
884
885  --config-cache | -C)
886    cache_file=config.cache ;;
887
888  -datadir | --datadir | --datadi | --datad)
889    ac_prev=datadir ;;
890  -datadir=* | --datadir=* | --datadi=* | --datad=*)
891    datadir=$ac_optarg ;;
892
893  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894  | --dataroo | --dataro | --datar)
895    ac_prev=datarootdir ;;
896  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898    datarootdir=$ac_optarg ;;
899
900  -disable-* | --disable-*)
901    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902    # Reject names that are not valid shell variable names.
903    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904      as_fn_error $? "invalid feature name: $ac_useropt"
905    ac_useropt_orig=$ac_useropt
906    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907    case $ac_user_opts in
908      *"
909"enable_$ac_useropt"
910"*) ;;
911      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912	 ac_unrecognized_sep=', ';;
913    esac
914    eval enable_$ac_useropt=no ;;
915
916  -docdir | --docdir | --docdi | --doc | --do)
917    ac_prev=docdir ;;
918  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919    docdir=$ac_optarg ;;
920
921  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922    ac_prev=dvidir ;;
923  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924    dvidir=$ac_optarg ;;
925
926  -enable-* | --enable-*)
927    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928    # Reject names that are not valid shell variable names.
929    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930      as_fn_error $? "invalid feature name: $ac_useropt"
931    ac_useropt_orig=$ac_useropt
932    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933    case $ac_user_opts in
934      *"
935"enable_$ac_useropt"
936"*) ;;
937      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938	 ac_unrecognized_sep=', ';;
939    esac
940    eval enable_$ac_useropt=\$ac_optarg ;;
941
942  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944  | --exec | --exe | --ex)
945    ac_prev=exec_prefix ;;
946  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948  | --exec=* | --exe=* | --ex=*)
949    exec_prefix=$ac_optarg ;;
950
951  -gas | --gas | --ga | --g)
952    # Obsolete; use --with-gas.
953    with_gas=yes ;;
954
955  -help | --help | --hel | --he | -h)
956    ac_init_help=long ;;
957  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958    ac_init_help=recursive ;;
959  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960    ac_init_help=short ;;
961
962  -host | --host | --hos | --ho)
963    ac_prev=host_alias ;;
964  -host=* | --host=* | --hos=* | --ho=*)
965    host_alias=$ac_optarg ;;
966
967  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968    ac_prev=htmldir ;;
969  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970  | --ht=*)
971    htmldir=$ac_optarg ;;
972
973  -includedir | --includedir | --includedi | --included | --include \
974  | --includ | --inclu | --incl | --inc)
975    ac_prev=includedir ;;
976  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977  | --includ=* | --inclu=* | --incl=* | --inc=*)
978    includedir=$ac_optarg ;;
979
980  -infodir | --infodir | --infodi | --infod | --info | --inf)
981    ac_prev=infodir ;;
982  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983    infodir=$ac_optarg ;;
984
985  -libdir | --libdir | --libdi | --libd)
986    ac_prev=libdir ;;
987  -libdir=* | --libdir=* | --libdi=* | --libd=*)
988    libdir=$ac_optarg ;;
989
990  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991  | --libexe | --libex | --libe)
992    ac_prev=libexecdir ;;
993  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994  | --libexe=* | --libex=* | --libe=*)
995    libexecdir=$ac_optarg ;;
996
997  -localedir | --localedir | --localedi | --localed | --locale)
998    ac_prev=localedir ;;
999  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000    localedir=$ac_optarg ;;
1001
1002  -localstatedir | --localstatedir | --localstatedi | --localstated \
1003  | --localstate | --localstat | --localsta | --localst | --locals)
1004    ac_prev=localstatedir ;;
1005  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007    localstatedir=$ac_optarg ;;
1008
1009  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010    ac_prev=mandir ;;
1011  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012    mandir=$ac_optarg ;;
1013
1014  -nfp | --nfp | --nf)
1015    # Obsolete; use --without-fp.
1016    with_fp=no ;;
1017
1018  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019  | --no-cr | --no-c | -n)
1020    no_create=yes ;;
1021
1022  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024    no_recursion=yes ;;
1025
1026  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028  | --oldin | --oldi | --old | --ol | --o)
1029    ac_prev=oldincludedir ;;
1030  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033    oldincludedir=$ac_optarg ;;
1034
1035  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036    ac_prev=prefix ;;
1037  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038    prefix=$ac_optarg ;;
1039
1040  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041  | --program-pre | --program-pr | --program-p)
1042    ac_prev=program_prefix ;;
1043  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045    program_prefix=$ac_optarg ;;
1046
1047  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048  | --program-suf | --program-su | --program-s)
1049    ac_prev=program_suffix ;;
1050  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052    program_suffix=$ac_optarg ;;
1053
1054  -program-transform-name | --program-transform-name \
1055  | --program-transform-nam | --program-transform-na \
1056  | --program-transform-n | --program-transform- \
1057  | --program-transform | --program-transfor \
1058  | --program-transfo | --program-transf \
1059  | --program-trans | --program-tran \
1060  | --progr-tra | --program-tr | --program-t)
1061    ac_prev=program_transform_name ;;
1062  -program-transform-name=* | --program-transform-name=* \
1063  | --program-transform-nam=* | --program-transform-na=* \
1064  | --program-transform-n=* | --program-transform-=* \
1065  | --program-transform=* | --program-transfor=* \
1066  | --program-transfo=* | --program-transf=* \
1067  | --program-trans=* | --program-tran=* \
1068  | --progr-tra=* | --program-tr=* | --program-t=*)
1069    program_transform_name=$ac_optarg ;;
1070
1071  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072    ac_prev=pdfdir ;;
1073  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074    pdfdir=$ac_optarg ;;
1075
1076  -psdir | --psdir | --psdi | --psd | --ps)
1077    ac_prev=psdir ;;
1078  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079    psdir=$ac_optarg ;;
1080
1081  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082  | -silent | --silent | --silen | --sile | --sil)
1083    silent=yes ;;
1084
1085  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086    ac_prev=sbindir ;;
1087  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088  | --sbi=* | --sb=*)
1089    sbindir=$ac_optarg ;;
1090
1091  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093  | --sharedst | --shareds | --shared | --share | --shar \
1094  | --sha | --sh)
1095    ac_prev=sharedstatedir ;;
1096  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099  | --sha=* | --sh=*)
1100    sharedstatedir=$ac_optarg ;;
1101
1102  -site | --site | --sit)
1103    ac_prev=site ;;
1104  -site=* | --site=* | --sit=*)
1105    site=$ac_optarg ;;
1106
1107  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108    ac_prev=srcdir ;;
1109  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110    srcdir=$ac_optarg ;;
1111
1112  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113  | --syscon | --sysco | --sysc | --sys | --sy)
1114    ac_prev=sysconfdir ;;
1115  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117    sysconfdir=$ac_optarg ;;
1118
1119  -target | --target | --targe | --targ | --tar | --ta | --t)
1120    ac_prev=target_alias ;;
1121  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122    target_alias=$ac_optarg ;;
1123
1124  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125    verbose=yes ;;
1126
1127  -version | --version | --versio | --versi | --vers | -V)
1128    ac_init_version=: ;;
1129
1130  -with-* | --with-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid package name: $ac_useropt"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"with_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=\$ac_optarg ;;
1145
1146  -without-* | --without-*)
1147    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150      as_fn_error $? "invalid package name: $ac_useropt"
1151    ac_useropt_orig=$ac_useropt
1152    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153    case $ac_user_opts in
1154      *"
1155"with_$ac_useropt"
1156"*) ;;
1157      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158	 ac_unrecognized_sep=', ';;
1159    esac
1160    eval with_$ac_useropt=no ;;
1161
1162  --x)
1163    # Obsolete; use --with-x.
1164    with_x=yes ;;
1165
1166  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167  | --x-incl | --x-inc | --x-in | --x-i)
1168    ac_prev=x_includes ;;
1169  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171    x_includes=$ac_optarg ;;
1172
1173  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175    ac_prev=x_libraries ;;
1176  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178    x_libraries=$ac_optarg ;;
1179
1180  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181Try \`$0 --help' for more information"
1182    ;;
1183
1184  *=*)
1185    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186    # Reject names that are not valid shell variable names.
1187    case $ac_envvar in #(
1188      '' | [0-9]* | *[!_$as_cr_alnum]* )
1189      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190    esac
1191    eval $ac_envvar=\$ac_optarg
1192    export $ac_envvar ;;
1193
1194  *)
1195    # FIXME: should be removed in autoconf 3.0.
1196    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200    ;;
1201
1202  esac
1203done
1204
1205if test -n "$ac_prev"; then
1206  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207  as_fn_error $? "missing argument to $ac_option"
1208fi
1209
1210if test -n "$ac_unrecognized_opts"; then
1211  case $enable_option_checking in
1212    no) ;;
1213    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215  esac
1216fi
1217
1218# Check all directory arguments for consistency.
1219for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220		datadir sysconfdir sharedstatedir localstatedir includedir \
1221		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222		libdir localedir mandir
1223do
1224  eval ac_val=\$$ac_var
1225  # Remove trailing slashes.
1226  case $ac_val in
1227    */ )
1228      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229      eval $ac_var=\$ac_val;;
1230  esac
1231  # Be sure to have absolute directory names.
1232  case $ac_val in
1233    [\\/$]* | ?:[\\/]* )  continue;;
1234    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235  esac
1236  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237done
1238
1239# There might be people who depend on the old broken behavior: `$host'
1240# used to hold the argument of --host etc.
1241# FIXME: To remove some day.
1242build=$build_alias
1243host=$host_alias
1244target=$target_alias
1245
1246# FIXME: To remove some day.
1247if test "x$host_alias" != x; then
1248  if test "x$build_alias" = x; then
1249    cross_compiling=maybe
1250    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1251    If a cross compiler is detected then cross compile mode will be used" >&2
1252  elif test "x$build_alias" != "x$host_alias"; then
1253    cross_compiling=yes
1254  fi
1255fi
1256
1257ac_tool_prefix=
1258test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260test "$silent" = yes && exec 6>/dev/null
1261
1262
1263ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264ac_ls_di=`ls -di .` &&
1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266  as_fn_error $? "working directory cannot be determined"
1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268  as_fn_error $? "pwd does not report name of working directory"
1269
1270
1271# Find the source files, if location was not specified.
1272if test -z "$srcdir"; then
1273  ac_srcdir_defaulted=yes
1274  # Try the directory containing this script, then the parent directory.
1275  ac_confdir=`$as_dirname -- "$as_myself" ||
1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277	 X"$as_myself" : 'X\(//\)[^/]' \| \
1278	 X"$as_myself" : 'X\(//\)$' \| \
1279	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280$as_echo X"$as_myself" |
1281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\/\)[^/].*/{
1286	    s//\1/
1287	    q
1288	  }
1289	  /^X\(\/\/\)$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\).*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  s/.*/./; q'`
1298  srcdir=$ac_confdir
1299  if test ! -r "$srcdir/$ac_unique_file"; then
1300    srcdir=..
1301  fi
1302else
1303  ac_srcdir_defaulted=no
1304fi
1305if test ! -r "$srcdir/$ac_unique_file"; then
1306  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308fi
1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310ac_abs_confdir=`(
1311	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312	pwd)`
1313# When building in place, set srcdir=.
1314if test "$ac_abs_confdir" = "$ac_pwd"; then
1315  srcdir=.
1316fi
1317# Remove unnecessary trailing slashes from srcdir.
1318# Double slashes in file names in object file debugging info
1319# mess up M-x gdb in Emacs.
1320case $srcdir in
1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322esac
1323for ac_var in $ac_precious_vars; do
1324  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_env_${ac_var}_value=\$${ac_var}
1326  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328done
1329
1330#
1331# Report the --help message.
1332#
1333if test "$ac_init_help" = "long"; then
1334  # Omit some internal or obsolete options to make the list less imposing.
1335  # This message is too long to be a string in the A/UX 3.1 sh.
1336  cat <<_ACEOF
1337\`configure' configures xinit 1.3.3 to adapt to many kinds of systems.
1338
1339Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342VAR=VALUE.  See below for descriptions of some of the useful variables.
1343
1344Defaults for the options are specified in brackets.
1345
1346Configuration:
1347  -h, --help              display this help and exit
1348      --help=short        display options specific to this package
1349      --help=recursive    display the short help of all the included packages
1350  -V, --version           display version information and exit
1351  -q, --quiet, --silent   do not print \`checking ...' messages
1352      --cache-file=FILE   cache test results in FILE [disabled]
1353  -C, --config-cache      alias for \`--cache-file=config.cache'
1354  -n, --no-create         do not create output files
1355      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1356
1357Installation directories:
1358  --prefix=PREFIX         install architecture-independent files in PREFIX
1359                          [$ac_default_prefix]
1360  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1361                          [PREFIX]
1362
1363By default, \`make install' will install all the files in
1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1365an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366for instance \`--prefix=\$HOME'.
1367
1368For better control, use the options below.
1369
1370Fine tuning of the installation directories:
1371  --bindir=DIR            user executables [EPREFIX/bin]
1372  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1373  --libexecdir=DIR        program executables [EPREFIX/libexec]
1374  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1375  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1376  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1377  --libdir=DIR            object code libraries [EPREFIX/lib]
1378  --includedir=DIR        C header files [PREFIX/include]
1379  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1380  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1381  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1382  --infodir=DIR           info documentation [DATAROOTDIR/info]
1383  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1384  --mandir=DIR            man documentation [DATAROOTDIR/man]
1385  --docdir=DIR            documentation root [DATAROOTDIR/doc/xinit]
1386  --htmldir=DIR           html documentation [DOCDIR]
1387  --dvidir=DIR            dvi documentation [DOCDIR]
1388  --pdfdir=DIR            pdf documentation [DOCDIR]
1389  --psdir=DIR             ps documentation [DOCDIR]
1390_ACEOF
1391
1392  cat <<\_ACEOF
1393
1394Program names:
1395  --program-prefix=PREFIX            prepend PREFIX to installed program names
1396  --program-suffix=SUFFIX            append SUFFIX to installed program names
1397  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1398
1399System types:
1400  --build=BUILD     configure for building on BUILD [guessed]
1401  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1402_ACEOF
1403fi
1404
1405if test -n "$ac_init_help"; then
1406  case $ac_init_help in
1407     short | recursive ) echo "Configuration of xinit 1.3.3:";;
1408   esac
1409  cat <<\_ACEOF
1410
1411Optional Features:
1412  --disable-option-checking  ignore unrecognized --enable/--with options
1413  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1414  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1415  --enable-silent-rules   less verbose build output (undo: "make V=1")
1416  --disable-silent-rules  verbose build output (undo: "make V=0")
1417  --enable-maintainer-mode
1418                          enable make rules and dependencies not useful (and
1419                          sometimes confusing) to the casual installer
1420  --enable-dependency-tracking
1421                          do not reject slow dependency extractors
1422  --disable-dependency-tracking
1423                          speeds up one-time build
1424  --disable-selective-werror
1425                          Turn off selective compiler errors. (default:
1426                          enabled)
1427  --enable-strict-compilation
1428                          Enable all warnings from compiler and make them
1429                          errors (default: disabled)
1430
1431Optional Packages:
1432  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1433  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1434  --with-xrdb=XRDB        Path to xrdb
1435  --with-xmodmap=XMODMAP  Path to xmodmap
1436  --with-twm=TWM          Path to twm
1437  --with-xclock=XCLOCK    Path to xclock
1438  --with-xterm=XTERM      Path to xterm
1439  --with-xserver=XSERVER  Path to default X server
1440  --with-xauth=XAUTH      Path to xauth
1441  --with-xinit=XINIT      Path to xinit
1442  --with-xinitdir=XINITDIR
1443                          Path to xinitdir
1444  --with-launchd          Build with support for Apple's launchd (default:
1445                          auto)
1446  --with-launchagents-dir=PATH
1447                          Path to launchd's LaunchAgents directory (default:
1448                          /Library/LaunchAgents)
1449  --with-launchagent-xserver=PATH
1450                          Path to the X server which the LaunchAgent should
1451                          start (if not provided, let startx decide)"
1452  --with-launchdaemons-dir=PATH
1453                          Path to launchd's LaunchDaemonss directory (default:
1454                          /Library/LaunchDaemons)
1455  --with-launchd-id-prefix=PATH
1456                          Deprecated: Use --with-bundle-id-prefix.
1457  --with-bundle-id-prefix=PATH
1458                          Prefix to use for bundle identifiers (default:
1459                          org.x)
1460
1461Some influential environment variables:
1462  CC          C compiler command
1463  CFLAGS      C compiler flags
1464  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465              nonstandard directory <lib dir>
1466  LIBS        libraries to pass to the linker, e.g. -l<library>
1467  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1468              you have headers in a nonstandard directory <include dir>
1469  CPP         C preprocessor
1470  PKG_CONFIG  path to pkg-config utility
1471  XINIT_CFLAGS
1472              C compiler flags for XINIT, overriding pkg-config
1473  XINIT_LIBS  linker flags for XINIT, overriding pkg-config
1474
1475Use these variables to override the choices made by `configure' or to help
1476it to find libraries and programs with nonstandard names/locations.
1477
1478Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1479_ACEOF
1480ac_status=$?
1481fi
1482
1483if test "$ac_init_help" = "recursive"; then
1484  # If there are subdirs, report their specific --help.
1485  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486    test -d "$ac_dir" ||
1487      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488      continue
1489    ac_builddir=.
1490
1491case "$ac_dir" in
1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493*)
1494  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495  # A ".." for each directory in $ac_dir_suffix.
1496  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497  case $ac_top_builddir_sub in
1498  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500  esac ;;
1501esac
1502ac_abs_top_builddir=$ac_pwd
1503ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504# for backward compatibility:
1505ac_top_builddir=$ac_top_build_prefix
1506
1507case $srcdir in
1508  .)  # We are building in place.
1509    ac_srcdir=.
1510    ac_top_srcdir=$ac_top_builddir_sub
1511    ac_abs_top_srcdir=$ac_pwd ;;
1512  [\\/]* | ?:[\\/]* )  # Absolute name.
1513    ac_srcdir=$srcdir$ac_dir_suffix;
1514    ac_top_srcdir=$srcdir
1515    ac_abs_top_srcdir=$srcdir ;;
1516  *) # Relative name.
1517    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518    ac_top_srcdir=$ac_top_build_prefix$srcdir
1519    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520esac
1521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523    cd "$ac_dir" || { ac_status=$?; continue; }
1524    # Check for guested configure.
1525    if test -f "$ac_srcdir/configure.gnu"; then
1526      echo &&
1527      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528    elif test -f "$ac_srcdir/configure"; then
1529      echo &&
1530      $SHELL "$ac_srcdir/configure" --help=recursive
1531    else
1532      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533    fi || ac_status=$?
1534    cd "$ac_pwd" || { ac_status=$?; break; }
1535  done
1536fi
1537
1538test -n "$ac_init_help" && exit $ac_status
1539if $ac_init_version; then
1540  cat <<\_ACEOF
1541xinit configure 1.3.3
1542generated by GNU Autoconf 2.68
1543
1544Copyright (C) 2010 Free Software Foundation, Inc.
1545This configure script is free software; the Free Software Foundation
1546gives unlimited permission to copy, distribute and modify it.
1547_ACEOF
1548  exit
1549fi
1550
1551## ------------------------ ##
1552## Autoconf initialization. ##
1553## ------------------------ ##
1554
1555# ac_fn_c_try_compile LINENO
1556# --------------------------
1557# Try to compile conftest.$ac_ext, and return whether this succeeded.
1558ac_fn_c_try_compile ()
1559{
1560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561  rm -f conftest.$ac_objext
1562  if { { ac_try="$ac_compile"
1563case "(($ac_try" in
1564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565  *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569  (eval "$ac_compile") 2>conftest.err
1570  ac_status=$?
1571  if test -s conftest.err; then
1572    grep -v '^ *+' conftest.err >conftest.er1
1573    cat conftest.er1 >&5
1574    mv -f conftest.er1 conftest.err
1575  fi
1576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577  test $ac_status = 0; } && {
1578	 test -z "$ac_c_werror_flag" ||
1579	 test ! -s conftest.err
1580       } && test -s conftest.$ac_objext; then :
1581  ac_retval=0
1582else
1583  $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
1585
1586	ac_retval=1
1587fi
1588  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589  as_fn_set_status $ac_retval
1590
1591} # ac_fn_c_try_compile
1592
1593# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1594# ---------------------------------------------
1595# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1596# accordingly.
1597ac_fn_c_check_decl ()
1598{
1599  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600  as_decl_name=`echo $2|sed 's/ *(.*//'`
1601  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1603$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1604if eval \${$3+:} false; then :
1605  $as_echo_n "(cached) " >&6
1606else
1607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608/* end confdefs.h.  */
1609$4
1610int
1611main ()
1612{
1613#ifndef $as_decl_name
1614#ifdef __cplusplus
1615  (void) $as_decl_use;
1616#else
1617  (void) $as_decl_name;
1618#endif
1619#endif
1620
1621  ;
1622  return 0;
1623}
1624_ACEOF
1625if ac_fn_c_try_compile "$LINENO"; then :
1626  eval "$3=yes"
1627else
1628  eval "$3=no"
1629fi
1630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631fi
1632eval ac_res=\$$3
1633	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634$as_echo "$ac_res" >&6; }
1635  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
1637} # ac_fn_c_check_decl
1638
1639# ac_fn_c_try_cpp LINENO
1640# ----------------------
1641# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_cpp ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  if { { ac_try="$ac_cpp conftest.$ac_ext"
1646case "(($ac_try" in
1647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648  *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653  ac_status=$?
1654  if test -s conftest.err; then
1655    grep -v '^ *+' conftest.err >conftest.er1
1656    cat conftest.er1 >&5
1657    mv -f conftest.er1 conftest.err
1658  fi
1659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660  test $ac_status = 0; } > conftest.i && {
1661	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662	 test ! -s conftest.err
1663       }; then :
1664  ac_retval=0
1665else
1666  $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669    ac_retval=1
1670fi
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672  as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_cpp
1675
1676# ac_fn_c_try_run LINENO
1677# ----------------------
1678# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679# that executables *can* be run.
1680ac_fn_c_try_run ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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>&5
1691  ac_status=$?
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694  { { case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_try") 2>&5
1701  ac_status=$?
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; }; }; then :
1704  ac_retval=0
1705else
1706  $as_echo "$as_me: program exited with status $ac_status" >&5
1707       $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710       ac_retval=$ac_status
1711fi
1712  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_run
1717
1718# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719# -------------------------------------------------------
1720# Tests whether HEADER exists and can be compiled using the include files in
1721# INCLUDES, setting the cache variable VAR accordingly.
1722ac_fn_c_check_header_compile ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726$as_echo_n "checking for $2... " >&6; }
1727if eval \${$3+:} false; then :
1728  $as_echo_n "(cached) " >&6
1729else
1730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731/* end confdefs.h.  */
1732$4
1733#include <$2>
1734_ACEOF
1735if ac_fn_c_try_compile "$LINENO"; then :
1736  eval "$3=yes"
1737else
1738  eval "$3=no"
1739fi
1740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741fi
1742eval ac_res=\$$3
1743	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744$as_echo "$ac_res" >&6; }
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
1747} # ac_fn_c_check_header_compile
1748
1749# ac_fn_c_try_link LINENO
1750# -----------------------
1751# Try to link conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_link ()
1753{
1754  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755  rm -f conftest.$ac_objext conftest$ac_exeext
1756  if { { ac_try="$ac_link"
1757case "(($ac_try" in
1758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759  *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763  (eval "$ac_link") 2>conftest.err
1764  ac_status=$?
1765  if test -s conftest.err; then
1766    grep -v '^ *+' conftest.err >conftest.er1
1767    cat conftest.er1 >&5
1768    mv -f conftest.er1 conftest.err
1769  fi
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; } && {
1772	 test -z "$ac_c_werror_flag" ||
1773	 test ! -s conftest.err
1774       } && test -s conftest$ac_exeext && {
1775	 test "$cross_compiling" = yes ||
1776	 $as_test_x conftest$ac_exeext
1777       }; then :
1778  ac_retval=0
1779else
1780  $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783	ac_retval=1
1784fi
1785  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787  # interfere with the next link command; also delete a directory that is
1788  # left behind by Apple's compiler.  We do this before executing the actions.
1789  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791  as_fn_set_status $ac_retval
1792
1793} # ac_fn_c_try_link
1794
1795# ac_fn_c_check_func LINENO FUNC VAR
1796# ----------------------------------
1797# Tests whether FUNC exists, setting the cache variable VAR accordingly
1798ac_fn_c_check_func ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval \${$3+:} false; then :
1804  $as_echo_n "(cached) " >&6
1805else
1806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h.  */
1808/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1809   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1810#define $2 innocuous_$2
1811
1812/* System header to define __stub macros and hopefully few prototypes,
1813    which can conflict with char $2 (); below.
1814    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1815    <limits.h> exists even on freestanding compilers.  */
1816
1817#ifdef __STDC__
1818# include <limits.h>
1819#else
1820# include <assert.h>
1821#endif
1822
1823#undef $2
1824
1825/* Override any GCC internal prototype to avoid an error.
1826   Use char because int might match the return type of a GCC
1827   builtin and then its argument prototype would still apply.  */
1828#ifdef __cplusplus
1829extern "C"
1830#endif
1831char $2 ();
1832/* The GNU C library defines this for functions which it implements
1833    to always fail with ENOSYS.  Some functions are actually named
1834    something starting with __ and the normal name is an alias.  */
1835#if defined __stub_$2 || defined __stub___$2
1836choke me
1837#endif
1838
1839int
1840main ()
1841{
1842return $2 ();
1843  ;
1844  return 0;
1845}
1846_ACEOF
1847if ac_fn_c_try_link "$LINENO"; then :
1848  eval "$3=yes"
1849else
1850  eval "$3=no"
1851fi
1852rm -f core conftest.err conftest.$ac_objext \
1853    conftest$ac_exeext conftest.$ac_ext
1854fi
1855eval ac_res=\$$3
1856	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857$as_echo "$ac_res" >&6; }
1858  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860} # ac_fn_c_check_func
1861cat >config.log <<_ACEOF
1862This file contains any messages produced by compilers while
1863running configure, to aid debugging if configure makes a mistake.
1864
1865It was created by xinit $as_me 1.3.3, which was
1866generated by GNU Autoconf 2.68.  Invocation command line was
1867
1868  $ $0 $@
1869
1870_ACEOF
1871exec 5>>config.log
1872{
1873cat <<_ASUNAME
1874## --------- ##
1875## Platform. ##
1876## --------- ##
1877
1878hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1879uname -m = `(uname -m) 2>/dev/null || echo unknown`
1880uname -r = `(uname -r) 2>/dev/null || echo unknown`
1881uname -s = `(uname -s) 2>/dev/null || echo unknown`
1882uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883
1884/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1885/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1886
1887/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1888/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1889/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1890/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1891/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1892/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1893/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1894
1895_ASUNAME
1896
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900  IFS=$as_save_IFS
1901  test -z "$as_dir" && as_dir=.
1902    $as_echo "PATH: $as_dir"
1903  done
1904IFS=$as_save_IFS
1905
1906} >&5
1907
1908cat >&5 <<_ACEOF
1909
1910
1911## ----------- ##
1912## Core tests. ##
1913## ----------- ##
1914
1915_ACEOF
1916
1917
1918# Keep a trace of the command line.
1919# Strip out --no-create and --no-recursion so they do not pile up.
1920# Strip out --silent because we don't want to record it for future runs.
1921# Also quote any args containing shell meta-characters.
1922# Make two passes to allow for proper duplicate-argument suppression.
1923ac_configure_args=
1924ac_configure_args0=
1925ac_configure_args1=
1926ac_must_keep_next=false
1927for ac_pass in 1 2
1928do
1929  for ac_arg
1930  do
1931    case $ac_arg in
1932    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1933    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1934    | -silent | --silent | --silen | --sile | --sil)
1935      continue ;;
1936    *\'*)
1937      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1938    esac
1939    case $ac_pass in
1940    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1941    2)
1942      as_fn_append ac_configure_args1 " '$ac_arg'"
1943      if test $ac_must_keep_next = true; then
1944	ac_must_keep_next=false # Got value, back to normal.
1945      else
1946	case $ac_arg in
1947	  *=* | --config-cache | -C | -disable-* | --disable-* \
1948	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1949	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1950	  | -with-* | --with-* | -without-* | --without-* | --x)
1951	    case "$ac_configure_args0 " in
1952	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1953	    esac
1954	    ;;
1955	  -* ) ac_must_keep_next=true ;;
1956	esac
1957      fi
1958      as_fn_append ac_configure_args " '$ac_arg'"
1959      ;;
1960    esac
1961  done
1962done
1963{ ac_configure_args0=; unset ac_configure_args0;}
1964{ ac_configure_args1=; unset ac_configure_args1;}
1965
1966# When interrupted or exit'd, cleanup temporary files, and complete
1967# config.log.  We remove comments because anyway the quotes in there
1968# would cause problems or look ugly.
1969# WARNING: Use '\'' to represent an apostrophe within the trap.
1970# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1971trap 'exit_status=$?
1972  # Save into config.log some information that might help in debugging.
1973  {
1974    echo
1975
1976    $as_echo "## ---------------- ##
1977## Cache variables. ##
1978## ---------------- ##"
1979    echo
1980    # The following way of writing the cache mishandles newlines in values,
1981(
1982  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1983    eval ac_val=\$$ac_var
1984    case $ac_val in #(
1985    *${as_nl}*)
1986      case $ac_var in #(
1987      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1988$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1989      esac
1990      case $ac_var in #(
1991      _ | IFS | as_nl) ;; #(
1992      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1993      *) { eval $ac_var=; unset $ac_var;} ;;
1994      esac ;;
1995    esac
1996  done
1997  (set) 2>&1 |
1998    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999    *${as_nl}ac_space=\ *)
2000      sed -n \
2001	"s/'\''/'\''\\\\'\'''\''/g;
2002	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2003      ;; #(
2004    *)
2005      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006      ;;
2007    esac |
2008    sort
2009)
2010    echo
2011
2012    $as_echo "## ----------------- ##
2013## Output variables. ##
2014## ----------------- ##"
2015    echo
2016    for ac_var in $ac_subst_vars
2017    do
2018      eval ac_val=\$$ac_var
2019      case $ac_val in
2020      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021      esac
2022      $as_echo "$ac_var='\''$ac_val'\''"
2023    done | sort
2024    echo
2025
2026    if test -n "$ac_subst_files"; then
2027      $as_echo "## ------------------- ##
2028## File substitutions. ##
2029## ------------------- ##"
2030      echo
2031      for ac_var in $ac_subst_files
2032      do
2033	eval ac_val=\$$ac_var
2034	case $ac_val in
2035	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036	esac
2037	$as_echo "$ac_var='\''$ac_val'\''"
2038      done | sort
2039      echo
2040    fi
2041
2042    if test -s confdefs.h; then
2043      $as_echo "## ----------- ##
2044## confdefs.h. ##
2045## ----------- ##"
2046      echo
2047      cat confdefs.h
2048      echo
2049    fi
2050    test "$ac_signal" != 0 &&
2051      $as_echo "$as_me: caught signal $ac_signal"
2052    $as_echo "$as_me: exit $exit_status"
2053  } >&5
2054  rm -f core *.core core.conftest.* &&
2055    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2056    exit $exit_status
2057' 0
2058for ac_signal in 1 2 13 15; do
2059  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2060done
2061ac_signal=0
2062
2063# confdefs.h avoids OS command line length limits that DEFS can exceed.
2064rm -f -r conftest* confdefs.h
2065
2066$as_echo "/* confdefs.h */" > confdefs.h
2067
2068# Predefined preprocessor variables.
2069
2070cat >>confdefs.h <<_ACEOF
2071#define PACKAGE_NAME "$PACKAGE_NAME"
2072_ACEOF
2073
2074cat >>confdefs.h <<_ACEOF
2075#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2076_ACEOF
2077
2078cat >>confdefs.h <<_ACEOF
2079#define PACKAGE_VERSION "$PACKAGE_VERSION"
2080_ACEOF
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_STRING "$PACKAGE_STRING"
2084_ACEOF
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2088_ACEOF
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_URL "$PACKAGE_URL"
2092_ACEOF
2093
2094
2095# Let the site file select an alternate cache file if it wants to.
2096# Prefer an explicitly selected file to automatically selected ones.
2097ac_site_file1=NONE
2098ac_site_file2=NONE
2099if test -n "$CONFIG_SITE"; then
2100  # We do not want a PATH search for config.site.
2101  case $CONFIG_SITE in #((
2102    -*)  ac_site_file1=./$CONFIG_SITE;;
2103    */*) ac_site_file1=$CONFIG_SITE;;
2104    *)   ac_site_file1=./$CONFIG_SITE;;
2105  esac
2106elif test "x$prefix" != xNONE; then
2107  ac_site_file1=$prefix/share/config.site
2108  ac_site_file2=$prefix/etc/config.site
2109else
2110  ac_site_file1=$ac_default_prefix/share/config.site
2111  ac_site_file2=$ac_default_prefix/etc/config.site
2112fi
2113for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2114do
2115  test "x$ac_site_file" = xNONE && continue
2116  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2117    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2118$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2119    sed 's/^/| /' "$ac_site_file" >&5
2120    . "$ac_site_file" \
2121      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2123as_fn_error $? "failed to load site script $ac_site_file
2124See \`config.log' for more details" "$LINENO" 5; }
2125  fi
2126done
2127
2128if test -r "$cache_file"; then
2129  # Some versions of bash will fail to source /dev/null (special files
2130  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2131  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2132    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2133$as_echo "$as_me: loading cache $cache_file" >&6;}
2134    case $cache_file in
2135      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2136      *)                      . "./$cache_file";;
2137    esac
2138  fi
2139else
2140  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2141$as_echo "$as_me: creating cache $cache_file" >&6;}
2142  >$cache_file
2143fi
2144
2145# Check that the precious variables saved in the cache have kept the same
2146# value.
2147ac_cache_corrupted=false
2148for ac_var in $ac_precious_vars; do
2149  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2150  eval ac_new_set=\$ac_env_${ac_var}_set
2151  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2152  eval ac_new_val=\$ac_env_${ac_var}_value
2153  case $ac_old_set,$ac_new_set in
2154    set,)
2155      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157      ac_cache_corrupted=: ;;
2158    ,set)
2159      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2160$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161      ac_cache_corrupted=: ;;
2162    ,);;
2163    *)
2164      if test "x$ac_old_val" != "x$ac_new_val"; then
2165	# differences in whitespace do not lead to failure.
2166	ac_old_val_w=`echo x $ac_old_val`
2167	ac_new_val_w=`echo x $ac_new_val`
2168	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2170$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171	  ac_cache_corrupted=:
2172	else
2173	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175	  eval $ac_var=\$ac_old_val
2176	fi
2177	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2178$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2179	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2180$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2181      fi;;
2182  esac
2183  # Pass precious variables to config.status.
2184  if test "$ac_new_set" = set; then
2185    case $ac_new_val in
2186    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187    *) ac_arg=$ac_var=$ac_new_val ;;
2188    esac
2189    case " $ac_configure_args " in
2190      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2191      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2192    esac
2193  fi
2194done
2195if $ac_cache_corrupted; then
2196  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2199$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2201fi
2202## -------------------- ##
2203## Main body of script. ##
2204## -------------------- ##
2205
2206ac_ext=c
2207ac_cpp='$CPP $CPPFLAGS'
2208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211
2212
2213
2214ac_config_headers="$ac_config_headers config.h"
2215
2216
2217# Initialize Automake
2218am__api_version='1.14'
2219
2220ac_aux_dir=
2221for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2222  if test -f "$ac_dir/install-sh"; then
2223    ac_aux_dir=$ac_dir
2224    ac_install_sh="$ac_aux_dir/install-sh -c"
2225    break
2226  elif test -f "$ac_dir/install.sh"; then
2227    ac_aux_dir=$ac_dir
2228    ac_install_sh="$ac_aux_dir/install.sh -c"
2229    break
2230  elif test -f "$ac_dir/shtool"; then
2231    ac_aux_dir=$ac_dir
2232    ac_install_sh="$ac_aux_dir/shtool install -c"
2233    break
2234  fi
2235done
2236if test -z "$ac_aux_dir"; then
2237  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2238fi
2239
2240# These three variables are undocumented and unsupported,
2241# and are intended to be withdrawn in a future Autoconf release.
2242# They can cause serious problems if a builder's source tree is in a directory
2243# whose full name contains unusual characters.
2244ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2245ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2246ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2247
2248
2249# Find a good install program.  We prefer a C program (faster),
2250# so one script is as good as another.  But avoid the broken or
2251# incompatible versions:
2252# SysV /etc/install, /usr/sbin/install
2253# SunOS /usr/etc/install
2254# IRIX /sbin/install
2255# AIX /bin/install
2256# AmigaOS /C/install, which installs bootblocks on floppy discs
2257# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2258# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2259# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2260# OS/2's system install, which has a completely different semantic
2261# ./install, which can be erroneously created by make from ./install.sh.
2262# Reject install programs that cannot install multiple files.
2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2264$as_echo_n "checking for a BSD-compatible install... " >&6; }
2265if test -z "$INSTALL"; then
2266if ${ac_cv_path_install+:} false; then :
2267  $as_echo_n "(cached) " >&6
2268else
2269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272  IFS=$as_save_IFS
2273  test -z "$as_dir" && as_dir=.
2274    # Account for people who put trailing slashes in PATH elements.
2275case $as_dir/ in #((
2276  ./ | .// | /[cC]/* | \
2277  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2278  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2279  /usr/ucb/* ) ;;
2280  *)
2281    # OSF1 and SCO ODT 3.0 have their own names for install.
2282    # Don't use installbsd from OSF since it installs stuff as root
2283    # by default.
2284    for ac_prog in ginstall scoinst install; do
2285      for ac_exec_ext in '' $ac_executable_extensions; do
2286	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2287	  if test $ac_prog = install &&
2288	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289	    # AIX install.  It has an incompatible calling convention.
2290	    :
2291	  elif test $ac_prog = install &&
2292	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2293	    # program-specific install script used by HP pwplus--don't use.
2294	    :
2295	  else
2296	    rm -rf conftest.one conftest.two conftest.dir
2297	    echo one > conftest.one
2298	    echo two > conftest.two
2299	    mkdir conftest.dir
2300	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2301	      test -s conftest.one && test -s conftest.two &&
2302	      test -s conftest.dir/conftest.one &&
2303	      test -s conftest.dir/conftest.two
2304	    then
2305	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2306	      break 3
2307	    fi
2308	  fi
2309	fi
2310      done
2311    done
2312    ;;
2313esac
2314
2315  done
2316IFS=$as_save_IFS
2317
2318rm -rf conftest.one conftest.two conftest.dir
2319
2320fi
2321  if test "${ac_cv_path_install+set}" = set; then
2322    INSTALL=$ac_cv_path_install
2323  else
2324    # As a last resort, use the slow shell script.  Don't cache a
2325    # value for INSTALL within a source directory, because that will
2326    # break other packages using the cache if that directory is
2327    # removed, or if the value is a relative name.
2328    INSTALL=$ac_install_sh
2329  fi
2330fi
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2332$as_echo "$INSTALL" >&6; }
2333
2334# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2335# It thinks the first close brace ends the variable substitution.
2336test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2337
2338test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2339
2340test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2341
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2343$as_echo_n "checking whether build environment is sane... " >&6; }
2344# Reject unsafe characters in $srcdir or the absolute working directory
2345# name.  Accept space and tab only in the latter.
2346am_lf='
2347'
2348case `pwd` in
2349  *[\\\"\#\$\&\'\`$am_lf]*)
2350    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2351esac
2352case $srcdir in
2353  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2354    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2355esac
2356
2357# Do 'set' in a subshell so we don't clobber the current shell's
2358# arguments.  Must try -L first in case configure is actually a
2359# symlink; some systems play weird games with the mod time of symlinks
2360# (eg FreeBSD returns the mod time of the symlink's containing
2361# directory).
2362if (
2363   am_has_slept=no
2364   for am_try in 1 2; do
2365     echo "timestamp, slept: $am_has_slept" > conftest.file
2366     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2367     if test "$*" = "X"; then
2368	# -L didn't work.
2369	set X `ls -t "$srcdir/configure" conftest.file`
2370     fi
2371     if test "$*" != "X $srcdir/configure conftest.file" \
2372	&& test "$*" != "X conftest.file $srcdir/configure"; then
2373
2374	# If neither matched, then we have a broken ls.  This can happen
2375	# if, for instance, CONFIG_SHELL is bash and it inherits a
2376	# broken ls alias from the environment.  This has actually
2377	# happened.  Such a system could not be considered "sane".
2378	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2379  alias in your environment" "$LINENO" 5
2380     fi
2381     if test "$2" = conftest.file || test $am_try -eq 2; then
2382       break
2383     fi
2384     # Just in case.
2385     sleep 1
2386     am_has_slept=yes
2387   done
2388   test "$2" = conftest.file
2389   )
2390then
2391   # Ok.
2392   :
2393else
2394   as_fn_error $? "newly created file is older than distributed files!
2395Check your system clock" "$LINENO" 5
2396fi
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2398$as_echo "yes" >&6; }
2399# If we didn't sleep, we still need to ensure time stamps of config.status and
2400# generated files are strictly newer.
2401am_sleep_pid=
2402if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2403  ( sleep 1 ) &
2404  am_sleep_pid=$!
2405fi
2406
2407rm -f conftest.file
2408
2409test "$program_prefix" != NONE &&
2410  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2411# Use a double $ so make ignores it.
2412test "$program_suffix" != NONE &&
2413  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2414# Double any \ or $.
2415# By default was `s,x,x', remove it if useless.
2416ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2417program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2418
2419# expand $ac_aux_dir to an absolute path
2420am_aux_dir=`cd $ac_aux_dir && pwd`
2421
2422if test x"${MISSING+set}" != xset; then
2423  case $am_aux_dir in
2424  *\ * | *\	*)
2425    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2426  *)
2427    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2428  esac
2429fi
2430# Use eval to expand $SHELL
2431if eval "$MISSING --is-lightweight"; then
2432  am_missing_run="$MISSING "
2433else
2434  am_missing_run=
2435  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2436$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2437fi
2438
2439if test x"${install_sh}" != xset; then
2440  case $am_aux_dir in
2441  *\ * | *\	*)
2442    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2443  *)
2444    install_sh="\${SHELL} $am_aux_dir/install-sh"
2445  esac
2446fi
2447
2448# Installed binaries are usually stripped using 'strip' when the user
2449# run "make install-strip".  However 'strip' might not be the right
2450# tool to use in cross-compilation environments, therefore Automake
2451# will honor the 'STRIP' environment variable to overrule this program.
2452if test "$cross_compiling" != no; then
2453  if test -n "$ac_tool_prefix"; then
2454  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2455set dummy ${ac_tool_prefix}strip; ac_word=$2
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457$as_echo_n "checking for $ac_word... " >&6; }
2458if ${ac_cv_prog_STRIP+:} false; then :
2459  $as_echo_n "(cached) " >&6
2460else
2461  if test -n "$STRIP"; then
2462  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467  IFS=$as_save_IFS
2468  test -z "$as_dir" && as_dir=.
2469    for ac_exec_ext in '' $ac_executable_extensions; do
2470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473    break 2
2474  fi
2475done
2476  done
2477IFS=$as_save_IFS
2478
2479fi
2480fi
2481STRIP=$ac_cv_prog_STRIP
2482if test -n "$STRIP"; then
2483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2484$as_echo "$STRIP" >&6; }
2485else
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487$as_echo "no" >&6; }
2488fi
2489
2490
2491fi
2492if test -z "$ac_cv_prog_STRIP"; then
2493  ac_ct_STRIP=$STRIP
2494  # Extract the first word of "strip", so it can be a program name with args.
2495set dummy strip; ac_word=$2
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497$as_echo_n "checking for $ac_word... " >&6; }
2498if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2499  $as_echo_n "(cached) " >&6
2500else
2501  if test -n "$ac_ct_STRIP"; then
2502  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2503else
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507  IFS=$as_save_IFS
2508  test -z "$as_dir" && as_dir=.
2509    for ac_exec_ext in '' $ac_executable_extensions; do
2510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511    ac_cv_prog_ac_ct_STRIP="strip"
2512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2513    break 2
2514  fi
2515done
2516  done
2517IFS=$as_save_IFS
2518
2519fi
2520fi
2521ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2522if test -n "$ac_ct_STRIP"; then
2523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2524$as_echo "$ac_ct_STRIP" >&6; }
2525else
2526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527$as_echo "no" >&6; }
2528fi
2529
2530  if test "x$ac_ct_STRIP" = x; then
2531    STRIP=":"
2532  else
2533    case $cross_compiling:$ac_tool_warned in
2534yes:)
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2537ac_tool_warned=yes ;;
2538esac
2539    STRIP=$ac_ct_STRIP
2540  fi
2541else
2542  STRIP="$ac_cv_prog_STRIP"
2543fi
2544
2545fi
2546INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2547
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2549$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2550if test -z "$MKDIR_P"; then
2551  if ${ac_cv_path_mkdir+:} false; then :
2552  $as_echo_n "(cached) " >&6
2553else
2554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2556do
2557  IFS=$as_save_IFS
2558  test -z "$as_dir" && as_dir=.
2559    for ac_prog in mkdir gmkdir; do
2560	 for ac_exec_ext in '' $ac_executable_extensions; do
2561	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2562	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2563	     'mkdir (GNU coreutils) '* | \
2564	     'mkdir (coreutils) '* | \
2565	     'mkdir (fileutils) '4.1*)
2566	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2567	       break 3;;
2568	   esac
2569	 done
2570       done
2571  done
2572IFS=$as_save_IFS
2573
2574fi
2575
2576  test -d ./--version && rmdir ./--version
2577  if test "${ac_cv_path_mkdir+set}" = set; then
2578    MKDIR_P="$ac_cv_path_mkdir -p"
2579  else
2580    # As a last resort, use the slow shell script.  Don't cache a
2581    # value for MKDIR_P within a source directory, because that will
2582    # break other packages using the cache if that directory is
2583    # removed, or if the value is a relative name.
2584    MKDIR_P="$ac_install_sh -d"
2585  fi
2586fi
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2588$as_echo "$MKDIR_P" >&6; }
2589
2590for ac_prog in gawk mawk nawk awk
2591do
2592  # Extract the first word of "$ac_prog", so it can be a program name with args.
2593set dummy $ac_prog; ac_word=$2
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595$as_echo_n "checking for $ac_word... " >&6; }
2596if ${ac_cv_prog_AWK+:} false; then :
2597  $as_echo_n "(cached) " >&6
2598else
2599  if test -n "$AWK"; then
2600  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605  IFS=$as_save_IFS
2606  test -z "$as_dir" && as_dir=.
2607    for ac_exec_ext in '' $ac_executable_extensions; do
2608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609    ac_cv_prog_AWK="$ac_prog"
2610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611    break 2
2612  fi
2613done
2614  done
2615IFS=$as_save_IFS
2616
2617fi
2618fi
2619AWK=$ac_cv_prog_AWK
2620if test -n "$AWK"; then
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2622$as_echo "$AWK" >&6; }
2623else
2624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625$as_echo "no" >&6; }
2626fi
2627
2628
2629  test -n "$AWK" && break
2630done
2631
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2633$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2634set x ${MAKE-make}
2635ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2636if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2637  $as_echo_n "(cached) " >&6
2638else
2639  cat >conftest.make <<\_ACEOF
2640SHELL = /bin/sh
2641all:
2642	@echo '@@@%%%=$(MAKE)=@@@%%%'
2643_ACEOF
2644# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2645case `${MAKE-make} -f conftest.make 2>/dev/null` in
2646  *@@@%%%=?*=@@@%%%*)
2647    eval ac_cv_prog_make_${ac_make}_set=yes;;
2648  *)
2649    eval ac_cv_prog_make_${ac_make}_set=no;;
2650esac
2651rm -f conftest.make
2652fi
2653if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2655$as_echo "yes" >&6; }
2656  SET_MAKE=
2657else
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659$as_echo "no" >&6; }
2660  SET_MAKE="MAKE=${MAKE-make}"
2661fi
2662
2663rm -rf .tst 2>/dev/null
2664mkdir .tst 2>/dev/null
2665if test -d .tst; then
2666  am__leading_dot=.
2667else
2668  am__leading_dot=_
2669fi
2670rmdir .tst 2>/dev/null
2671
2672# Check whether --enable-silent-rules was given.
2673if test "${enable_silent_rules+set}" = set; then :
2674  enableval=$enable_silent_rules;
2675fi
2676
2677case $enable_silent_rules in # (((
2678  yes) AM_DEFAULT_VERBOSITY=0;;
2679   no) AM_DEFAULT_VERBOSITY=1;;
2680    *) AM_DEFAULT_VERBOSITY=1;;
2681esac
2682am_make=${MAKE-make}
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2684$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2685if ${am_cv_make_support_nested_variables+:} false; then :
2686  $as_echo_n "(cached) " >&6
2687else
2688  if $as_echo 'TRUE=$(BAR$(V))
2689BAR0=false
2690BAR1=true
2691V=1
2692am__doit:
2693	@$(TRUE)
2694.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2695  am_cv_make_support_nested_variables=yes
2696else
2697  am_cv_make_support_nested_variables=no
2698fi
2699fi
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2701$as_echo "$am_cv_make_support_nested_variables" >&6; }
2702if test $am_cv_make_support_nested_variables = yes; then
2703    AM_V='$(V)'
2704  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2705else
2706  AM_V=$AM_DEFAULT_VERBOSITY
2707  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2708fi
2709AM_BACKSLASH='\'
2710
2711if test "`cd $srcdir && pwd`" != "`pwd`"; then
2712  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2713  # is not polluted with repeated "-I."
2714  am__isrc=' -I$(srcdir)'
2715  # test to see if srcdir already configured
2716  if test -f $srcdir/config.status; then
2717    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2718  fi
2719fi
2720
2721# test whether we have cygpath
2722if test -z "$CYGPATH_W"; then
2723  if (cygpath --version) >/dev/null 2>/dev/null; then
2724    CYGPATH_W='cygpath -w'
2725  else
2726    CYGPATH_W=echo
2727  fi
2728fi
2729
2730
2731# Define the identity of the package.
2732 PACKAGE='xinit'
2733 VERSION='1.3.3'
2734
2735
2736cat >>confdefs.h <<_ACEOF
2737#define PACKAGE "$PACKAGE"
2738_ACEOF
2739
2740
2741cat >>confdefs.h <<_ACEOF
2742#define VERSION "$VERSION"
2743_ACEOF
2744
2745# Some tools Automake needs.
2746
2747ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2748
2749
2750AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2751
2752
2753AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2754
2755
2756AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2757
2758
2759MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2760
2761# For better backward compatibility.  To be removed once Automake 1.9.x
2762# dies out for good.  For more background, see:
2763# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2764# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2765mkdir_p='$(MKDIR_P)'
2766
2767# We need awk for the "check" target.  The system "awk" is bad on
2768# some platforms.
2769# Always define AMTAR for backward compatibility.  Yes, it's still used
2770# in the wild :-(  We should find a proper way to deprecate it ...
2771AMTAR='$${TAR-tar}'
2772
2773
2774# We'll loop over all known methods to create a tar archive until one works.
2775_am_tools='gnutar  pax cpio none'
2776
2777am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2778
2779
2780
2781
2782
2783
2784# POSIX will say in a future version that running "rm -f" with no argument
2785# is OK; and we want to be able to make that assumption in our Makefile
2786# recipes.  So use an aggressive probe to check that the usage we want is
2787# actually supported "in the wild" to an acceptable degree.
2788# See automake bug#10828.
2789# To make any issue more visible, cause the running configure to be aborted
2790# by default if the 'rm' program in use doesn't match our expectations; the
2791# user can still override this though.
2792if rm -f && rm -fr && rm -rf; then : OK; else
2793  cat >&2 <<'END'
2794Oops!
2795
2796Your 'rm' program seems unable to run without file operands specified
2797on the command line, even when the '-f' option is present.  This is contrary
2798to the behaviour of most rm programs out there, and not conforming with
2799the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2800
2801Please tell bug-automake@gnu.org about your system, including the value
2802of your $PATH and any error possibly output before this message.  This
2803can help us improve future automake versions.
2804
2805END
2806  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2807    echo 'Configuration will proceed anyway, since you have set the' >&2
2808    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2809    echo >&2
2810  else
2811    cat >&2 <<'END'
2812Aborting the configuration process, to ensure you take notice of the issue.
2813
2814You can download and install GNU coreutils to get an 'rm' implementation
2815that behaves properly: <http://www.gnu.org/software/coreutils/>.
2816
2817If you want to complete the configuration process using your problematic
2818'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2819to "yes", and re-run configure.
2820
2821END
2822    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2823  fi
2824fi
2825
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2827$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2828    # Check whether --enable-maintainer-mode was given.
2829if test "${enable_maintainer_mode+set}" = set; then :
2830  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2831else
2832  USE_MAINTAINER_MODE=no
2833fi
2834
2835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2836$as_echo "$USE_MAINTAINER_MODE" >&6; }
2837   if test $USE_MAINTAINER_MODE = yes; then
2838  MAINTAINER_MODE_TRUE=
2839  MAINTAINER_MODE_FALSE='#'
2840else
2841  MAINTAINER_MODE_TRUE='#'
2842  MAINTAINER_MODE_FALSE=
2843fi
2844
2845  MAINT=$MAINTAINER_MODE_TRUE
2846
2847
2848
2849# Require X.Org macros 1.8 or later for AC_PROG_SED in XORG_DEFAULT_OPTIONS
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861DEPDIR="${am__leading_dot}deps"
2862
2863ac_config_commands="$ac_config_commands depfiles"
2864
2865
2866am_make=${MAKE-make}
2867cat > confinc << 'END'
2868am__doit:
2869	@echo this is the am__doit target
2870.PHONY: am__doit
2871END
2872# If we don't find an include directive, just comment out the code.
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2874$as_echo_n "checking for style of include used by $am_make... " >&6; }
2875am__include="#"
2876am__quote=
2877_am_result=none
2878# First try GNU make style include.
2879echo "include confinc" > confmf
2880# Ignore all kinds of additional output from 'make'.
2881case `$am_make -s -f confmf 2> /dev/null` in #(
2882*the\ am__doit\ target*)
2883  am__include=include
2884  am__quote=
2885  _am_result=GNU
2886  ;;
2887esac
2888# Now try BSD make style include.
2889if test "$am__include" = "#"; then
2890   echo '.include "confinc"' > confmf
2891   case `$am_make -s -f confmf 2> /dev/null` in #(
2892   *the\ am__doit\ target*)
2893     am__include=.include
2894     am__quote="\""
2895     _am_result=BSD
2896     ;;
2897   esac
2898fi
2899
2900
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2902$as_echo "$_am_result" >&6; }
2903rm -f confinc confmf
2904
2905# Check whether --enable-dependency-tracking was given.
2906if test "${enable_dependency_tracking+set}" = set; then :
2907  enableval=$enable_dependency_tracking;
2908fi
2909
2910if test "x$enable_dependency_tracking" != xno; then
2911  am_depcomp="$ac_aux_dir/depcomp"
2912  AMDEPBACKSLASH='\'
2913  am__nodep='_no'
2914fi
2915 if test "x$enable_dependency_tracking" != xno; then
2916  AMDEP_TRUE=
2917  AMDEP_FALSE='#'
2918else
2919  AMDEP_TRUE='#'
2920  AMDEP_FALSE=
2921fi
2922
2923
2924ac_ext=c
2925ac_cpp='$CPP $CPPFLAGS'
2926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929if test -n "$ac_tool_prefix"; then
2930  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2931set dummy ${ac_tool_prefix}gcc; ac_word=$2
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933$as_echo_n "checking for $ac_word... " >&6; }
2934if ${ac_cv_prog_CC+:} false; then :
2935  $as_echo_n "(cached) " >&6
2936else
2937  if test -n "$CC"; then
2938  ac_cv_prog_CC="$CC" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943  IFS=$as_save_IFS
2944  test -z "$as_dir" && as_dir=.
2945    for ac_exec_ext in '' $ac_executable_extensions; do
2946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949    break 2
2950  fi
2951done
2952  done
2953IFS=$as_save_IFS
2954
2955fi
2956fi
2957CC=$ac_cv_prog_CC
2958if test -n "$CC"; then
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960$as_echo "$CC" >&6; }
2961else
2962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963$as_echo "no" >&6; }
2964fi
2965
2966
2967fi
2968if test -z "$ac_cv_prog_CC"; then
2969  ac_ct_CC=$CC
2970  # Extract the first word of "gcc", so it can be a program name with args.
2971set dummy gcc; ac_word=$2
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
2974if ${ac_cv_prog_ac_ct_CC+:} false; then :
2975  $as_echo_n "(cached) " >&6
2976else
2977  if test -n "$ac_ct_CC"; then
2978  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983  IFS=$as_save_IFS
2984  test -z "$as_dir" && as_dir=.
2985    for ac_exec_ext in '' $ac_executable_extensions; do
2986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987    ac_cv_prog_ac_ct_CC="gcc"
2988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989    break 2
2990  fi
2991done
2992  done
2993IFS=$as_save_IFS
2994
2995fi
2996fi
2997ac_ct_CC=$ac_cv_prog_ac_ct_CC
2998if test -n "$ac_ct_CC"; then
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3000$as_echo "$ac_ct_CC" >&6; }
3001else
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003$as_echo "no" >&6; }
3004fi
3005
3006  if test "x$ac_ct_CC" = x; then
3007    CC=""
3008  else
3009    case $cross_compiling:$ac_tool_warned in
3010yes:)
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3013ac_tool_warned=yes ;;
3014esac
3015    CC=$ac_ct_CC
3016  fi
3017else
3018  CC="$ac_cv_prog_CC"
3019fi
3020
3021if test -z "$CC"; then
3022          if test -n "$ac_tool_prefix"; then
3023    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3024set dummy ${ac_tool_prefix}cc; ac_word=$2
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026$as_echo_n "checking for $ac_word... " >&6; }
3027if ${ac_cv_prog_CC+:} false; then :
3028  $as_echo_n "(cached) " >&6
3029else
3030  if test -n "$CC"; then
3031  ac_cv_prog_CC="$CC" # Let the user override the test.
3032else
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036  IFS=$as_save_IFS
3037  test -z "$as_dir" && as_dir=.
3038    for ac_exec_ext in '' $ac_executable_extensions; do
3039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040    ac_cv_prog_CC="${ac_tool_prefix}cc"
3041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042    break 2
3043  fi
3044done
3045  done
3046IFS=$as_save_IFS
3047
3048fi
3049fi
3050CC=$ac_cv_prog_CC
3051if test -n "$CC"; then
3052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053$as_echo "$CC" >&6; }
3054else
3055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056$as_echo "no" >&6; }
3057fi
3058
3059
3060  fi
3061fi
3062if test -z "$CC"; then
3063  # Extract the first word of "cc", so it can be a program name with args.
3064set dummy cc; ac_word=$2
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066$as_echo_n "checking for $ac_word... " >&6; }
3067if ${ac_cv_prog_CC+:} false; then :
3068  $as_echo_n "(cached) " >&6
3069else
3070  if test -n "$CC"; then
3071  ac_cv_prog_CC="$CC" # Let the user override the test.
3072else
3073  ac_prog_rejected=no
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077  IFS=$as_save_IFS
3078  test -z "$as_dir" && as_dir=.
3079    for ac_exec_ext in '' $ac_executable_extensions; do
3080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3082       ac_prog_rejected=yes
3083       continue
3084     fi
3085    ac_cv_prog_CC="cc"
3086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087    break 2
3088  fi
3089done
3090  done
3091IFS=$as_save_IFS
3092
3093if test $ac_prog_rejected = yes; then
3094  # We found a bogon in the path, so make sure we never use it.
3095  set dummy $ac_cv_prog_CC
3096  shift
3097  if test $# != 0; then
3098    # We chose a different compiler from the bogus one.
3099    # However, it has the same basename, so the bogon will be chosen
3100    # first if we set CC to just the basename; use the full file name.
3101    shift
3102    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3103  fi
3104fi
3105fi
3106fi
3107CC=$ac_cv_prog_CC
3108if test -n "$CC"; then
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110$as_echo "$CC" >&6; }
3111else
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113$as_echo "no" >&6; }
3114fi
3115
3116
3117fi
3118if test -z "$CC"; then
3119  if test -n "$ac_tool_prefix"; then
3120  for ac_prog in cl.exe
3121  do
3122    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3123set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125$as_echo_n "checking for $ac_word... " >&6; }
3126if ${ac_cv_prog_CC+:} false; then :
3127  $as_echo_n "(cached) " >&6
3128else
3129  if test -n "$CC"; then
3130  ac_cv_prog_CC="$CC" # Let the user override the test.
3131else
3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH
3134do
3135  IFS=$as_save_IFS
3136  test -z "$as_dir" && as_dir=.
3137    for ac_exec_ext in '' $ac_executable_extensions; do
3138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141    break 2
3142  fi
3143done
3144  done
3145IFS=$as_save_IFS
3146
3147fi
3148fi
3149CC=$ac_cv_prog_CC
3150if test -n "$CC"; then
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152$as_echo "$CC" >&6; }
3153else
3154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155$as_echo "no" >&6; }
3156fi
3157
3158
3159    test -n "$CC" && break
3160  done
3161fi
3162if test -z "$CC"; then
3163  ac_ct_CC=$CC
3164  for ac_prog in cl.exe
3165do
3166  # Extract the first word of "$ac_prog", so it can be a program name with args.
3167set dummy $ac_prog; ac_word=$2
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169$as_echo_n "checking for $ac_word... " >&6; }
3170if ${ac_cv_prog_ac_ct_CC+:} false; then :
3171  $as_echo_n "(cached) " >&6
3172else
3173  if test -n "$ac_ct_CC"; then
3174  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179  IFS=$as_save_IFS
3180  test -z "$as_dir" && as_dir=.
3181    for ac_exec_ext in '' $ac_executable_extensions; do
3182  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183    ac_cv_prog_ac_ct_CC="$ac_prog"
3184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185    break 2
3186  fi
3187done
3188  done
3189IFS=$as_save_IFS
3190
3191fi
3192fi
3193ac_ct_CC=$ac_cv_prog_ac_ct_CC
3194if test -n "$ac_ct_CC"; then
3195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3196$as_echo "$ac_ct_CC" >&6; }
3197else
3198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199$as_echo "no" >&6; }
3200fi
3201
3202
3203  test -n "$ac_ct_CC" && break
3204done
3205
3206  if test "x$ac_ct_CC" = x; then
3207    CC=""
3208  else
3209    case $cross_compiling:$ac_tool_warned in
3210yes:)
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213ac_tool_warned=yes ;;
3214esac
3215    CC=$ac_ct_CC
3216  fi
3217fi
3218
3219fi
3220
3221
3222test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224as_fn_error $? "no acceptable C compiler found in \$PATH
3225See \`config.log' for more details" "$LINENO" 5; }
3226
3227# Provide some information about the compiler.
3228$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3229set X $ac_compile
3230ac_compiler=$2
3231for ac_option in --version -v -V -qversion; do
3232  { { ac_try="$ac_compiler $ac_option >&5"
3233case "(($ac_try" in
3234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235  *) ac_try_echo=$ac_try;;
3236esac
3237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238$as_echo "$ac_try_echo"; } >&5
3239  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3240  ac_status=$?
3241  if test -s conftest.err; then
3242    sed '10a\
3243... rest of stderr output deleted ...
3244         10q' conftest.err >conftest.er1
3245    cat conftest.er1 >&5
3246  fi
3247  rm -f conftest.er1 conftest.err
3248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249  test $ac_status = 0; }
3250done
3251
3252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h.  */
3254
3255int
3256main ()
3257{
3258
3259  ;
3260  return 0;
3261}
3262_ACEOF
3263ac_clean_files_save=$ac_clean_files
3264ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3265# Try to create an executable without -o first, disregard a.out.
3266# It will help us diagnose broken compilers, and finding out an intuition
3267# of exeext.
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3269$as_echo_n "checking whether the C compiler works... " >&6; }
3270ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3271
3272# The possible output files:
3273ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3274
3275ac_rmfiles=
3276for ac_file in $ac_files
3277do
3278  case $ac_file in
3279    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3280    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3281  esac
3282done
3283rm -f $ac_rmfiles
3284
3285if { { ac_try="$ac_link_default"
3286case "(($ac_try" in
3287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288  *) ac_try_echo=$ac_try;;
3289esac
3290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291$as_echo "$ac_try_echo"; } >&5
3292  (eval "$ac_link_default") 2>&5
3293  ac_status=$?
3294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295  test $ac_status = 0; }; then :
3296  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3297# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3298# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3299# so that the user can short-circuit this test for compilers unknown to
3300# Autoconf.
3301for ac_file in $ac_files ''
3302do
3303  test -f "$ac_file" || continue
3304  case $ac_file in
3305    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3306	;;
3307    [ab].out )
3308	# We found the default executable, but exeext='' is most
3309	# certainly right.
3310	break;;
3311    *.* )
3312	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3313	then :; else
3314	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315	fi
3316	# We set ac_cv_exeext here because the later test for it is not
3317	# safe: cross compilers may not add the suffix if given an `-o'
3318	# argument, so we may need to know it at that point already.
3319	# Even if this section looks crufty: it has the advantage of
3320	# actually working.
3321	break;;
3322    * )
3323	break;;
3324  esac
3325done
3326test "$ac_cv_exeext" = no && ac_cv_exeext=
3327
3328else
3329  ac_file=''
3330fi
3331if test -z "$ac_file"; then :
3332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333$as_echo "no" >&6; }
3334$as_echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339as_fn_error 77 "C compiler cannot create executables
3340See \`config.log' for more details" "$LINENO" 5; }
3341else
3342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343$as_echo "yes" >&6; }
3344fi
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3346$as_echo_n "checking for C compiler default output file name... " >&6; }
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3348$as_echo "$ac_file" >&6; }
3349ac_exeext=$ac_cv_exeext
3350
3351rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3352ac_clean_files=$ac_clean_files_save
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3354$as_echo_n "checking for suffix of executables... " >&6; }
3355if { { ac_try="$ac_link"
3356case "(($ac_try" in
3357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358  *) ac_try_echo=$ac_try;;
3359esac
3360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361$as_echo "$ac_try_echo"; } >&5
3362  (eval "$ac_link") 2>&5
3363  ac_status=$?
3364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365  test $ac_status = 0; }; then :
3366  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3367# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3368# work properly (i.e., refer to `conftest.exe'), while it won't with
3369# `rm'.
3370for ac_file in conftest.exe conftest conftest.*; do
3371  test -f "$ac_file" || continue
3372  case $ac_file in
3373    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3374    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3375	  break;;
3376    * ) break;;
3377  esac
3378done
3379else
3380  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3383See \`config.log' for more details" "$LINENO" 5; }
3384fi
3385rm -f conftest conftest$ac_cv_exeext
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3387$as_echo "$ac_cv_exeext" >&6; }
3388
3389rm -f conftest.$ac_ext
3390EXEEXT=$ac_cv_exeext
3391ac_exeext=$EXEEXT
3392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393/* end confdefs.h.  */
3394#include <stdio.h>
3395int
3396main ()
3397{
3398FILE *f = fopen ("conftest.out", "w");
3399 return ferror (f) || fclose (f) != 0;
3400
3401  ;
3402  return 0;
3403}
3404_ACEOF
3405ac_clean_files="$ac_clean_files conftest.out"
3406# Check that the compiler produces executables we can run.  If not, either
3407# the compiler is broken, or we cross compile.
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3409$as_echo_n "checking whether we are cross compiling... " >&6; }
3410if test "$cross_compiling" != yes; then
3411  { { ac_try="$ac_link"
3412case "(($ac_try" in
3413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414  *) ac_try_echo=$ac_try;;
3415esac
3416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417$as_echo "$ac_try_echo"; } >&5
3418  (eval "$ac_link") 2>&5
3419  ac_status=$?
3420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421  test $ac_status = 0; }
3422  if { ac_try='./conftest$ac_cv_exeext'
3423  { { case "(($ac_try" in
3424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425  *) ac_try_echo=$ac_try;;
3426esac
3427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428$as_echo "$ac_try_echo"; } >&5
3429  (eval "$ac_try") 2>&5
3430  ac_status=$?
3431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432  test $ac_status = 0; }; }; then
3433    cross_compiling=no
3434  else
3435    if test "$cross_compiling" = maybe; then
3436	cross_compiling=yes
3437    else
3438	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440as_fn_error $? "cannot run C compiled programs.
3441If you meant to cross compile, use \`--host'.
3442See \`config.log' for more details" "$LINENO" 5; }
3443    fi
3444  fi
3445fi
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3447$as_echo "$cross_compiling" >&6; }
3448
3449rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3450ac_clean_files=$ac_clean_files_save
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3452$as_echo_n "checking for suffix of object files... " >&6; }
3453if ${ac_cv_objext+:} false; then :
3454  $as_echo_n "(cached) " >&6
3455else
3456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h.  */
3458
3459int
3460main ()
3461{
3462
3463  ;
3464  return 0;
3465}
3466_ACEOF
3467rm -f conftest.o conftest.obj
3468if { { ac_try="$ac_compile"
3469case "(($ac_try" in
3470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471  *) ac_try_echo=$ac_try;;
3472esac
3473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474$as_echo "$ac_try_echo"; } >&5
3475  (eval "$ac_compile") 2>&5
3476  ac_status=$?
3477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478  test $ac_status = 0; }; then :
3479  for ac_file in conftest.o conftest.obj conftest.*; do
3480  test -f "$ac_file" || continue;
3481  case $ac_file in
3482    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3483    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3484       break;;
3485  esac
3486done
3487else
3488  $as_echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493as_fn_error $? "cannot compute suffix of object files: cannot compile
3494See \`config.log' for more details" "$LINENO" 5; }
3495fi
3496rm -f conftest.$ac_cv_objext conftest.$ac_ext
3497fi
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3499$as_echo "$ac_cv_objext" >&6; }
3500OBJEXT=$ac_cv_objext
3501ac_objext=$OBJEXT
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3503$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3504if ${ac_cv_c_compiler_gnu+:} false; then :
3505  $as_echo_n "(cached) " >&6
3506else
3507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508/* end confdefs.h.  */
3509
3510int
3511main ()
3512{
3513#ifndef __GNUC__
3514       choke me
3515#endif
3516
3517  ;
3518  return 0;
3519}
3520_ACEOF
3521if ac_fn_c_try_compile "$LINENO"; then :
3522  ac_compiler_gnu=yes
3523else
3524  ac_compiler_gnu=no
3525fi
3526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527ac_cv_c_compiler_gnu=$ac_compiler_gnu
3528
3529fi
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3531$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3532if test $ac_compiler_gnu = yes; then
3533  GCC=yes
3534else
3535  GCC=
3536fi
3537ac_test_CFLAGS=${CFLAGS+set}
3538ac_save_CFLAGS=$CFLAGS
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3540$as_echo_n "checking whether $CC accepts -g... " >&6; }
3541if ${ac_cv_prog_cc_g+:} false; then :
3542  $as_echo_n "(cached) " >&6
3543else
3544  ac_save_c_werror_flag=$ac_c_werror_flag
3545   ac_c_werror_flag=yes
3546   ac_cv_prog_cc_g=no
3547   CFLAGS="-g"
3548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h.  */
3550
3551int
3552main ()
3553{
3554
3555  ;
3556  return 0;
3557}
3558_ACEOF
3559if ac_fn_c_try_compile "$LINENO"; then :
3560  ac_cv_prog_cc_g=yes
3561else
3562  CFLAGS=""
3563      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565
3566int
3567main ()
3568{
3569
3570  ;
3571  return 0;
3572}
3573_ACEOF
3574if ac_fn_c_try_compile "$LINENO"; then :
3575
3576else
3577  ac_c_werror_flag=$ac_save_c_werror_flag
3578	 CFLAGS="-g"
3579	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580/* end confdefs.h.  */
3581
3582int
3583main ()
3584{
3585
3586  ;
3587  return 0;
3588}
3589_ACEOF
3590if ac_fn_c_try_compile "$LINENO"; then :
3591  ac_cv_prog_cc_g=yes
3592fi
3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594fi
3595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596fi
3597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598   ac_c_werror_flag=$ac_save_c_werror_flag
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3601$as_echo "$ac_cv_prog_cc_g" >&6; }
3602if test "$ac_test_CFLAGS" = set; then
3603  CFLAGS=$ac_save_CFLAGS
3604elif test $ac_cv_prog_cc_g = yes; then
3605  if test "$GCC" = yes; then
3606    CFLAGS="-g -O2"
3607  else
3608    CFLAGS="-g"
3609  fi
3610else
3611  if test "$GCC" = yes; then
3612    CFLAGS="-O2"
3613  else
3614    CFLAGS=
3615  fi
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3618$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3619if ${ac_cv_prog_cc_c89+:} false; then :
3620  $as_echo_n "(cached) " >&6
3621else
3622  ac_cv_prog_cc_c89=no
3623ac_save_CC=$CC
3624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625/* end confdefs.h.  */
3626#include <stdarg.h>
3627#include <stdio.h>
3628#include <sys/types.h>
3629#include <sys/stat.h>
3630/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3631struct buf { int x; };
3632FILE * (*rcsopen) (struct buf *, struct stat *, int);
3633static char *e (p, i)
3634     char **p;
3635     int i;
3636{
3637  return p[i];
3638}
3639static char *f (char * (*g) (char **, int), char **p, ...)
3640{
3641  char *s;
3642  va_list v;
3643  va_start (v,p);
3644  s = g (p, va_arg (v,int));
3645  va_end (v);
3646  return s;
3647}
3648
3649/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3650   function prototypes and stuff, but not '\xHH' hex character constants.
3651   These don't provoke an error unfortunately, instead are silently treated
3652   as 'x'.  The following induces an error, until -std is added to get
3653   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3654   array size at least.  It's necessary to write '\x00'==0 to get something
3655   that's true only with -std.  */
3656int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3657
3658/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3659   inside strings and character constants.  */
3660#define FOO(x) 'x'
3661int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3662
3663int test (int i, double x);
3664struct s1 {int (*f) (int a);};
3665struct s2 {int (*f) (double a);};
3666int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3667int argc;
3668char **argv;
3669int
3670main ()
3671{
3672return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3673  ;
3674  return 0;
3675}
3676_ACEOF
3677for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3678	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3679do
3680  CC="$ac_save_CC $ac_arg"
3681  if ac_fn_c_try_compile "$LINENO"; then :
3682  ac_cv_prog_cc_c89=$ac_arg
3683fi
3684rm -f core conftest.err conftest.$ac_objext
3685  test "x$ac_cv_prog_cc_c89" != "xno" && break
3686done
3687rm -f conftest.$ac_ext
3688CC=$ac_save_CC
3689
3690fi
3691# AC_CACHE_VAL
3692case "x$ac_cv_prog_cc_c89" in
3693  x)
3694    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3695$as_echo "none needed" >&6; } ;;
3696  xno)
3697    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3698$as_echo "unsupported" >&6; } ;;
3699  *)
3700    CC="$CC $ac_cv_prog_cc_c89"
3701    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3702$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3703esac
3704if test "x$ac_cv_prog_cc_c89" != xno; then :
3705
3706fi
3707
3708ac_ext=c
3709ac_cpp='$CPP $CPPFLAGS'
3710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713
3714ac_ext=c
3715ac_cpp='$CPP $CPPFLAGS'
3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3720$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3721if ${am_cv_prog_cc_c_o+:} false; then :
3722  $as_echo_n "(cached) " >&6
3723else
3724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725/* end confdefs.h.  */
3726
3727int
3728main ()
3729{
3730
3731  ;
3732  return 0;
3733}
3734_ACEOF
3735  # Make sure it works both with $CC and with simple cc.
3736  # Following AC_PROG_CC_C_O, we do the test twice because some
3737  # compilers refuse to overwrite an existing .o file with -o,
3738  # though they will create one.
3739  am_cv_prog_cc_c_o=yes
3740  for am_i in 1 2; do
3741    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3742   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3743   ac_status=$?
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); } \
3746         && test -f conftest2.$ac_objext; then
3747      : OK
3748    else
3749      am_cv_prog_cc_c_o=no
3750      break
3751    fi
3752  done
3753  rm -f core conftest*
3754  unset am_i
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3757$as_echo "$am_cv_prog_cc_c_o" >&6; }
3758if test "$am_cv_prog_cc_c_o" != yes; then
3759   # Losing compiler, so override with the script.
3760   # FIXME: It is wrong to rewrite CC.
3761   # But if we don't then we get into trouble of one sort or another.
3762   # A longer-term fix would be to have automake use am__CC in this case,
3763   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3764   CC="$am_aux_dir/compile $CC"
3765fi
3766ac_ext=c
3767ac_cpp='$CPP $CPPFLAGS'
3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771
3772
3773depcc="$CC"   am_compiler_list=
3774
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3776$as_echo_n "checking dependency style of $depcc... " >&6; }
3777if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3778  $as_echo_n "(cached) " >&6
3779else
3780  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781  # We make a subdir and do the tests there.  Otherwise we can end up
3782  # making bogus files that we don't know about and never remove.  For
3783  # instance it was reported that on HP-UX the gcc test will end up
3784  # making a dummy file named 'D' -- because '-MD' means "put the output
3785  # in D".
3786  rm -rf conftest.dir
3787  mkdir conftest.dir
3788  # Copy depcomp to subdir because otherwise we won't find it if we're
3789  # using a relative directory.
3790  cp "$am_depcomp" conftest.dir
3791  cd conftest.dir
3792  # We will build objects and dependencies in a subdirectory because
3793  # it helps to detect inapplicable dependency modes.  For instance
3794  # both Tru64's cc and ICC support -MD to output dependencies as a
3795  # side effect of compilation, but ICC will put the dependencies in
3796  # the current directory while Tru64 will put them in the object
3797  # directory.
3798  mkdir sub
3799
3800  am_cv_CC_dependencies_compiler_type=none
3801  if test "$am_compiler_list" = ""; then
3802     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3803  fi
3804  am__universal=false
3805  case " $depcc " in #(
3806     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3807     esac
3808
3809  for depmode in $am_compiler_list; do
3810    # Setup a source with many dependencies, because some compilers
3811    # like to wrap large dependency lists on column 80 (with \), and
3812    # we should not choose a depcomp mode which is confused by this.
3813    #
3814    # We need to recreate these files for each test, as the compiler may
3815    # overwrite some of them when testing with obscure command lines.
3816    # This happens at least with the AIX C compiler.
3817    : > sub/conftest.c
3818    for i in 1 2 3 4 5 6; do
3819      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3820      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3821      # Solaris 10 /bin/sh.
3822      echo '/* dummy */' > sub/conftst$i.h
3823    done
3824    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3825
3826    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3827    # mode.  It turns out that the SunPro C++ compiler does not properly
3828    # handle '-M -o', and we need to detect this.  Also, some Intel
3829    # versions had trouble with output in subdirs.
3830    am__obj=sub/conftest.${OBJEXT-o}
3831    am__minus_obj="-o $am__obj"
3832    case $depmode in
3833    gcc)
3834      # This depmode causes a compiler race in universal mode.
3835      test "$am__universal" = false || continue
3836      ;;
3837    nosideeffect)
3838      # After this tag, mechanisms are not by side-effect, so they'll
3839      # only be used when explicitly requested.
3840      if test "x$enable_dependency_tracking" = xyes; then
3841	continue
3842      else
3843	break
3844      fi
3845      ;;
3846    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3847      # This compiler won't grok '-c -o', but also, the minuso test has
3848      # not run yet.  These depmodes are late enough in the game, and
3849      # so weak that their functioning should not be impacted.
3850      am__obj=conftest.${OBJEXT-o}
3851      am__minus_obj=
3852      ;;
3853    none) break ;;
3854    esac
3855    if depmode=$depmode \
3856       source=sub/conftest.c object=$am__obj \
3857       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3859         >/dev/null 2>conftest.err &&
3860       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3863       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864      # icc doesn't choke on unknown options, it will just issue warnings
3865      # or remarks (even with -Werror).  So we grep stderr for any message
3866      # that says an option was ignored or not supported.
3867      # When given -MP, icc 7.0 and 7.1 complain thusly:
3868      #   icc: Command line warning: ignoring option '-M'; no argument required
3869      # The diagnosis changed in icc 8.0:
3870      #   icc: Command line remark: option '-MP' not supported
3871      if (grep 'ignoring option' conftest.err ||
3872          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873        am_cv_CC_dependencies_compiler_type=$depmode
3874        break
3875      fi
3876    fi
3877  done
3878
3879  cd ..
3880  rm -rf conftest.dir
3881else
3882  am_cv_CC_dependencies_compiler_type=none
3883fi
3884
3885fi
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3887$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3888CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3889
3890 if
3891  test "x$enable_dependency_tracking" != xno \
3892  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893  am__fastdepCC_TRUE=
3894  am__fastdepCC_FALSE='#'
3895else
3896  am__fastdepCC_TRUE='#'
3897  am__fastdepCC_FALSE=
3898fi
3899
3900
3901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3902$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3903if ${ac_cv_prog_cc_c99+:} false; then :
3904  $as_echo_n "(cached) " >&6
3905else
3906  ac_cv_prog_cc_c99=no
3907ac_save_CC=$CC
3908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h.  */
3910#include <stdarg.h>
3911#include <stdbool.h>
3912#include <stdlib.h>
3913#include <wchar.h>
3914#include <stdio.h>
3915
3916// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3917#define debug(...) fprintf (stderr, __VA_ARGS__)
3918#define showlist(...) puts (#__VA_ARGS__)
3919#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3920static void
3921test_varargs_macros (void)
3922{
3923  int x = 1234;
3924  int y = 5678;
3925  debug ("Flag");
3926  debug ("X = %d\n", x);
3927  showlist (The first, second, and third items.);
3928  report (x>y, "x is %d but y is %d", x, y);
3929}
3930
3931// Check long long types.
3932#define BIG64 18446744073709551615ull
3933#define BIG32 4294967295ul
3934#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3935#if !BIG_OK
3936  your preprocessor is broken;
3937#endif
3938#if BIG_OK
3939#else
3940  your preprocessor is broken;
3941#endif
3942static long long int bignum = -9223372036854775807LL;
3943static unsigned long long int ubignum = BIG64;
3944
3945struct incomplete_array
3946{
3947  int datasize;
3948  double data[];
3949};
3950
3951struct named_init {
3952  int number;
3953  const wchar_t *name;
3954  double average;
3955};
3956
3957typedef const char *ccp;
3958
3959static inline int
3960test_restrict (ccp restrict text)
3961{
3962  // See if C++-style comments work.
3963  // Iterate through items via the restricted pointer.
3964  // Also check for declarations in for loops.
3965  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3966    continue;
3967  return 0;
3968}
3969
3970// Check varargs and va_copy.
3971static void
3972test_varargs (const char *format, ...)
3973{
3974  va_list args;
3975  va_start (args, format);
3976  va_list args_copy;
3977  va_copy (args_copy, args);
3978
3979  const char *str;
3980  int number;
3981  float fnumber;
3982
3983  while (*format)
3984    {
3985      switch (*format++)
3986	{
3987	case 's': // string
3988	  str = va_arg (args_copy, const char *);
3989	  break;
3990	case 'd': // int
3991	  number = va_arg (args_copy, int);
3992	  break;
3993	case 'f': // float
3994	  fnumber = va_arg (args_copy, double);
3995	  break;
3996	default:
3997	  break;
3998	}
3999    }
4000  va_end (args_copy);
4001  va_end (args);
4002}
4003
4004int
4005main ()
4006{
4007
4008  // Check bool.
4009  _Bool success = false;
4010
4011  // Check restrict.
4012  if (test_restrict ("String literal") == 0)
4013    success = true;
4014  char *restrict newvar = "Another string";
4015
4016  // Check varargs.
4017  test_varargs ("s, d' f .", "string", 65, 34.234);
4018  test_varargs_macros ();
4019
4020  // Check flexible array members.
4021  struct incomplete_array *ia =
4022    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4023  ia->datasize = 10;
4024  for (int i = 0; i < ia->datasize; ++i)
4025    ia->data[i] = i * 1.234;
4026
4027  // Check named initializers.
4028  struct named_init ni = {
4029    .number = 34,
4030    .name = L"Test wide string",
4031    .average = 543.34343,
4032  };
4033
4034  ni.number = 58;
4035
4036  int dynamic_array[ni.number];
4037  dynamic_array[ni.number - 1] = 543;
4038
4039  // work around unused variable warnings
4040  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4041	  || dynamic_array[ni.number - 1] != 543);
4042
4043  ;
4044  return 0;
4045}
4046_ACEOF
4047for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4048do
4049  CC="$ac_save_CC $ac_arg"
4050  if ac_fn_c_try_compile "$LINENO"; then :
4051  ac_cv_prog_cc_c99=$ac_arg
4052fi
4053rm -f core conftest.err conftest.$ac_objext
4054  test "x$ac_cv_prog_cc_c99" != "xno" && break
4055done
4056rm -f conftest.$ac_ext
4057CC=$ac_save_CC
4058
4059fi
4060# AC_CACHE_VAL
4061case "x$ac_cv_prog_cc_c99" in
4062  x)
4063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4064$as_echo "none needed" >&6; } ;;
4065  xno)
4066    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4067$as_echo "unsupported" >&6; } ;;
4068  *)
4069    CC="$CC $ac_cv_prog_cc_c99"
4070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4071$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4072esac
4073if test "x$ac_cv_prog_cc_c99" != xno; then :
4074
4075fi
4076
4077
4078
4079ac_ext=c
4080ac_cpp='$CPP $CPPFLAGS'
4081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4085$as_echo_n "checking how to run the C preprocessor... " >&6; }
4086# On Suns, sometimes $CPP names a directory.
4087if test -n "$CPP" && test -d "$CPP"; then
4088  CPP=
4089fi
4090if test -z "$CPP"; then
4091  if ${ac_cv_prog_CPP+:} false; then :
4092  $as_echo_n "(cached) " >&6
4093else
4094      # Double quotes because CPP needs to be expanded
4095    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4096    do
4097      ac_preproc_ok=false
4098for ac_c_preproc_warn_flag in '' yes
4099do
4100  # Use a header file that comes with gcc, so configuring glibc
4101  # with a fresh cross-compiler works.
4102  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4103  # <limits.h> exists even on freestanding compilers.
4104  # On the NeXT, cc -E runs the code through the compiler's parser,
4105  # not just through cpp. "Syntax error" is here to catch this case.
4106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107/* end confdefs.h.  */
4108#ifdef __STDC__
4109# include <limits.h>
4110#else
4111# include <assert.h>
4112#endif
4113		     Syntax error
4114_ACEOF
4115if ac_fn_c_try_cpp "$LINENO"; then :
4116
4117else
4118  # Broken: fails on valid input.
4119continue
4120fi
4121rm -f conftest.err conftest.i conftest.$ac_ext
4122
4123  # OK, works on sane cases.  Now check whether nonexistent headers
4124  # can be detected and how.
4125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h.  */
4127#include <ac_nonexistent.h>
4128_ACEOF
4129if ac_fn_c_try_cpp "$LINENO"; then :
4130  # Broken: success on invalid input.
4131continue
4132else
4133  # Passes both tests.
4134ac_preproc_ok=:
4135break
4136fi
4137rm -f conftest.err conftest.i conftest.$ac_ext
4138
4139done
4140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4141rm -f conftest.i conftest.err conftest.$ac_ext
4142if $ac_preproc_ok; then :
4143  break
4144fi
4145
4146    done
4147    ac_cv_prog_CPP=$CPP
4148
4149fi
4150  CPP=$ac_cv_prog_CPP
4151else
4152  ac_cv_prog_CPP=$CPP
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4155$as_echo "$CPP" >&6; }
4156ac_preproc_ok=false
4157for ac_c_preproc_warn_flag in '' yes
4158do
4159  # Use a header file that comes with gcc, so configuring glibc
4160  # with a fresh cross-compiler works.
4161  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4162  # <limits.h> exists even on freestanding compilers.
4163  # On the NeXT, cc -E runs the code through the compiler's parser,
4164  # not just through cpp. "Syntax error" is here to catch this case.
4165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166/* end confdefs.h.  */
4167#ifdef __STDC__
4168# include <limits.h>
4169#else
4170# include <assert.h>
4171#endif
4172		     Syntax error
4173_ACEOF
4174if ac_fn_c_try_cpp "$LINENO"; then :
4175
4176else
4177  # Broken: fails on valid input.
4178continue
4179fi
4180rm -f conftest.err conftest.i conftest.$ac_ext
4181
4182  # OK, works on sane cases.  Now check whether nonexistent headers
4183  # can be detected and how.
4184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185/* end confdefs.h.  */
4186#include <ac_nonexistent.h>
4187_ACEOF
4188if ac_fn_c_try_cpp "$LINENO"; then :
4189  # Broken: success on invalid input.
4190continue
4191else
4192  # Passes both tests.
4193ac_preproc_ok=:
4194break
4195fi
4196rm -f conftest.err conftest.i conftest.$ac_ext
4197
4198done
4199# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4200rm -f conftest.i conftest.err conftest.$ac_ext
4201if $ac_preproc_ok; then :
4202
4203else
4204  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4206as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4207See \`config.log' for more details" "$LINENO" 5; }
4208fi
4209
4210ac_ext=c
4211ac_cpp='$CPP $CPPFLAGS'
4212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215
4216
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4218$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4219if ${ac_cv_path_GREP+:} false; then :
4220  $as_echo_n "(cached) " >&6
4221else
4222  if test -z "$GREP"; then
4223  ac_path_GREP_found=false
4224  # Loop through the user's path and test for each of PROGNAME-LIST
4225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4227do
4228  IFS=$as_save_IFS
4229  test -z "$as_dir" && as_dir=.
4230    for ac_prog in grep ggrep; do
4231    for ac_exec_ext in '' $ac_executable_extensions; do
4232      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4233      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4234# Check for GNU ac_path_GREP and select it if it is found.
4235  # Check for GNU $ac_path_GREP
4236case `"$ac_path_GREP" --version 2>&1` in
4237*GNU*)
4238  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4239*)
4240  ac_count=0
4241  $as_echo_n 0123456789 >"conftest.in"
4242  while :
4243  do
4244    cat "conftest.in" "conftest.in" >"conftest.tmp"
4245    mv "conftest.tmp" "conftest.in"
4246    cp "conftest.in" "conftest.nl"
4247    $as_echo 'GREP' >> "conftest.nl"
4248    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250    as_fn_arith $ac_count + 1 && ac_count=$as_val
4251    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4252      # Best one so far, save it but keep looking for a better one
4253      ac_cv_path_GREP="$ac_path_GREP"
4254      ac_path_GREP_max=$ac_count
4255    fi
4256    # 10*(2^10) chars as input seems more than enough
4257    test $ac_count -gt 10 && break
4258  done
4259  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260esac
4261
4262      $ac_path_GREP_found && break 3
4263    done
4264  done
4265  done
4266IFS=$as_save_IFS
4267  if test -z "$ac_cv_path_GREP"; then
4268    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4269  fi
4270else
4271  ac_cv_path_GREP=$GREP
4272fi
4273
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4276$as_echo "$ac_cv_path_GREP" >&6; }
4277 GREP="$ac_cv_path_GREP"
4278
4279
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4281$as_echo_n "checking for egrep... " >&6; }
4282if ${ac_cv_path_EGREP+:} false; then :
4283  $as_echo_n "(cached) " >&6
4284else
4285  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4286   then ac_cv_path_EGREP="$GREP -E"
4287   else
4288     if test -z "$EGREP"; then
4289  ac_path_EGREP_found=false
4290  # Loop through the user's path and test for each of PROGNAME-LIST
4291  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4293do
4294  IFS=$as_save_IFS
4295  test -z "$as_dir" && as_dir=.
4296    for ac_prog in egrep; do
4297    for ac_exec_ext in '' $ac_executable_extensions; do
4298      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4299      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4300# Check for GNU ac_path_EGREP and select it if it is found.
4301  # Check for GNU $ac_path_EGREP
4302case `"$ac_path_EGREP" --version 2>&1` in
4303*GNU*)
4304  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4305*)
4306  ac_count=0
4307  $as_echo_n 0123456789 >"conftest.in"
4308  while :
4309  do
4310    cat "conftest.in" "conftest.in" >"conftest.tmp"
4311    mv "conftest.tmp" "conftest.in"
4312    cp "conftest.in" "conftest.nl"
4313    $as_echo 'EGREP' >> "conftest.nl"
4314    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4315    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4316    as_fn_arith $ac_count + 1 && ac_count=$as_val
4317    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4318      # Best one so far, save it but keep looking for a better one
4319      ac_cv_path_EGREP="$ac_path_EGREP"
4320      ac_path_EGREP_max=$ac_count
4321    fi
4322    # 10*(2^10) chars as input seems more than enough
4323    test $ac_count -gt 10 && break
4324  done
4325  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4326esac
4327
4328      $ac_path_EGREP_found && break 3
4329    done
4330  done
4331  done
4332IFS=$as_save_IFS
4333  if test -z "$ac_cv_path_EGREP"; then
4334    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4335  fi
4336else
4337  ac_cv_path_EGREP=$EGREP
4338fi
4339
4340   fi
4341fi
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4343$as_echo "$ac_cv_path_EGREP" >&6; }
4344 EGREP="$ac_cv_path_EGREP"
4345
4346
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4348$as_echo_n "checking for ANSI C header files... " >&6; }
4349if ${ac_cv_header_stdc+:} false; then :
4350  $as_echo_n "(cached) " >&6
4351else
4352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353/* end confdefs.h.  */
4354#include <stdlib.h>
4355#include <stdarg.h>
4356#include <string.h>
4357#include <float.h>
4358
4359int
4360main ()
4361{
4362
4363  ;
4364  return 0;
4365}
4366_ACEOF
4367if ac_fn_c_try_compile "$LINENO"; then :
4368  ac_cv_header_stdc=yes
4369else
4370  ac_cv_header_stdc=no
4371fi
4372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373
4374if test $ac_cv_header_stdc = yes; then
4375  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377/* end confdefs.h.  */
4378#include <string.h>
4379
4380_ACEOF
4381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4382  $EGREP "memchr" >/dev/null 2>&1; then :
4383
4384else
4385  ac_cv_header_stdc=no
4386fi
4387rm -f conftest*
4388
4389fi
4390
4391if test $ac_cv_header_stdc = yes; then
4392  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394/* end confdefs.h.  */
4395#include <stdlib.h>
4396
4397_ACEOF
4398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4399  $EGREP "free" >/dev/null 2>&1; then :
4400
4401else
4402  ac_cv_header_stdc=no
4403fi
4404rm -f conftest*
4405
4406fi
4407
4408if test $ac_cv_header_stdc = yes; then
4409  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4410  if test "$cross_compiling" = yes; then :
4411  :
4412else
4413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414/* end confdefs.h.  */
4415#include <ctype.h>
4416#include <stdlib.h>
4417#if ((' ' & 0x0FF) == 0x020)
4418# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4419# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4420#else
4421# define ISLOWER(c) \
4422		   (('a' <= (c) && (c) <= 'i') \
4423		     || ('j' <= (c) && (c) <= 'r') \
4424		     || ('s' <= (c) && (c) <= 'z'))
4425# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4426#endif
4427
4428#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4429int
4430main ()
4431{
4432  int i;
4433  for (i = 0; i < 256; i++)
4434    if (XOR (islower (i), ISLOWER (i))
4435	|| toupper (i) != TOUPPER (i))
4436      return 2;
4437  return 0;
4438}
4439_ACEOF
4440if ac_fn_c_try_run "$LINENO"; then :
4441
4442else
4443  ac_cv_header_stdc=no
4444fi
4445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4446  conftest.$ac_objext conftest.beam conftest.$ac_ext
4447fi
4448
4449fi
4450fi
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4452$as_echo "$ac_cv_header_stdc" >&6; }
4453if test $ac_cv_header_stdc = yes; then
4454
4455$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4456
4457fi
4458
4459# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4460for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4461		  inttypes.h stdint.h unistd.h
4462do :
4463  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4464ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4465"
4466if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4467  cat >>confdefs.h <<_ACEOF
4468#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4469_ACEOF
4470
4471fi
4472
4473done
4474
4475
4476
4477
4478
4479
4480ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4481if test "x$ac_cv_have_decl___clang__" = xyes; then :
4482  CLANGCC="yes"
4483else
4484  CLANGCC="no"
4485fi
4486
4487ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4488if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4489  INTELCC="yes"
4490else
4491  INTELCC="no"
4492fi
4493
4494ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4495if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4496  SUNCC="yes"
4497else
4498  SUNCC="no"
4499fi
4500
4501
4502
4503
4504if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4505	if test -n "$ac_tool_prefix"; then
4506  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4507set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509$as_echo_n "checking for $ac_word... " >&6; }
4510if ${ac_cv_path_PKG_CONFIG+:} false; then :
4511  $as_echo_n "(cached) " >&6
4512else
4513  case $PKG_CONFIG in
4514  [\\/]* | ?:[\\/]*)
4515  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4516  ;;
4517  *)
4518  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521  IFS=$as_save_IFS
4522  test -z "$as_dir" && as_dir=.
4523    for ac_exec_ext in '' $ac_executable_extensions; do
4524  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527    break 2
4528  fi
4529done
4530  done
4531IFS=$as_save_IFS
4532
4533  ;;
4534esac
4535fi
4536PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4537if test -n "$PKG_CONFIG"; then
4538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4539$as_echo "$PKG_CONFIG" >&6; }
4540else
4541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542$as_echo "no" >&6; }
4543fi
4544
4545
4546fi
4547if test -z "$ac_cv_path_PKG_CONFIG"; then
4548  ac_pt_PKG_CONFIG=$PKG_CONFIG
4549  # Extract the first word of "pkg-config", so it can be a program name with args.
4550set dummy pkg-config; ac_word=$2
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552$as_echo_n "checking for $ac_word... " >&6; }
4553if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4554  $as_echo_n "(cached) " >&6
4555else
4556  case $ac_pt_PKG_CONFIG in
4557  [\\/]* | ?:[\\/]*)
4558  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4559  ;;
4560  *)
4561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564  IFS=$as_save_IFS
4565  test -z "$as_dir" && as_dir=.
4566    for ac_exec_ext in '' $ac_executable_extensions; do
4567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570    break 2
4571  fi
4572done
4573  done
4574IFS=$as_save_IFS
4575
4576  ;;
4577esac
4578fi
4579ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4580if test -n "$ac_pt_PKG_CONFIG"; then
4581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4582$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4583else
4584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585$as_echo "no" >&6; }
4586fi
4587
4588  if test "x$ac_pt_PKG_CONFIG" = x; then
4589    PKG_CONFIG=""
4590  else
4591    case $cross_compiling:$ac_tool_warned in
4592yes:)
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595ac_tool_warned=yes ;;
4596esac
4597    PKG_CONFIG=$ac_pt_PKG_CONFIG
4598  fi
4599else
4600  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4601fi
4602
4603fi
4604if test -n "$PKG_CONFIG"; then
4605	_pkg_min_version=0.9.0
4606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4607$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4608	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4609		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4610$as_echo "yes" >&6; }
4611	else
4612		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613$as_echo "no" >&6; }
4614		PKG_CONFIG=""
4615	fi
4616
4617fi
4618# Make sure we can run config.sub.
4619$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4620  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4621
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4623$as_echo_n "checking build system type... " >&6; }
4624if ${ac_cv_build+:} false; then :
4625  $as_echo_n "(cached) " >&6
4626else
4627  ac_build_alias=$build_alias
4628test "x$ac_build_alias" = x &&
4629  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4630test "x$ac_build_alias" = x &&
4631  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4632ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4633  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4634
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4637$as_echo "$ac_cv_build" >&6; }
4638case $ac_cv_build in
4639*-*-*) ;;
4640*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4641esac
4642build=$ac_cv_build
4643ac_save_IFS=$IFS; IFS='-'
4644set x $ac_cv_build
4645shift
4646build_cpu=$1
4647build_vendor=$2
4648shift; shift
4649# Remember, the first character of IFS is used to create $*,
4650# except with old shells:
4651build_os=$*
4652IFS=$ac_save_IFS
4653case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4654
4655
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4657$as_echo_n "checking host system type... " >&6; }
4658if ${ac_cv_host+:} false; then :
4659  $as_echo_n "(cached) " >&6
4660else
4661  if test "x$host_alias" = x; then
4662  ac_cv_host=$ac_cv_build
4663else
4664  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4665    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4666fi
4667
4668fi
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4670$as_echo "$ac_cv_host" >&6; }
4671case $ac_cv_host in
4672*-*-*) ;;
4673*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4674esac
4675host=$ac_cv_host
4676ac_save_IFS=$IFS; IFS='-'
4677set x $ac_cv_host
4678shift
4679host_cpu=$1
4680host_vendor=$2
4681shift; shift
4682# Remember, the first character of IFS is used to create $*,
4683# except with old shells:
4684host_os=$*
4685IFS=$ac_save_IFS
4686case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4687
4688
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4690$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4691if ${ac_cv_path_SED+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4695     for ac_i in 1 2 3 4 5 6 7; do
4696       ac_script="$ac_script$as_nl$ac_script"
4697     done
4698     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4699     { ac_script=; unset ac_script;}
4700     if test -z "$SED"; then
4701  ac_path_SED_found=false
4702  # Loop through the user's path and test for each of PROGNAME-LIST
4703  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706  IFS=$as_save_IFS
4707  test -z "$as_dir" && as_dir=.
4708    for ac_prog in sed gsed; do
4709    for ac_exec_ext in '' $ac_executable_extensions; do
4710      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4711      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4712# Check for GNU ac_path_SED and select it if it is found.
4713  # Check for GNU $ac_path_SED
4714case `"$ac_path_SED" --version 2>&1` in
4715*GNU*)
4716  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4717*)
4718  ac_count=0
4719  $as_echo_n 0123456789 >"conftest.in"
4720  while :
4721  do
4722    cat "conftest.in" "conftest.in" >"conftest.tmp"
4723    mv "conftest.tmp" "conftest.in"
4724    cp "conftest.in" "conftest.nl"
4725    $as_echo '' >> "conftest.nl"
4726    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728    as_fn_arith $ac_count + 1 && ac_count=$as_val
4729    if test $ac_count -gt ${ac_path_SED_max-0}; then
4730      # Best one so far, save it but keep looking for a better one
4731      ac_cv_path_SED="$ac_path_SED"
4732      ac_path_SED_max=$ac_count
4733    fi
4734    # 10*(2^10) chars as input seems more than enough
4735    test $ac_count -gt 10 && break
4736  done
4737  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4738esac
4739
4740      $ac_path_SED_found && break 3
4741    done
4742  done
4743  done
4744IFS=$as_save_IFS
4745  if test -z "$ac_cv_path_SED"; then
4746    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4747  fi
4748else
4749  ac_cv_path_SED=$SED
4750fi
4751
4752fi
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4754$as_echo "$ac_cv_path_SED" >&6; }
4755 SED="$ac_cv_path_SED"
4756  rm -f conftest.sed
4757
4758
4759
4760
4761
4762
4763# Check whether --enable-selective-werror was given.
4764if test "${enable_selective_werror+set}" = set; then :
4765  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4766else
4767  SELECTIVE_WERROR=yes
4768fi
4769
4770
4771
4772
4773
4774# -v is too short to test reliably with XORG_TESTSET_CFLAG
4775if test "x$SUNCC" = "xyes"; then
4776    BASE_CFLAGS="-v"
4777else
4778    BASE_CFLAGS=""
4779fi
4780
4781# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795xorg_testset_save_CFLAGS="$CFLAGS"
4796
4797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4798	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4800$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4801if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4802  $as_echo_n "(cached) " >&6
4803else
4804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805/* end confdefs.h.  */
4806int i;
4807_ACEOF
4808if ac_fn_c_try_compile "$LINENO"; then :
4809  xorg_cv_cc_flag_unknown_warning_option=yes
4810else
4811  xorg_cv_cc_flag_unknown_warning_option=no
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4816$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4817	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4818	CFLAGS="$xorg_testset_save_CFLAGS"
4819fi
4820
4821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4822	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4823		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4824	fi
4825	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4827$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4828if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4829  $as_echo_n "(cached) " >&6
4830else
4831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832/* end confdefs.h.  */
4833int i;
4834_ACEOF
4835if ac_fn_c_try_compile "$LINENO"; then :
4836  xorg_cv_cc_flag_unused_command_line_argument=yes
4837else
4838  xorg_cv_cc_flag_unused_command_line_argument=no
4839fi
4840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841fi
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4843$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4845	CFLAGS="$xorg_testset_save_CFLAGS"
4846fi
4847
4848found="no"
4849
4850	if test $found = "no" ; then
4851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4853		fi
4854
4855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4857		fi
4858
4859		CFLAGS="$CFLAGS -Wall"
4860
4861		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4862$as_echo_n "checking if $CC supports -Wall... " >&6; }
4863		cacheid=xorg_cv_cc_flag__Wall
4864		if eval \${$cacheid+:} false; then :
4865  $as_echo_n "(cached) " >&6
4866else
4867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868/* end confdefs.h.  */
4869int i;
4870int
4871main ()
4872{
4873
4874  ;
4875  return 0;
4876}
4877_ACEOF
4878if ac_fn_c_try_link "$LINENO"; then :
4879  eval $cacheid=yes
4880else
4881  eval $cacheid=no
4882fi
4883rm -f core conftest.err conftest.$ac_objext \
4884    conftest$ac_exeext conftest.$ac_ext
4885fi
4886
4887
4888		CFLAGS="$xorg_testset_save_CFLAGS"
4889
4890		eval supported=\$$cacheid
4891		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4892$as_echo "$supported" >&6; }
4893		if test "$supported" = "yes" ; then
4894			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4895			found="yes"
4896		fi
4897	fi
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913xorg_testset_save_CFLAGS="$CFLAGS"
4914
4915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4916	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4918$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4919if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4920  $as_echo_n "(cached) " >&6
4921else
4922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923/* end confdefs.h.  */
4924int i;
4925_ACEOF
4926if ac_fn_c_try_compile "$LINENO"; then :
4927  xorg_cv_cc_flag_unknown_warning_option=yes
4928else
4929  xorg_cv_cc_flag_unknown_warning_option=no
4930fi
4931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932fi
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4934$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4935	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4936	CFLAGS="$xorg_testset_save_CFLAGS"
4937fi
4938
4939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4940	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4942	fi
4943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4945$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4946if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4947  $as_echo_n "(cached) " >&6
4948else
4949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950/* end confdefs.h.  */
4951int i;
4952_ACEOF
4953if ac_fn_c_try_compile "$LINENO"; then :
4954  xorg_cv_cc_flag_unused_command_line_argument=yes
4955else
4956  xorg_cv_cc_flag_unused_command_line_argument=no
4957fi
4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959fi
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4961$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4962	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4963	CFLAGS="$xorg_testset_save_CFLAGS"
4964fi
4965
4966found="no"
4967
4968	if test $found = "no" ; then
4969		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4971		fi
4972
4973		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4975		fi
4976
4977		CFLAGS="$CFLAGS -Wpointer-arith"
4978
4979		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4980$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4981		cacheid=xorg_cv_cc_flag__Wpointer_arith
4982		if eval \${$cacheid+:} false; then :
4983  $as_echo_n "(cached) " >&6
4984else
4985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986/* end confdefs.h.  */
4987int i;
4988int
4989main ()
4990{
4991
4992  ;
4993  return 0;
4994}
4995_ACEOF
4996if ac_fn_c_try_link "$LINENO"; then :
4997  eval $cacheid=yes
4998else
4999  eval $cacheid=no
5000fi
5001rm -f core conftest.err conftest.$ac_objext \
5002    conftest$ac_exeext conftest.$ac_ext
5003fi
5004
5005
5006		CFLAGS="$xorg_testset_save_CFLAGS"
5007
5008		eval supported=\$$cacheid
5009		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5010$as_echo "$supported" >&6; }
5011		if test "$supported" = "yes" ; then
5012			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5013			found="yes"
5014		fi
5015	fi
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031xorg_testset_save_CFLAGS="$CFLAGS"
5032
5033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5034	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5036$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5037if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5038  $as_echo_n "(cached) " >&6
5039else
5040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041/* end confdefs.h.  */
5042int i;
5043_ACEOF
5044if ac_fn_c_try_compile "$LINENO"; then :
5045  xorg_cv_cc_flag_unknown_warning_option=yes
5046else
5047  xorg_cv_cc_flag_unknown_warning_option=no
5048fi
5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050fi
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5052$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5053	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5054	CFLAGS="$xorg_testset_save_CFLAGS"
5055fi
5056
5057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5058	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5059		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5060	fi
5061	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5063$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5064if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5065  $as_echo_n "(cached) " >&6
5066else
5067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068/* end confdefs.h.  */
5069int i;
5070_ACEOF
5071if ac_fn_c_try_compile "$LINENO"; then :
5072  xorg_cv_cc_flag_unused_command_line_argument=yes
5073else
5074  xorg_cv_cc_flag_unused_command_line_argument=no
5075fi
5076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077fi
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5079$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5080	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5081	CFLAGS="$xorg_testset_save_CFLAGS"
5082fi
5083
5084found="no"
5085
5086	if test $found = "no" ; then
5087		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5088			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5089		fi
5090
5091		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5092			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5093		fi
5094
5095		CFLAGS="$CFLAGS -Wmissing-declarations"
5096
5097		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5098$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5099		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5100		if eval \${$cacheid+:} false; then :
5101  $as_echo_n "(cached) " >&6
5102else
5103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h.  */
5105int i;
5106int
5107main ()
5108{
5109
5110  ;
5111  return 0;
5112}
5113_ACEOF
5114if ac_fn_c_try_link "$LINENO"; then :
5115  eval $cacheid=yes
5116else
5117  eval $cacheid=no
5118fi
5119rm -f core conftest.err conftest.$ac_objext \
5120    conftest$ac_exeext conftest.$ac_ext
5121fi
5122
5123
5124		CFLAGS="$xorg_testset_save_CFLAGS"
5125
5126		eval supported=\$$cacheid
5127		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5128$as_echo "$supported" >&6; }
5129		if test "$supported" = "yes" ; then
5130			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5131			found="yes"
5132		fi
5133	fi
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149xorg_testset_save_CFLAGS="$CFLAGS"
5150
5151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5152	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5153	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5156  $as_echo_n "(cached) " >&6
5157else
5158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159/* end confdefs.h.  */
5160int i;
5161_ACEOF
5162if ac_fn_c_try_compile "$LINENO"; then :
5163  xorg_cv_cc_flag_unknown_warning_option=yes
5164else
5165  xorg_cv_cc_flag_unknown_warning_option=no
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168fi
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5171	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5172	CFLAGS="$xorg_testset_save_CFLAGS"
5173fi
5174
5175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5176	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5177		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5178	fi
5179	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186/* end confdefs.h.  */
5187int i;
5188_ACEOF
5189if ac_fn_c_try_compile "$LINENO"; then :
5190  xorg_cv_cc_flag_unused_command_line_argument=yes
5191else
5192  xorg_cv_cc_flag_unused_command_line_argument=no
5193fi
5194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195fi
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5198	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5199	CFLAGS="$xorg_testset_save_CFLAGS"
5200fi
5201
5202found="no"
5203
5204	if test $found = "no" ; then
5205		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5206			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5207		fi
5208
5209		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5210			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5211		fi
5212
5213		CFLAGS="$CFLAGS -Wformat=2"
5214
5215		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5216$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5217		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5218		if eval \${$cacheid+:} false; then :
5219  $as_echo_n "(cached) " >&6
5220else
5221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h.  */
5223int i;
5224int
5225main ()
5226{
5227
5228  ;
5229  return 0;
5230}
5231_ACEOF
5232if ac_fn_c_try_link "$LINENO"; then :
5233  eval $cacheid=yes
5234else
5235  eval $cacheid=no
5236fi
5237rm -f core conftest.err conftest.$ac_objext \
5238    conftest$ac_exeext conftest.$ac_ext
5239fi
5240
5241
5242		CFLAGS="$xorg_testset_save_CFLAGS"
5243
5244		eval supported=\$$cacheid
5245		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5246$as_echo "$supported" >&6; }
5247		if test "$supported" = "yes" ; then
5248			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5249			found="yes"
5250		fi
5251	fi
5252
5253	if test $found = "no" ; then
5254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256		fi
5257
5258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5260		fi
5261
5262		CFLAGS="$CFLAGS -Wformat"
5263
5264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5265$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5266		cacheid=xorg_cv_cc_flag__Wformat
5267		if eval \${$cacheid+:} false; then :
5268  $as_echo_n "(cached) " >&6
5269else
5270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271/* end confdefs.h.  */
5272int i;
5273int
5274main ()
5275{
5276
5277  ;
5278  return 0;
5279}
5280_ACEOF
5281if ac_fn_c_try_link "$LINENO"; then :
5282  eval $cacheid=yes
5283else
5284  eval $cacheid=no
5285fi
5286rm -f core conftest.err conftest.$ac_objext \
5287    conftest$ac_exeext conftest.$ac_ext
5288fi
5289
5290
5291		CFLAGS="$xorg_testset_save_CFLAGS"
5292
5293		eval supported=\$$cacheid
5294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5295$as_echo "$supported" >&6; }
5296		if test "$supported" = "yes" ; then
5297			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5298			found="yes"
5299		fi
5300	fi
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318xorg_testset_save_CFLAGS="$CFLAGS"
5319
5320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5325  $as_echo_n "(cached) " >&6
5326else
5327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h.  */
5329int i;
5330_ACEOF
5331if ac_fn_c_try_compile "$LINENO"; then :
5332  xorg_cv_cc_flag_unknown_warning_option=yes
5333else
5334  xorg_cv_cc_flag_unknown_warning_option=no
5335fi
5336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337fi
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5341	CFLAGS="$xorg_testset_save_CFLAGS"
5342fi
5343
5344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5347	fi
5348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5352  $as_echo_n "(cached) " >&6
5353else
5354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h.  */
5356int i;
5357_ACEOF
5358if ac_fn_c_try_compile "$LINENO"; then :
5359  xorg_cv_cc_flag_unused_command_line_argument=yes
5360else
5361  xorg_cv_cc_flag_unused_command_line_argument=no
5362fi
5363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364fi
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5368	CFLAGS="$xorg_testset_save_CFLAGS"
5369fi
5370
5371found="no"
5372
5373	if test $found = "no" ; then
5374		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5376		fi
5377
5378		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5380		fi
5381
5382		CFLAGS="$CFLAGS -Wstrict-prototypes"
5383
5384		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5385$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5386		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5387		if eval \${$cacheid+:} false; then :
5388  $as_echo_n "(cached) " >&6
5389else
5390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391/* end confdefs.h.  */
5392int i;
5393int
5394main ()
5395{
5396
5397  ;
5398  return 0;
5399}
5400_ACEOF
5401if ac_fn_c_try_link "$LINENO"; then :
5402  eval $cacheid=yes
5403else
5404  eval $cacheid=no
5405fi
5406rm -f core conftest.err conftest.$ac_objext \
5407    conftest$ac_exeext conftest.$ac_ext
5408fi
5409
5410
5411		CFLAGS="$xorg_testset_save_CFLAGS"
5412
5413		eval supported=\$$cacheid
5414		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5415$as_echo "$supported" >&6; }
5416		if test "$supported" = "yes" ; then
5417			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5418			found="yes"
5419		fi
5420	fi
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436xorg_testset_save_CFLAGS="$CFLAGS"
5437
5438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5443  $as_echo_n "(cached) " >&6
5444else
5445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446/* end confdefs.h.  */
5447int i;
5448_ACEOF
5449if ac_fn_c_try_compile "$LINENO"; then :
5450  xorg_cv_cc_flag_unknown_warning_option=yes
5451else
5452  xorg_cv_cc_flag_unknown_warning_option=no
5453fi
5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5459	CFLAGS="$xorg_testset_save_CFLAGS"
5460fi
5461
5462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5465	fi
5466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5470  $as_echo_n "(cached) " >&6
5471else
5472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473/* end confdefs.h.  */
5474int i;
5475_ACEOF
5476if ac_fn_c_try_compile "$LINENO"; then :
5477  xorg_cv_cc_flag_unused_command_line_argument=yes
5478else
5479  xorg_cv_cc_flag_unused_command_line_argument=no
5480fi
5481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5486	CFLAGS="$xorg_testset_save_CFLAGS"
5487fi
5488
5489found="no"
5490
5491	if test $found = "no" ; then
5492		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5494		fi
5495
5496		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5498		fi
5499
5500		CFLAGS="$CFLAGS -Wmissing-prototypes"
5501
5502		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5503$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5504		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5505		if eval \${$cacheid+:} false; then :
5506  $as_echo_n "(cached) " >&6
5507else
5508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h.  */
5510int i;
5511int
5512main ()
5513{
5514
5515  ;
5516  return 0;
5517}
5518_ACEOF
5519if ac_fn_c_try_link "$LINENO"; then :
5520  eval $cacheid=yes
5521else
5522  eval $cacheid=no
5523fi
5524rm -f core conftest.err conftest.$ac_objext \
5525    conftest$ac_exeext conftest.$ac_ext
5526fi
5527
5528
5529		CFLAGS="$xorg_testset_save_CFLAGS"
5530
5531		eval supported=\$$cacheid
5532		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5533$as_echo "$supported" >&6; }
5534		if test "$supported" = "yes" ; then
5535			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5536			found="yes"
5537		fi
5538	fi
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554xorg_testset_save_CFLAGS="$CFLAGS"
5555
5556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5561  $as_echo_n "(cached) " >&6
5562else
5563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h.  */
5565int i;
5566_ACEOF
5567if ac_fn_c_try_compile "$LINENO"; then :
5568  xorg_cv_cc_flag_unknown_warning_option=yes
5569else
5570  xorg_cv_cc_flag_unknown_warning_option=no
5571fi
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573fi
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5577	CFLAGS="$xorg_testset_save_CFLAGS"
5578fi
5579
5580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5583	fi
5584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5588  $as_echo_n "(cached) " >&6
5589else
5590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591/* end confdefs.h.  */
5592int i;
5593_ACEOF
5594if ac_fn_c_try_compile "$LINENO"; then :
5595  xorg_cv_cc_flag_unused_command_line_argument=yes
5596else
5597  xorg_cv_cc_flag_unused_command_line_argument=no
5598fi
5599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600fi
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5604	CFLAGS="$xorg_testset_save_CFLAGS"
5605fi
5606
5607found="no"
5608
5609	if test $found = "no" ; then
5610		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5612		fi
5613
5614		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5616		fi
5617
5618		CFLAGS="$CFLAGS -Wnested-externs"
5619
5620		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5621$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5622		cacheid=xorg_cv_cc_flag__Wnested_externs
5623		if eval \${$cacheid+:} false; then :
5624  $as_echo_n "(cached) " >&6
5625else
5626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627/* end confdefs.h.  */
5628int i;
5629int
5630main ()
5631{
5632
5633  ;
5634  return 0;
5635}
5636_ACEOF
5637if ac_fn_c_try_link "$LINENO"; then :
5638  eval $cacheid=yes
5639else
5640  eval $cacheid=no
5641fi
5642rm -f core conftest.err conftest.$ac_objext \
5643    conftest$ac_exeext conftest.$ac_ext
5644fi
5645
5646
5647		CFLAGS="$xorg_testset_save_CFLAGS"
5648
5649		eval supported=\$$cacheid
5650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5651$as_echo "$supported" >&6; }
5652		if test "$supported" = "yes" ; then
5653			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5654			found="yes"
5655		fi
5656	fi
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672xorg_testset_save_CFLAGS="$CFLAGS"
5673
5674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5679  $as_echo_n "(cached) " >&6
5680else
5681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h.  */
5683int i;
5684_ACEOF
5685if ac_fn_c_try_compile "$LINENO"; then :
5686  xorg_cv_cc_flag_unknown_warning_option=yes
5687else
5688  xorg_cv_cc_flag_unknown_warning_option=no
5689fi
5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691fi
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5695	CFLAGS="$xorg_testset_save_CFLAGS"
5696fi
5697
5698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5701	fi
5702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5706  $as_echo_n "(cached) " >&6
5707else
5708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709/* end confdefs.h.  */
5710int i;
5711_ACEOF
5712if ac_fn_c_try_compile "$LINENO"; then :
5713  xorg_cv_cc_flag_unused_command_line_argument=yes
5714else
5715  xorg_cv_cc_flag_unused_command_line_argument=no
5716fi
5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718fi
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5722	CFLAGS="$xorg_testset_save_CFLAGS"
5723fi
5724
5725found="no"
5726
5727	if test $found = "no" ; then
5728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5730		fi
5731
5732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5734		fi
5735
5736		CFLAGS="$CFLAGS -Wbad-function-cast"
5737
5738		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5739$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5740		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5741		if eval \${$cacheid+:} false; then :
5742  $as_echo_n "(cached) " >&6
5743else
5744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745/* end confdefs.h.  */
5746int i;
5747int
5748main ()
5749{
5750
5751  ;
5752  return 0;
5753}
5754_ACEOF
5755if ac_fn_c_try_link "$LINENO"; then :
5756  eval $cacheid=yes
5757else
5758  eval $cacheid=no
5759fi
5760rm -f core conftest.err conftest.$ac_objext \
5761    conftest$ac_exeext conftest.$ac_ext
5762fi
5763
5764
5765		CFLAGS="$xorg_testset_save_CFLAGS"
5766
5767		eval supported=\$$cacheid
5768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5769$as_echo "$supported" >&6; }
5770		if test "$supported" = "yes" ; then
5771			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5772			found="yes"
5773		fi
5774	fi
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790xorg_testset_save_CFLAGS="$CFLAGS"
5791
5792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5793	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5795$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5796if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5797  $as_echo_n "(cached) " >&6
5798else
5799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h.  */
5801int i;
5802_ACEOF
5803if ac_fn_c_try_compile "$LINENO"; then :
5804  xorg_cv_cc_flag_unknown_warning_option=yes
5805else
5806  xorg_cv_cc_flag_unknown_warning_option=no
5807fi
5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809fi
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5811$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5812	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5813	CFLAGS="$xorg_testset_save_CFLAGS"
5814fi
5815
5816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5817	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5818		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5819	fi
5820	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5822$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5823if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827/* end confdefs.h.  */
5828int i;
5829_ACEOF
5830if ac_fn_c_try_compile "$LINENO"; then :
5831  xorg_cv_cc_flag_unused_command_line_argument=yes
5832else
5833  xorg_cv_cc_flag_unused_command_line_argument=no
5834fi
5835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836fi
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5838$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5840	CFLAGS="$xorg_testset_save_CFLAGS"
5841fi
5842
5843found="no"
5844
5845	if test $found = "no" ; then
5846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5848		fi
5849
5850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5852		fi
5853
5854		CFLAGS="$CFLAGS -Wold-style-definition"
5855
5856		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5857$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5858		cacheid=xorg_cv_cc_flag__Wold_style_definition
5859		if eval \${$cacheid+:} false; then :
5860  $as_echo_n "(cached) " >&6
5861else
5862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863/* end confdefs.h.  */
5864int i;
5865int
5866main ()
5867{
5868
5869  ;
5870  return 0;
5871}
5872_ACEOF
5873if ac_fn_c_try_link "$LINENO"; then :
5874  eval $cacheid=yes
5875else
5876  eval $cacheid=no
5877fi
5878rm -f core conftest.err conftest.$ac_objext \
5879    conftest$ac_exeext conftest.$ac_ext
5880fi
5881
5882
5883		CFLAGS="$xorg_testset_save_CFLAGS"
5884
5885		eval supported=\$$cacheid
5886		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5887$as_echo "$supported" >&6; }
5888		if test "$supported" = "yes" ; then
5889			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5890			found="yes"
5891		fi
5892	fi
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908xorg_testset_save_CFLAGS="$CFLAGS"
5909
5910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5911	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5913$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5914if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918/* end confdefs.h.  */
5919int i;
5920_ACEOF
5921if ac_fn_c_try_compile "$LINENO"; then :
5922  xorg_cv_cc_flag_unknown_warning_option=yes
5923else
5924  xorg_cv_cc_flag_unknown_warning_option=no
5925fi
5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927fi
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5929$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5930	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5931	CFLAGS="$xorg_testset_save_CFLAGS"
5932fi
5933
5934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5935	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5936		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5937	fi
5938	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5940$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5941if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5942  $as_echo_n "(cached) " >&6
5943else
5944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945/* end confdefs.h.  */
5946int i;
5947_ACEOF
5948if ac_fn_c_try_compile "$LINENO"; then :
5949  xorg_cv_cc_flag_unused_command_line_argument=yes
5950else
5951  xorg_cv_cc_flag_unused_command_line_argument=no
5952fi
5953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954fi
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5956$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5957	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5958	CFLAGS="$xorg_testset_save_CFLAGS"
5959fi
5960
5961found="no"
5962
5963	if test $found = "no" ; then
5964		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5966		fi
5967
5968		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5970		fi
5971
5972		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5973
5974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5975$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5976		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5977		if eval \${$cacheid+:} false; then :
5978  $as_echo_n "(cached) " >&6
5979else
5980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981/* end confdefs.h.  */
5982int i;
5983int
5984main ()
5985{
5986
5987  ;
5988  return 0;
5989}
5990_ACEOF
5991if ac_fn_c_try_link "$LINENO"; then :
5992  eval $cacheid=yes
5993else
5994  eval $cacheid=no
5995fi
5996rm -f core conftest.err conftest.$ac_objext \
5997    conftest$ac_exeext conftest.$ac_ext
5998fi
5999
6000
6001		CFLAGS="$xorg_testset_save_CFLAGS"
6002
6003		eval supported=\$$cacheid
6004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6005$as_echo "$supported" >&6; }
6006		if test "$supported" = "yes" ; then
6007			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6008			found="yes"
6009		fi
6010	fi
6011
6012
6013
6014
6015
6016# This chunk adds additional warnings that could catch undesired effects.
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030xorg_testset_save_CFLAGS="$CFLAGS"
6031
6032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6033	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6035$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6036if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6037  $as_echo_n "(cached) " >&6
6038else
6039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h.  */
6041int i;
6042_ACEOF
6043if ac_fn_c_try_compile "$LINENO"; then :
6044  xorg_cv_cc_flag_unknown_warning_option=yes
6045else
6046  xorg_cv_cc_flag_unknown_warning_option=no
6047fi
6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049fi
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6051$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6052	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6053	CFLAGS="$xorg_testset_save_CFLAGS"
6054fi
6055
6056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6057	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6058		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6059	fi
6060	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6062$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6063if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6064  $as_echo_n "(cached) " >&6
6065else
6066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067/* end confdefs.h.  */
6068int i;
6069_ACEOF
6070if ac_fn_c_try_compile "$LINENO"; then :
6071  xorg_cv_cc_flag_unused_command_line_argument=yes
6072else
6073  xorg_cv_cc_flag_unused_command_line_argument=no
6074fi
6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076fi
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6078$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6079	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6080	CFLAGS="$xorg_testset_save_CFLAGS"
6081fi
6082
6083found="no"
6084
6085	if test $found = "no" ; then
6086		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6088		fi
6089
6090		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6092		fi
6093
6094		CFLAGS="$CFLAGS -Wunused"
6095
6096		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6097$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6098		cacheid=xorg_cv_cc_flag__Wunused
6099		if eval \${$cacheid+:} false; then :
6100  $as_echo_n "(cached) " >&6
6101else
6102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103/* end confdefs.h.  */
6104int i;
6105int
6106main ()
6107{
6108
6109  ;
6110  return 0;
6111}
6112_ACEOF
6113if ac_fn_c_try_link "$LINENO"; then :
6114  eval $cacheid=yes
6115else
6116  eval $cacheid=no
6117fi
6118rm -f core conftest.err conftest.$ac_objext \
6119    conftest$ac_exeext conftest.$ac_ext
6120fi
6121
6122
6123		CFLAGS="$xorg_testset_save_CFLAGS"
6124
6125		eval supported=\$$cacheid
6126		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6127$as_echo "$supported" >&6; }
6128		if test "$supported" = "yes" ; then
6129			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6130			found="yes"
6131		fi
6132	fi
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148xorg_testset_save_CFLAGS="$CFLAGS"
6149
6150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6151	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6155  $as_echo_n "(cached) " >&6
6156else
6157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158/* end confdefs.h.  */
6159int i;
6160_ACEOF
6161if ac_fn_c_try_compile "$LINENO"; then :
6162  xorg_cv_cc_flag_unknown_warning_option=yes
6163else
6164  xorg_cv_cc_flag_unknown_warning_option=no
6165fi
6166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167fi
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6170	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6171	CFLAGS="$xorg_testset_save_CFLAGS"
6172fi
6173
6174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6175	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6176		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6177	fi
6178	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6182  $as_echo_n "(cached) " >&6
6183else
6184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185/* end confdefs.h.  */
6186int i;
6187_ACEOF
6188if ac_fn_c_try_compile "$LINENO"; then :
6189  xorg_cv_cc_flag_unused_command_line_argument=yes
6190else
6191  xorg_cv_cc_flag_unused_command_line_argument=no
6192fi
6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194fi
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6198	CFLAGS="$xorg_testset_save_CFLAGS"
6199fi
6200
6201found="no"
6202
6203	if test $found = "no" ; then
6204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6206		fi
6207
6208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6210		fi
6211
6212		CFLAGS="$CFLAGS -Wuninitialized"
6213
6214		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6215$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6216		cacheid=xorg_cv_cc_flag__Wuninitialized
6217		if eval \${$cacheid+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h.  */
6222int i;
6223int
6224main ()
6225{
6226
6227  ;
6228  return 0;
6229}
6230_ACEOF
6231if ac_fn_c_try_link "$LINENO"; then :
6232  eval $cacheid=yes
6233else
6234  eval $cacheid=no
6235fi
6236rm -f core conftest.err conftest.$ac_objext \
6237    conftest$ac_exeext conftest.$ac_ext
6238fi
6239
6240
6241		CFLAGS="$xorg_testset_save_CFLAGS"
6242
6243		eval supported=\$$cacheid
6244		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6245$as_echo "$supported" >&6; }
6246		if test "$supported" = "yes" ; then
6247			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6248			found="yes"
6249		fi
6250	fi
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266xorg_testset_save_CFLAGS="$CFLAGS"
6267
6268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6269	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6270	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6271$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6272if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h.  */
6277int i;
6278_ACEOF
6279if ac_fn_c_try_compile "$LINENO"; then :
6280  xorg_cv_cc_flag_unknown_warning_option=yes
6281else
6282  xorg_cv_cc_flag_unknown_warning_option=no
6283fi
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285fi
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6287$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6288	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6289	CFLAGS="$xorg_testset_save_CFLAGS"
6290fi
6291
6292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6293	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6294		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295	fi
6296	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6298$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6299if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6300  $as_echo_n "(cached) " >&6
6301else
6302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303/* end confdefs.h.  */
6304int i;
6305_ACEOF
6306if ac_fn_c_try_compile "$LINENO"; then :
6307  xorg_cv_cc_flag_unused_command_line_argument=yes
6308else
6309  xorg_cv_cc_flag_unused_command_line_argument=no
6310fi
6311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312fi
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6314$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6316	CFLAGS="$xorg_testset_save_CFLAGS"
6317fi
6318
6319found="no"
6320
6321	if test $found = "no" ; then
6322		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6324		fi
6325
6326		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6328		fi
6329
6330		CFLAGS="$CFLAGS -Wshadow"
6331
6332		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6333$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6334		cacheid=xorg_cv_cc_flag__Wshadow
6335		if eval \${$cacheid+:} false; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340int i;
6341int
6342main ()
6343{
6344
6345  ;
6346  return 0;
6347}
6348_ACEOF
6349if ac_fn_c_try_link "$LINENO"; then :
6350  eval $cacheid=yes
6351else
6352  eval $cacheid=no
6353fi
6354rm -f core conftest.err conftest.$ac_objext \
6355    conftest$ac_exeext conftest.$ac_ext
6356fi
6357
6358
6359		CFLAGS="$xorg_testset_save_CFLAGS"
6360
6361		eval supported=\$$cacheid
6362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6363$as_echo "$supported" >&6; }
6364		if test "$supported" = "yes" ; then
6365			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6366			found="yes"
6367		fi
6368	fi
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384xorg_testset_save_CFLAGS="$CFLAGS"
6385
6386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6387	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6389$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6390if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6391  $as_echo_n "(cached) " >&6
6392else
6393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394/* end confdefs.h.  */
6395int i;
6396_ACEOF
6397if ac_fn_c_try_compile "$LINENO"; then :
6398  xorg_cv_cc_flag_unknown_warning_option=yes
6399else
6400  xorg_cv_cc_flag_unknown_warning_option=no
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6405$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6406	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6407	CFLAGS="$xorg_testset_save_CFLAGS"
6408fi
6409
6410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6411	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6412		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6413	fi
6414	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6416$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6417if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6418  $as_echo_n "(cached) " >&6
6419else
6420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421/* end confdefs.h.  */
6422int i;
6423_ACEOF
6424if ac_fn_c_try_compile "$LINENO"; then :
6425  xorg_cv_cc_flag_unused_command_line_argument=yes
6426else
6427  xorg_cv_cc_flag_unused_command_line_argument=no
6428fi
6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430fi
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6432$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6434	CFLAGS="$xorg_testset_save_CFLAGS"
6435fi
6436
6437found="no"
6438
6439	if test $found = "no" ; then
6440		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6442		fi
6443
6444		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6446		fi
6447
6448		CFLAGS="$CFLAGS -Wcast-qual"
6449
6450		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6451$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6452		cacheid=xorg_cv_cc_flag__Wcast_qual
6453		if eval \${$cacheid+:} false; then :
6454  $as_echo_n "(cached) " >&6
6455else
6456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457/* end confdefs.h.  */
6458int i;
6459int
6460main ()
6461{
6462
6463  ;
6464  return 0;
6465}
6466_ACEOF
6467if ac_fn_c_try_link "$LINENO"; then :
6468  eval $cacheid=yes
6469else
6470  eval $cacheid=no
6471fi
6472rm -f core conftest.err conftest.$ac_objext \
6473    conftest$ac_exeext conftest.$ac_ext
6474fi
6475
6476
6477		CFLAGS="$xorg_testset_save_CFLAGS"
6478
6479		eval supported=\$$cacheid
6480		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6481$as_echo "$supported" >&6; }
6482		if test "$supported" = "yes" ; then
6483			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6484			found="yes"
6485		fi
6486	fi
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502xorg_testset_save_CFLAGS="$CFLAGS"
6503
6504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6505	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6507$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6508if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6509  $as_echo_n "(cached) " >&6
6510else
6511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513int i;
6514_ACEOF
6515if ac_fn_c_try_compile "$LINENO"; then :
6516  xorg_cv_cc_flag_unknown_warning_option=yes
6517else
6518  xorg_cv_cc_flag_unknown_warning_option=no
6519fi
6520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521fi
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6523$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6524	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6525	CFLAGS="$xorg_testset_save_CFLAGS"
6526fi
6527
6528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6529	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6530		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6531	fi
6532	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6534$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6535if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6536  $as_echo_n "(cached) " >&6
6537else
6538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h.  */
6540int i;
6541_ACEOF
6542if ac_fn_c_try_compile "$LINENO"; then :
6543  xorg_cv_cc_flag_unused_command_line_argument=yes
6544else
6545  xorg_cv_cc_flag_unused_command_line_argument=no
6546fi
6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548fi
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6550$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6552	CFLAGS="$xorg_testset_save_CFLAGS"
6553fi
6554
6555found="no"
6556
6557	if test $found = "no" ; then
6558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6560		fi
6561
6562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6564		fi
6565
6566		CFLAGS="$CFLAGS -Wmissing-noreturn"
6567
6568		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6569$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6570		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6571		if eval \${$cacheid+:} false; then :
6572  $as_echo_n "(cached) " >&6
6573else
6574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576int i;
6577int
6578main ()
6579{
6580
6581  ;
6582  return 0;
6583}
6584_ACEOF
6585if ac_fn_c_try_link "$LINENO"; then :
6586  eval $cacheid=yes
6587else
6588  eval $cacheid=no
6589fi
6590rm -f core conftest.err conftest.$ac_objext \
6591    conftest$ac_exeext conftest.$ac_ext
6592fi
6593
6594
6595		CFLAGS="$xorg_testset_save_CFLAGS"
6596
6597		eval supported=\$$cacheid
6598		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6599$as_echo "$supported" >&6; }
6600		if test "$supported" = "yes" ; then
6601			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6602			found="yes"
6603		fi
6604	fi
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620xorg_testset_save_CFLAGS="$CFLAGS"
6621
6622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6627  $as_echo_n "(cached) " >&6
6628else
6629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631int i;
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"; then :
6634  xorg_cv_cc_flag_unknown_warning_option=yes
6635else
6636  xorg_cv_cc_flag_unknown_warning_option=no
6637fi
6638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6643	CFLAGS="$xorg_testset_save_CFLAGS"
6644fi
6645
6646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6649	fi
6650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6654  $as_echo_n "(cached) " >&6
6655else
6656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657/* end confdefs.h.  */
6658int i;
6659_ACEOF
6660if ac_fn_c_try_compile "$LINENO"; then :
6661  xorg_cv_cc_flag_unused_command_line_argument=yes
6662else
6663  xorg_cv_cc_flag_unused_command_line_argument=no
6664fi
6665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666fi
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6670	CFLAGS="$xorg_testset_save_CFLAGS"
6671fi
6672
6673found="no"
6674
6675	if test $found = "no" ; then
6676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6678		fi
6679
6680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6682		fi
6683
6684		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6685
6686		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6687$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6688		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6689		if eval \${$cacheid+:} false; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h.  */
6694int i;
6695int
6696main ()
6697{
6698
6699  ;
6700  return 0;
6701}
6702_ACEOF
6703if ac_fn_c_try_link "$LINENO"; then :
6704  eval $cacheid=yes
6705else
6706  eval $cacheid=no
6707fi
6708rm -f core conftest.err conftest.$ac_objext \
6709    conftest$ac_exeext conftest.$ac_ext
6710fi
6711
6712
6713		CFLAGS="$xorg_testset_save_CFLAGS"
6714
6715		eval supported=\$$cacheid
6716		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6717$as_echo "$supported" >&6; }
6718		if test "$supported" = "yes" ; then
6719			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6720			found="yes"
6721		fi
6722	fi
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738xorg_testset_save_CFLAGS="$CFLAGS"
6739
6740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748/* end confdefs.h.  */
6749int i;
6750_ACEOF
6751if ac_fn_c_try_compile "$LINENO"; then :
6752  xorg_cv_cc_flag_unknown_warning_option=yes
6753else
6754  xorg_cv_cc_flag_unknown_warning_option=no
6755fi
6756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757fi
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6761	CFLAGS="$xorg_testset_save_CFLAGS"
6762fi
6763
6764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6767	fi
6768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775/* end confdefs.h.  */
6776int i;
6777_ACEOF
6778if ac_fn_c_try_compile "$LINENO"; then :
6779  xorg_cv_cc_flag_unused_command_line_argument=yes
6780else
6781  xorg_cv_cc_flag_unused_command_line_argument=no
6782fi
6783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784fi
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6788	CFLAGS="$xorg_testset_save_CFLAGS"
6789fi
6790
6791found="no"
6792
6793	if test $found = "no" ; then
6794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6796		fi
6797
6798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6800		fi
6801
6802		CFLAGS="$CFLAGS -Wredundant-decls"
6803
6804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6805$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6806		cacheid=xorg_cv_cc_flag__Wredundant_decls
6807		if eval \${$cacheid+:} false; then :
6808  $as_echo_n "(cached) " >&6
6809else
6810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h.  */
6812int i;
6813int
6814main ()
6815{
6816
6817  ;
6818  return 0;
6819}
6820_ACEOF
6821if ac_fn_c_try_link "$LINENO"; then :
6822  eval $cacheid=yes
6823else
6824  eval $cacheid=no
6825fi
6826rm -f core conftest.err conftest.$ac_objext \
6827    conftest$ac_exeext conftest.$ac_ext
6828fi
6829
6830
6831		CFLAGS="$xorg_testset_save_CFLAGS"
6832
6833		eval supported=\$$cacheid
6834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6835$as_echo "$supported" >&6; }
6836		if test "$supported" = "yes" ; then
6837			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6838			found="yes"
6839		fi
6840	fi
6841
6842
6843
6844# These are currently disabled because they are noisy.  They will be enabled
6845# in the future once the codebase is sufficiently modernized to silence
6846# them.  For now, I don't want them to drown out the other warnings.
6847# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6848# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6849# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6850
6851# Turn some warnings into errors, so we don't accidently get successful builds
6852# when there are problems that should be fixed.
6853
6854if test "x$SELECTIVE_WERROR" = "xyes" ; then
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868xorg_testset_save_CFLAGS="$CFLAGS"
6869
6870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6875  $as_echo_n "(cached) " >&6
6876else
6877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878/* end confdefs.h.  */
6879int i;
6880_ACEOF
6881if ac_fn_c_try_compile "$LINENO"; then :
6882  xorg_cv_cc_flag_unknown_warning_option=yes
6883else
6884  xorg_cv_cc_flag_unknown_warning_option=no
6885fi
6886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887fi
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6890	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6891	CFLAGS="$xorg_testset_save_CFLAGS"
6892fi
6893
6894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6895	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6896		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6897	fi
6898	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6901if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6902  $as_echo_n "(cached) " >&6
6903else
6904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905/* end confdefs.h.  */
6906int i;
6907_ACEOF
6908if ac_fn_c_try_compile "$LINENO"; then :
6909  xorg_cv_cc_flag_unused_command_line_argument=yes
6910else
6911  xorg_cv_cc_flag_unused_command_line_argument=no
6912fi
6913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914fi
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6918	CFLAGS="$xorg_testset_save_CFLAGS"
6919fi
6920
6921found="no"
6922
6923	if test $found = "no" ; then
6924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6926		fi
6927
6928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6930		fi
6931
6932		CFLAGS="$CFLAGS -Werror=implicit"
6933
6934		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6935$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6936		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6937		if eval \${$cacheid+:} false; then :
6938  $as_echo_n "(cached) " >&6
6939else
6940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941/* end confdefs.h.  */
6942int i;
6943int
6944main ()
6945{
6946
6947  ;
6948  return 0;
6949}
6950_ACEOF
6951if ac_fn_c_try_link "$LINENO"; then :
6952  eval $cacheid=yes
6953else
6954  eval $cacheid=no
6955fi
6956rm -f core conftest.err conftest.$ac_objext \
6957    conftest$ac_exeext conftest.$ac_ext
6958fi
6959
6960
6961		CFLAGS="$xorg_testset_save_CFLAGS"
6962
6963		eval supported=\$$cacheid
6964		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6965$as_echo "$supported" >&6; }
6966		if test "$supported" = "yes" ; then
6967			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6968			found="yes"
6969		fi
6970	fi
6971
6972	if test $found = "no" ; then
6973		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6975		fi
6976
6977		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6979		fi
6980
6981		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6982
6983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6984$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6985		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6986		if eval \${$cacheid+:} false; then :
6987  $as_echo_n "(cached) " >&6
6988else
6989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990/* end confdefs.h.  */
6991int i;
6992int
6993main ()
6994{
6995
6996  ;
6997  return 0;
6998}
6999_ACEOF
7000if ac_fn_c_try_link "$LINENO"; then :
7001  eval $cacheid=yes
7002else
7003  eval $cacheid=no
7004fi
7005rm -f core conftest.err conftest.$ac_objext \
7006    conftest$ac_exeext conftest.$ac_ext
7007fi
7008
7009
7010		CFLAGS="$xorg_testset_save_CFLAGS"
7011
7012		eval supported=\$$cacheid
7013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7014$as_echo "$supported" >&6; }
7015		if test "$supported" = "yes" ; then
7016			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7017			found="yes"
7018		fi
7019	fi
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035xorg_testset_save_CFLAGS="$CFLAGS"
7036
7037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046int i;
7047_ACEOF
7048if ac_fn_c_try_compile "$LINENO"; then :
7049  xorg_cv_cc_flag_unknown_warning_option=yes
7050else
7051  xorg_cv_cc_flag_unknown_warning_option=no
7052fi
7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054fi
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7058	CFLAGS="$xorg_testset_save_CFLAGS"
7059fi
7060
7061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064	fi
7065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7069  $as_echo_n "(cached) " >&6
7070else
7071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072/* end confdefs.h.  */
7073int i;
7074_ACEOF
7075if ac_fn_c_try_compile "$LINENO"; then :
7076  xorg_cv_cc_flag_unused_command_line_argument=yes
7077else
7078  xorg_cv_cc_flag_unused_command_line_argument=no
7079fi
7080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081fi
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7085	CFLAGS="$xorg_testset_save_CFLAGS"
7086fi
7087
7088found="no"
7089
7090	if test $found = "no" ; then
7091		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7093		fi
7094
7095		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7097		fi
7098
7099		CFLAGS="$CFLAGS -Werror=nonnull"
7100
7101		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7102$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7103		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7104		if eval \${$cacheid+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h.  */
7109int i;
7110int
7111main ()
7112{
7113
7114  ;
7115  return 0;
7116}
7117_ACEOF
7118if ac_fn_c_try_link "$LINENO"; then :
7119  eval $cacheid=yes
7120else
7121  eval $cacheid=no
7122fi
7123rm -f core conftest.err conftest.$ac_objext \
7124    conftest$ac_exeext conftest.$ac_ext
7125fi
7126
7127
7128		CFLAGS="$xorg_testset_save_CFLAGS"
7129
7130		eval supported=\$$cacheid
7131		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7132$as_echo "$supported" >&6; }
7133		if test "$supported" = "yes" ; then
7134			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7135			found="yes"
7136		fi
7137	fi
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153xorg_testset_save_CFLAGS="$CFLAGS"
7154
7155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7156	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7160  $as_echo_n "(cached) " >&6
7161else
7162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h.  */
7164int i;
7165_ACEOF
7166if ac_fn_c_try_compile "$LINENO"; then :
7167  xorg_cv_cc_flag_unknown_warning_option=yes
7168else
7169  xorg_cv_cc_flag_unknown_warning_option=no
7170fi
7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172fi
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7175	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7176	CFLAGS="$xorg_testset_save_CFLAGS"
7177fi
7178
7179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7180	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7182	fi
7183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7187  $as_echo_n "(cached) " >&6
7188else
7189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190/* end confdefs.h.  */
7191int i;
7192_ACEOF
7193if ac_fn_c_try_compile "$LINENO"; then :
7194  xorg_cv_cc_flag_unused_command_line_argument=yes
7195else
7196  xorg_cv_cc_flag_unused_command_line_argument=no
7197fi
7198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199fi
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7203	CFLAGS="$xorg_testset_save_CFLAGS"
7204fi
7205
7206found="no"
7207
7208	if test $found = "no" ; then
7209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7211		fi
7212
7213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7215		fi
7216
7217		CFLAGS="$CFLAGS -Werror=init-self"
7218
7219		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7220$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7221		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7222		if eval \${$cacheid+:} false; then :
7223  $as_echo_n "(cached) " >&6
7224else
7225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226/* end confdefs.h.  */
7227int i;
7228int
7229main ()
7230{
7231
7232  ;
7233  return 0;
7234}
7235_ACEOF
7236if ac_fn_c_try_link "$LINENO"; then :
7237  eval $cacheid=yes
7238else
7239  eval $cacheid=no
7240fi
7241rm -f core conftest.err conftest.$ac_objext \
7242    conftest$ac_exeext conftest.$ac_ext
7243fi
7244
7245
7246		CFLAGS="$xorg_testset_save_CFLAGS"
7247
7248		eval supported=\$$cacheid
7249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7250$as_echo "$supported" >&6; }
7251		if test "$supported" = "yes" ; then
7252			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7253			found="yes"
7254		fi
7255	fi
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271xorg_testset_save_CFLAGS="$CFLAGS"
7272
7273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281/* end confdefs.h.  */
7282int i;
7283_ACEOF
7284if ac_fn_c_try_compile "$LINENO"; then :
7285  xorg_cv_cc_flag_unknown_warning_option=yes
7286else
7287  xorg_cv_cc_flag_unknown_warning_option=no
7288fi
7289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290fi
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7294	CFLAGS="$xorg_testset_save_CFLAGS"
7295fi
7296
7297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7300	fi
7301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309int i;
7310_ACEOF
7311if ac_fn_c_try_compile "$LINENO"; then :
7312  xorg_cv_cc_flag_unused_command_line_argument=yes
7313else
7314  xorg_cv_cc_flag_unused_command_line_argument=no
7315fi
7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317fi
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7321	CFLAGS="$xorg_testset_save_CFLAGS"
7322fi
7323
7324found="no"
7325
7326	if test $found = "no" ; then
7327		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7329		fi
7330
7331		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7333		fi
7334
7335		CFLAGS="$CFLAGS -Werror=main"
7336
7337		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7338$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7339		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7340		if eval \${$cacheid+:} false; then :
7341  $as_echo_n "(cached) " >&6
7342else
7343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344/* end confdefs.h.  */
7345int i;
7346int
7347main ()
7348{
7349
7350  ;
7351  return 0;
7352}
7353_ACEOF
7354if ac_fn_c_try_link "$LINENO"; then :
7355  eval $cacheid=yes
7356else
7357  eval $cacheid=no
7358fi
7359rm -f core conftest.err conftest.$ac_objext \
7360    conftest$ac_exeext conftest.$ac_ext
7361fi
7362
7363
7364		CFLAGS="$xorg_testset_save_CFLAGS"
7365
7366		eval supported=\$$cacheid
7367		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7368$as_echo "$supported" >&6; }
7369		if test "$supported" = "yes" ; then
7370			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7371			found="yes"
7372		fi
7373	fi
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389xorg_testset_save_CFLAGS="$CFLAGS"
7390
7391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7396  $as_echo_n "(cached) " >&6
7397else
7398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h.  */
7400int i;
7401_ACEOF
7402if ac_fn_c_try_compile "$LINENO"; then :
7403  xorg_cv_cc_flag_unknown_warning_option=yes
7404else
7405  xorg_cv_cc_flag_unknown_warning_option=no
7406fi
7407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408fi
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7412	CFLAGS="$xorg_testset_save_CFLAGS"
7413fi
7414
7415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7418	fi
7419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7423  $as_echo_n "(cached) " >&6
7424else
7425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426/* end confdefs.h.  */
7427int i;
7428_ACEOF
7429if ac_fn_c_try_compile "$LINENO"; then :
7430  xorg_cv_cc_flag_unused_command_line_argument=yes
7431else
7432  xorg_cv_cc_flag_unused_command_line_argument=no
7433fi
7434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435fi
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7439	CFLAGS="$xorg_testset_save_CFLAGS"
7440fi
7441
7442found="no"
7443
7444	if test $found = "no" ; then
7445		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7447		fi
7448
7449		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7451		fi
7452
7453		CFLAGS="$CFLAGS -Werror=missing-braces"
7454
7455		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7456$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7457		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7458		if eval \${$cacheid+:} false; then :
7459  $as_echo_n "(cached) " >&6
7460else
7461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462/* end confdefs.h.  */
7463int i;
7464int
7465main ()
7466{
7467
7468  ;
7469  return 0;
7470}
7471_ACEOF
7472if ac_fn_c_try_link "$LINENO"; then :
7473  eval $cacheid=yes
7474else
7475  eval $cacheid=no
7476fi
7477rm -f core conftest.err conftest.$ac_objext \
7478    conftest$ac_exeext conftest.$ac_ext
7479fi
7480
7481
7482		CFLAGS="$xorg_testset_save_CFLAGS"
7483
7484		eval supported=\$$cacheid
7485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7486$as_echo "$supported" >&6; }
7487		if test "$supported" = "yes" ; then
7488			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7489			found="yes"
7490		fi
7491	fi
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507xorg_testset_save_CFLAGS="$CFLAGS"
7508
7509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7510	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517/* end confdefs.h.  */
7518int i;
7519_ACEOF
7520if ac_fn_c_try_compile "$LINENO"; then :
7521  xorg_cv_cc_flag_unknown_warning_option=yes
7522else
7523  xorg_cv_cc_flag_unknown_warning_option=no
7524fi
7525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526fi
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7529	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7530	CFLAGS="$xorg_testset_save_CFLAGS"
7531fi
7532
7533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7534	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7535		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7536	fi
7537	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544/* end confdefs.h.  */
7545int i;
7546_ACEOF
7547if ac_fn_c_try_compile "$LINENO"; then :
7548  xorg_cv_cc_flag_unused_command_line_argument=yes
7549else
7550  xorg_cv_cc_flag_unused_command_line_argument=no
7551fi
7552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553fi
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7556	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7557	CFLAGS="$xorg_testset_save_CFLAGS"
7558fi
7559
7560found="no"
7561
7562	if test $found = "no" ; then
7563		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7564			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7565		fi
7566
7567		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7568			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7569		fi
7570
7571		CFLAGS="$CFLAGS -Werror=sequence-point"
7572
7573		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7574$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7575		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7576		if eval \${$cacheid+:} false; then :
7577  $as_echo_n "(cached) " >&6
7578else
7579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h.  */
7581int i;
7582int
7583main ()
7584{
7585
7586  ;
7587  return 0;
7588}
7589_ACEOF
7590if ac_fn_c_try_link "$LINENO"; then :
7591  eval $cacheid=yes
7592else
7593  eval $cacheid=no
7594fi
7595rm -f core conftest.err conftest.$ac_objext \
7596    conftest$ac_exeext conftest.$ac_ext
7597fi
7598
7599
7600		CFLAGS="$xorg_testset_save_CFLAGS"
7601
7602		eval supported=\$$cacheid
7603		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7604$as_echo "$supported" >&6; }
7605		if test "$supported" = "yes" ; then
7606			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7607			found="yes"
7608		fi
7609	fi
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625xorg_testset_save_CFLAGS="$CFLAGS"
7626
7627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7631if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7632  $as_echo_n "(cached) " >&6
7633else
7634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h.  */
7636int i;
7637_ACEOF
7638if ac_fn_c_try_compile "$LINENO"; then :
7639  xorg_cv_cc_flag_unknown_warning_option=yes
7640else
7641  xorg_cv_cc_flag_unknown_warning_option=no
7642fi
7643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644fi
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7646$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7648	CFLAGS="$xorg_testset_save_CFLAGS"
7649fi
7650
7651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7654	fi
7655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7657$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7658if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7659  $as_echo_n "(cached) " >&6
7660else
7661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662/* end confdefs.h.  */
7663int i;
7664_ACEOF
7665if ac_fn_c_try_compile "$LINENO"; then :
7666  xorg_cv_cc_flag_unused_command_line_argument=yes
7667else
7668  xorg_cv_cc_flag_unused_command_line_argument=no
7669fi
7670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671fi
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7673$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7674	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7675	CFLAGS="$xorg_testset_save_CFLAGS"
7676fi
7677
7678found="no"
7679
7680	if test $found = "no" ; then
7681		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683		fi
7684
7685		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7687		fi
7688
7689		CFLAGS="$CFLAGS -Werror=return-type"
7690
7691		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7692$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7693		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7694		if eval \${$cacheid+:} false; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h.  */
7699int i;
7700int
7701main ()
7702{
7703
7704  ;
7705  return 0;
7706}
7707_ACEOF
7708if ac_fn_c_try_link "$LINENO"; then :
7709  eval $cacheid=yes
7710else
7711  eval $cacheid=no
7712fi
7713rm -f core conftest.err conftest.$ac_objext \
7714    conftest$ac_exeext conftest.$ac_ext
7715fi
7716
7717
7718		CFLAGS="$xorg_testset_save_CFLAGS"
7719
7720		eval supported=\$$cacheid
7721		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7722$as_echo "$supported" >&6; }
7723		if test "$supported" = "yes" ; then
7724			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7725			found="yes"
7726		fi
7727	fi
7728
7729	if test $found = "no" ; then
7730		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7731			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7732		fi
7733
7734		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7735			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7736		fi
7737
7738		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7739
7740		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7741$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7742		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7743		if eval \${$cacheid+:} false; then :
7744  $as_echo_n "(cached) " >&6
7745else
7746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747/* end confdefs.h.  */
7748int i;
7749int
7750main ()
7751{
7752
7753  ;
7754  return 0;
7755}
7756_ACEOF
7757if ac_fn_c_try_link "$LINENO"; then :
7758  eval $cacheid=yes
7759else
7760  eval $cacheid=no
7761fi
7762rm -f core conftest.err conftest.$ac_objext \
7763    conftest$ac_exeext conftest.$ac_ext
7764fi
7765
7766
7767		CFLAGS="$xorg_testset_save_CFLAGS"
7768
7769		eval supported=\$$cacheid
7770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7771$as_echo "$supported" >&6; }
7772		if test "$supported" = "yes" ; then
7773			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7774			found="yes"
7775		fi
7776	fi
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792xorg_testset_save_CFLAGS="$CFLAGS"
7793
7794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7795	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7799  $as_echo_n "(cached) " >&6
7800else
7801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802/* end confdefs.h.  */
7803int i;
7804_ACEOF
7805if ac_fn_c_try_compile "$LINENO"; then :
7806  xorg_cv_cc_flag_unknown_warning_option=yes
7807else
7808  xorg_cv_cc_flag_unknown_warning_option=no
7809fi
7810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7814	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7815	CFLAGS="$xorg_testset_save_CFLAGS"
7816fi
7817
7818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7819	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7820		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821	fi
7822	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7826  $as_echo_n "(cached) " >&6
7827else
7828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829/* end confdefs.h.  */
7830int i;
7831_ACEOF
7832if ac_fn_c_try_compile "$LINENO"; then :
7833  xorg_cv_cc_flag_unused_command_line_argument=yes
7834else
7835  xorg_cv_cc_flag_unused_command_line_argument=no
7836fi
7837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838fi
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7841	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7842	CFLAGS="$xorg_testset_save_CFLAGS"
7843fi
7844
7845found="no"
7846
7847	if test $found = "no" ; then
7848		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7849			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7850		fi
7851
7852		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7853			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7854		fi
7855
7856		CFLAGS="$CFLAGS -Werror=trigraphs"
7857
7858		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7859$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7860		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7861		if eval \${$cacheid+:} false; then :
7862  $as_echo_n "(cached) " >&6
7863else
7864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865/* end confdefs.h.  */
7866int i;
7867int
7868main ()
7869{
7870
7871  ;
7872  return 0;
7873}
7874_ACEOF
7875if ac_fn_c_try_link "$LINENO"; then :
7876  eval $cacheid=yes
7877else
7878  eval $cacheid=no
7879fi
7880rm -f core conftest.err conftest.$ac_objext \
7881    conftest$ac_exeext conftest.$ac_ext
7882fi
7883
7884
7885		CFLAGS="$xorg_testset_save_CFLAGS"
7886
7887		eval supported=\$$cacheid
7888		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7889$as_echo "$supported" >&6; }
7890		if test "$supported" = "yes" ; then
7891			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7892			found="yes"
7893		fi
7894	fi
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910xorg_testset_save_CFLAGS="$CFLAGS"
7911
7912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7917  $as_echo_n "(cached) " >&6
7918else
7919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h.  */
7921int i;
7922_ACEOF
7923if ac_fn_c_try_compile "$LINENO"; then :
7924  xorg_cv_cc_flag_unknown_warning_option=yes
7925else
7926  xorg_cv_cc_flag_unknown_warning_option=no
7927fi
7928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929fi
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7932	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7933	CFLAGS="$xorg_testset_save_CFLAGS"
7934fi
7935
7936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7937	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7938		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7939	fi
7940	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h.  */
7948int i;
7949_ACEOF
7950if ac_fn_c_try_compile "$LINENO"; then :
7951  xorg_cv_cc_flag_unused_command_line_argument=yes
7952else
7953  xorg_cv_cc_flag_unused_command_line_argument=no
7954fi
7955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956fi
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7960	CFLAGS="$xorg_testset_save_CFLAGS"
7961fi
7962
7963found="no"
7964
7965	if test $found = "no" ; then
7966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7968		fi
7969
7970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7972		fi
7973
7974		CFLAGS="$CFLAGS -Werror=array-bounds"
7975
7976		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7977$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7978		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7979		if eval \${$cacheid+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983/* end confdefs.h.  */
7984int i;
7985int
7986main ()
7987{
7988
7989  ;
7990  return 0;
7991}
7992_ACEOF
7993if ac_fn_c_try_link "$LINENO"; then :
7994  eval $cacheid=yes
7995else
7996  eval $cacheid=no
7997fi
7998rm -f core conftest.err conftest.$ac_objext \
7999    conftest$ac_exeext conftest.$ac_ext
8000fi
8001
8002
8003		CFLAGS="$xorg_testset_save_CFLAGS"
8004
8005		eval supported=\$$cacheid
8006		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8007$as_echo "$supported" >&6; }
8008		if test "$supported" = "yes" ; then
8009			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8010			found="yes"
8011		fi
8012	fi
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028xorg_testset_save_CFLAGS="$CFLAGS"
8029
8030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8031	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8035  $as_echo_n "(cached) " >&6
8036else
8037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038/* end confdefs.h.  */
8039int i;
8040_ACEOF
8041if ac_fn_c_try_compile "$LINENO"; then :
8042  xorg_cv_cc_flag_unknown_warning_option=yes
8043else
8044  xorg_cv_cc_flag_unknown_warning_option=no
8045fi
8046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047fi
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8051	CFLAGS="$xorg_testset_save_CFLAGS"
8052fi
8053
8054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8057	fi
8058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8062  $as_echo_n "(cached) " >&6
8063else
8064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065/* end confdefs.h.  */
8066int i;
8067_ACEOF
8068if ac_fn_c_try_compile "$LINENO"; then :
8069  xorg_cv_cc_flag_unused_command_line_argument=yes
8070else
8071  xorg_cv_cc_flag_unused_command_line_argument=no
8072fi
8073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074fi
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8077	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8078	CFLAGS="$xorg_testset_save_CFLAGS"
8079fi
8080
8081found="no"
8082
8083	if test $found = "no" ; then
8084		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8085			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8086		fi
8087
8088		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8089			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8090		fi
8091
8092		CFLAGS="$CFLAGS -Werror=write-strings"
8093
8094		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8095$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8096		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8097		if eval \${$cacheid+:} false; then :
8098  $as_echo_n "(cached) " >&6
8099else
8100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101/* end confdefs.h.  */
8102int i;
8103int
8104main ()
8105{
8106
8107  ;
8108  return 0;
8109}
8110_ACEOF
8111if ac_fn_c_try_link "$LINENO"; then :
8112  eval $cacheid=yes
8113else
8114  eval $cacheid=no
8115fi
8116rm -f core conftest.err conftest.$ac_objext \
8117    conftest$ac_exeext conftest.$ac_ext
8118fi
8119
8120
8121		CFLAGS="$xorg_testset_save_CFLAGS"
8122
8123		eval supported=\$$cacheid
8124		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8125$as_echo "$supported" >&6; }
8126		if test "$supported" = "yes" ; then
8127			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8128			found="yes"
8129		fi
8130	fi
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146xorg_testset_save_CFLAGS="$CFLAGS"
8147
8148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156/* end confdefs.h.  */
8157int i;
8158_ACEOF
8159if ac_fn_c_try_compile "$LINENO"; then :
8160  xorg_cv_cc_flag_unknown_warning_option=yes
8161else
8162  xorg_cv_cc_flag_unknown_warning_option=no
8163fi
8164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165fi
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8169	CFLAGS="$xorg_testset_save_CFLAGS"
8170fi
8171
8172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8175	fi
8176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8180  $as_echo_n "(cached) " >&6
8181else
8182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183/* end confdefs.h.  */
8184int i;
8185_ACEOF
8186if ac_fn_c_try_compile "$LINENO"; then :
8187  xorg_cv_cc_flag_unused_command_line_argument=yes
8188else
8189  xorg_cv_cc_flag_unused_command_line_argument=no
8190fi
8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192fi
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8196	CFLAGS="$xorg_testset_save_CFLAGS"
8197fi
8198
8199found="no"
8200
8201	if test $found = "no" ; then
8202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8204		fi
8205
8206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8208		fi
8209
8210		CFLAGS="$CFLAGS -Werror=address"
8211
8212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8213$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8214		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8215		if eval \${$cacheid+:} false; then :
8216  $as_echo_n "(cached) " >&6
8217else
8218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219/* end confdefs.h.  */
8220int i;
8221int
8222main ()
8223{
8224
8225  ;
8226  return 0;
8227}
8228_ACEOF
8229if ac_fn_c_try_link "$LINENO"; then :
8230  eval $cacheid=yes
8231else
8232  eval $cacheid=no
8233fi
8234rm -f core conftest.err conftest.$ac_objext \
8235    conftest$ac_exeext conftest.$ac_ext
8236fi
8237
8238
8239		CFLAGS="$xorg_testset_save_CFLAGS"
8240
8241		eval supported=\$$cacheid
8242		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8243$as_echo "$supported" >&6; }
8244		if test "$supported" = "yes" ; then
8245			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8246			found="yes"
8247		fi
8248	fi
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264xorg_testset_save_CFLAGS="$CFLAGS"
8265
8266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8271  $as_echo_n "(cached) " >&6
8272else
8273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274/* end confdefs.h.  */
8275int i;
8276_ACEOF
8277if ac_fn_c_try_compile "$LINENO"; then :
8278  xorg_cv_cc_flag_unknown_warning_option=yes
8279else
8280  xorg_cv_cc_flag_unknown_warning_option=no
8281fi
8282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283fi
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8287	CFLAGS="$xorg_testset_save_CFLAGS"
8288fi
8289
8290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293	fi
8294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8298  $as_echo_n "(cached) " >&6
8299else
8300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301/* end confdefs.h.  */
8302int i;
8303_ACEOF
8304if ac_fn_c_try_compile "$LINENO"; then :
8305  xorg_cv_cc_flag_unused_command_line_argument=yes
8306else
8307  xorg_cv_cc_flag_unused_command_line_argument=no
8308fi
8309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310fi
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8314	CFLAGS="$xorg_testset_save_CFLAGS"
8315fi
8316
8317found="no"
8318
8319	if test $found = "no" ; then
8320		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322		fi
8323
8324		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8326		fi
8327
8328		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8329
8330		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8331$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8332		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8333		if eval \${$cacheid+:} false; then :
8334  $as_echo_n "(cached) " >&6
8335else
8336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h.  */
8338int i;
8339int
8340main ()
8341{
8342
8343  ;
8344  return 0;
8345}
8346_ACEOF
8347if ac_fn_c_try_link "$LINENO"; then :
8348  eval $cacheid=yes
8349else
8350  eval $cacheid=no
8351fi
8352rm -f core conftest.err conftest.$ac_objext \
8353    conftest$ac_exeext conftest.$ac_ext
8354fi
8355
8356
8357		CFLAGS="$xorg_testset_save_CFLAGS"
8358
8359		eval supported=\$$cacheid
8360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8361$as_echo "$supported" >&6; }
8362		if test "$supported" = "yes" ; then
8363			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8364			found="yes"
8365		fi
8366	fi
8367
8368	if test $found = "no" ; then
8369		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8370			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8371		fi
8372
8373		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8374			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8375		fi
8376
8377		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8378
8379		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8380$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8381		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8382		if eval \${$cacheid+:} false; then :
8383  $as_echo_n "(cached) " >&6
8384else
8385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386/* end confdefs.h.  */
8387int i;
8388int
8389main ()
8390{
8391
8392  ;
8393  return 0;
8394}
8395_ACEOF
8396if ac_fn_c_try_link "$LINENO"; then :
8397  eval $cacheid=yes
8398else
8399  eval $cacheid=no
8400fi
8401rm -f core conftest.err conftest.$ac_objext \
8402    conftest$ac_exeext conftest.$ac_ext
8403fi
8404
8405
8406		CFLAGS="$xorg_testset_save_CFLAGS"
8407
8408		eval supported=\$$cacheid
8409		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8410$as_echo "$supported" >&6; }
8411		if test "$supported" = "yes" ; then
8412			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8413			found="yes"
8414		fi
8415	fi
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431xorg_testset_save_CFLAGS="$CFLAGS"
8432
8433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8434	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8436$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8437if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
8446else
8447  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8452$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8454	CFLAGS="$xorg_testset_save_CFLAGS"
8455fi
8456
8457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8460	fi
8461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8463$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8464if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8465  $as_echo_n "(cached) " >&6
8466else
8467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468/* end confdefs.h.  */
8469int i;
8470_ACEOF
8471if ac_fn_c_try_compile "$LINENO"; then :
8472  xorg_cv_cc_flag_unused_command_line_argument=yes
8473else
8474  xorg_cv_cc_flag_unused_command_line_argument=no
8475fi
8476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477fi
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8479$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8480	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8481	CFLAGS="$xorg_testset_save_CFLAGS"
8482fi
8483
8484found="no"
8485
8486	if test $found = "no" ; then
8487		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8488			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8489		fi
8490
8491		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8492			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8493		fi
8494
8495		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8496
8497		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8498$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8499		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8500		if eval \${$cacheid+:} false; then :
8501  $as_echo_n "(cached) " >&6
8502else
8503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504/* end confdefs.h.  */
8505int i;
8506int
8507main ()
8508{
8509
8510  ;
8511  return 0;
8512}
8513_ACEOF
8514if ac_fn_c_try_link "$LINENO"; then :
8515  eval $cacheid=yes
8516else
8517  eval $cacheid=no
8518fi
8519rm -f core conftest.err conftest.$ac_objext \
8520    conftest$ac_exeext conftest.$ac_ext
8521fi
8522
8523
8524		CFLAGS="$xorg_testset_save_CFLAGS"
8525
8526		eval supported=\$$cacheid
8527		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8528$as_echo "$supported" >&6; }
8529		if test "$supported" = "yes" ; then
8530			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8531			found="yes"
8532		fi
8533	fi
8534
8535 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8536else
8537{ $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
8538$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;}
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552xorg_testset_save_CFLAGS="$CFLAGS"
8553
8554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8556	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8559  $as_echo_n "(cached) " >&6
8560else
8561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h.  */
8563int i;
8564_ACEOF
8565if ac_fn_c_try_compile "$LINENO"; then :
8566  xorg_cv_cc_flag_unknown_warning_option=yes
8567else
8568  xorg_cv_cc_flag_unknown_warning_option=no
8569fi
8570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571fi
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8574	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8575	CFLAGS="$xorg_testset_save_CFLAGS"
8576fi
8577
8578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8579	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8580		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8581	fi
8582	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8586  $as_echo_n "(cached) " >&6
8587else
8588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589/* end confdefs.h.  */
8590int i;
8591_ACEOF
8592if ac_fn_c_try_compile "$LINENO"; then :
8593  xorg_cv_cc_flag_unused_command_line_argument=yes
8594else
8595  xorg_cv_cc_flag_unused_command_line_argument=no
8596fi
8597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598fi
8599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8602	CFLAGS="$xorg_testset_save_CFLAGS"
8603fi
8604
8605found="no"
8606
8607	if test $found = "no" ; then
8608		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610		fi
8611
8612		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8614		fi
8615
8616		CFLAGS="$CFLAGS -Wimplicit"
8617
8618		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8619$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8620		cacheid=xorg_cv_cc_flag__Wimplicit
8621		if eval \${$cacheid+:} false; then :
8622  $as_echo_n "(cached) " >&6
8623else
8624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625/* end confdefs.h.  */
8626int i;
8627int
8628main ()
8629{
8630
8631  ;
8632  return 0;
8633}
8634_ACEOF
8635if ac_fn_c_try_link "$LINENO"; then :
8636  eval $cacheid=yes
8637else
8638  eval $cacheid=no
8639fi
8640rm -f core conftest.err conftest.$ac_objext \
8641    conftest$ac_exeext conftest.$ac_ext
8642fi
8643
8644
8645		CFLAGS="$xorg_testset_save_CFLAGS"
8646
8647		eval supported=\$$cacheid
8648		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8649$as_echo "$supported" >&6; }
8650		if test "$supported" = "yes" ; then
8651			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8652			found="yes"
8653		fi
8654	fi
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670xorg_testset_save_CFLAGS="$CFLAGS"
8671
8672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8675$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8676if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h.  */
8681int i;
8682_ACEOF
8683if ac_fn_c_try_compile "$LINENO"; then :
8684  xorg_cv_cc_flag_unknown_warning_option=yes
8685else
8686  xorg_cv_cc_flag_unknown_warning_option=no
8687fi
8688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689fi
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8691$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8693	CFLAGS="$xorg_testset_save_CFLAGS"
8694fi
8695
8696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8699	fi
8700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8702$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8703if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8704  $as_echo_n "(cached) " >&6
8705else
8706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707/* end confdefs.h.  */
8708int i;
8709_ACEOF
8710if ac_fn_c_try_compile "$LINENO"; then :
8711  xorg_cv_cc_flag_unused_command_line_argument=yes
8712else
8713  xorg_cv_cc_flag_unused_command_line_argument=no
8714fi
8715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716fi
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8718$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8719	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8720	CFLAGS="$xorg_testset_save_CFLAGS"
8721fi
8722
8723found="no"
8724
8725	if test $found = "no" ; then
8726		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8728		fi
8729
8730		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8732		fi
8733
8734		CFLAGS="$CFLAGS -Wnonnull"
8735
8736		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8737$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8738		cacheid=xorg_cv_cc_flag__Wnonnull
8739		if eval \${$cacheid+:} false; then :
8740  $as_echo_n "(cached) " >&6
8741else
8742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743/* end confdefs.h.  */
8744int i;
8745int
8746main ()
8747{
8748
8749  ;
8750  return 0;
8751}
8752_ACEOF
8753if ac_fn_c_try_link "$LINENO"; then :
8754  eval $cacheid=yes
8755else
8756  eval $cacheid=no
8757fi
8758rm -f core conftest.err conftest.$ac_objext \
8759    conftest$ac_exeext conftest.$ac_ext
8760fi
8761
8762
8763		CFLAGS="$xorg_testset_save_CFLAGS"
8764
8765		eval supported=\$$cacheid
8766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8767$as_echo "$supported" >&6; }
8768		if test "$supported" = "yes" ; then
8769			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8770			found="yes"
8771		fi
8772	fi
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788xorg_testset_save_CFLAGS="$CFLAGS"
8789
8790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8792	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8793$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8794if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8795  $as_echo_n "(cached) " >&6
8796else
8797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798/* end confdefs.h.  */
8799int i;
8800_ACEOF
8801if ac_fn_c_try_compile "$LINENO"; then :
8802  xorg_cv_cc_flag_unknown_warning_option=yes
8803else
8804  xorg_cv_cc_flag_unknown_warning_option=no
8805fi
8806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807fi
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8809$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8810	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8811	CFLAGS="$xorg_testset_save_CFLAGS"
8812fi
8813
8814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8815	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8817	fi
8818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8820$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8821if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8822  $as_echo_n "(cached) " >&6
8823else
8824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825/* end confdefs.h.  */
8826int i;
8827_ACEOF
8828if ac_fn_c_try_compile "$LINENO"; then :
8829  xorg_cv_cc_flag_unused_command_line_argument=yes
8830else
8831  xorg_cv_cc_flag_unused_command_line_argument=no
8832fi
8833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834fi
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8836$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8837	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8838	CFLAGS="$xorg_testset_save_CFLAGS"
8839fi
8840
8841found="no"
8842
8843	if test $found = "no" ; then
8844		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8846		fi
8847
8848		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8850		fi
8851
8852		CFLAGS="$CFLAGS -Winit-self"
8853
8854		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8855$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8856		cacheid=xorg_cv_cc_flag__Winit_self
8857		if eval \${$cacheid+:} false; then :
8858  $as_echo_n "(cached) " >&6
8859else
8860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861/* end confdefs.h.  */
8862int i;
8863int
8864main ()
8865{
8866
8867  ;
8868  return 0;
8869}
8870_ACEOF
8871if ac_fn_c_try_link "$LINENO"; then :
8872  eval $cacheid=yes
8873else
8874  eval $cacheid=no
8875fi
8876rm -f core conftest.err conftest.$ac_objext \
8877    conftest$ac_exeext conftest.$ac_ext
8878fi
8879
8880
8881		CFLAGS="$xorg_testset_save_CFLAGS"
8882
8883		eval supported=\$$cacheid
8884		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8885$as_echo "$supported" >&6; }
8886		if test "$supported" = "yes" ; then
8887			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8888			found="yes"
8889		fi
8890	fi
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906xorg_testset_save_CFLAGS="$CFLAGS"
8907
8908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h.  */
8917int i;
8918_ACEOF
8919if ac_fn_c_try_compile "$LINENO"; then :
8920  xorg_cv_cc_flag_unknown_warning_option=yes
8921else
8922  xorg_cv_cc_flag_unknown_warning_option=no
8923fi
8924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925fi
8926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8928	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8929	CFLAGS="$xorg_testset_save_CFLAGS"
8930fi
8931
8932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8933	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8935	fi
8936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8940  $as_echo_n "(cached) " >&6
8941else
8942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943/* end confdefs.h.  */
8944int i;
8945_ACEOF
8946if ac_fn_c_try_compile "$LINENO"; then :
8947  xorg_cv_cc_flag_unused_command_line_argument=yes
8948else
8949  xorg_cv_cc_flag_unused_command_line_argument=no
8950fi
8951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952fi
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8956	CFLAGS="$xorg_testset_save_CFLAGS"
8957fi
8958
8959found="no"
8960
8961	if test $found = "no" ; then
8962		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8964		fi
8965
8966		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8968		fi
8969
8970		CFLAGS="$CFLAGS -Wmain"
8971
8972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8973$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8974		cacheid=xorg_cv_cc_flag__Wmain
8975		if eval \${$cacheid+:} false; then :
8976  $as_echo_n "(cached) " >&6
8977else
8978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979/* end confdefs.h.  */
8980int i;
8981int
8982main ()
8983{
8984
8985  ;
8986  return 0;
8987}
8988_ACEOF
8989if ac_fn_c_try_link "$LINENO"; then :
8990  eval $cacheid=yes
8991else
8992  eval $cacheid=no
8993fi
8994rm -f core conftest.err conftest.$ac_objext \
8995    conftest$ac_exeext conftest.$ac_ext
8996fi
8997
8998
8999		CFLAGS="$xorg_testset_save_CFLAGS"
9000
9001		eval supported=\$$cacheid
9002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9003$as_echo "$supported" >&6; }
9004		if test "$supported" = "yes" ; then
9005			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9006			found="yes"
9007		fi
9008	fi
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024xorg_testset_save_CFLAGS="$CFLAGS"
9025
9026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9031  $as_echo_n "(cached) " >&6
9032else
9033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034/* end confdefs.h.  */
9035int i;
9036_ACEOF
9037if ac_fn_c_try_compile "$LINENO"; then :
9038  xorg_cv_cc_flag_unknown_warning_option=yes
9039else
9040  xorg_cv_cc_flag_unknown_warning_option=no
9041fi
9042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043fi
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9047	CFLAGS="$xorg_testset_save_CFLAGS"
9048fi
9049
9050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9053	fi
9054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9058  $as_echo_n "(cached) " >&6
9059else
9060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061/* end confdefs.h.  */
9062int i;
9063_ACEOF
9064if ac_fn_c_try_compile "$LINENO"; then :
9065  xorg_cv_cc_flag_unused_command_line_argument=yes
9066else
9067  xorg_cv_cc_flag_unused_command_line_argument=no
9068fi
9069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9074	CFLAGS="$xorg_testset_save_CFLAGS"
9075fi
9076
9077found="no"
9078
9079	if test $found = "no" ; then
9080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9082		fi
9083
9084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9086		fi
9087
9088		CFLAGS="$CFLAGS -Wmissing-braces"
9089
9090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9091$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9092		cacheid=xorg_cv_cc_flag__Wmissing_braces
9093		if eval \${$cacheid+:} false; then :
9094  $as_echo_n "(cached) " >&6
9095else
9096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097/* end confdefs.h.  */
9098int i;
9099int
9100main ()
9101{
9102
9103  ;
9104  return 0;
9105}
9106_ACEOF
9107if ac_fn_c_try_link "$LINENO"; then :
9108  eval $cacheid=yes
9109else
9110  eval $cacheid=no
9111fi
9112rm -f core conftest.err conftest.$ac_objext \
9113    conftest$ac_exeext conftest.$ac_ext
9114fi
9115
9116
9117		CFLAGS="$xorg_testset_save_CFLAGS"
9118
9119		eval supported=\$$cacheid
9120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9121$as_echo "$supported" >&6; }
9122		if test "$supported" = "yes" ; then
9123			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9124			found="yes"
9125		fi
9126	fi
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142xorg_testset_save_CFLAGS="$CFLAGS"
9143
9144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9149  $as_echo_n "(cached) " >&6
9150else
9151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152/* end confdefs.h.  */
9153int i;
9154_ACEOF
9155if ac_fn_c_try_compile "$LINENO"; then :
9156  xorg_cv_cc_flag_unknown_warning_option=yes
9157else
9158  xorg_cv_cc_flag_unknown_warning_option=no
9159fi
9160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161fi
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9165	CFLAGS="$xorg_testset_save_CFLAGS"
9166fi
9167
9168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9171	fi
9172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9176  $as_echo_n "(cached) " >&6
9177else
9178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179/* end confdefs.h.  */
9180int i;
9181_ACEOF
9182if ac_fn_c_try_compile "$LINENO"; then :
9183  xorg_cv_cc_flag_unused_command_line_argument=yes
9184else
9185  xorg_cv_cc_flag_unused_command_line_argument=no
9186fi
9187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188fi
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9192	CFLAGS="$xorg_testset_save_CFLAGS"
9193fi
9194
9195found="no"
9196
9197	if test $found = "no" ; then
9198		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9200		fi
9201
9202		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9204		fi
9205
9206		CFLAGS="$CFLAGS -Wsequence-point"
9207
9208		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9209$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9210		cacheid=xorg_cv_cc_flag__Wsequence_point
9211		if eval \${$cacheid+:} false; then :
9212  $as_echo_n "(cached) " >&6
9213else
9214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215/* end confdefs.h.  */
9216int i;
9217int
9218main ()
9219{
9220
9221  ;
9222  return 0;
9223}
9224_ACEOF
9225if ac_fn_c_try_link "$LINENO"; then :
9226  eval $cacheid=yes
9227else
9228  eval $cacheid=no
9229fi
9230rm -f core conftest.err conftest.$ac_objext \
9231    conftest$ac_exeext conftest.$ac_ext
9232fi
9233
9234
9235		CFLAGS="$xorg_testset_save_CFLAGS"
9236
9237		eval supported=\$$cacheid
9238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9239$as_echo "$supported" >&6; }
9240		if test "$supported" = "yes" ; then
9241			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9242			found="yes"
9243		fi
9244	fi
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260xorg_testset_save_CFLAGS="$CFLAGS"
9261
9262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9267  $as_echo_n "(cached) " >&6
9268else
9269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270/* end confdefs.h.  */
9271int i;
9272_ACEOF
9273if ac_fn_c_try_compile "$LINENO"; then :
9274  xorg_cv_cc_flag_unknown_warning_option=yes
9275else
9276  xorg_cv_cc_flag_unknown_warning_option=no
9277fi
9278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279fi
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9283	CFLAGS="$xorg_testset_save_CFLAGS"
9284fi
9285
9286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9289	fi
9290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9294  $as_echo_n "(cached) " >&6
9295else
9296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297/* end confdefs.h.  */
9298int i;
9299_ACEOF
9300if ac_fn_c_try_compile "$LINENO"; then :
9301  xorg_cv_cc_flag_unused_command_line_argument=yes
9302else
9303  xorg_cv_cc_flag_unused_command_line_argument=no
9304fi
9305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306fi
9307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9310	CFLAGS="$xorg_testset_save_CFLAGS"
9311fi
9312
9313found="no"
9314
9315	if test $found = "no" ; then
9316		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9318		fi
9319
9320		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9322		fi
9323
9324		CFLAGS="$CFLAGS -Wreturn-type"
9325
9326		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9327$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9328		cacheid=xorg_cv_cc_flag__Wreturn_type
9329		if eval \${$cacheid+:} false; then :
9330  $as_echo_n "(cached) " >&6
9331else
9332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h.  */
9334int i;
9335int
9336main ()
9337{
9338
9339  ;
9340  return 0;
9341}
9342_ACEOF
9343if ac_fn_c_try_link "$LINENO"; then :
9344  eval $cacheid=yes
9345else
9346  eval $cacheid=no
9347fi
9348rm -f core conftest.err conftest.$ac_objext \
9349    conftest$ac_exeext conftest.$ac_ext
9350fi
9351
9352
9353		CFLAGS="$xorg_testset_save_CFLAGS"
9354
9355		eval supported=\$$cacheid
9356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9357$as_echo "$supported" >&6; }
9358		if test "$supported" = "yes" ; then
9359			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9360			found="yes"
9361		fi
9362	fi
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378xorg_testset_save_CFLAGS="$CFLAGS"
9379
9380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9381	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9385  $as_echo_n "(cached) " >&6
9386else
9387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388/* end confdefs.h.  */
9389int i;
9390_ACEOF
9391if ac_fn_c_try_compile "$LINENO"; then :
9392  xorg_cv_cc_flag_unknown_warning_option=yes
9393else
9394  xorg_cv_cc_flag_unknown_warning_option=no
9395fi
9396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397fi
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9401	CFLAGS="$xorg_testset_save_CFLAGS"
9402fi
9403
9404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9407	fi
9408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9412  $as_echo_n "(cached) " >&6
9413else
9414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415/* end confdefs.h.  */
9416int i;
9417_ACEOF
9418if ac_fn_c_try_compile "$LINENO"; then :
9419  xorg_cv_cc_flag_unused_command_line_argument=yes
9420else
9421  xorg_cv_cc_flag_unused_command_line_argument=no
9422fi
9423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424fi
9425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9428	CFLAGS="$xorg_testset_save_CFLAGS"
9429fi
9430
9431found="no"
9432
9433	if test $found = "no" ; then
9434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9436		fi
9437
9438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9440		fi
9441
9442		CFLAGS="$CFLAGS -Wtrigraphs"
9443
9444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9445$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9446		cacheid=xorg_cv_cc_flag__Wtrigraphs
9447		if eval \${$cacheid+:} false; then :
9448  $as_echo_n "(cached) " >&6
9449else
9450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451/* end confdefs.h.  */
9452int i;
9453int
9454main ()
9455{
9456
9457  ;
9458  return 0;
9459}
9460_ACEOF
9461if ac_fn_c_try_link "$LINENO"; then :
9462  eval $cacheid=yes
9463else
9464  eval $cacheid=no
9465fi
9466rm -f core conftest.err conftest.$ac_objext \
9467    conftest$ac_exeext conftest.$ac_ext
9468fi
9469
9470
9471		CFLAGS="$xorg_testset_save_CFLAGS"
9472
9473		eval supported=\$$cacheid
9474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9475$as_echo "$supported" >&6; }
9476		if test "$supported" = "yes" ; then
9477			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9478			found="yes"
9479		fi
9480	fi
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496xorg_testset_save_CFLAGS="$CFLAGS"
9497
9498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9503  $as_echo_n "(cached) " >&6
9504else
9505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506/* end confdefs.h.  */
9507int i;
9508_ACEOF
9509if ac_fn_c_try_compile "$LINENO"; then :
9510  xorg_cv_cc_flag_unknown_warning_option=yes
9511else
9512  xorg_cv_cc_flag_unknown_warning_option=no
9513fi
9514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9515fi
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9519	CFLAGS="$xorg_testset_save_CFLAGS"
9520fi
9521
9522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9525	fi
9526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9530  $as_echo_n "(cached) " >&6
9531else
9532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533/* end confdefs.h.  */
9534int i;
9535_ACEOF
9536if ac_fn_c_try_compile "$LINENO"; then :
9537  xorg_cv_cc_flag_unused_command_line_argument=yes
9538else
9539  xorg_cv_cc_flag_unused_command_line_argument=no
9540fi
9541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542fi
9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9546	CFLAGS="$xorg_testset_save_CFLAGS"
9547fi
9548
9549found="no"
9550
9551	if test $found = "no" ; then
9552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9554		fi
9555
9556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9558		fi
9559
9560		CFLAGS="$CFLAGS -Warray-bounds"
9561
9562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9563$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9564		cacheid=xorg_cv_cc_flag__Warray_bounds
9565		if eval \${$cacheid+:} false; then :
9566  $as_echo_n "(cached) " >&6
9567else
9568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569/* end confdefs.h.  */
9570int i;
9571int
9572main ()
9573{
9574
9575  ;
9576  return 0;
9577}
9578_ACEOF
9579if ac_fn_c_try_link "$LINENO"; then :
9580  eval $cacheid=yes
9581else
9582  eval $cacheid=no
9583fi
9584rm -f core conftest.err conftest.$ac_objext \
9585    conftest$ac_exeext conftest.$ac_ext
9586fi
9587
9588
9589		CFLAGS="$xorg_testset_save_CFLAGS"
9590
9591		eval supported=\$$cacheid
9592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9593$as_echo "$supported" >&6; }
9594		if test "$supported" = "yes" ; then
9595			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9596			found="yes"
9597		fi
9598	fi
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614xorg_testset_save_CFLAGS="$CFLAGS"
9615
9616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9621  $as_echo_n "(cached) " >&6
9622else
9623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624/* end confdefs.h.  */
9625int i;
9626_ACEOF
9627if ac_fn_c_try_compile "$LINENO"; then :
9628  xorg_cv_cc_flag_unknown_warning_option=yes
9629else
9630  xorg_cv_cc_flag_unknown_warning_option=no
9631fi
9632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633fi
9634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9637	CFLAGS="$xorg_testset_save_CFLAGS"
9638fi
9639
9640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9643	fi
9644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9648  $as_echo_n "(cached) " >&6
9649else
9650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651/* end confdefs.h.  */
9652int i;
9653_ACEOF
9654if ac_fn_c_try_compile "$LINENO"; then :
9655  xorg_cv_cc_flag_unused_command_line_argument=yes
9656else
9657  xorg_cv_cc_flag_unused_command_line_argument=no
9658fi
9659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660fi
9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9664	CFLAGS="$xorg_testset_save_CFLAGS"
9665fi
9666
9667found="no"
9668
9669	if test $found = "no" ; then
9670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672		fi
9673
9674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676		fi
9677
9678		CFLAGS="$CFLAGS -Wwrite-strings"
9679
9680		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9681$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9682		cacheid=xorg_cv_cc_flag__Wwrite_strings
9683		if eval \${$cacheid+:} false; then :
9684  $as_echo_n "(cached) " >&6
9685else
9686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687/* end confdefs.h.  */
9688int i;
9689int
9690main ()
9691{
9692
9693  ;
9694  return 0;
9695}
9696_ACEOF
9697if ac_fn_c_try_link "$LINENO"; then :
9698  eval $cacheid=yes
9699else
9700  eval $cacheid=no
9701fi
9702rm -f core conftest.err conftest.$ac_objext \
9703    conftest$ac_exeext conftest.$ac_ext
9704fi
9705
9706
9707		CFLAGS="$xorg_testset_save_CFLAGS"
9708
9709		eval supported=\$$cacheid
9710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9711$as_echo "$supported" >&6; }
9712		if test "$supported" = "yes" ; then
9713			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9714			found="yes"
9715		fi
9716	fi
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732xorg_testset_save_CFLAGS="$CFLAGS"
9733
9734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9739  $as_echo_n "(cached) " >&6
9740else
9741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h.  */
9743int i;
9744_ACEOF
9745if ac_fn_c_try_compile "$LINENO"; then :
9746  xorg_cv_cc_flag_unknown_warning_option=yes
9747else
9748  xorg_cv_cc_flag_unknown_warning_option=no
9749fi
9750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751fi
9752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9754	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9755	CFLAGS="$xorg_testset_save_CFLAGS"
9756fi
9757
9758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9759	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9760		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9761	fi
9762	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9766  $as_echo_n "(cached) " >&6
9767else
9768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769/* end confdefs.h.  */
9770int i;
9771_ACEOF
9772if ac_fn_c_try_compile "$LINENO"; then :
9773  xorg_cv_cc_flag_unused_command_line_argument=yes
9774else
9775  xorg_cv_cc_flag_unused_command_line_argument=no
9776fi
9777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778fi
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9781	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9782	CFLAGS="$xorg_testset_save_CFLAGS"
9783fi
9784
9785found="no"
9786
9787	if test $found = "no" ; then
9788		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9789			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9790		fi
9791
9792		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9793			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9794		fi
9795
9796		CFLAGS="$CFLAGS -Waddress"
9797
9798		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9799$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9800		cacheid=xorg_cv_cc_flag__Waddress
9801		if eval \${$cacheid+:} false; then :
9802  $as_echo_n "(cached) " >&6
9803else
9804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805/* end confdefs.h.  */
9806int i;
9807int
9808main ()
9809{
9810
9811  ;
9812  return 0;
9813}
9814_ACEOF
9815if ac_fn_c_try_link "$LINENO"; then :
9816  eval $cacheid=yes
9817else
9818  eval $cacheid=no
9819fi
9820rm -f core conftest.err conftest.$ac_objext \
9821    conftest$ac_exeext conftest.$ac_ext
9822fi
9823
9824
9825		CFLAGS="$xorg_testset_save_CFLAGS"
9826
9827		eval supported=\$$cacheid
9828		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9829$as_echo "$supported" >&6; }
9830		if test "$supported" = "yes" ; then
9831			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9832			found="yes"
9833		fi
9834	fi
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850xorg_testset_save_CFLAGS="$CFLAGS"
9851
9852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9853	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9855$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9856if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9857  $as_echo_n "(cached) " >&6
9858else
9859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860/* end confdefs.h.  */
9861int i;
9862_ACEOF
9863if ac_fn_c_try_compile "$LINENO"; then :
9864  xorg_cv_cc_flag_unknown_warning_option=yes
9865else
9866  xorg_cv_cc_flag_unknown_warning_option=no
9867fi
9868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869fi
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9871$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9872	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9873	CFLAGS="$xorg_testset_save_CFLAGS"
9874fi
9875
9876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9877	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9878		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9879	fi
9880	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9882$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9883if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9884  $as_echo_n "(cached) " >&6
9885else
9886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887/* end confdefs.h.  */
9888int i;
9889_ACEOF
9890if ac_fn_c_try_compile "$LINENO"; then :
9891  xorg_cv_cc_flag_unused_command_line_argument=yes
9892else
9893  xorg_cv_cc_flag_unused_command_line_argument=no
9894fi
9895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896fi
9897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9898$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9899	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9900	CFLAGS="$xorg_testset_save_CFLAGS"
9901fi
9902
9903found="no"
9904
9905	if test $found = "no" ; then
9906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9908		fi
9909
9910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9912		fi
9913
9914		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9915
9916		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9917$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9918		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9919		if eval \${$cacheid+:} false; then :
9920  $as_echo_n "(cached) " >&6
9921else
9922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923/* end confdefs.h.  */
9924int i;
9925int
9926main ()
9927{
9928
9929  ;
9930  return 0;
9931}
9932_ACEOF
9933if ac_fn_c_try_link "$LINENO"; then :
9934  eval $cacheid=yes
9935else
9936  eval $cacheid=no
9937fi
9938rm -f core conftest.err conftest.$ac_objext \
9939    conftest$ac_exeext conftest.$ac_ext
9940fi
9941
9942
9943		CFLAGS="$xorg_testset_save_CFLAGS"
9944
9945		eval supported=\$$cacheid
9946		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9947$as_echo "$supported" >&6; }
9948		if test "$supported" = "yes" ; then
9949			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9950			found="yes"
9951		fi
9952	fi
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968xorg_testset_save_CFLAGS="$CFLAGS"
9969
9970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9971	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9975  $as_echo_n "(cached) " >&6
9976else
9977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h.  */
9979int i;
9980_ACEOF
9981if ac_fn_c_try_compile "$LINENO"; then :
9982  xorg_cv_cc_flag_unknown_warning_option=yes
9983else
9984  xorg_cv_cc_flag_unknown_warning_option=no
9985fi
9986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987fi
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9991	CFLAGS="$xorg_testset_save_CFLAGS"
9992fi
9993
9994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9997	fi
9998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10002  $as_echo_n "(cached) " >&6
10003else
10004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005/* end confdefs.h.  */
10006int i;
10007_ACEOF
10008if ac_fn_c_try_compile "$LINENO"; then :
10009  xorg_cv_cc_flag_unused_command_line_argument=yes
10010else
10011  xorg_cv_cc_flag_unused_command_line_argument=no
10012fi
10013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014fi
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10017	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10018	CFLAGS="$xorg_testset_save_CFLAGS"
10019fi
10020
10021found="no"
10022
10023	if test $found = "no" ; then
10024		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10025			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10026		fi
10027
10028		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10029			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10030		fi
10031
10032		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10033
10034		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10035$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10036		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10037		if eval \${$cacheid+:} false; then :
10038  $as_echo_n "(cached) " >&6
10039else
10040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h.  */
10042int i;
10043int
10044main ()
10045{
10046
10047  ;
10048  return 0;
10049}
10050_ACEOF
10051if ac_fn_c_try_link "$LINENO"; then :
10052  eval $cacheid=yes
10053else
10054  eval $cacheid=no
10055fi
10056rm -f core conftest.err conftest.$ac_objext \
10057    conftest$ac_exeext conftest.$ac_ext
10058fi
10059
10060
10061		CFLAGS="$xorg_testset_save_CFLAGS"
10062
10063		eval supported=\$$cacheid
10064		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10065$as_echo "$supported" >&6; }
10066		if test "$supported" = "yes" ; then
10067			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10068			found="yes"
10069		fi
10070	fi
10071
10072
10073fi
10074
10075
10076
10077
10078
10079
10080
10081		CWARNFLAGS="$BASE_CFLAGS"
10082		if  test "x$GCC" = xyes ; then
10083		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10084		fi
10085
10086
10087
10088
10089
10090
10091
10092
10093# Check whether --enable-strict-compilation was given.
10094if test "${enable_strict_compilation+set}" = set; then :
10095  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10096else
10097  STRICT_COMPILE=no
10098fi
10099
10100
10101
10102
10103
10104
10105STRICT_CFLAGS=""
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119xorg_testset_save_CFLAGS="$CFLAGS"
10120
10121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10122	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10124$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10125if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10126  $as_echo_n "(cached) " >&6
10127else
10128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129/* end confdefs.h.  */
10130int i;
10131_ACEOF
10132if ac_fn_c_try_compile "$LINENO"; then :
10133  xorg_cv_cc_flag_unknown_warning_option=yes
10134else
10135  xorg_cv_cc_flag_unknown_warning_option=no
10136fi
10137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10138fi
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10140$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10141	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10142	CFLAGS="$xorg_testset_save_CFLAGS"
10143fi
10144
10145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10146	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10148	fi
10149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10152if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10153  $as_echo_n "(cached) " >&6
10154else
10155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156/* end confdefs.h.  */
10157int i;
10158_ACEOF
10159if ac_fn_c_try_compile "$LINENO"; then :
10160  xorg_cv_cc_flag_unused_command_line_argument=yes
10161else
10162  xorg_cv_cc_flag_unused_command_line_argument=no
10163fi
10164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165fi
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10167$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10168	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10169	CFLAGS="$xorg_testset_save_CFLAGS"
10170fi
10171
10172found="no"
10173
10174	if test $found = "no" ; then
10175		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10176			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10177		fi
10178
10179		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10180			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10181		fi
10182
10183		CFLAGS="$CFLAGS -pedantic"
10184
10185		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10186$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10187		cacheid=xorg_cv_cc_flag__pedantic
10188		if eval \${$cacheid+:} false; then :
10189  $as_echo_n "(cached) " >&6
10190else
10191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192/* end confdefs.h.  */
10193int i;
10194int
10195main ()
10196{
10197
10198  ;
10199  return 0;
10200}
10201_ACEOF
10202if ac_fn_c_try_link "$LINENO"; then :
10203  eval $cacheid=yes
10204else
10205  eval $cacheid=no
10206fi
10207rm -f core conftest.err conftest.$ac_objext \
10208    conftest$ac_exeext conftest.$ac_ext
10209fi
10210
10211
10212		CFLAGS="$xorg_testset_save_CFLAGS"
10213
10214		eval supported=\$$cacheid
10215		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10216$as_echo "$supported" >&6; }
10217		if test "$supported" = "yes" ; then
10218			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10219			found="yes"
10220		fi
10221	fi
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237xorg_testset_save_CFLAGS="$CFLAGS"
10238
10239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10242$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10243if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10244  $as_echo_n "(cached) " >&6
10245else
10246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247/* end confdefs.h.  */
10248int i;
10249_ACEOF
10250if ac_fn_c_try_compile "$LINENO"; then :
10251  xorg_cv_cc_flag_unknown_warning_option=yes
10252else
10253  xorg_cv_cc_flag_unknown_warning_option=no
10254fi
10255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10256fi
10257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10258$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10260	CFLAGS="$xorg_testset_save_CFLAGS"
10261fi
10262
10263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266	fi
10267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10269$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10270if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10271  $as_echo_n "(cached) " >&6
10272else
10273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274/* end confdefs.h.  */
10275int i;
10276_ACEOF
10277if ac_fn_c_try_compile "$LINENO"; then :
10278  xorg_cv_cc_flag_unused_command_line_argument=yes
10279else
10280  xorg_cv_cc_flag_unused_command_line_argument=no
10281fi
10282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10283fi
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10285$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10287	CFLAGS="$xorg_testset_save_CFLAGS"
10288fi
10289
10290found="no"
10291
10292	if test $found = "no" ; then
10293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10295		fi
10296
10297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10299		fi
10300
10301		CFLAGS="$CFLAGS -Werror"
10302
10303		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10304$as_echo_n "checking if $CC supports -Werror... " >&6; }
10305		cacheid=xorg_cv_cc_flag__Werror
10306		if eval \${$cacheid+:} false; then :
10307  $as_echo_n "(cached) " >&6
10308else
10309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310/* end confdefs.h.  */
10311int i;
10312int
10313main ()
10314{
10315
10316  ;
10317  return 0;
10318}
10319_ACEOF
10320if ac_fn_c_try_link "$LINENO"; then :
10321  eval $cacheid=yes
10322else
10323  eval $cacheid=no
10324fi
10325rm -f core conftest.err conftest.$ac_objext \
10326    conftest$ac_exeext conftest.$ac_ext
10327fi
10328
10329
10330		CFLAGS="$xorg_testset_save_CFLAGS"
10331
10332		eval supported=\$$cacheid
10333		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10334$as_echo "$supported" >&6; }
10335		if test "$supported" = "yes" ; then
10336			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10337			found="yes"
10338		fi
10339	fi
10340
10341	if test $found = "no" ; then
10342		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10343			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10344		fi
10345
10346		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10347			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10348		fi
10349
10350		CFLAGS="$CFLAGS -errwarn"
10351
10352		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10353$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10354		cacheid=xorg_cv_cc_flag__errwarn
10355		if eval \${$cacheid+:} false; then :
10356  $as_echo_n "(cached) " >&6
10357else
10358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359/* end confdefs.h.  */
10360int i;
10361int
10362main ()
10363{
10364
10365  ;
10366  return 0;
10367}
10368_ACEOF
10369if ac_fn_c_try_link "$LINENO"; then :
10370  eval $cacheid=yes
10371else
10372  eval $cacheid=no
10373fi
10374rm -f core conftest.err conftest.$ac_objext \
10375    conftest$ac_exeext conftest.$ac_ext
10376fi
10377
10378
10379		CFLAGS="$xorg_testset_save_CFLAGS"
10380
10381		eval supported=\$$cacheid
10382		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10383$as_echo "$supported" >&6; }
10384		if test "$supported" = "yes" ; then
10385			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10386			found="yes"
10387		fi
10388	fi
10389
10390
10391
10392# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10393# activate it with -Werror, so we add it here explicitly.
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407xorg_testset_save_CFLAGS="$CFLAGS"
10408
10409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10410	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10412$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10413if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10414  $as_echo_n "(cached) " >&6
10415else
10416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417/* end confdefs.h.  */
10418int i;
10419_ACEOF
10420if ac_fn_c_try_compile "$LINENO"; then :
10421  xorg_cv_cc_flag_unknown_warning_option=yes
10422else
10423  xorg_cv_cc_flag_unknown_warning_option=no
10424fi
10425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426fi
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10428$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10429	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10430	CFLAGS="$xorg_testset_save_CFLAGS"
10431fi
10432
10433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10434	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10435		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10436	fi
10437	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10439$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10440if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10441  $as_echo_n "(cached) " >&6
10442else
10443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444/* end confdefs.h.  */
10445int i;
10446_ACEOF
10447if ac_fn_c_try_compile "$LINENO"; then :
10448  xorg_cv_cc_flag_unused_command_line_argument=yes
10449else
10450  xorg_cv_cc_flag_unused_command_line_argument=no
10451fi
10452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10453fi
10454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10455$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10456	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10457	CFLAGS="$xorg_testset_save_CFLAGS"
10458fi
10459
10460found="no"
10461
10462	if test $found = "no" ; then
10463		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10464			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10465		fi
10466
10467		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10468			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10469		fi
10470
10471		CFLAGS="$CFLAGS -Werror=attributes"
10472
10473		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10474$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10475		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10476		if eval \${$cacheid+:} false; then :
10477  $as_echo_n "(cached) " >&6
10478else
10479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h.  */
10481int i;
10482int
10483main ()
10484{
10485
10486  ;
10487  return 0;
10488}
10489_ACEOF
10490if ac_fn_c_try_link "$LINENO"; then :
10491  eval $cacheid=yes
10492else
10493  eval $cacheid=no
10494fi
10495rm -f core conftest.err conftest.$ac_objext \
10496    conftest$ac_exeext conftest.$ac_ext
10497fi
10498
10499
10500		CFLAGS="$xorg_testset_save_CFLAGS"
10501
10502		eval supported=\$$cacheid
10503		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10504$as_echo "$supported" >&6; }
10505		if test "$supported" = "yes" ; then
10506			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10507			found="yes"
10508		fi
10509	fi
10510
10511
10512
10513if test "x$STRICT_COMPILE" = "xyes"; then
10514    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10515    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10516fi
10517
10518
10519
10520
10521
10522
10523cat >>confdefs.h <<_ACEOF
10524#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10525_ACEOF
10526
10527	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10528	if test "x$PVM" = "x"; then
10529		PVM="0"
10530	fi
10531
10532cat >>confdefs.h <<_ACEOF
10533#define PACKAGE_VERSION_MINOR $PVM
10534_ACEOF
10535
10536	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10537	if test "x$PVP" = "x"; then
10538		PVP="0"
10539	fi
10540
10541cat >>confdefs.h <<_ACEOF
10542#define PACKAGE_VERSION_PATCHLEVEL $PVP
10543_ACEOF
10544
10545
10546
10547CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10548mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10549|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10550echo 'git directory not found: installing possibly empty changelog.' >&2)"
10551
10552
10553
10554
10555macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10556INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10557mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10558|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10559echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10560
10561
10562
10563
10564
10565
10566if test x$APP_MAN_SUFFIX = x    ; then
10567    APP_MAN_SUFFIX=1
10568fi
10569if test x$APP_MAN_DIR = x    ; then
10570    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10571fi
10572
10573if test x$LIB_MAN_SUFFIX = x    ; then
10574    LIB_MAN_SUFFIX=3
10575fi
10576if test x$LIB_MAN_DIR = x    ; then
10577    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10578fi
10579
10580if test x$FILE_MAN_SUFFIX = x    ; then
10581    case $host_os in
10582	solaris*)	FILE_MAN_SUFFIX=4  ;;
10583	*)		FILE_MAN_SUFFIX=5  ;;
10584    esac
10585fi
10586if test x$FILE_MAN_DIR = x    ; then
10587    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10588fi
10589
10590if test x$MISC_MAN_SUFFIX = x    ; then
10591    case $host_os in
10592	solaris*)	MISC_MAN_SUFFIX=5  ;;
10593	*)		MISC_MAN_SUFFIX=7  ;;
10594    esac
10595fi
10596if test x$MISC_MAN_DIR = x    ; then
10597    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10598fi
10599
10600if test x$DRIVER_MAN_SUFFIX = x    ; then
10601    case $host_os in
10602	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10603	*)		DRIVER_MAN_SUFFIX=4  ;;
10604    esac
10605fi
10606if test x$DRIVER_MAN_DIR = x    ; then
10607    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10608fi
10609
10610if test x$ADMIN_MAN_SUFFIX = x    ; then
10611    case $host_os in
10612	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10613	*)		ADMIN_MAN_SUFFIX=8  ;;
10614    esac
10615fi
10616if test x$ADMIN_MAN_DIR = x    ; then
10617    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10618fi
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634XORG_MAN_PAGE="X Version 11"
10635
10636MAN_SUBSTS="\
10637	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10638	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10639	-e 's|__xservername__|Xorg|g' \
10640	-e 's|__xconfigfile__|xorg.conf|g' \
10641	-e 's|__projectroot__|\$(prefix)|g' \
10642	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10643	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10644	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10645	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10646	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10647	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10648	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10649
10650
10651
10652# Check whether --enable-silent-rules was given.
10653if test "${enable_silent_rules+set}" = set; then :
10654  enableval=$enable_silent_rules;
10655fi
10656
10657case $enable_silent_rules in # (((
10658  yes) AM_DEFAULT_VERBOSITY=0;;
10659   no) AM_DEFAULT_VERBOSITY=1;;
10660    *) AM_DEFAULT_VERBOSITY=0;;
10661esac
10662am_make=${MAKE-make}
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10664$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10665if ${am_cv_make_support_nested_variables+:} false; then :
10666  $as_echo_n "(cached) " >&6
10667else
10668  if $as_echo 'TRUE=$(BAR$(V))
10669BAR0=false
10670BAR1=true
10671V=1
10672am__doit:
10673	@$(TRUE)
10674.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10675  am_cv_make_support_nested_variables=yes
10676else
10677  am_cv_make_support_nested_variables=no
10678fi
10679fi
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10681$as_echo "$am_cv_make_support_nested_variables" >&6; }
10682if test $am_cv_make_support_nested_variables = yes; then
10683    AM_V='$(V)'
10684  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10685else
10686  AM_V=$AM_DEFAULT_VERBOSITY
10687  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10688fi
10689AM_BACKSLASH='\'
10690
10691
10692
10693
10694
10695for ac_prog in cpp
10696do
10697  # Extract the first word of "$ac_prog", so it can be a program name with args.
10698set dummy $ac_prog; ac_word=$2
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700$as_echo_n "checking for $ac_word... " >&6; }
10701if ${ac_cv_path_RAWCPP+:} false; then :
10702  $as_echo_n "(cached) " >&6
10703else
10704  case $RAWCPP in
10705  [\\/]* | ?:[\\/]*)
10706  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
10707  ;;
10708  *)
10709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
10711for as_dir in $as_dummy
10712do
10713  IFS=$as_save_IFS
10714  test -z "$as_dir" && as_dir=.
10715    for ac_exec_ext in '' $ac_executable_extensions; do
10716  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10717    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
10718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719    break 2
10720  fi
10721done
10722  done
10723IFS=$as_save_IFS
10724
10725  ;;
10726esac
10727fi
10728RAWCPP=$ac_cv_path_RAWCPP
10729if test -n "$RAWCPP"; then
10730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
10731$as_echo "$RAWCPP" >&6; }
10732else
10733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734$as_echo "no" >&6; }
10735fi
10736
10737
10738  test -n "$RAWCPP" && break
10739done
10740test -n "$RAWCPP" || RAWCPP="${CPP}"
10741
10742
10743# Check for flag to avoid builtin definitions - assumes unix is predefined,
10744# which is not the best choice for supporting other OS'es, but covers most
10745# of the ones we need for now.
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
10747$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
10748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749/* end confdefs.h.  */
10750Does cpp redefine unix ?
10751_ACEOF
10752if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10753	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754$as_echo "no" >&6; }
10755else
10756	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10757		RAWCPPFLAGS=-undef
10758		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10759$as_echo "yes" >&6; }
10760	# under Cygwin unix is still defined even with -undef
10761	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10762		RAWCPPFLAGS="-undef -ansi"
10763		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
10764$as_echo "yes, with -ansi" >&6; }
10765	else
10766		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
10767	fi
10768fi
10769rm -f conftest.$ac_ext
10770
10771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
10772$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
10773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774/* end confdefs.h.  */
10775Does cpp preserve   "whitespace"?
10776_ACEOF
10777if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
10778	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779$as_echo "no" >&6; }
10780else
10781	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
10782		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
10783		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10784$as_echo "yes" >&6; }
10785	else
10786		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
10787	fi
10788fi
10789rm -f conftest.$ac_ext
10790
10791
10792
10793
10794# Build options
10795DEFAULT_XRDB=xrdb
10796DEFAULT_XMODMAP=xmodmap
10797DEFAULT_TWM=twm
10798DEFAULT_XCLOCK=xclock
10799DEFAULT_XTERM=xterm
10800# You always want to specify the full path to the X server
10801DEFAULT_XSERVER=${bindir}/X
10802DEFAULT_XAUTH=xauth
10803DEFAULT_XINIT=xinit
10804DEFAULT_XINITDIR=${sysconfdir}/X11/xinit
10805
10806
10807# Check whether --with-xrdb was given.
10808if test "${with_xrdb+set}" = set; then :
10809  withval=$with_xrdb; XRDB="$withval"
10810else
10811  XRDB="$DEFAULT_XRDB"
10812fi
10813
10814
10815
10816# Check whether --with-xmodmap was given.
10817if test "${with_xmodmap+set}" = set; then :
10818  withval=$with_xmodmap; XMODMAP="$withval"
10819else
10820  XMODMAP="$DEFAULT_XMODMAP"
10821fi
10822
10823
10824
10825# Check whether --with-twm was given.
10826if test "${with_twm+set}" = set; then :
10827  withval=$with_twm; TWM="$withval"
10828else
10829  TWM="$DEFAULT_TWM"
10830fi
10831
10832
10833
10834# Check whether --with-xclock was given.
10835if test "${with_xclock+set}" = set; then :
10836  withval=$with_xclock; XCLOCK="$withval"
10837else
10838  XCLOCK="$DEFAULT_XCLOCK"
10839fi
10840
10841
10842
10843# Check whether --with-xterm was given.
10844if test "${with_xterm+set}" = set; then :
10845  withval=$with_xterm; XTERM="$withval"
10846else
10847  XTERM="$DEFAULT_XTERM"
10848fi
10849
10850
10851
10852# Check whether --with-xserver was given.
10853if test "${with_xserver+set}" = set; then :
10854  withval=$with_xserver; XSERVER="$withval"
10855else
10856  XSERVER="$DEFAULT_XSERVER"
10857fi
10858
10859
10860
10861# Check whether --with-xauth was given.
10862if test "${with_xauth+set}" = set; then :
10863  withval=$with_xauth; XAUTH="$withval"
10864else
10865  XAUTH="$DEFAULT_XAUTH"
10866fi
10867
10868
10869
10870# Check whether --with-xinit was given.
10871if test "${with_xinit+set}" = set; then :
10872  withval=$with_xinit; XINIT="$withval"
10873else
10874  XINIT="$DEFAULT_XINIT"
10875fi
10876
10877
10878
10879# Check whether --with-xinitdir was given.
10880if test "${with_xinitdir+set}" = set; then :
10881  withval=$with_xinitdir; XINITDIR="$withval"
10882else
10883  XINITDIR="$DEFAULT_XINITDIR"
10884fi
10885
10886
10887
10888# Check whether --with-launchd was given.
10889if test "${with_launchd+set}" = set; then :
10890  withval=$with_launchd; LAUNCHD=$withval
10891else
10892  LAUNCHD=auto
10893fi
10894
10895
10896# Check whether --with-launchagents-dir was given.
10897if test "${with_launchagents_dir+set}" = set; then :
10898  withval=$with_launchagents_dir;  launchagentsdir="${withval}"
10899else
10900   launchagentsdir="/Library/LaunchAgents"
10901fi
10902
10903
10904# Check whether --with-launchagent-xserver was given.
10905if test "${with_launchagent_xserver+set}" = set; then :
10906  withval=$with_launchagent_xserver;  launchagentxserver="${withval}"
10907else
10908   launchagentxserver="no"
10909fi
10910
10911
10912# Check whether --with-launchdaemons-dir was given.
10913if test "${with_launchdaemons_dir+set}" = set; then :
10914  withval=$with_launchdaemons_dir;  launchdaemonsdir="${withval}"
10915else
10916   launchdaemonsdir="/Library/LaunchDaemons"
10917fi
10918
10919
10920# Check whether --with-launchd-id-prefix was given.
10921if test "${with_launchd_id_prefix+set}" = set; then :
10922  withval=$with_launchd_id_prefix;  bundleidprefix="${withval}"
10923else
10924   bundleidprefix="org.x"
10925fi
10926
10927
10928# Check whether --with-bundle-id-prefix was given.
10929if test "${with_bundle_id_prefix+set}" = set; then :
10930  withval=$with_bundle_id_prefix;  bundleidprefix="${withval}"
10931fi
10932
10933
10934if test "x$LAUNCHD" = "xauto"; then
10935	unset LAUNCHD
10936	# Extract the first word of "launchd", so it can be a program name with args.
10937set dummy launchd; ac_word=$2
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10939$as_echo_n "checking for $ac_word... " >&6; }
10940if ${ac_cv_prog_LAUNCHD+:} false; then :
10941  $as_echo_n "(cached) " >&6
10942else
10943  if test -n "$LAUNCHD"; then
10944  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
10945else
10946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947for as_dir in $PATH$PATH_SEPARATOR/sbin
10948do
10949  IFS=$as_save_IFS
10950  test -z "$as_dir" && as_dir=.
10951    for ac_exec_ext in '' $ac_executable_extensions; do
10952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10953    ac_cv_prog_LAUNCHD="yes"
10954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10955    break 2
10956  fi
10957done
10958  done
10959IFS=$as_save_IFS
10960
10961  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
10962fi
10963fi
10964LAUNCHD=$ac_cv_prog_LAUNCHD
10965if test -n "$LAUNCHD"; then
10966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
10967$as_echo "$LAUNCHD" >&6; }
10968else
10969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970$as_echo "no" >&6; }
10971fi
10972
10973
10974fi
10975
10976TIGER_LAUNCHD=no
10977if test "x$LAUNCHD" = "xyes" ; then
10978
10979$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
10980
10981	case $host_os in
10982		darwin8*)
10983			TIGER_LAUNCHD=yes
10984		;;
10985	esac
10986        ac_fn_c_check_func "$LINENO" "dispatch_async" "ac_cv_func_dispatch_async"
10987if test "x$ac_cv_func_dispatch_async" = xyes; then :
10988
10989$as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h
10990
10991fi
10992
10993fi
10994
10995
10996cat >>confdefs.h <<_ACEOF
10997#define BUNDLE_ID_PREFIX "$bundleidprefix"
10998_ACEOF
10999
11000
11001
11002
11003
11004 if test "x$LAUNCHD" = "xyes"; then
11005  LAUNCHD_TRUE=
11006  LAUNCHD_FALSE='#'
11007else
11008  LAUNCHD_TRUE='#'
11009  LAUNCHD_FALSE=
11010fi
11011
11012 if test "x$TIGER_LAUNCHD" = "xyes"; then
11013  TIGER_LAUNCHD_TRUE=
11014  TIGER_LAUNCHD_FALSE='#'
11015else
11016  TIGER_LAUNCHD_TRUE='#'
11017  TIGER_LAUNCHD_FALSE=
11018fi
11019
11020 if test "x$launchagentxserver" != "xno"; then
11021  LAUNCHAGENT_XSERVER_TRUE=
11022  LAUNCHAGENT_XSERVER_FALSE='#'
11023else
11024  LAUNCHAGENT_XSERVER_TRUE='#'
11025  LAUNCHAGENT_XSERVER_FALSE=
11026fi
11027
11028
11029# Checks for pkg-config packages
11030
11031pkg_failed=no
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5
11033$as_echo_n "checking for XINIT... " >&6; }
11034
11035if test -n "$XINIT_CFLAGS"; then
11036    pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
11037 elif test -n "$PKG_CONFIG"; then
11038    if test -n "$PKG_CONFIG" && \
11039    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11040  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11041  ac_status=$?
11042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11043  test $ac_status = 0; }; then
11044  pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
11045else
11046  pkg_failed=yes
11047fi
11048 else
11049    pkg_failed=untried
11050fi
11051if test -n "$XINIT_LIBS"; then
11052    pkg_cv_XINIT_LIBS="$XINIT_LIBS"
11053 elif test -n "$PKG_CONFIG"; then
11054    if test -n "$PKG_CONFIG" && \
11055    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11056  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11057  ac_status=$?
11058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11059  test $ac_status = 0; }; then
11060  pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
11061else
11062  pkg_failed=yes
11063fi
11064 else
11065    pkg_failed=untried
11066fi
11067
11068
11069
11070if test $pkg_failed = yes; then
11071
11072if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11073        _pkg_short_errors_supported=yes
11074else
11075        _pkg_short_errors_supported=no
11076fi
11077        if test $_pkg_short_errors_supported = yes; then
11078	        XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17" 2>&1`
11079        else
11080	        XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17" 2>&1`
11081        fi
11082	# Put the nasty error message in config.log where it belongs
11083	echo "$XINIT_PKG_ERRORS" >&5
11084
11085	as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
11086
11087$XINIT_PKG_ERRORS
11088
11089Consider adjusting the PKG_CONFIG_PATH environment variable if you
11090installed software in a non-standard prefix.
11091
11092Alternatively, you may set the environment variables XINIT_CFLAGS
11093and XINIT_LIBS to avoid the need to call pkg-config.
11094See the pkg-config man page for more details.
11095" "$LINENO" 5
11096elif test $pkg_failed = untried; then
11097	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11099as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11100is in your PATH or set the PKG_CONFIG environment variable to the full
11101path to pkg-config.
11102
11103Alternatively, you may set the environment variables XINIT_CFLAGS
11104and XINIT_LIBS to avoid the need to call pkg-config.
11105See the pkg-config man page for more details.
11106
11107To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11108See \`config.log' for more details" "$LINENO" 5; }
11109else
11110	XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
11111	XINIT_LIBS=$pkg_cv_XINIT_LIBS
11112        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11113$as_echo "yes" >&6; }
11114	:
11115fi
11116
11117case $host_os in
11118    *bsd*)
11119        XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
11120        ;;
11121esac
11122
11123
11124for ac_prog in mcookie
11125do
11126  # Extract the first word of "$ac_prog", so it can be a program name with args.
11127set dummy $ac_prog; ac_word=$2
11128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129$as_echo_n "checking for $ac_word... " >&6; }
11130if ${ac_cv_path_MCOOKIE+:} false; then :
11131  $as_echo_n "(cached) " >&6
11132else
11133  case $MCOOKIE in
11134  [\\/]* | ?:[\\/]*)
11135  ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
11136  ;;
11137  *)
11138  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
11140for as_dir in $as_dummy
11141do
11142  IFS=$as_save_IFS
11143  test -z "$as_dir" && as_dir=.
11144    for ac_exec_ext in '' $ac_executable_extensions; do
11145  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11146    ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext"
11147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11148    break 2
11149  fi
11150done
11151  done
11152IFS=$as_save_IFS
11153
11154  ;;
11155esac
11156fi
11157MCOOKIE=$ac_cv_path_MCOOKIE
11158if test -n "$MCOOKIE"; then
11159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5
11160$as_echo "$MCOOKIE" >&6; }
11161else
11162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163$as_echo "no" >&6; }
11164fi
11165
11166
11167  test -n "$MCOOKIE" && break
11168done
11169test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
11170
11171
11172# If mcookie not found, try openssl, else per-system fallbacks
11173if test "x$MCOOKIE" = x ; then
11174    for ac_prog in openssl
11175do
11176  # Extract the first word of "$ac_prog", so it can be a program name with args.
11177set dummy $ac_prog; ac_word=$2
11178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11179$as_echo_n "checking for $ac_word... " >&6; }
11180if ${ac_cv_path_OPENSSL+:} false; then :
11181  $as_echo_n "(cached) " >&6
11182else
11183  case $OPENSSL in
11184  [\\/]* | ?:[\\/]*)
11185  ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
11186  ;;
11187  *)
11188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189as_dummy="$PATH:/bin:/usr/bin:/usr/sbin:/usr/lib:/usr/libexec:/usr/local/bin"
11190for as_dir in $as_dummy
11191do
11192  IFS=$as_save_IFS
11193  test -z "$as_dir" && as_dir=.
11194    for ac_exec_ext in '' $ac_executable_extensions; do
11195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11196    ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
11197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11198    break 2
11199  fi
11200done
11201  done
11202IFS=$as_save_IFS
11203
11204  ;;
11205esac
11206fi
11207OPENSSL=$ac_cv_path_OPENSSL
11208if test -n "$OPENSSL"; then
11209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
11210$as_echo "$OPENSSL" >&6; }
11211else
11212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213$as_echo "no" >&6; }
11214fi
11215
11216
11217  test -n "$OPENSSL" && break
11218done
11219test -n "$OPENSSL" || OPENSSL="$OPENSSL"
11220
11221    if test "x$OPENSSL" != x ; then
11222        MCOOKIE="$OPENSSL rand -hex 16"
11223    else
11224        case $host_os in
11225            *openbsd*)
11226                MCOOKIE='/usr/sbin/openssl rand -hex 16'
11227                ;;
11228            *solaris*)
11229                MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
11230                ;;
11231        esac
11232    fi
11233fi
11234if test "x$MCOOKIE" != x ; then
11235	STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
11236	{ $as_echo "$as_me:${as_lineno-$LINENO}: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&5
11237$as_echo "$as_me: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&6;}
11238fi
11239
11240
11241# Additional substitutions in startx, xinitrc & man pages
11242SHELL_CMD="/bin/sh"
11243XSERVERNAME="Xorg"
11244XCONFIGFILE="xorg.conf"
11245XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})'
11246case $host_os in
11247    cygwin*)
11248	XSERVERNAME="XWin"
11249	XCONFIGFILE="XWinrc"
11250	;;
11251    darwin*)
11252	XSERVERNAME="Xquartz"
11253	XCONFIGFILE="defaults"
11254	XCONFIGFILEMAN='defaults (1)'
11255	;;
11256    *solaris*)
11257	SHELL_CMD="/bin/ksh"
11258	;;
11259    *sco*)
11260	SHELL_CMD="/bin/ksh"
11261	SCOMAN=1
11262	;;
11263esac
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280ac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile"
11281
11282cat >confcache <<\_ACEOF
11283# This file is a shell script that caches the results of configure
11284# tests run on this system so they can be shared between configure
11285# scripts and configure runs, see configure's option --config-cache.
11286# It is not useful on other systems.  If it contains results you don't
11287# want to keep, you may remove or edit it.
11288#
11289# config.status only pays attention to the cache file if you give it
11290# the --recheck option to rerun configure.
11291#
11292# `ac_cv_env_foo' variables (set or unset) will be overridden when
11293# loading this file, other *unset* `ac_cv_foo' will be assigned the
11294# following values.
11295
11296_ACEOF
11297
11298# The following way of writing the cache mishandles newlines in values,
11299# but we know of no workaround that is simple, portable, and efficient.
11300# So, we kill variables containing newlines.
11301# Ultrix sh set writes to stderr and can't be redirected directly,
11302# and sets the high bit in the cache file unless we assign to the vars.
11303(
11304  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11305    eval ac_val=\$$ac_var
11306    case $ac_val in #(
11307    *${as_nl}*)
11308      case $ac_var in #(
11309      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11310$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11311      esac
11312      case $ac_var in #(
11313      _ | IFS | as_nl) ;; #(
11314      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11315      *) { eval $ac_var=; unset $ac_var;} ;;
11316      esac ;;
11317    esac
11318  done
11319
11320  (set) 2>&1 |
11321    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11322    *${as_nl}ac_space=\ *)
11323      # `set' does not quote correctly, so add quotes: double-quote
11324      # substitution turns \\\\ into \\, and sed turns \\ into \.
11325      sed -n \
11326	"s/'/'\\\\''/g;
11327	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11328      ;; #(
11329    *)
11330      # `set' quotes correctly as required by POSIX, so do not add quotes.
11331      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11332      ;;
11333    esac |
11334    sort
11335) |
11336  sed '
11337     /^ac_cv_env_/b end
11338     t clear
11339     :clear
11340     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11341     t end
11342     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11343     :end' >>confcache
11344if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11345  if test -w "$cache_file"; then
11346    if test "x$cache_file" != "x/dev/null"; then
11347      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11348$as_echo "$as_me: updating cache $cache_file" >&6;}
11349      if test ! -f "$cache_file" || test -h "$cache_file"; then
11350	cat confcache >"$cache_file"
11351      else
11352        case $cache_file in #(
11353        */* | ?:*)
11354	  mv -f confcache "$cache_file"$$ &&
11355	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11356        *)
11357	  mv -f confcache "$cache_file" ;;
11358	esac
11359      fi
11360    fi
11361  else
11362    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11363$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11364  fi
11365fi
11366rm -f confcache
11367
11368test "x$prefix" = xNONE && prefix=$ac_default_prefix
11369# Let make expand exec_prefix.
11370test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11371
11372DEFS=-DHAVE_CONFIG_H
11373
11374ac_libobjs=
11375ac_ltlibobjs=
11376U=
11377for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11378  # 1. Remove the extension, and $U if already installed.
11379  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11380  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11381  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11382  #    will be set to the directory where LIBOBJS objects are built.
11383  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11384  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11385done
11386LIBOBJS=$ac_libobjs
11387
11388LTLIBOBJS=$ac_ltlibobjs
11389
11390
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11392$as_echo_n "checking that generated files are newer than configure... " >&6; }
11393   if test -n "$am_sleep_pid"; then
11394     # Hide warnings about reused PIDs.
11395     wait $am_sleep_pid 2>/dev/null
11396   fi
11397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11398$as_echo "done" >&6; }
11399 if test -n "$EXEEXT"; then
11400  am__EXEEXT_TRUE=
11401  am__EXEEXT_FALSE='#'
11402else
11403  am__EXEEXT_TRUE='#'
11404  am__EXEEXT_FALSE=
11405fi
11406
11407if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11408  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11409Usually this means the macro was only invoked conditionally." "$LINENO" 5
11410fi
11411if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11412  as_fn_error $? "conditional \"AMDEP\" was never defined.
11413Usually this means the macro was only invoked conditionally." "$LINENO" 5
11414fi
11415if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11416  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11417Usually this means the macro was only invoked conditionally." "$LINENO" 5
11418fi
11419if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
11420  as_fn_error $? "conditional \"LAUNCHD\" was never defined.
11421Usually this means the macro was only invoked conditionally." "$LINENO" 5
11422fi
11423if test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then
11424  as_fn_error $? "conditional \"TIGER_LAUNCHD\" was never defined.
11425Usually this means the macro was only invoked conditionally." "$LINENO" 5
11426fi
11427if test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then
11428  as_fn_error $? "conditional \"LAUNCHAGENT_XSERVER\" was never defined.
11429Usually this means the macro was only invoked conditionally." "$LINENO" 5
11430fi
11431
11432: "${CONFIG_STATUS=./config.status}"
11433ac_write_fail=0
11434ac_clean_files_save=$ac_clean_files
11435ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11437$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11438as_write_fail=0
11439cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11440#! $SHELL
11441# Generated by $as_me.
11442# Run this file to recreate the current configuration.
11443# Compiler output produced by configure, useful for debugging
11444# configure, is in config.log if it exists.
11445
11446debug=false
11447ac_cs_recheck=false
11448ac_cs_silent=false
11449
11450SHELL=\${CONFIG_SHELL-$SHELL}
11451export SHELL
11452_ASEOF
11453cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11454## -------------------- ##
11455## M4sh Initialization. ##
11456## -------------------- ##
11457
11458# Be more Bourne compatible
11459DUALCASE=1; export DUALCASE # for MKS sh
11460if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11461  emulate sh
11462  NULLCMD=:
11463  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11464  # is contrary to our usage.  Disable this feature.
11465  alias -g '${1+"$@"}'='"$@"'
11466  setopt NO_GLOB_SUBST
11467else
11468  case `(set -o) 2>/dev/null` in #(
11469  *posix*) :
11470    set -o posix ;; #(
11471  *) :
11472     ;;
11473esac
11474fi
11475
11476
11477as_nl='
11478'
11479export as_nl
11480# Printing a long string crashes Solaris 7 /usr/bin/printf.
11481as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11482as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11483as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11484# Prefer a ksh shell builtin over an external printf program on Solaris,
11485# but without wasting forks for bash or zsh.
11486if test -z "$BASH_VERSION$ZSH_VERSION" \
11487    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11488  as_echo='print -r --'
11489  as_echo_n='print -rn --'
11490elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11491  as_echo='printf %s\n'
11492  as_echo_n='printf %s'
11493else
11494  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11495    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11496    as_echo_n='/usr/ucb/echo -n'
11497  else
11498    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11499    as_echo_n_body='eval
11500      arg=$1;
11501      case $arg in #(
11502      *"$as_nl"*)
11503	expr "X$arg" : "X\\(.*\\)$as_nl";
11504	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11505      esac;
11506      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11507    '
11508    export as_echo_n_body
11509    as_echo_n='sh -c $as_echo_n_body as_echo'
11510  fi
11511  export as_echo_body
11512  as_echo='sh -c $as_echo_body as_echo'
11513fi
11514
11515# The user is always right.
11516if test "${PATH_SEPARATOR+set}" != set; then
11517  PATH_SEPARATOR=:
11518  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11519    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11520      PATH_SEPARATOR=';'
11521  }
11522fi
11523
11524
11525# IFS
11526# We need space, tab and new line, in precisely that order.  Quoting is
11527# there to prevent editors from complaining about space-tab.
11528# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11529# splitting by setting IFS to empty value.)
11530IFS=" ""	$as_nl"
11531
11532# Find who we are.  Look in the path if we contain no directory separator.
11533as_myself=
11534case $0 in #((
11535  *[\\/]* ) as_myself=$0 ;;
11536  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537for as_dir in $PATH
11538do
11539  IFS=$as_save_IFS
11540  test -z "$as_dir" && as_dir=.
11541    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11542  done
11543IFS=$as_save_IFS
11544
11545     ;;
11546esac
11547# We did not find ourselves, most probably we were run as `sh COMMAND'
11548# in which case we are not to be found in the path.
11549if test "x$as_myself" = x; then
11550  as_myself=$0
11551fi
11552if test ! -f "$as_myself"; then
11553  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11554  exit 1
11555fi
11556
11557# Unset variables that we do not need and which cause bugs (e.g. in
11558# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11559# suppresses any "Segmentation fault" message there.  '((' could
11560# trigger a bug in pdksh 5.2.14.
11561for as_var in BASH_ENV ENV MAIL MAILPATH
11562do eval test x\${$as_var+set} = xset \
11563  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11564done
11565PS1='$ '
11566PS2='> '
11567PS4='+ '
11568
11569# NLS nuisances.
11570LC_ALL=C
11571export LC_ALL
11572LANGUAGE=C
11573export LANGUAGE
11574
11575# CDPATH.
11576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11577
11578
11579# as_fn_error STATUS ERROR [LINENO LOG_FD]
11580# ----------------------------------------
11581# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11582# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11583# script with STATUS, using 1 if that was 0.
11584as_fn_error ()
11585{
11586  as_status=$1; test $as_status -eq 0 && as_status=1
11587  if test "$4"; then
11588    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11589    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11590  fi
11591  $as_echo "$as_me: error: $2" >&2
11592  as_fn_exit $as_status
11593} # as_fn_error
11594
11595
11596# as_fn_set_status STATUS
11597# -----------------------
11598# Set $? to STATUS, without forking.
11599as_fn_set_status ()
11600{
11601  return $1
11602} # as_fn_set_status
11603
11604# as_fn_exit STATUS
11605# -----------------
11606# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11607as_fn_exit ()
11608{
11609  set +e
11610  as_fn_set_status $1
11611  exit $1
11612} # as_fn_exit
11613
11614# as_fn_unset VAR
11615# ---------------
11616# Portably unset VAR.
11617as_fn_unset ()
11618{
11619  { eval $1=; unset $1;}
11620}
11621as_unset=as_fn_unset
11622# as_fn_append VAR VALUE
11623# ----------------------
11624# Append the text in VALUE to the end of the definition contained in VAR. Take
11625# advantage of any shell optimizations that allow amortized linear growth over
11626# repeated appends, instead of the typical quadratic growth present in naive
11627# implementations.
11628if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11629  eval 'as_fn_append ()
11630  {
11631    eval $1+=\$2
11632  }'
11633else
11634  as_fn_append ()
11635  {
11636    eval $1=\$$1\$2
11637  }
11638fi # as_fn_append
11639
11640# as_fn_arith ARG...
11641# ------------------
11642# Perform arithmetic evaluation on the ARGs, and store the result in the
11643# global $as_val. Take advantage of shells that can avoid forks. The arguments
11644# must be portable across $(()) and expr.
11645if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11646  eval 'as_fn_arith ()
11647  {
11648    as_val=$(( $* ))
11649  }'
11650else
11651  as_fn_arith ()
11652  {
11653    as_val=`expr "$@" || test $? -eq 1`
11654  }
11655fi # as_fn_arith
11656
11657
11658if expr a : '\(a\)' >/dev/null 2>&1 &&
11659   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11660  as_expr=expr
11661else
11662  as_expr=false
11663fi
11664
11665if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11666  as_basename=basename
11667else
11668  as_basename=false
11669fi
11670
11671if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11672  as_dirname=dirname
11673else
11674  as_dirname=false
11675fi
11676
11677as_me=`$as_basename -- "$0" ||
11678$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11679	 X"$0" : 'X\(//\)$' \| \
11680	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11681$as_echo X/"$0" |
11682    sed '/^.*\/\([^/][^/]*\)\/*$/{
11683	    s//\1/
11684	    q
11685	  }
11686	  /^X\/\(\/\/\)$/{
11687	    s//\1/
11688	    q
11689	  }
11690	  /^X\/\(\/\).*/{
11691	    s//\1/
11692	    q
11693	  }
11694	  s/.*/./; q'`
11695
11696# Avoid depending upon Character Ranges.
11697as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11698as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11699as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11700as_cr_digits='0123456789'
11701as_cr_alnum=$as_cr_Letters$as_cr_digits
11702
11703ECHO_C= ECHO_N= ECHO_T=
11704case `echo -n x` in #(((((
11705-n*)
11706  case `echo 'xy\c'` in
11707  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11708  xy)  ECHO_C='\c';;
11709  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11710       ECHO_T='	';;
11711  esac;;
11712*)
11713  ECHO_N='-n';;
11714esac
11715
11716rm -f conf$$ conf$$.exe conf$$.file
11717if test -d conf$$.dir; then
11718  rm -f conf$$.dir/conf$$.file
11719else
11720  rm -f conf$$.dir
11721  mkdir conf$$.dir 2>/dev/null
11722fi
11723if (echo >conf$$.file) 2>/dev/null; then
11724  if ln -s conf$$.file conf$$ 2>/dev/null; then
11725    as_ln_s='ln -s'
11726    # ... but there are two gotchas:
11727    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11728    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11729    # In both cases, we have to default to `cp -p'.
11730    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11731      as_ln_s='cp -p'
11732  elif ln conf$$.file conf$$ 2>/dev/null; then
11733    as_ln_s=ln
11734  else
11735    as_ln_s='cp -p'
11736  fi
11737else
11738  as_ln_s='cp -p'
11739fi
11740rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11741rmdir conf$$.dir 2>/dev/null
11742
11743
11744# as_fn_mkdir_p
11745# -------------
11746# Create "$as_dir" as a directory, including parents if necessary.
11747as_fn_mkdir_p ()
11748{
11749
11750  case $as_dir in #(
11751  -*) as_dir=./$as_dir;;
11752  esac
11753  test -d "$as_dir" || eval $as_mkdir_p || {
11754    as_dirs=
11755    while :; do
11756      case $as_dir in #(
11757      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11758      *) as_qdir=$as_dir;;
11759      esac
11760      as_dirs="'$as_qdir' $as_dirs"
11761      as_dir=`$as_dirname -- "$as_dir" ||
11762$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11763	 X"$as_dir" : 'X\(//\)[^/]' \| \
11764	 X"$as_dir" : 'X\(//\)$' \| \
11765	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11766$as_echo X"$as_dir" |
11767    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11768	    s//\1/
11769	    q
11770	  }
11771	  /^X\(\/\/\)[^/].*/{
11772	    s//\1/
11773	    q
11774	  }
11775	  /^X\(\/\/\)$/{
11776	    s//\1/
11777	    q
11778	  }
11779	  /^X\(\/\).*/{
11780	    s//\1/
11781	    q
11782	  }
11783	  s/.*/./; q'`
11784      test -d "$as_dir" && break
11785    done
11786    test -z "$as_dirs" || eval "mkdir $as_dirs"
11787  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11788
11789
11790} # as_fn_mkdir_p
11791if mkdir -p . 2>/dev/null; then
11792  as_mkdir_p='mkdir -p "$as_dir"'
11793else
11794  test -d ./-p && rmdir ./-p
11795  as_mkdir_p=false
11796fi
11797
11798if test -x / >/dev/null 2>&1; then
11799  as_test_x='test -x'
11800else
11801  if ls -dL / >/dev/null 2>&1; then
11802    as_ls_L_option=L
11803  else
11804    as_ls_L_option=
11805  fi
11806  as_test_x='
11807    eval sh -c '\''
11808      if test -d "$1"; then
11809	test -d "$1/.";
11810      else
11811	case $1 in #(
11812	-*)set "./$1";;
11813	esac;
11814	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11815	???[sx]*):;;*)false;;esac;fi
11816    '\'' sh
11817  '
11818fi
11819as_executable_p=$as_test_x
11820
11821# Sed expression to map a string onto a valid CPP name.
11822as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11823
11824# Sed expression to map a string onto a valid variable name.
11825as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11826
11827
11828exec 6>&1
11829## ----------------------------------- ##
11830## Main body of $CONFIG_STATUS script. ##
11831## ----------------------------------- ##
11832_ASEOF
11833test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11834
11835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11836# Save the log message, to keep $0 and so on meaningful, and to
11837# report actual input values of CONFIG_FILES etc. instead of their
11838# values after options handling.
11839ac_log="
11840This file was extended by xinit $as_me 1.3.3, which was
11841generated by GNU Autoconf 2.68.  Invocation command line was
11842
11843  CONFIG_FILES    = $CONFIG_FILES
11844  CONFIG_HEADERS  = $CONFIG_HEADERS
11845  CONFIG_LINKS    = $CONFIG_LINKS
11846  CONFIG_COMMANDS = $CONFIG_COMMANDS
11847  $ $0 $@
11848
11849on `(hostname || uname -n) 2>/dev/null | sed 1q`
11850"
11851
11852_ACEOF
11853
11854case $ac_config_files in *"
11855"*) set x $ac_config_files; shift; ac_config_files=$*;;
11856esac
11857
11858case $ac_config_headers in *"
11859"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11860esac
11861
11862
11863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11864# Files that config.status was made for.
11865config_files="$ac_config_files"
11866config_headers="$ac_config_headers"
11867config_commands="$ac_config_commands"
11868
11869_ACEOF
11870
11871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11872ac_cs_usage="\
11873\`$as_me' instantiates files and other configuration actions
11874from templates according to the current configuration.  Unless the files
11875and actions are specified as TAGs, all are instantiated by default.
11876
11877Usage: $0 [OPTION]... [TAG]...
11878
11879  -h, --help       print this help, then exit
11880  -V, --version    print version number and configuration settings, then exit
11881      --config     print configuration, then exit
11882  -q, --quiet, --silent
11883                   do not print progress messages
11884  -d, --debug      don't remove temporary files
11885      --recheck    update $as_me by reconfiguring in the same conditions
11886      --file=FILE[:TEMPLATE]
11887                   instantiate the configuration file FILE
11888      --header=FILE[:TEMPLATE]
11889                   instantiate the configuration header FILE
11890
11891Configuration files:
11892$config_files
11893
11894Configuration headers:
11895$config_headers
11896
11897Configuration commands:
11898$config_commands
11899
11900Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11901
11902_ACEOF
11903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11904ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11905ac_cs_version="\\
11906xinit config.status 1.3.3
11907configured by $0, generated by GNU Autoconf 2.68,
11908  with options \\"\$ac_cs_config\\"
11909
11910Copyright (C) 2010 Free Software Foundation, Inc.
11911This config.status script is free software; the Free Software Foundation
11912gives unlimited permission to copy, distribute and modify it."
11913
11914ac_pwd='$ac_pwd'
11915srcdir='$srcdir'
11916INSTALL='$INSTALL'
11917MKDIR_P='$MKDIR_P'
11918AWK='$AWK'
11919test -n "\$AWK" || AWK=awk
11920_ACEOF
11921
11922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11923# The default lists apply if the user does not specify any file.
11924ac_need_defaults=:
11925while test $# != 0
11926do
11927  case $1 in
11928  --*=?*)
11929    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11930    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11931    ac_shift=:
11932    ;;
11933  --*=)
11934    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11935    ac_optarg=
11936    ac_shift=:
11937    ;;
11938  *)
11939    ac_option=$1
11940    ac_optarg=$2
11941    ac_shift=shift
11942    ;;
11943  esac
11944
11945  case $ac_option in
11946  # Handling of the options.
11947  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11948    ac_cs_recheck=: ;;
11949  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11950    $as_echo "$ac_cs_version"; exit ;;
11951  --config | --confi | --conf | --con | --co | --c )
11952    $as_echo "$ac_cs_config"; exit ;;
11953  --debug | --debu | --deb | --de | --d | -d )
11954    debug=: ;;
11955  --file | --fil | --fi | --f )
11956    $ac_shift
11957    case $ac_optarg in
11958    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11959    '') as_fn_error $? "missing file argument" ;;
11960    esac
11961    as_fn_append CONFIG_FILES " '$ac_optarg'"
11962    ac_need_defaults=false;;
11963  --header | --heade | --head | --hea )
11964    $ac_shift
11965    case $ac_optarg in
11966    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11967    esac
11968    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11969    ac_need_defaults=false;;
11970  --he | --h)
11971    # Conflict between --help and --header
11972    as_fn_error $? "ambiguous option: \`$1'
11973Try \`$0 --help' for more information.";;
11974  --help | --hel | -h )
11975    $as_echo "$ac_cs_usage"; exit ;;
11976  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11977  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11978    ac_cs_silent=: ;;
11979
11980  # This is an error.
11981  -*) as_fn_error $? "unrecognized option: \`$1'
11982Try \`$0 --help' for more information." ;;
11983
11984  *) as_fn_append ac_config_targets " $1"
11985     ac_need_defaults=false ;;
11986
11987  esac
11988  shift
11989done
11990
11991ac_configure_extra_args=
11992
11993if $ac_cs_silent; then
11994  exec 6>/dev/null
11995  ac_configure_extra_args="$ac_configure_extra_args --silent"
11996fi
11997
11998_ACEOF
11999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12000if \$ac_cs_recheck; then
12001  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12002  shift
12003  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12004  CONFIG_SHELL='$SHELL'
12005  export CONFIG_SHELL
12006  exec "\$@"
12007fi
12008
12009_ACEOF
12010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12011exec 5>>config.log
12012{
12013  echo
12014  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12015## Running $as_me. ##
12016_ASBOX
12017  $as_echo "$ac_log"
12018} >&5
12019
12020_ACEOF
12021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12022#
12023# INIT-COMMANDS
12024#
12025AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12026
12027_ACEOF
12028
12029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12030
12031# Handling of arguments.
12032for ac_config_target in $ac_config_targets
12033do
12034  case $ac_config_target in
12035    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12036    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12037    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12038    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12039    "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;;
12040    "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;;
12041    "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;;
12042
12043  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12044  esac
12045done
12046
12047
12048# If the user did not use the arguments to specify the items to instantiate,
12049# then the envvar interface is used.  Set only those that are not.
12050# We use the long form for the default assignment because of an extremely
12051# bizarre bug on SunOS 4.1.3.
12052if $ac_need_defaults; then
12053  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12054  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12055  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12056fi
12057
12058# Have a temporary directory for convenience.  Make it in the build tree
12059# simply because there is no reason against having it here, and in addition,
12060# creating and moving files from /tmp can sometimes cause problems.
12061# Hook for its removal unless debugging.
12062# Note that there is a small window in which the directory will not be cleaned:
12063# after its creation but before its name has been assigned to `$tmp'.
12064$debug ||
12065{
12066  tmp= ac_tmp=
12067  trap 'exit_status=$?
12068  : "${ac_tmp:=$tmp}"
12069  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12070' 0
12071  trap 'as_fn_exit 1' 1 2 13 15
12072}
12073# Create a (secure) tmp directory for tmp files.
12074
12075{
12076  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12077  test -d "$tmp"
12078}  ||
12079{
12080  tmp=./conf$$-$RANDOM
12081  (umask 077 && mkdir "$tmp")
12082} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12083ac_tmp=$tmp
12084
12085# Set up the scripts for CONFIG_FILES section.
12086# No need to generate them if there are no CONFIG_FILES.
12087# This happens for instance with `./config.status config.h'.
12088if test -n "$CONFIG_FILES"; then
12089
12090
12091ac_cr=`echo X | tr X '\015'`
12092# On cygwin, bash can eat \r inside `` if the user requested igncr.
12093# But we know of no other shell where ac_cr would be empty at this
12094# point, so we can use a bashism as a fallback.
12095if test "x$ac_cr" = x; then
12096  eval ac_cr=\$\'\\r\'
12097fi
12098ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12099if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12100  ac_cs_awk_cr='\\r'
12101else
12102  ac_cs_awk_cr=$ac_cr
12103fi
12104
12105echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12106_ACEOF
12107
12108
12109{
12110  echo "cat >conf$$subs.awk <<_ACEOF" &&
12111  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12112  echo "_ACEOF"
12113} >conf$$subs.sh ||
12114  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12115ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12116ac_delim='%!_!# '
12117for ac_last_try in false false false false false :; do
12118  . ./conf$$subs.sh ||
12119    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12120
12121  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12122  if test $ac_delim_n = $ac_delim_num; then
12123    break
12124  elif $ac_last_try; then
12125    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12126  else
12127    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12128  fi
12129done
12130rm -f conf$$subs.sh
12131
12132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12133cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12134_ACEOF
12135sed -n '
12136h
12137s/^/S["/; s/!.*/"]=/
12138p
12139g
12140s/^[^!]*!//
12141:repl
12142t repl
12143s/'"$ac_delim"'$//
12144t delim
12145:nl
12146h
12147s/\(.\{148\}\)..*/\1/
12148t more1
12149s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12150p
12151n
12152b repl
12153:more1
12154s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12155p
12156g
12157s/.\{148\}//
12158t nl
12159:delim
12160h
12161s/\(.\{148\}\)..*/\1/
12162t more2
12163s/["\\]/\\&/g; s/^/"/; s/$/"/
12164p
12165b
12166:more2
12167s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12168p
12169g
12170s/.\{148\}//
12171t delim
12172' <conf$$subs.awk | sed '
12173/^[^""]/{
12174  N
12175  s/\n//
12176}
12177' >>$CONFIG_STATUS || ac_write_fail=1
12178rm -f conf$$subs.awk
12179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12180_ACAWK
12181cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12182  for (key in S) S_is_set[key] = 1
12183  FS = ""
12184
12185}
12186{
12187  line = $ 0
12188  nfields = split(line, field, "@")
12189  substed = 0
12190  len = length(field[1])
12191  for (i = 2; i < nfields; i++) {
12192    key = field[i]
12193    keylen = length(key)
12194    if (S_is_set[key]) {
12195      value = S[key]
12196      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12197      len += length(value) + length(field[++i])
12198      substed = 1
12199    } else
12200      len += 1 + keylen
12201  }
12202
12203  print line
12204}
12205
12206_ACAWK
12207_ACEOF
12208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12209if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12210  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12211else
12212  cat
12213fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12214  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12215_ACEOF
12216
12217# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12218# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12219# trailing colons and then remove the whole line if VPATH becomes empty
12220# (actually we leave an empty line to preserve line numbers).
12221if test "x$srcdir" = x.; then
12222  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12223h
12224s///
12225s/^/:/
12226s/[	 ]*$/:/
12227s/:\$(srcdir):/:/g
12228s/:\${srcdir}:/:/g
12229s/:@srcdir@:/:/g
12230s/^:*//
12231s/:*$//
12232x
12233s/\(=[	 ]*\).*/\1/
12234G
12235s/\n//
12236s/^[^=]*=[	 ]*$//
12237}'
12238fi
12239
12240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12241fi # test -n "$CONFIG_FILES"
12242
12243# Set up the scripts for CONFIG_HEADERS section.
12244# No need to generate them if there are no CONFIG_HEADERS.
12245# This happens for instance with `./config.status Makefile'.
12246if test -n "$CONFIG_HEADERS"; then
12247cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12248BEGIN {
12249_ACEOF
12250
12251# Transform confdefs.h into an awk script `defines.awk', embedded as
12252# here-document in config.status, that substitutes the proper values into
12253# config.h.in to produce config.h.
12254
12255# Create a delimiter string that does not exist in confdefs.h, to ease
12256# handling of long lines.
12257ac_delim='%!_!# '
12258for ac_last_try in false false :; do
12259  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12260  if test -z "$ac_tt"; then
12261    break
12262  elif $ac_last_try; then
12263    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12264  else
12265    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12266  fi
12267done
12268
12269# For the awk script, D is an array of macro values keyed by name,
12270# likewise P contains macro parameters if any.  Preserve backslash
12271# newline sequences.
12272
12273ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12274sed -n '
12275s/.\{148\}/&'"$ac_delim"'/g
12276t rset
12277:rset
12278s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12279t def
12280d
12281:def
12282s/\\$//
12283t bsnl
12284s/["\\]/\\&/g
12285s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12286D["\1"]=" \3"/p
12287s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12288d
12289:bsnl
12290s/["\\]/\\&/g
12291s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12292D["\1"]=" \3\\\\\\n"\\/p
12293t cont
12294s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12295t cont
12296d
12297:cont
12298n
12299s/.\{148\}/&'"$ac_delim"'/g
12300t clear
12301:clear
12302s/\\$//
12303t bsnlc
12304s/["\\]/\\&/g; s/^/"/; s/$/"/p
12305d
12306:bsnlc
12307s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12308b cont
12309' <confdefs.h | sed '
12310s/'"$ac_delim"'/"\\\
12311"/g' >>$CONFIG_STATUS || ac_write_fail=1
12312
12313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12314  for (key in D) D_is_set[key] = 1
12315  FS = ""
12316}
12317/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12318  line = \$ 0
12319  split(line, arg, " ")
12320  if (arg[1] == "#") {
12321    defundef = arg[2]
12322    mac1 = arg[3]
12323  } else {
12324    defundef = substr(arg[1], 2)
12325    mac1 = arg[2]
12326  }
12327  split(mac1, mac2, "(") #)
12328  macro = mac2[1]
12329  prefix = substr(line, 1, index(line, defundef) - 1)
12330  if (D_is_set[macro]) {
12331    # Preserve the white space surrounding the "#".
12332    print prefix "define", macro P[macro] D[macro]
12333    next
12334  } else {
12335    # Replace #undef with comments.  This is necessary, for example,
12336    # in the case of _POSIX_SOURCE, which is predefined and required
12337    # on some systems where configure will not decide to define it.
12338    if (defundef == "undef") {
12339      print "/*", prefix defundef, macro, "*/"
12340      next
12341    }
12342  }
12343}
12344{ print }
12345_ACAWK
12346_ACEOF
12347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12348  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12349fi # test -n "$CONFIG_HEADERS"
12350
12351
12352eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12353shift
12354for ac_tag
12355do
12356  case $ac_tag in
12357  :[FHLC]) ac_mode=$ac_tag; continue;;
12358  esac
12359  case $ac_mode$ac_tag in
12360  :[FHL]*:*);;
12361  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12362  :[FH]-) ac_tag=-:-;;
12363  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12364  esac
12365  ac_save_IFS=$IFS
12366  IFS=:
12367  set x $ac_tag
12368  IFS=$ac_save_IFS
12369  shift
12370  ac_file=$1
12371  shift
12372
12373  case $ac_mode in
12374  :L) ac_source=$1;;
12375  :[FH])
12376    ac_file_inputs=
12377    for ac_f
12378    do
12379      case $ac_f in
12380      -) ac_f="$ac_tmp/stdin";;
12381      *) # Look for the file first in the build tree, then in the source tree
12382	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12383	 # because $ac_f cannot contain `:'.
12384	 test -f "$ac_f" ||
12385	   case $ac_f in
12386	   [\\/$]*) false;;
12387	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12388	   esac ||
12389	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12390      esac
12391      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12392      as_fn_append ac_file_inputs " '$ac_f'"
12393    done
12394
12395    # Let's still pretend it is `configure' which instantiates (i.e., don't
12396    # use $as_me), people would be surprised to read:
12397    #    /* config.h.  Generated by config.status.  */
12398    configure_input='Generated from '`
12399	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12400	`' by configure.'
12401    if test x"$ac_file" != x-; then
12402      configure_input="$ac_file.  $configure_input"
12403      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12404$as_echo "$as_me: creating $ac_file" >&6;}
12405    fi
12406    # Neutralize special characters interpreted by sed in replacement strings.
12407    case $configure_input in #(
12408    *\&* | *\|* | *\\* )
12409       ac_sed_conf_input=`$as_echo "$configure_input" |
12410       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12411    *) ac_sed_conf_input=$configure_input;;
12412    esac
12413
12414    case $ac_tag in
12415    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12416      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12417    esac
12418    ;;
12419  esac
12420
12421  ac_dir=`$as_dirname -- "$ac_file" ||
12422$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12423	 X"$ac_file" : 'X\(//\)[^/]' \| \
12424	 X"$ac_file" : 'X\(//\)$' \| \
12425	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12426$as_echo X"$ac_file" |
12427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12428	    s//\1/
12429	    q
12430	  }
12431	  /^X\(\/\/\)[^/].*/{
12432	    s//\1/
12433	    q
12434	  }
12435	  /^X\(\/\/\)$/{
12436	    s//\1/
12437	    q
12438	  }
12439	  /^X\(\/\).*/{
12440	    s//\1/
12441	    q
12442	  }
12443	  s/.*/./; q'`
12444  as_dir="$ac_dir"; as_fn_mkdir_p
12445  ac_builddir=.
12446
12447case "$ac_dir" in
12448.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12449*)
12450  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12451  # A ".." for each directory in $ac_dir_suffix.
12452  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12453  case $ac_top_builddir_sub in
12454  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12455  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12456  esac ;;
12457esac
12458ac_abs_top_builddir=$ac_pwd
12459ac_abs_builddir=$ac_pwd$ac_dir_suffix
12460# for backward compatibility:
12461ac_top_builddir=$ac_top_build_prefix
12462
12463case $srcdir in
12464  .)  # We are building in place.
12465    ac_srcdir=.
12466    ac_top_srcdir=$ac_top_builddir_sub
12467    ac_abs_top_srcdir=$ac_pwd ;;
12468  [\\/]* | ?:[\\/]* )  # Absolute name.
12469    ac_srcdir=$srcdir$ac_dir_suffix;
12470    ac_top_srcdir=$srcdir
12471    ac_abs_top_srcdir=$srcdir ;;
12472  *) # Relative name.
12473    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12474    ac_top_srcdir=$ac_top_build_prefix$srcdir
12475    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12476esac
12477ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12478
12479
12480  case $ac_mode in
12481  :F)
12482  #
12483  # CONFIG_FILE
12484  #
12485
12486  case $INSTALL in
12487  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12488  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12489  esac
12490  ac_MKDIR_P=$MKDIR_P
12491  case $MKDIR_P in
12492  [\\/$]* | ?:[\\/]* ) ;;
12493  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12494  esac
12495_ACEOF
12496
12497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12498# If the template does not know about datarootdir, expand it.
12499# FIXME: This hack should be removed a few years after 2.60.
12500ac_datarootdir_hack=; ac_datarootdir_seen=
12501ac_sed_dataroot='
12502/datarootdir/ {
12503  p
12504  q
12505}
12506/@datadir@/p
12507/@docdir@/p
12508/@infodir@/p
12509/@localedir@/p
12510/@mandir@/p'
12511case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12512*datarootdir*) ac_datarootdir_seen=yes;;
12513*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12514  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12515$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12516_ACEOF
12517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12518  ac_datarootdir_hack='
12519  s&@datadir@&$datadir&g
12520  s&@docdir@&$docdir&g
12521  s&@infodir@&$infodir&g
12522  s&@localedir@&$localedir&g
12523  s&@mandir@&$mandir&g
12524  s&\\\${datarootdir}&$datarootdir&g' ;;
12525esac
12526_ACEOF
12527
12528# Neutralize VPATH when `$srcdir' = `.'.
12529# Shell code in configure.ac might set extrasub.
12530# FIXME: do we really want to maintain this feature?
12531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12532ac_sed_extra="$ac_vpsub
12533$extrasub
12534_ACEOF
12535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12536:t
12537/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12538s|@configure_input@|$ac_sed_conf_input|;t t
12539s&@top_builddir@&$ac_top_builddir_sub&;t t
12540s&@top_build_prefix@&$ac_top_build_prefix&;t t
12541s&@srcdir@&$ac_srcdir&;t t
12542s&@abs_srcdir@&$ac_abs_srcdir&;t t
12543s&@top_srcdir@&$ac_top_srcdir&;t t
12544s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12545s&@builddir@&$ac_builddir&;t t
12546s&@abs_builddir@&$ac_abs_builddir&;t t
12547s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12548s&@INSTALL@&$ac_INSTALL&;t t
12549s&@MKDIR_P@&$ac_MKDIR_P&;t t
12550$ac_datarootdir_hack
12551"
12552eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12553  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12554
12555test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12556  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12557  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12558      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12559  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12560which seems to be undefined.  Please make sure it is defined" >&5
12561$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12562which seems to be undefined.  Please make sure it is defined" >&2;}
12563
12564  rm -f "$ac_tmp/stdin"
12565  case $ac_file in
12566  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12567  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12568  esac \
12569  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12570 ;;
12571  :H)
12572  #
12573  # CONFIG_HEADER
12574  #
12575  if test x"$ac_file" != x-; then
12576    {
12577      $as_echo "/* $configure_input  */" \
12578      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12579    } >"$ac_tmp/config.h" \
12580      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12581    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12582      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12583$as_echo "$as_me: $ac_file is unchanged" >&6;}
12584    else
12585      rm -f "$ac_file"
12586      mv "$ac_tmp/config.h" "$ac_file" \
12587	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12588    fi
12589  else
12590    $as_echo "/* $configure_input  */" \
12591      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12592      || as_fn_error $? "could not create -" "$LINENO" 5
12593  fi
12594# Compute "$ac_file"'s index in $config_headers.
12595_am_arg="$ac_file"
12596_am_stamp_count=1
12597for _am_header in $config_headers :; do
12598  case $_am_header in
12599    $_am_arg | $_am_arg:* )
12600      break ;;
12601    * )
12602      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12603  esac
12604done
12605echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12606$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12607	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12608	 X"$_am_arg" : 'X\(//\)$' \| \
12609	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12610$as_echo X"$_am_arg" |
12611    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12612	    s//\1/
12613	    q
12614	  }
12615	  /^X\(\/\/\)[^/].*/{
12616	    s//\1/
12617	    q
12618	  }
12619	  /^X\(\/\/\)$/{
12620	    s//\1/
12621	    q
12622	  }
12623	  /^X\(\/\).*/{
12624	    s//\1/
12625	    q
12626	  }
12627	  s/.*/./; q'`/stamp-h$_am_stamp_count
12628 ;;
12629
12630  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12631$as_echo "$as_me: executing $ac_file commands" >&6;}
12632 ;;
12633  esac
12634
12635
12636  case $ac_file$ac_mode in
12637    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12638  # Older Autoconf quotes --file arguments for eval, but not when files
12639  # are listed without --file.  Let's play safe and only enable the eval
12640  # if we detect the quoting.
12641  case $CONFIG_FILES in
12642  *\'*) eval set x "$CONFIG_FILES" ;;
12643  *)   set x $CONFIG_FILES ;;
12644  esac
12645  shift
12646  for mf
12647  do
12648    # Strip MF so we end up with the name of the file.
12649    mf=`echo "$mf" | sed -e 's/:.*$//'`
12650    # Check whether this is an Automake generated Makefile or not.
12651    # We used to match only the files named 'Makefile.in', but
12652    # some people rename them; so instead we look at the file content.
12653    # Grep'ing the first line is not enough: some people post-process
12654    # each Makefile.in and add a new line on top of each file to say so.
12655    # Grep'ing the whole file is not good either: AIX grep has a line
12656    # limit of 2048, but all sed's we know have understand at least 4000.
12657    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12658      dirpart=`$as_dirname -- "$mf" ||
12659$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12660	 X"$mf" : 'X\(//\)[^/]' \| \
12661	 X"$mf" : 'X\(//\)$' \| \
12662	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12663$as_echo X"$mf" |
12664    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12665	    s//\1/
12666	    q
12667	  }
12668	  /^X\(\/\/\)[^/].*/{
12669	    s//\1/
12670	    q
12671	  }
12672	  /^X\(\/\/\)$/{
12673	    s//\1/
12674	    q
12675	  }
12676	  /^X\(\/\).*/{
12677	    s//\1/
12678	    q
12679	  }
12680	  s/.*/./; q'`
12681    else
12682      continue
12683    fi
12684    # Extract the definition of DEPDIR, am__include, and am__quote
12685    # from the Makefile without running 'make'.
12686    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12687    test -z "$DEPDIR" && continue
12688    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12689    test -z "$am__include" && continue
12690    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12691    # Find all dependency output files, they are included files with
12692    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12693    # simplest approach to changing $(DEPDIR) to its actual value in the
12694    # expansion.
12695    for file in `sed -n "
12696      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12697	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12698      # Make sure the directory exists.
12699      test -f "$dirpart/$file" && continue
12700      fdir=`$as_dirname -- "$file" ||
12701$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12702	 X"$file" : 'X\(//\)[^/]' \| \
12703	 X"$file" : 'X\(//\)$' \| \
12704	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12705$as_echo X"$file" |
12706    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12707	    s//\1/
12708	    q
12709	  }
12710	  /^X\(\/\/\)[^/].*/{
12711	    s//\1/
12712	    q
12713	  }
12714	  /^X\(\/\/\)$/{
12715	    s//\1/
12716	    q
12717	  }
12718	  /^X\(\/\).*/{
12719	    s//\1/
12720	    q
12721	  }
12722	  s/.*/./; q'`
12723      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12724      # echo "creating $dirpart/$file"
12725      echo '# dummy' > "$dirpart/$file"
12726    done
12727  done
12728}
12729 ;;
12730
12731  esac
12732done # for ac_tag
12733
12734
12735as_fn_exit 0
12736_ACEOF
12737ac_clean_files=$ac_clean_files_save
12738
12739test $ac_write_fail = 0 ||
12740  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12741
12742
12743# configure is writing to config.log, and then calls config.status.
12744# config.status does its own redirection, appending to config.log.
12745# Unfortunately, on DOS this fails, as config.log is still kept open
12746# by configure, so config.status won't be able to write to it; its
12747# output is simply discarded.  So we exec the FD to /dev/null,
12748# effectively closing config.log, so it can be properly (re)opened and
12749# appended to by config.status.  When coming back to configure, we
12750# need to make the FD available again.
12751if test "$no_create" != yes; then
12752  ac_cs_success=:
12753  ac_config_status_args=
12754  test "$silent" = yes &&
12755    ac_config_status_args="$ac_config_status_args --quiet"
12756  exec 5>/dev/null
12757  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12758  exec 5>>config.log
12759  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12760  # would make configure fail if this is the last instruction.
12761  $ac_cs_success || as_fn_exit 1
12762fi
12763if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12764  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12765$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12766fi
12767
12768