configure revision 7253c0c7
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xinit 1.3.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='xinit'
583PACKAGE_TARNAME='xinit'
584PACKAGE_VERSION='1.3.4'
585PACKAGE_STRING='xinit 1.3.4'
586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630XINITDIR
631XINIT
632XAUTH
633XSERVER
634XTERM
635XCLOCK
636TWM
637XMODMAP
638XRDB
639XCONFIGFILEMAN
640XCONFIGFILE
641XSERVERNAME
642SCOMAN
643SHELL_CMD
644STARTX_COOKIE_FLAGS
645OPENSSL
646MCOOKIE
647XINIT_LIBS
648XINIT_CFLAGS
649LAUNCHAGENT_XSERVER_FALSE
650LAUNCHAGENT_XSERVER_TRUE
651TIGER_LAUNCHD_FALSE
652TIGER_LAUNCHD_TRUE
653LAUNCHD_FALSE
654LAUNCHD_TRUE
655launchagentxserver
656bundleidprefix
657launchdaemonsdir
658launchagentsdir
659LAUNCHD
660TRADITIONALCPPFLAGS
661RAWCPPFLAGS
662RAWCPP
663MAN_SUBSTS
664XORG_MAN_PAGE
665ADMIN_MAN_DIR
666DRIVER_MAN_DIR
667MISC_MAN_DIR
668FILE_MAN_DIR
669LIB_MAN_DIR
670APP_MAN_DIR
671ADMIN_MAN_SUFFIX
672DRIVER_MAN_SUFFIX
673MISC_MAN_SUFFIX
674FILE_MAN_SUFFIX
675LIB_MAN_SUFFIX
676APP_MAN_SUFFIX
677SED
678host_os
679host_vendor
680host_cpu
681host
682build_os
683build_vendor
684build_cpu
685build
686INSTALL_CMD
687PKG_CONFIG_LIBDIR
688PKG_CONFIG_PATH
689PKG_CONFIG
690CHANGELOG_CMD
691STRICT_CFLAGS
692CWARNFLAGS
693BASE_CFLAGS
694EGREP
695GREP
696CPP
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__quote
705am__include
706DEPDIR
707OBJEXT
708EXEEXT
709ac_ct_CC
710CPPFLAGS
711LDFLAGS
712CFLAGS
713CC
714AM_BACKSLASH
715AM_DEFAULT_VERBOSITY
716AM_DEFAULT_V
717AM_V
718am__untar
719am__tar
720AMTAR
721am__leading_dot
722SET_MAKE
723AWK
724mkdir_p
725MKDIR_P
726INSTALL_STRIP_PROGRAM
727STRIP
728install_sh
729MAKEINFO
730AUTOHEADER
731AUTOMAKE
732AUTOCONF
733ACLOCAL
734VERSION
735PACKAGE
736CYGPATH_W
737am__isrc
738INSTALL_DATA
739INSTALL_SCRIPT
740INSTALL_PROGRAM
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_silent_rules
783enable_dependency_tracking
784enable_selective_werror
785enable_strict_compilation
786with_xrdb
787with_xmodmap
788with_twm
789with_xclock
790with_xterm
791with_xserver
792with_xauth
793with_xinit
794with_xinitdir
795with_launchd
796with_launchagents_dir
797with_launchagent_xserver
798with_launchdaemons_dir
799with_launchd_id_prefix
800with_bundle_id_prefix
801'
802      ac_precious_vars='build_alias
803host_alias
804target_alias
805CC
806CFLAGS
807LDFLAGS
808LIBS
809CPPFLAGS
810CPP
811PKG_CONFIG
812PKG_CONFIG_PATH
813PKG_CONFIG_LIBDIR
814XINIT_CFLAGS
815XINIT_LIBS'
816
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821ac_unrecognized_opts=
822ac_unrecognized_sep=
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870  # If the previous option needs an argument, assign it.
871  if test -n "$ac_prev"; then
872    eval $ac_prev=\$ac_option
873    ac_prev=
874    continue
875  fi
876
877  case $ac_option in
878  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879  *=)   ac_optarg= ;;
880  *)    ac_optarg=yes ;;
881  esac
882
883  # Accept the important Cygnus configure options, so we can diagnose typos.
884
885  case $ac_dashdash$ac_option in
886  --)
887    ac_dashdash=yes ;;
888
889  -bindir | --bindir | --bindi | --bind | --bin | --bi)
890    ac_prev=bindir ;;
891  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892    bindir=$ac_optarg ;;
893
894  -build | --build | --buil | --bui | --bu)
895    ac_prev=build_alias ;;
896  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897    build_alias=$ac_optarg ;;
898
899  -cache-file | --cache-file | --cache-fil | --cache-fi \
900  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901    ac_prev=cache_file ;;
902  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904    cache_file=$ac_optarg ;;
905
906  --config-cache | -C)
907    cache_file=config.cache ;;
908
909  -datadir | --datadir | --datadi | --datad)
910    ac_prev=datadir ;;
911  -datadir=* | --datadir=* | --datadi=* | --datad=*)
912    datadir=$ac_optarg ;;
913
914  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915  | --dataroo | --dataro | --datar)
916    ac_prev=datarootdir ;;
917  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919    datarootdir=$ac_optarg ;;
920
921  -disable-* | --disable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=no ;;
936
937  -docdir | --docdir | --docdi | --doc | --do)
938    ac_prev=docdir ;;
939  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940    docdir=$ac_optarg ;;
941
942  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943    ac_prev=dvidir ;;
944  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945    dvidir=$ac_optarg ;;
946
947  -enable-* | --enable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: $ac_useropt"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=\$ac_optarg ;;
962
963  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965  | --exec | --exe | --ex)
966    ac_prev=exec_prefix ;;
967  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969  | --exec=* | --exe=* | --ex=*)
970    exec_prefix=$ac_optarg ;;
971
972  -gas | --gas | --ga | --g)
973    # Obsolete; use --with-gas.
974    with_gas=yes ;;
975
976  -help | --help | --hel | --he | -h)
977    ac_init_help=long ;;
978  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979    ac_init_help=recursive ;;
980  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981    ac_init_help=short ;;
982
983  -host | --host | --hos | --ho)
984    ac_prev=host_alias ;;
985  -host=* | --host=* | --hos=* | --ho=*)
986    host_alias=$ac_optarg ;;
987
988  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989    ac_prev=htmldir ;;
990  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991  | --ht=*)
992    htmldir=$ac_optarg ;;
993
994  -includedir | --includedir | --includedi | --included | --include \
995  | --includ | --inclu | --incl | --inc)
996    ac_prev=includedir ;;
997  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998  | --includ=* | --inclu=* | --incl=* | --inc=*)
999    includedir=$ac_optarg ;;
1000
1001  -infodir | --infodir | --infodi | --infod | --info | --inf)
1002    ac_prev=infodir ;;
1003  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004    infodir=$ac_optarg ;;
1005
1006  -libdir | --libdir | --libdi | --libd)
1007    ac_prev=libdir ;;
1008  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009    libdir=$ac_optarg ;;
1010
1011  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012  | --libexe | --libex | --libe)
1013    ac_prev=libexecdir ;;
1014  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015  | --libexe=* | --libex=* | --libe=*)
1016    libexecdir=$ac_optarg ;;
1017
1018  -localedir | --localedir | --localedi | --localed | --locale)
1019    ac_prev=localedir ;;
1020  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021    localedir=$ac_optarg ;;
1022
1023  -localstatedir | --localstatedir | --localstatedi | --localstated \
1024  | --localstate | --localstat | --localsta | --localst | --locals)
1025    ac_prev=localstatedir ;;
1026  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028    localstatedir=$ac_optarg ;;
1029
1030  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031    ac_prev=mandir ;;
1032  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033    mandir=$ac_optarg ;;
1034
1035  -nfp | --nfp | --nf)
1036    # Obsolete; use --without-fp.
1037    with_fp=no ;;
1038
1039  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040  | --no-cr | --no-c | -n)
1041    no_create=yes ;;
1042
1043  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045    no_recursion=yes ;;
1046
1047  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049  | --oldin | --oldi | --old | --ol | --o)
1050    ac_prev=oldincludedir ;;
1051  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054    oldincludedir=$ac_optarg ;;
1055
1056  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057    ac_prev=prefix ;;
1058  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059    prefix=$ac_optarg ;;
1060
1061  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062  | --program-pre | --program-pr | --program-p)
1063    ac_prev=program_prefix ;;
1064  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066    program_prefix=$ac_optarg ;;
1067
1068  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069  | --program-suf | --program-su | --program-s)
1070    ac_prev=program_suffix ;;
1071  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073    program_suffix=$ac_optarg ;;
1074
1075  -program-transform-name | --program-transform-name \
1076  | --program-transform-nam | --program-transform-na \
1077  | --program-transform-n | --program-transform- \
1078  | --program-transform | --program-transfor \
1079  | --program-transfo | --program-transf \
1080  | --program-trans | --program-tran \
1081  | --progr-tra | --program-tr | --program-t)
1082    ac_prev=program_transform_name ;;
1083  -program-transform-name=* | --program-transform-name=* \
1084  | --program-transform-nam=* | --program-transform-na=* \
1085  | --program-transform-n=* | --program-transform-=* \
1086  | --program-transform=* | --program-transfor=* \
1087  | --program-transfo=* | --program-transf=* \
1088  | --program-trans=* | --program-tran=* \
1089  | --progr-tra=* | --program-tr=* | --program-t=*)
1090    program_transform_name=$ac_optarg ;;
1091
1092  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093    ac_prev=pdfdir ;;
1094  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095    pdfdir=$ac_optarg ;;
1096
1097  -psdir | --psdir | --psdi | --psd | --ps)
1098    ac_prev=psdir ;;
1099  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100    psdir=$ac_optarg ;;
1101
1102  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103  | -silent | --silent | --silen | --sile | --sil)
1104    silent=yes ;;
1105
1106  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107    ac_prev=sbindir ;;
1108  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109  | --sbi=* | --sb=*)
1110    sbindir=$ac_optarg ;;
1111
1112  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114  | --sharedst | --shareds | --shared | --share | --shar \
1115  | --sha | --sh)
1116    ac_prev=sharedstatedir ;;
1117  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120  | --sha=* | --sh=*)
1121    sharedstatedir=$ac_optarg ;;
1122
1123  -site | --site | --sit)
1124    ac_prev=site ;;
1125  -site=* | --site=* | --sit=*)
1126    site=$ac_optarg ;;
1127
1128  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129    ac_prev=srcdir ;;
1130  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131    srcdir=$ac_optarg ;;
1132
1133  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134  | --syscon | --sysco | --sysc | --sys | --sy)
1135    ac_prev=sysconfdir ;;
1136  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138    sysconfdir=$ac_optarg ;;
1139
1140  -target | --target | --targe | --targ | --tar | --ta | --t)
1141    ac_prev=target_alias ;;
1142  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143    target_alias=$ac_optarg ;;
1144
1145  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146    verbose=yes ;;
1147
1148  -version | --version | --versio | --versi | --vers | -V)
1149    ac_init_version=: ;;
1150
1151  -with-* | --with-*)
1152    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153    # Reject names that are not valid shell variable names.
1154    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155      as_fn_error $? "invalid package name: $ac_useropt"
1156    ac_useropt_orig=$ac_useropt
1157    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158    case $ac_user_opts in
1159      *"
1160"with_$ac_useropt"
1161"*) ;;
1162      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163	 ac_unrecognized_sep=', ';;
1164    esac
1165    eval with_$ac_useropt=\$ac_optarg ;;
1166
1167  -without-* | --without-*)
1168    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169    # Reject names that are not valid shell variable names.
1170    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171      as_fn_error $? "invalid package name: $ac_useropt"
1172    ac_useropt_orig=$ac_useropt
1173    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174    case $ac_user_opts in
1175      *"
1176"with_$ac_useropt"
1177"*) ;;
1178      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179	 ac_unrecognized_sep=', ';;
1180    esac
1181    eval with_$ac_useropt=no ;;
1182
1183  --x)
1184    # Obsolete; use --with-x.
1185    with_x=yes ;;
1186
1187  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188  | --x-incl | --x-inc | --x-in | --x-i)
1189    ac_prev=x_includes ;;
1190  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192    x_includes=$ac_optarg ;;
1193
1194  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196    ac_prev=x_libraries ;;
1197  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199    x_libraries=$ac_optarg ;;
1200
1201  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information"
1203    ;;
1204
1205  *=*)
1206    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207    # Reject names that are not valid shell variable names.
1208    case $ac_envvar in #(
1209      '' | [0-9]* | *[!_$as_cr_alnum]* )
1210      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211    esac
1212    eval $ac_envvar=\$ac_optarg
1213    export $ac_envvar ;;
1214
1215  *)
1216    # FIXME: should be removed in autoconf 3.0.
1217    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221    ;;
1222
1223  esac
1224done
1225
1226if test -n "$ac_prev"; then
1227  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228  as_fn_error $? "missing argument to $ac_option"
1229fi
1230
1231if test -n "$ac_unrecognized_opts"; then
1232  case $enable_option_checking in
1233    no) ;;
1234    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236  esac
1237fi
1238
1239# Check all directory arguments for consistency.
1240for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241		datadir sysconfdir sharedstatedir localstatedir includedir \
1242		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243		libdir localedir mandir
1244do
1245  eval ac_val=\$$ac_var
1246  # Remove trailing slashes.
1247  case $ac_val in
1248    */ )
1249      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250      eval $ac_var=\$ac_val;;
1251  esac
1252  # Be sure to have absolute directory names.
1253  case $ac_val in
1254    [\\/$]* | ?:[\\/]* )  continue;;
1255    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256  esac
1257  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258done
1259
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
1266
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269  if test "x$build_alias" = x; then
1270    cross_compiling=maybe
1271  elif test "x$build_alias" != "x$host_alias"; then
1272    cross_compiling=yes
1273  fi
1274fi
1275
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
1280
1281
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285  as_fn_error $? "working directory cannot be determined"
1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287  as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292  ac_srcdir_defaulted=yes
1293  # Try the directory containing this script, then the parent directory.
1294  ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296	 X"$as_myself" : 'X\(//\)[^/]' \| \
1297	 X"$as_myself" : 'X\(//\)$' \| \
1298	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)[^/].*/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)$/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\).*/{
1313	    s//\1/
1314	    q
1315	  }
1316	  s/.*/./; q'`
1317  srcdir=$ac_confdir
1318  if test ! -r "$srcdir/$ac_unique_file"; then
1319    srcdir=..
1320  fi
1321else
1322  ac_srcdir_defaulted=no
1323fi
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
1330	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331	pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334  srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344  eval ac_env_${ac_var}_value=\$${ac_var}
1345  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
1348
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353  # Omit some internal or obsolete options to make the list less imposing.
1354  # This message is too long to be a string in the A/UX 3.1 sh.
1355  cat <<_ACEOF
1356\`configure' configures xinit 1.3.4 to adapt to many kinds of systems.
1357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE.  See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366  -h, --help              display this help and exit
1367      --help=short        display options specific to this package
1368      --help=recursive    display the short help of all the included packages
1369  -V, --version           display version information and exit
1370  -q, --quiet, --silent   do not print \`checking ...' messages
1371      --cache-file=FILE   cache test results in FILE [disabled]
1372  -C, --config-cache      alias for \`--cache-file=config.cache'
1373  -n, --no-create         do not create output files
1374      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1375
1376Installation directories:
1377  --prefix=PREFIX         install architecture-independent files in PREFIX
1378                          [$ac_default_prefix]
1379  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1380                          [PREFIX]
1381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
1390  --bindir=DIR            user executables [EPREFIX/bin]
1391  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1392  --libexecdir=DIR        program executables [EPREFIX/libexec]
1393  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1394  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1395  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1396  --libdir=DIR            object code libraries [EPREFIX/lib]
1397  --includedir=DIR        C header files [PREFIX/include]
1398  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401  --infodir=DIR           info documentation [DATAROOTDIR/info]
1402  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403  --mandir=DIR            man documentation [DATAROOTDIR/man]
1404  --docdir=DIR            documentation root [DATAROOTDIR/doc/xinit]
1405  --htmldir=DIR           html documentation [DOCDIR]
1406  --dvidir=DIR            dvi documentation [DOCDIR]
1407  --pdfdir=DIR            pdf documentation [DOCDIR]
1408  --psdir=DIR             ps documentation [DOCDIR]
1409_ACEOF
1410
1411  cat <<\_ACEOF
1412
1413Program names:
1414  --program-prefix=PREFIX            prepend PREFIX to installed program names
1415  --program-suffix=SUFFIX            append SUFFIX to installed program names
1416  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418System types:
1419  --build=BUILD     configure for building on BUILD [guessed]
1420  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421_ACEOF
1422fi
1423
1424if test -n "$ac_init_help"; then
1425  case $ac_init_help in
1426     short | recursive ) echo "Configuration of xinit 1.3.4:";;
1427   esac
1428  cat <<\_ACEOF
1429
1430Optional Features:
1431  --disable-option-checking  ignore unrecognized --enable/--with options
1432  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434  --enable-silent-rules   less verbose build output (undo: "make V=1")
1435  --disable-silent-rules  verbose build output (undo: "make V=0")
1436  --enable-dependency-tracking
1437                          do not reject slow dependency extractors
1438  --disable-dependency-tracking
1439                          speeds up one-time build
1440  --disable-selective-werror
1441                          Turn off selective compiler errors. (default:
1442                          enabled)
1443  --enable-strict-compilation
1444                          Enable all warnings from compiler and make them
1445                          errors (default: disabled)
1446
1447Optional Packages:
1448  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1449  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1450  --with-xrdb=XRDB        Path to xrdb
1451  --with-xmodmap=XMODMAP  Path to xmodmap
1452  --with-twm=TWM          Path to twm
1453  --with-xclock=XCLOCK    Path to xclock
1454  --with-xterm=XTERM      Path to xterm
1455  --with-xserver=XSERVER  Path to default X server
1456  --with-xauth=XAUTH      Path to xauth
1457  --with-xinit=XINIT      Path to xinit
1458  --with-xinitdir=XINITDIR
1459                          Path to xinitdir
1460  --with-launchd          Build with support for Apple's launchd (default:
1461                          auto)
1462  --with-launchagents-dir=PATH
1463                          Path to launchd's LaunchAgents directory (default:
1464                          /Library/LaunchAgents)
1465  --with-launchagent-xserver=PATH
1466                          Path to the X server which the LaunchAgent should
1467                          start (if not provided, let startx decide)"
1468  --with-launchdaemons-dir=PATH
1469                          Path to launchd's LaunchDaemonss directory (default:
1470                          /Library/LaunchDaemons)
1471  --with-launchd-id-prefix=PATH
1472                          Deprecated: Use --with-bundle-id-prefix.
1473  --with-bundle-id-prefix=PATH
1474                          Prefix to use for bundle identifiers (default:
1475                          org.x)
1476
1477Some influential environment variables:
1478  CC          C compiler command
1479  CFLAGS      C compiler flags
1480  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1481              nonstandard directory <lib dir>
1482  LIBS        libraries to pass to the linker, e.g. -l<library>
1483  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484              you have headers in a nonstandard directory <include dir>
1485  CPP         C preprocessor
1486  PKG_CONFIG  path to pkg-config utility
1487  PKG_CONFIG_PATH
1488              directories to add to pkg-config's search path
1489  PKG_CONFIG_LIBDIR
1490              path overriding pkg-config's built-in search path
1491  XINIT_CFLAGS
1492              C compiler flags for XINIT, overriding pkg-config
1493  XINIT_LIBS  linker flags for XINIT, overriding pkg-config
1494
1495Use these variables to override the choices made by `configure' or to help
1496it to find libraries and programs with nonstandard names/locations.
1497
1498Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1499_ACEOF
1500ac_status=$?
1501fi
1502
1503if test "$ac_init_help" = "recursive"; then
1504  # If there are subdirs, report their specific --help.
1505  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506    test -d "$ac_dir" ||
1507      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508      continue
1509    ac_builddir=.
1510
1511case "$ac_dir" in
1512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513*)
1514  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515  # A ".." for each directory in $ac_dir_suffix.
1516  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517  case $ac_top_builddir_sub in
1518  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520  esac ;;
1521esac
1522ac_abs_top_builddir=$ac_pwd
1523ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524# for backward compatibility:
1525ac_top_builddir=$ac_top_build_prefix
1526
1527case $srcdir in
1528  .)  # We are building in place.
1529    ac_srcdir=.
1530    ac_top_srcdir=$ac_top_builddir_sub
1531    ac_abs_top_srcdir=$ac_pwd ;;
1532  [\\/]* | ?:[\\/]* )  # Absolute name.
1533    ac_srcdir=$srcdir$ac_dir_suffix;
1534    ac_top_srcdir=$srcdir
1535    ac_abs_top_srcdir=$srcdir ;;
1536  *) # Relative name.
1537    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538    ac_top_srcdir=$ac_top_build_prefix$srcdir
1539    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540esac
1541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543    cd "$ac_dir" || { ac_status=$?; continue; }
1544    # Check for guested configure.
1545    if test -f "$ac_srcdir/configure.gnu"; then
1546      echo &&
1547      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548    elif test -f "$ac_srcdir/configure"; then
1549      echo &&
1550      $SHELL "$ac_srcdir/configure" --help=recursive
1551    else
1552      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553    fi || ac_status=$?
1554    cd "$ac_pwd" || { ac_status=$?; break; }
1555  done
1556fi
1557
1558test -n "$ac_init_help" && exit $ac_status
1559if $ac_init_version; then
1560  cat <<\_ACEOF
1561xinit configure 1.3.4
1562generated by GNU Autoconf 2.69
1563
1564Copyright (C) 2012 Free Software Foundation, Inc.
1565This configure script is free software; the Free Software Foundation
1566gives unlimited permission to copy, distribute and modify it.
1567_ACEOF
1568  exit
1569fi
1570
1571## ------------------------ ##
1572## Autoconf initialization. ##
1573## ------------------------ ##
1574
1575# ac_fn_c_try_compile LINENO
1576# --------------------------
1577# Try to compile conftest.$ac_ext, and return whether this succeeded.
1578ac_fn_c_try_compile ()
1579{
1580  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581  rm -f conftest.$ac_objext
1582  if { { ac_try="$ac_compile"
1583case "(($ac_try" in
1584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585  *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589  (eval "$ac_compile") 2>conftest.err
1590  ac_status=$?
1591  if test -s conftest.err; then
1592    grep -v '^ *+' conftest.err >conftest.er1
1593    cat conftest.er1 >&5
1594    mv -f conftest.er1 conftest.err
1595  fi
1596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597  test $ac_status = 0; } && {
1598	 test -z "$ac_c_werror_flag" ||
1599	 test ! -s conftest.err
1600       } && test -s conftest.$ac_objext; then :
1601  ac_retval=0
1602else
1603  $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606	ac_retval=1
1607fi
1608  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609  as_fn_set_status $ac_retval
1610
1611} # ac_fn_c_try_compile
1612
1613# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1614# ---------------------------------------------
1615# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1616# accordingly.
1617ac_fn_c_check_decl ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  as_decl_name=`echo $2|sed 's/ *(.*//'`
1621  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1623$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1624if eval \${$3+:} false; then :
1625  $as_echo_n "(cached) " >&6
1626else
1627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628/* end confdefs.h.  */
1629$4
1630int
1631main ()
1632{
1633#ifndef $as_decl_name
1634#ifdef __cplusplus
1635  (void) $as_decl_use;
1636#else
1637  (void) $as_decl_name;
1638#endif
1639#endif
1640
1641  ;
1642  return 0;
1643}
1644_ACEOF
1645if ac_fn_c_try_compile "$LINENO"; then :
1646  eval "$3=yes"
1647else
1648  eval "$3=no"
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651fi
1652eval ac_res=\$$3
1653	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654$as_echo "$ac_res" >&6; }
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657} # ac_fn_c_check_decl
1658
1659# ac_fn_c_try_cpp LINENO
1660# ----------------------
1661# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_cpp ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  if { { ac_try="$ac_cpp conftest.$ac_ext"
1666case "(($ac_try" in
1667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668  *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673  ac_status=$?
1674  if test -s conftest.err; then
1675    grep -v '^ *+' conftest.err >conftest.er1
1676    cat conftest.er1 >&5
1677    mv -f conftest.er1 conftest.err
1678  fi
1679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680  test $ac_status = 0; } > conftest.i && {
1681	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682	 test ! -s conftest.err
1683       }; then :
1684  ac_retval=0
1685else
1686  $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
1688
1689    ac_retval=1
1690fi
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692  as_fn_set_status $ac_retval
1693
1694} # ac_fn_c_try_cpp
1695
1696# ac_fn_c_try_run LINENO
1697# ----------------------
1698# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699# that executables *can* be run.
1700ac_fn_c_try_run ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  if { { ac_try="$ac_link"
1704case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_link") 2>&5
1711  ac_status=$?
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714  { { case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720  (eval "$ac_try") 2>&5
1721  ac_status=$?
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; }; }; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: program exited with status $ac_status" >&5
1727       $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730       ac_retval=$ac_status
1731fi
1732  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734  as_fn_set_status $ac_retval
1735
1736} # ac_fn_c_try_run
1737
1738# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1739# -------------------------------------------------------
1740# Tests whether HEADER exists and can be compiled using the include files in
1741# INCLUDES, setting the cache variable VAR accordingly.
1742ac_fn_c_check_header_compile ()
1743{
1744  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746$as_echo_n "checking for $2... " >&6; }
1747if eval \${$3+:} false; then :
1748  $as_echo_n "(cached) " >&6
1749else
1750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751/* end confdefs.h.  */
1752$4
1753#include <$2>
1754_ACEOF
1755if ac_fn_c_try_compile "$LINENO"; then :
1756  eval "$3=yes"
1757else
1758  eval "$3=no"
1759fi
1760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761fi
1762eval ac_res=\$$3
1763	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764$as_echo "$ac_res" >&6; }
1765  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
1767} # ac_fn_c_check_header_compile
1768
1769# ac_fn_c_try_link LINENO
1770# -----------------------
1771# Try to link conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_link ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  rm -f conftest.$ac_objext conftest$ac_exeext
1776  if { { ac_try="$ac_link"
1777case "(($ac_try" in
1778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779  *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783  (eval "$ac_link") 2>conftest.err
1784  ac_status=$?
1785  if test -s conftest.err; then
1786    grep -v '^ *+' conftest.err >conftest.er1
1787    cat conftest.er1 >&5
1788    mv -f conftest.er1 conftest.err
1789  fi
1790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791  test $ac_status = 0; } && {
1792	 test -z "$ac_c_werror_flag" ||
1793	 test ! -s conftest.err
1794       } && test -s conftest$ac_exeext && {
1795	 test "$cross_compiling" = yes ||
1796	 test -x conftest$ac_exeext
1797       }; then :
1798  ac_retval=0
1799else
1800  $as_echo "$as_me: failed program was:" >&5
1801sed 's/^/| /' conftest.$ac_ext >&5
1802
1803	ac_retval=1
1804fi
1805  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807  # interfere with the next link command; also delete a directory that is
1808  # left behind by Apple's compiler.  We do this before executing the actions.
1809  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811  as_fn_set_status $ac_retval
1812
1813} # ac_fn_c_try_link
1814
1815# ac_fn_c_check_func LINENO FUNC VAR
1816# ----------------------------------
1817# Tests whether FUNC exists, setting the cache variable VAR accordingly
1818ac_fn_c_check_func ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822$as_echo_n "checking for $2... " >&6; }
1823if eval \${$3+:} false; then :
1824  $as_echo_n "(cached) " >&6
1825else
1826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h.  */
1828/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1830#define $2 innocuous_$2
1831
1832/* System header to define __stub macros and hopefully few prototypes,
1833    which can conflict with char $2 (); below.
1834    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835    <limits.h> exists even on freestanding compilers.  */
1836
1837#ifdef __STDC__
1838# include <limits.h>
1839#else
1840# include <assert.h>
1841#endif
1842
1843#undef $2
1844
1845/* Override any GCC internal prototype to avoid an error.
1846   Use char because int might match the return type of a GCC
1847   builtin and then its argument prototype would still apply.  */
1848#ifdef __cplusplus
1849extern "C"
1850#endif
1851char $2 ();
1852/* The GNU C library defines this for functions which it implements
1853    to always fail with ENOSYS.  Some functions are actually named
1854    something starting with __ and the normal name is an alias.  */
1855#if defined __stub_$2 || defined __stub___$2
1856choke me
1857#endif
1858
1859int
1860main ()
1861{
1862return $2 ();
1863  ;
1864  return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_link "$LINENO"; then :
1868  eval "$3=yes"
1869else
1870  eval "$3=no"
1871fi
1872rm -f core conftest.err conftest.$ac_objext \
1873    conftest$ac_exeext conftest.$ac_ext
1874fi
1875eval ac_res=\$$3
1876	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880} # ac_fn_c_check_func
1881cat >config.log <<_ACEOF
1882This file contains any messages produced by compilers while
1883running configure, to aid debugging if configure makes a mistake.
1884
1885It was created by xinit $as_me 1.3.4, which was
1886generated by GNU Autoconf 2.69.  Invocation command line was
1887
1888  $ $0 $@
1889
1890_ACEOF
1891exec 5>>config.log
1892{
1893cat <<_ASUNAME
1894## --------- ##
1895## Platform. ##
1896## --------- ##
1897
1898hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
1904/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1906
1907/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1908/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1909/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1911/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1912/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1913/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1914
1915_ASUNAME
1916
1917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918for as_dir in $PATH
1919do
1920  IFS=$as_save_IFS
1921  test -z "$as_dir" && as_dir=.
1922    $as_echo "PATH: $as_dir"
1923  done
1924IFS=$as_save_IFS
1925
1926} >&5
1927
1928cat >&5 <<_ACEOF
1929
1930
1931## ----------- ##
1932## Core tests. ##
1933## ----------- ##
1934
1935_ACEOF
1936
1937
1938# Keep a trace of the command line.
1939# Strip out --no-create and --no-recursion so they do not pile up.
1940# Strip out --silent because we don't want to record it for future runs.
1941# Also quote any args containing shell meta-characters.
1942# Make two passes to allow for proper duplicate-argument suppression.
1943ac_configure_args=
1944ac_configure_args0=
1945ac_configure_args1=
1946ac_must_keep_next=false
1947for ac_pass in 1 2
1948do
1949  for ac_arg
1950  do
1951    case $ac_arg in
1952    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954    | -silent | --silent | --silen | --sile | --sil)
1955      continue ;;
1956    *\'*)
1957      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958    esac
1959    case $ac_pass in
1960    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961    2)
1962      as_fn_append ac_configure_args1 " '$ac_arg'"
1963      if test $ac_must_keep_next = true; then
1964	ac_must_keep_next=false # Got value, back to normal.
1965      else
1966	case $ac_arg in
1967	  *=* | --config-cache | -C | -disable-* | --disable-* \
1968	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970	  | -with-* | --with-* | -without-* | --without-* | --x)
1971	    case "$ac_configure_args0 " in
1972	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973	    esac
1974	    ;;
1975	  -* ) ac_must_keep_next=true ;;
1976	esac
1977      fi
1978      as_fn_append ac_configure_args " '$ac_arg'"
1979      ;;
1980    esac
1981  done
1982done
1983{ ac_configure_args0=; unset ac_configure_args0;}
1984{ ac_configure_args1=; unset ac_configure_args1;}
1985
1986# When interrupted or exit'd, cleanup temporary files, and complete
1987# config.log.  We remove comments because anyway the quotes in there
1988# would cause problems or look ugly.
1989# WARNING: Use '\'' to represent an apostrophe within the trap.
1990# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991trap 'exit_status=$?
1992  # Save into config.log some information that might help in debugging.
1993  {
1994    echo
1995
1996    $as_echo "## ---------------- ##
1997## Cache variables. ##
1998## ---------------- ##"
1999    echo
2000    # The following way of writing the cache mishandles newlines in values,
2001(
2002  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003    eval ac_val=\$$ac_var
2004    case $ac_val in #(
2005    *${as_nl}*)
2006      case $ac_var in #(
2007      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009      esac
2010      case $ac_var in #(
2011      _ | IFS | as_nl) ;; #(
2012      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013      *) { eval $ac_var=; unset $ac_var;} ;;
2014      esac ;;
2015    esac
2016  done
2017  (set) 2>&1 |
2018    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019    *${as_nl}ac_space=\ *)
2020      sed -n \
2021	"s/'\''/'\''\\\\'\'''\''/g;
2022	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023      ;; #(
2024    *)
2025      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026      ;;
2027    esac |
2028    sort
2029)
2030    echo
2031
2032    $as_echo "## ----------------- ##
2033## Output variables. ##
2034## ----------------- ##"
2035    echo
2036    for ac_var in $ac_subst_vars
2037    do
2038      eval ac_val=\$$ac_var
2039      case $ac_val in
2040      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041      esac
2042      $as_echo "$ac_var='\''$ac_val'\''"
2043    done | sort
2044    echo
2045
2046    if test -n "$ac_subst_files"; then
2047      $as_echo "## ------------------- ##
2048## File substitutions. ##
2049## ------------------- ##"
2050      echo
2051      for ac_var in $ac_subst_files
2052      do
2053	eval ac_val=\$$ac_var
2054	case $ac_val in
2055	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056	esac
2057	$as_echo "$ac_var='\''$ac_val'\''"
2058      done | sort
2059      echo
2060    fi
2061
2062    if test -s confdefs.h; then
2063      $as_echo "## ----------- ##
2064## confdefs.h. ##
2065## ----------- ##"
2066      echo
2067      cat confdefs.h
2068      echo
2069    fi
2070    test "$ac_signal" != 0 &&
2071      $as_echo "$as_me: caught signal $ac_signal"
2072    $as_echo "$as_me: exit $exit_status"
2073  } >&5
2074  rm -f core *.core core.conftest.* &&
2075    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076    exit $exit_status
2077' 0
2078for ac_signal in 1 2 13 15; do
2079  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080done
2081ac_signal=0
2082
2083# confdefs.h avoids OS command line length limits that DEFS can exceed.
2084rm -f -r conftest* confdefs.h
2085
2086$as_echo "/* confdefs.h */" > confdefs.h
2087
2088# Predefined preprocessor variables.
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_NAME "$PACKAGE_NAME"
2092_ACEOF
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2096_ACEOF
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_VERSION "$PACKAGE_VERSION"
2100_ACEOF
2101
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_STRING "$PACKAGE_STRING"
2104_ACEOF
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2108_ACEOF
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_URL "$PACKAGE_URL"
2112_ACEOF
2113
2114
2115# Let the site file select an alternate cache file if it wants to.
2116# Prefer an explicitly selected file to automatically selected ones.
2117ac_site_file1=NONE
2118ac_site_file2=NONE
2119if test -n "$CONFIG_SITE"; then
2120  # We do not want a PATH search for config.site.
2121  case $CONFIG_SITE in #((
2122    -*)  ac_site_file1=./$CONFIG_SITE;;
2123    */*) ac_site_file1=$CONFIG_SITE;;
2124    *)   ac_site_file1=./$CONFIG_SITE;;
2125  esac
2126elif test "x$prefix" != xNONE; then
2127  ac_site_file1=$prefix/share/config.site
2128  ac_site_file2=$prefix/etc/config.site
2129else
2130  ac_site_file1=$ac_default_prefix/share/config.site
2131  ac_site_file2=$ac_default_prefix/etc/config.site
2132fi
2133for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134do
2135  test "x$ac_site_file" = xNONE && continue
2136  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2137    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2139    sed 's/^/| /' "$ac_site_file" >&5
2140    . "$ac_site_file" \
2141      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143as_fn_error $? "failed to load site script $ac_site_file
2144See \`config.log' for more details" "$LINENO" 5; }
2145  fi
2146done
2147
2148if test -r "$cache_file"; then
2149  # Some versions of bash will fail to source /dev/null (special files
2150  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2151  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2152    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153$as_echo "$as_me: loading cache $cache_file" >&6;}
2154    case $cache_file in
2155      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156      *)                      . "./$cache_file";;
2157    esac
2158  fi
2159else
2160  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161$as_echo "$as_me: creating cache $cache_file" >&6;}
2162  >$cache_file
2163fi
2164
2165# Check that the precious variables saved in the cache have kept the same
2166# value.
2167ac_cache_corrupted=false
2168for ac_var in $ac_precious_vars; do
2169  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170  eval ac_new_set=\$ac_env_${ac_var}_set
2171  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172  eval ac_new_val=\$ac_env_${ac_var}_value
2173  case $ac_old_set,$ac_new_set in
2174    set,)
2175      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177      ac_cache_corrupted=: ;;
2178    ,set)
2179      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181      ac_cache_corrupted=: ;;
2182    ,);;
2183    *)
2184      if test "x$ac_old_val" != "x$ac_new_val"; then
2185	# differences in whitespace do not lead to failure.
2186	ac_old_val_w=`echo x $ac_old_val`
2187	ac_new_val_w=`echo x $ac_new_val`
2188	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191	  ac_cache_corrupted=:
2192	else
2193	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195	  eval $ac_var=\$ac_old_val
2196	fi
2197	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2198$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2199	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2200$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2201      fi;;
2202  esac
2203  # Pass precious variables to config.status.
2204  if test "$ac_new_set" = set; then
2205    case $ac_new_val in
2206    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207    *) ac_arg=$ac_var=$ac_new_val ;;
2208    esac
2209    case " $ac_configure_args " in
2210      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2211      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212    esac
2213  fi
2214done
2215if $ac_cache_corrupted; then
2216  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221fi
2222## -------------------- ##
2223## Main body of script. ##
2224## -------------------- ##
2225
2226ac_ext=c
2227ac_cpp='$CPP $CPPFLAGS'
2228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231
2232
2233
2234ac_config_headers="$ac_config_headers config.h"
2235
2236
2237# Initialize Automake
2238am__api_version='1.14'
2239
2240ac_aux_dir=
2241for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2242  if test -f "$ac_dir/install-sh"; then
2243    ac_aux_dir=$ac_dir
2244    ac_install_sh="$ac_aux_dir/install-sh -c"
2245    break
2246  elif test -f "$ac_dir/install.sh"; then
2247    ac_aux_dir=$ac_dir
2248    ac_install_sh="$ac_aux_dir/install.sh -c"
2249    break
2250  elif test -f "$ac_dir/shtool"; then
2251    ac_aux_dir=$ac_dir
2252    ac_install_sh="$ac_aux_dir/shtool install -c"
2253    break
2254  fi
2255done
2256if test -z "$ac_aux_dir"; then
2257  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2258fi
2259
2260# These three variables are undocumented and unsupported,
2261# and are intended to be withdrawn in a future Autoconf release.
2262# They can cause serious problems if a builder's source tree is in a directory
2263# whose full name contains unusual characters.
2264ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2265ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2266ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2267
2268
2269# Find a good install program.  We prefer a C program (faster),
2270# so one script is as good as another.  But avoid the broken or
2271# incompatible versions:
2272# SysV /etc/install, /usr/sbin/install
2273# SunOS /usr/etc/install
2274# IRIX /sbin/install
2275# AIX /bin/install
2276# AmigaOS /C/install, which installs bootblocks on floppy discs
2277# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2278# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2279# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2280# OS/2's system install, which has a completely different semantic
2281# ./install, which can be erroneously created by make from ./install.sh.
2282# Reject install programs that cannot install multiple files.
2283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2284$as_echo_n "checking for a BSD-compatible install... " >&6; }
2285if test -z "$INSTALL"; then
2286if ${ac_cv_path_install+:} false; then :
2287  $as_echo_n "(cached) " >&6
2288else
2289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290for as_dir in $PATH
2291do
2292  IFS=$as_save_IFS
2293  test -z "$as_dir" && as_dir=.
2294    # Account for people who put trailing slashes in PATH elements.
2295case $as_dir/ in #((
2296  ./ | .// | /[cC]/* | \
2297  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2298  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2299  /usr/ucb/* ) ;;
2300  *)
2301    # OSF1 and SCO ODT 3.0 have their own names for install.
2302    # Don't use installbsd from OSF since it installs stuff as root
2303    # by default.
2304    for ac_prog in ginstall scoinst install; do
2305      for ac_exec_ext in '' $ac_executable_extensions; do
2306	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2307	  if test $ac_prog = install &&
2308	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2309	    # AIX install.  It has an incompatible calling convention.
2310	    :
2311	  elif test $ac_prog = install &&
2312	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313	    # program-specific install script used by HP pwplus--don't use.
2314	    :
2315	  else
2316	    rm -rf conftest.one conftest.two conftest.dir
2317	    echo one > conftest.one
2318	    echo two > conftest.two
2319	    mkdir conftest.dir
2320	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2321	      test -s conftest.one && test -s conftest.two &&
2322	      test -s conftest.dir/conftest.one &&
2323	      test -s conftest.dir/conftest.two
2324	    then
2325	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2326	      break 3
2327	    fi
2328	  fi
2329	fi
2330      done
2331    done
2332    ;;
2333esac
2334
2335  done
2336IFS=$as_save_IFS
2337
2338rm -rf conftest.one conftest.two conftest.dir
2339
2340fi
2341  if test "${ac_cv_path_install+set}" = set; then
2342    INSTALL=$ac_cv_path_install
2343  else
2344    # As a last resort, use the slow shell script.  Don't cache a
2345    # value for INSTALL within a source directory, because that will
2346    # break other packages using the cache if that directory is
2347    # removed, or if the value is a relative name.
2348    INSTALL=$ac_install_sh
2349  fi
2350fi
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2352$as_echo "$INSTALL" >&6; }
2353
2354# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2355# It thinks the first close brace ends the variable substitution.
2356test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2357
2358test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2359
2360test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2361
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2363$as_echo_n "checking whether build environment is sane... " >&6; }
2364# Reject unsafe characters in $srcdir or the absolute working directory
2365# name.  Accept space and tab only in the latter.
2366am_lf='
2367'
2368case `pwd` in
2369  *[\\\"\#\$\&\'\`$am_lf]*)
2370    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2371esac
2372case $srcdir in
2373  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2374    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2375esac
2376
2377# Do 'set' in a subshell so we don't clobber the current shell's
2378# arguments.  Must try -L first in case configure is actually a
2379# symlink; some systems play weird games with the mod time of symlinks
2380# (eg FreeBSD returns the mod time of the symlink's containing
2381# directory).
2382if (
2383   am_has_slept=no
2384   for am_try in 1 2; do
2385     echo "timestamp, slept: $am_has_slept" > conftest.file
2386     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2387     if test "$*" = "X"; then
2388	# -L didn't work.
2389	set X `ls -t "$srcdir/configure" conftest.file`
2390     fi
2391     if test "$*" != "X $srcdir/configure conftest.file" \
2392	&& test "$*" != "X conftest.file $srcdir/configure"; then
2393
2394	# If neither matched, then we have a broken ls.  This can happen
2395	# if, for instance, CONFIG_SHELL is bash and it inherits a
2396	# broken ls alias from the environment.  This has actually
2397	# happened.  Such a system could not be considered "sane".
2398	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2399  alias in your environment" "$LINENO" 5
2400     fi
2401     if test "$2" = conftest.file || test $am_try -eq 2; then
2402       break
2403     fi
2404     # Just in case.
2405     sleep 1
2406     am_has_slept=yes
2407   done
2408   test "$2" = conftest.file
2409   )
2410then
2411   # Ok.
2412   :
2413else
2414   as_fn_error $? "newly created file is older than distributed files!
2415Check your system clock" "$LINENO" 5
2416fi
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2418$as_echo "yes" >&6; }
2419# If we didn't sleep, we still need to ensure time stamps of config.status and
2420# generated files are strictly newer.
2421am_sleep_pid=
2422if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2423  ( sleep 1 ) &
2424  am_sleep_pid=$!
2425fi
2426
2427rm -f conftest.file
2428
2429test "$program_prefix" != NONE &&
2430  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2431# Use a double $ so make ignores it.
2432test "$program_suffix" != NONE &&
2433  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434# Double any \ or $.
2435# By default was `s,x,x', remove it if useless.
2436ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2438
2439# expand $ac_aux_dir to an absolute path
2440am_aux_dir=`cd $ac_aux_dir && pwd`
2441
2442if test x"${MISSING+set}" != xset; then
2443  case $am_aux_dir in
2444  *\ * | *\	*)
2445    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2446  *)
2447    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2448  esac
2449fi
2450# Use eval to expand $SHELL
2451if eval "$MISSING --is-lightweight"; then
2452  am_missing_run="$MISSING "
2453else
2454  am_missing_run=
2455  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2456$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2457fi
2458
2459if test x"${install_sh}" != xset; then
2460  case $am_aux_dir in
2461  *\ * | *\	*)
2462    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2463  *)
2464    install_sh="\${SHELL} $am_aux_dir/install-sh"
2465  esac
2466fi
2467
2468# Installed binaries are usually stripped using 'strip' when the user
2469# run "make install-strip".  However 'strip' might not be the right
2470# tool to use in cross-compilation environments, therefore Automake
2471# will honor the 'STRIP' environment variable to overrule this program.
2472if test "$cross_compiling" != no; then
2473  if test -n "$ac_tool_prefix"; then
2474  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2475set dummy ${ac_tool_prefix}strip; ac_word=$2
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477$as_echo_n "checking for $ac_word... " >&6; }
2478if ${ac_cv_prog_STRIP+:} false; then :
2479  $as_echo_n "(cached) " >&6
2480else
2481  if test -n "$STRIP"; then
2482  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2483else
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487  IFS=$as_save_IFS
2488  test -z "$as_dir" && as_dir=.
2489    for ac_exec_ext in '' $ac_executable_extensions; do
2490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493    break 2
2494  fi
2495done
2496  done
2497IFS=$as_save_IFS
2498
2499fi
2500fi
2501STRIP=$ac_cv_prog_STRIP
2502if test -n "$STRIP"; then
2503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2504$as_echo "$STRIP" >&6; }
2505else
2506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507$as_echo "no" >&6; }
2508fi
2509
2510
2511fi
2512if test -z "$ac_cv_prog_STRIP"; then
2513  ac_ct_STRIP=$STRIP
2514  # Extract the first word of "strip", so it can be a program name with args.
2515set dummy strip; ac_word=$2
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517$as_echo_n "checking for $ac_word... " >&6; }
2518if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2519  $as_echo_n "(cached) " >&6
2520else
2521  if test -n "$ac_ct_STRIP"; then
2522  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2523else
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527  IFS=$as_save_IFS
2528  test -z "$as_dir" && as_dir=.
2529    for ac_exec_ext in '' $ac_executable_extensions; do
2530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531    ac_cv_prog_ac_ct_STRIP="strip"
2532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533    break 2
2534  fi
2535done
2536  done
2537IFS=$as_save_IFS
2538
2539fi
2540fi
2541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2542if test -n "$ac_ct_STRIP"; then
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2544$as_echo "$ac_ct_STRIP" >&6; }
2545else
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547$as_echo "no" >&6; }
2548fi
2549
2550  if test "x$ac_ct_STRIP" = x; then
2551    STRIP=":"
2552  else
2553    case $cross_compiling:$ac_tool_warned in
2554yes:)
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2557ac_tool_warned=yes ;;
2558esac
2559    STRIP=$ac_ct_STRIP
2560  fi
2561else
2562  STRIP="$ac_cv_prog_STRIP"
2563fi
2564
2565fi
2566INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2567
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2569$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2570if test -z "$MKDIR_P"; then
2571  if ${ac_cv_path_mkdir+:} false; then :
2572  $as_echo_n "(cached) " >&6
2573else
2574  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2576do
2577  IFS=$as_save_IFS
2578  test -z "$as_dir" && as_dir=.
2579    for ac_prog in mkdir gmkdir; do
2580	 for ac_exec_ext in '' $ac_executable_extensions; do
2581	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2582	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2583	     'mkdir (GNU coreutils) '* | \
2584	     'mkdir (coreutils) '* | \
2585	     'mkdir (fileutils) '4.1*)
2586	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2587	       break 3;;
2588	   esac
2589	 done
2590       done
2591  done
2592IFS=$as_save_IFS
2593
2594fi
2595
2596  test -d ./--version && rmdir ./--version
2597  if test "${ac_cv_path_mkdir+set}" = set; then
2598    MKDIR_P="$ac_cv_path_mkdir -p"
2599  else
2600    # As a last resort, use the slow shell script.  Don't cache a
2601    # value for MKDIR_P within a source directory, because that will
2602    # break other packages using the cache if that directory is
2603    # removed, or if the value is a relative name.
2604    MKDIR_P="$ac_install_sh -d"
2605  fi
2606fi
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2608$as_echo "$MKDIR_P" >&6; }
2609
2610for ac_prog in gawk mawk nawk awk
2611do
2612  # Extract the first word of "$ac_prog", so it can be a program name with args.
2613set dummy $ac_prog; ac_word=$2
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615$as_echo_n "checking for $ac_word... " >&6; }
2616if ${ac_cv_prog_AWK+:} false; then :
2617  $as_echo_n "(cached) " >&6
2618else
2619  if test -n "$AWK"; then
2620  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625  IFS=$as_save_IFS
2626  test -z "$as_dir" && as_dir=.
2627    for ac_exec_ext in '' $ac_executable_extensions; do
2628  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629    ac_cv_prog_AWK="$ac_prog"
2630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631    break 2
2632  fi
2633done
2634  done
2635IFS=$as_save_IFS
2636
2637fi
2638fi
2639AWK=$ac_cv_prog_AWK
2640if test -n "$AWK"; then
2641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2642$as_echo "$AWK" >&6; }
2643else
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645$as_echo "no" >&6; }
2646fi
2647
2648
2649  test -n "$AWK" && break
2650done
2651
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2653$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2654set x ${MAKE-make}
2655ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2656if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2657  $as_echo_n "(cached) " >&6
2658else
2659  cat >conftest.make <<\_ACEOF
2660SHELL = /bin/sh
2661all:
2662	@echo '@@@%%%=$(MAKE)=@@@%%%'
2663_ACEOF
2664# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2665case `${MAKE-make} -f conftest.make 2>/dev/null` in
2666  *@@@%%%=?*=@@@%%%*)
2667    eval ac_cv_prog_make_${ac_make}_set=yes;;
2668  *)
2669    eval ac_cv_prog_make_${ac_make}_set=no;;
2670esac
2671rm -f conftest.make
2672fi
2673if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675$as_echo "yes" >&6; }
2676  SET_MAKE=
2677else
2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679$as_echo "no" >&6; }
2680  SET_MAKE="MAKE=${MAKE-make}"
2681fi
2682
2683rm -rf .tst 2>/dev/null
2684mkdir .tst 2>/dev/null
2685if test -d .tst; then
2686  am__leading_dot=.
2687else
2688  am__leading_dot=_
2689fi
2690rmdir .tst 2>/dev/null
2691
2692# Check whether --enable-silent-rules was given.
2693if test "${enable_silent_rules+set}" = set; then :
2694  enableval=$enable_silent_rules;
2695fi
2696
2697case $enable_silent_rules in # (((
2698  yes) AM_DEFAULT_VERBOSITY=0;;
2699   no) AM_DEFAULT_VERBOSITY=1;;
2700    *) AM_DEFAULT_VERBOSITY=1;;
2701esac
2702am_make=${MAKE-make}
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2704$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2705if ${am_cv_make_support_nested_variables+:} false; then :
2706  $as_echo_n "(cached) " >&6
2707else
2708  if $as_echo 'TRUE=$(BAR$(V))
2709BAR0=false
2710BAR1=true
2711V=1
2712am__doit:
2713	@$(TRUE)
2714.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2715  am_cv_make_support_nested_variables=yes
2716else
2717  am_cv_make_support_nested_variables=no
2718fi
2719fi
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2721$as_echo "$am_cv_make_support_nested_variables" >&6; }
2722if test $am_cv_make_support_nested_variables = yes; then
2723    AM_V='$(V)'
2724  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2725else
2726  AM_V=$AM_DEFAULT_VERBOSITY
2727  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2728fi
2729AM_BACKSLASH='\'
2730
2731if test "`cd $srcdir && pwd`" != "`pwd`"; then
2732  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2733  # is not polluted with repeated "-I."
2734  am__isrc=' -I$(srcdir)'
2735  # test to see if srcdir already configured
2736  if test -f $srcdir/config.status; then
2737    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2738  fi
2739fi
2740
2741# test whether we have cygpath
2742if test -z "$CYGPATH_W"; then
2743  if (cygpath --version) >/dev/null 2>/dev/null; then
2744    CYGPATH_W='cygpath -w'
2745  else
2746    CYGPATH_W=echo
2747  fi
2748fi
2749
2750
2751# Define the identity of the package.
2752 PACKAGE='xinit'
2753 VERSION='1.3.4'
2754
2755
2756cat >>confdefs.h <<_ACEOF
2757#define PACKAGE "$PACKAGE"
2758_ACEOF
2759
2760
2761cat >>confdefs.h <<_ACEOF
2762#define VERSION "$VERSION"
2763_ACEOF
2764
2765# Some tools Automake needs.
2766
2767ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2768
2769
2770AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2771
2772
2773AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2774
2775
2776AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2777
2778
2779MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2780
2781# For better backward compatibility.  To be removed once Automake 1.9.x
2782# dies out for good.  For more background, see:
2783# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2784# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2785mkdir_p='$(MKDIR_P)'
2786
2787# We need awk for the "check" target.  The system "awk" is bad on
2788# some platforms.
2789# Always define AMTAR for backward compatibility.  Yes, it's still used
2790# in the wild :-(  We should find a proper way to deprecate it ...
2791AMTAR='$${TAR-tar}'
2792
2793
2794# We'll loop over all known methods to create a tar archive until one works.
2795_am_tools='gnutar  pax cpio none'
2796
2797am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2798
2799
2800
2801
2802
2803
2804# POSIX will say in a future version that running "rm -f" with no argument
2805# is OK; and we want to be able to make that assumption in our Makefile
2806# recipes.  So use an aggressive probe to check that the usage we want is
2807# actually supported "in the wild" to an acceptable degree.
2808# See automake bug#10828.
2809# To make any issue more visible, cause the running configure to be aborted
2810# by default if the 'rm' program in use doesn't match our expectations; the
2811# user can still override this though.
2812if rm -f && rm -fr && rm -rf; then : OK; else
2813  cat >&2 <<'END'
2814Oops!
2815
2816Your 'rm' program seems unable to run without file operands specified
2817on the command line, even when the '-f' option is present.  This is contrary
2818to the behaviour of most rm programs out there, and not conforming with
2819the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2820
2821Please tell bug-automake@gnu.org about your system, including the value
2822of your $PATH and any error possibly output before this message.  This
2823can help us improve future automake versions.
2824
2825END
2826  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2827    echo 'Configuration will proceed anyway, since you have set the' >&2
2828    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2829    echo >&2
2830  else
2831    cat >&2 <<'END'
2832Aborting the configuration process, to ensure you take notice of the issue.
2833
2834You can download and install GNU coreutils to get an 'rm' implementation
2835that behaves properly: <http://www.gnu.org/software/coreutils/>.
2836
2837If you want to complete the configuration process using your problematic
2838'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2839to "yes", and re-run configure.
2840
2841END
2842    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2843  fi
2844fi
2845
2846# Require X.Org macros 1.19 or later for TRADITIONALCPPFLAGS
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858DEPDIR="${am__leading_dot}deps"
2859
2860ac_config_commands="$ac_config_commands depfiles"
2861
2862
2863am_make=${MAKE-make}
2864cat > confinc << 'END'
2865am__doit:
2866	@echo this is the am__doit target
2867.PHONY: am__doit
2868END
2869# If we don't find an include directive, just comment out the code.
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2871$as_echo_n "checking for style of include used by $am_make... " >&6; }
2872am__include="#"
2873am__quote=
2874_am_result=none
2875# First try GNU make style include.
2876echo "include confinc" > confmf
2877# Ignore all kinds of additional output from 'make'.
2878case `$am_make -s -f confmf 2> /dev/null` in #(
2879*the\ am__doit\ target*)
2880  am__include=include
2881  am__quote=
2882  _am_result=GNU
2883  ;;
2884esac
2885# Now try BSD make style include.
2886if test "$am__include" = "#"; then
2887   echo '.include "confinc"' > confmf
2888   case `$am_make -s -f confmf 2> /dev/null` in #(
2889   *the\ am__doit\ target*)
2890     am__include=.include
2891     am__quote="\""
2892     _am_result=BSD
2893     ;;
2894   esac
2895fi
2896
2897
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2899$as_echo "$_am_result" >&6; }
2900rm -f confinc confmf
2901
2902# Check whether --enable-dependency-tracking was given.
2903if test "${enable_dependency_tracking+set}" = set; then :
2904  enableval=$enable_dependency_tracking;
2905fi
2906
2907if test "x$enable_dependency_tracking" != xno; then
2908  am_depcomp="$ac_aux_dir/depcomp"
2909  AMDEPBACKSLASH='\'
2910  am__nodep='_no'
2911fi
2912 if test "x$enable_dependency_tracking" != xno; then
2913  AMDEP_TRUE=
2914  AMDEP_FALSE='#'
2915else
2916  AMDEP_TRUE='#'
2917  AMDEP_FALSE=
2918fi
2919
2920
2921ac_ext=c
2922ac_cpp='$CPP $CPPFLAGS'
2923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926if test -n "$ac_tool_prefix"; then
2927  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930$as_echo_n "checking for $ac_word... " >&6; }
2931if ${ac_cv_prog_CC+:} false; then :
2932  $as_echo_n "(cached) " >&6
2933else
2934  if test -n "$CC"; then
2935  ac_cv_prog_CC="$CC" # Let the user override the test.
2936else
2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940  IFS=$as_save_IFS
2941  test -z "$as_dir" && as_dir=.
2942    for ac_exec_ext in '' $ac_executable_extensions; do
2943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946    break 2
2947  fi
2948done
2949  done
2950IFS=$as_save_IFS
2951
2952fi
2953fi
2954CC=$ac_cv_prog_CC
2955if test -n "$CC"; then
2956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957$as_echo "$CC" >&6; }
2958else
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960$as_echo "no" >&6; }
2961fi
2962
2963
2964fi
2965if test -z "$ac_cv_prog_CC"; then
2966  ac_ct_CC=$CC
2967  # Extract the first word of "gcc", so it can be a program name with args.
2968set dummy gcc; ac_word=$2
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970$as_echo_n "checking for $ac_word... " >&6; }
2971if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972  $as_echo_n "(cached) " >&6
2973else
2974  if test -n "$ac_ct_CC"; then
2975  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976else
2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980  IFS=$as_save_IFS
2981  test -z "$as_dir" && as_dir=.
2982    for ac_exec_ext in '' $ac_executable_extensions; do
2983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984    ac_cv_prog_ac_ct_CC="gcc"
2985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986    break 2
2987  fi
2988done
2989  done
2990IFS=$as_save_IFS
2991
2992fi
2993fi
2994ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995if test -n "$ac_ct_CC"; then
2996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997$as_echo "$ac_ct_CC" >&6; }
2998else
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000$as_echo "no" >&6; }
3001fi
3002
3003  if test "x$ac_ct_CC" = x; then
3004    CC=""
3005  else
3006    case $cross_compiling:$ac_tool_warned in
3007yes:)
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010ac_tool_warned=yes ;;
3011esac
3012    CC=$ac_ct_CC
3013  fi
3014else
3015  CC="$ac_cv_prog_CC"
3016fi
3017
3018if test -z "$CC"; then
3019          if test -n "$ac_tool_prefix"; then
3020    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021set dummy ${ac_tool_prefix}cc; ac_word=$2
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023$as_echo_n "checking for $ac_word... " >&6; }
3024if ${ac_cv_prog_CC+:} false; then :
3025  $as_echo_n "(cached) " >&6
3026else
3027  if test -n "$CC"; then
3028  ac_cv_prog_CC="$CC" # Let the user override the test.
3029else
3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031for as_dir in $PATH
3032do
3033  IFS=$as_save_IFS
3034  test -z "$as_dir" && as_dir=.
3035    for ac_exec_ext in '' $ac_executable_extensions; do
3036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037    ac_cv_prog_CC="${ac_tool_prefix}cc"
3038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039    break 2
3040  fi
3041done
3042  done
3043IFS=$as_save_IFS
3044
3045fi
3046fi
3047CC=$ac_cv_prog_CC
3048if test -n "$CC"; then
3049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050$as_echo "$CC" >&6; }
3051else
3052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053$as_echo "no" >&6; }
3054fi
3055
3056
3057  fi
3058fi
3059if test -z "$CC"; then
3060  # Extract the first word of "cc", so it can be a program name with args.
3061set dummy cc; ac_word=$2
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063$as_echo_n "checking for $ac_word... " >&6; }
3064if ${ac_cv_prog_CC+:} false; then :
3065  $as_echo_n "(cached) " >&6
3066else
3067  if test -n "$CC"; then
3068  ac_cv_prog_CC="$CC" # Let the user override the test.
3069else
3070  ac_prog_rejected=no
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
3075  test -z "$as_dir" && as_dir=.
3076    for ac_exec_ext in '' $ac_executable_extensions; do
3077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3079       ac_prog_rejected=yes
3080       continue
3081     fi
3082    ac_cv_prog_CC="cc"
3083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084    break 2
3085  fi
3086done
3087  done
3088IFS=$as_save_IFS
3089
3090if test $ac_prog_rejected = yes; then
3091  # We found a bogon in the path, so make sure we never use it.
3092  set dummy $ac_cv_prog_CC
3093  shift
3094  if test $# != 0; then
3095    # We chose a different compiler from the bogus one.
3096    # However, it has the same basename, so the bogon will be chosen
3097    # first if we set CC to just the basename; use the full file name.
3098    shift
3099    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100  fi
3101fi
3102fi
3103fi
3104CC=$ac_cv_prog_CC
3105if test -n "$CC"; then
3106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107$as_echo "$CC" >&6; }
3108else
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110$as_echo "no" >&6; }
3111fi
3112
3113
3114fi
3115if test -z "$CC"; then
3116  if test -n "$ac_tool_prefix"; then
3117  for ac_prog in cl.exe
3118  do
3119    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122$as_echo_n "checking for $ac_word... " >&6; }
3123if ${ac_cv_prog_CC+:} false; then :
3124  $as_echo_n "(cached) " >&6
3125else
3126  if test -n "$CC"; then
3127  ac_cv_prog_CC="$CC" # Let the user override the test.
3128else
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132  IFS=$as_save_IFS
3133  test -z "$as_dir" && as_dir=.
3134    for ac_exec_ext in '' $ac_executable_extensions; do
3135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138    break 2
3139  fi
3140done
3141  done
3142IFS=$as_save_IFS
3143
3144fi
3145fi
3146CC=$ac_cv_prog_CC
3147if test -n "$CC"; then
3148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149$as_echo "$CC" >&6; }
3150else
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152$as_echo "no" >&6; }
3153fi
3154
3155
3156    test -n "$CC" && break
3157  done
3158fi
3159if test -z "$CC"; then
3160  ac_ct_CC=$CC
3161  for ac_prog in cl.exe
3162do
3163  # Extract the first word of "$ac_prog", so it can be a program name with args.
3164set dummy $ac_prog; ac_word=$2
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166$as_echo_n "checking for $ac_word... " >&6; }
3167if ${ac_cv_prog_ac_ct_CC+:} false; then :
3168  $as_echo_n "(cached) " >&6
3169else
3170  if test -n "$ac_ct_CC"; then
3171  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172else
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176  IFS=$as_save_IFS
3177  test -z "$as_dir" && as_dir=.
3178    for ac_exec_ext in '' $ac_executable_extensions; do
3179  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180    ac_cv_prog_ac_ct_CC="$ac_prog"
3181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182    break 2
3183  fi
3184done
3185  done
3186IFS=$as_save_IFS
3187
3188fi
3189fi
3190ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191if test -n "$ac_ct_CC"; then
3192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193$as_echo "$ac_ct_CC" >&6; }
3194else
3195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196$as_echo "no" >&6; }
3197fi
3198
3199
3200  test -n "$ac_ct_CC" && break
3201done
3202
3203  if test "x$ac_ct_CC" = x; then
3204    CC=""
3205  else
3206    case $cross_compiling:$ac_tool_warned in
3207yes:)
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210ac_tool_warned=yes ;;
3211esac
3212    CC=$ac_ct_CC
3213  fi
3214fi
3215
3216fi
3217
3218
3219test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221as_fn_error $? "no acceptable C compiler found in \$PATH
3222See \`config.log' for more details" "$LINENO" 5; }
3223
3224# Provide some information about the compiler.
3225$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3226set X $ac_compile
3227ac_compiler=$2
3228for ac_option in --version -v -V -qversion; do
3229  { { ac_try="$ac_compiler $ac_option >&5"
3230case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235$as_echo "$ac_try_echo"; } >&5
3236  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3237  ac_status=$?
3238  if test -s conftest.err; then
3239    sed '10a\
3240... rest of stderr output deleted ...
3241         10q' conftest.err >conftest.er1
3242    cat conftest.er1 >&5
3243  fi
3244  rm -f conftest.er1 conftest.err
3245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246  test $ac_status = 0; }
3247done
3248
3249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250/* end confdefs.h.  */
3251
3252int
3253main ()
3254{
3255
3256  ;
3257  return 0;
3258}
3259_ACEOF
3260ac_clean_files_save=$ac_clean_files
3261ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3262# Try to create an executable without -o first, disregard a.out.
3263# It will help us diagnose broken compilers, and finding out an intuition
3264# of exeext.
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266$as_echo_n "checking whether the C compiler works... " >&6; }
3267ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3268
3269# The possible output files:
3270ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3271
3272ac_rmfiles=
3273for ac_file in $ac_files
3274do
3275  case $ac_file in
3276    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3278  esac
3279done
3280rm -f $ac_rmfiles
3281
3282if { { ac_try="$ac_link_default"
3283case "(($ac_try" in
3284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285  *) ac_try_echo=$ac_try;;
3286esac
3287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288$as_echo "$ac_try_echo"; } >&5
3289  (eval "$ac_link_default") 2>&5
3290  ac_status=$?
3291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292  test $ac_status = 0; }; then :
3293  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3294# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3295# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3296# so that the user can short-circuit this test for compilers unknown to
3297# Autoconf.
3298for ac_file in $ac_files ''
3299do
3300  test -f "$ac_file" || continue
3301  case $ac_file in
3302    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3303	;;
3304    [ab].out )
3305	# We found the default executable, but exeext='' is most
3306	# certainly right.
3307	break;;
3308    *.* )
3309	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3310	then :; else
3311	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312	fi
3313	# We set ac_cv_exeext here because the later test for it is not
3314	# safe: cross compilers may not add the suffix if given an `-o'
3315	# argument, so we may need to know it at that point already.
3316	# Even if this section looks crufty: it has the advantage of
3317	# actually working.
3318	break;;
3319    * )
3320	break;;
3321  esac
3322done
3323test "$ac_cv_exeext" = no && ac_cv_exeext=
3324
3325else
3326  ac_file=''
3327fi
3328if test -z "$ac_file"; then :
3329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331$as_echo "$as_me: failed program was:" >&5
3332sed 's/^/| /' conftest.$ac_ext >&5
3333
3334{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336as_fn_error 77 "C compiler cannot create executables
3337See \`config.log' for more details" "$LINENO" 5; }
3338else
3339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340$as_echo "yes" >&6; }
3341fi
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3343$as_echo_n "checking for C compiler default output file name... " >&6; }
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3345$as_echo "$ac_file" >&6; }
3346ac_exeext=$ac_cv_exeext
3347
3348rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3349ac_clean_files=$ac_clean_files_save
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3351$as_echo_n "checking for suffix of executables... " >&6; }
3352if { { ac_try="$ac_link"
3353case "(($ac_try" in
3354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355  *) ac_try_echo=$ac_try;;
3356esac
3357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358$as_echo "$ac_try_echo"; } >&5
3359  (eval "$ac_link") 2>&5
3360  ac_status=$?
3361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362  test $ac_status = 0; }; then :
3363  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3364# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3365# work properly (i.e., refer to `conftest.exe'), while it won't with
3366# `rm'.
3367for ac_file in conftest.exe conftest conftest.*; do
3368  test -f "$ac_file" || continue
3369  case $ac_file in
3370    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372	  break;;
3373    * ) break;;
3374  esac
3375done
3376else
3377  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3380See \`config.log' for more details" "$LINENO" 5; }
3381fi
3382rm -f conftest conftest$ac_cv_exeext
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3384$as_echo "$ac_cv_exeext" >&6; }
3385
3386rm -f conftest.$ac_ext
3387EXEEXT=$ac_cv_exeext
3388ac_exeext=$EXEEXT
3389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390/* end confdefs.h.  */
3391#include <stdio.h>
3392int
3393main ()
3394{
3395FILE *f = fopen ("conftest.out", "w");
3396 return ferror (f) || fclose (f) != 0;
3397
3398  ;
3399  return 0;
3400}
3401_ACEOF
3402ac_clean_files="$ac_clean_files conftest.out"
3403# Check that the compiler produces executables we can run.  If not, either
3404# the compiler is broken, or we cross compile.
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3406$as_echo_n "checking whether we are cross compiling... " >&6; }
3407if test "$cross_compiling" != yes; then
3408  { { ac_try="$ac_link"
3409case "(($ac_try" in
3410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411  *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415  (eval "$ac_link") 2>&5
3416  ac_status=$?
3417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418  test $ac_status = 0; }
3419  if { ac_try='./conftest$ac_cv_exeext'
3420  { { case "(($ac_try" in
3421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422  *) ac_try_echo=$ac_try;;
3423esac
3424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425$as_echo "$ac_try_echo"; } >&5
3426  (eval "$ac_try") 2>&5
3427  ac_status=$?
3428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429  test $ac_status = 0; }; }; then
3430    cross_compiling=no
3431  else
3432    if test "$cross_compiling" = maybe; then
3433	cross_compiling=yes
3434    else
3435	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437as_fn_error $? "cannot run C compiled programs.
3438If you meant to cross compile, use \`--host'.
3439See \`config.log' for more details" "$LINENO" 5; }
3440    fi
3441  fi
3442fi
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3444$as_echo "$cross_compiling" >&6; }
3445
3446rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3447ac_clean_files=$ac_clean_files_save
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3449$as_echo_n "checking for suffix of object files... " >&6; }
3450if ${ac_cv_objext+:} false; then :
3451  $as_echo_n "(cached) " >&6
3452else
3453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454/* end confdefs.h.  */
3455
3456int
3457main ()
3458{
3459
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464rm -f conftest.o conftest.obj
3465if { { ac_try="$ac_compile"
3466case "(($ac_try" in
3467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468  *) ac_try_echo=$ac_try;;
3469esac
3470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471$as_echo "$ac_try_echo"; } >&5
3472  (eval "$ac_compile") 2>&5
3473  ac_status=$?
3474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475  test $ac_status = 0; }; then :
3476  for ac_file in conftest.o conftest.obj conftest.*; do
3477  test -f "$ac_file" || continue;
3478  case $ac_file in
3479    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3480    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3481       break;;
3482  esac
3483done
3484else
3485  $as_echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490as_fn_error $? "cannot compute suffix of object files: cannot compile
3491See \`config.log' for more details" "$LINENO" 5; }
3492fi
3493rm -f conftest.$ac_cv_objext conftest.$ac_ext
3494fi
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3496$as_echo "$ac_cv_objext" >&6; }
3497OBJEXT=$ac_cv_objext
3498ac_objext=$OBJEXT
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3500$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3501if ${ac_cv_c_compiler_gnu+:} false; then :
3502  $as_echo_n "(cached) " >&6
3503else
3504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h.  */
3506
3507int
3508main ()
3509{
3510#ifndef __GNUC__
3511       choke me
3512#endif
3513
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518if ac_fn_c_try_compile "$LINENO"; then :
3519  ac_compiler_gnu=yes
3520else
3521  ac_compiler_gnu=no
3522fi
3523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524ac_cv_c_compiler_gnu=$ac_compiler_gnu
3525
3526fi
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3528$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3529if test $ac_compiler_gnu = yes; then
3530  GCC=yes
3531else
3532  GCC=
3533fi
3534ac_test_CFLAGS=${CFLAGS+set}
3535ac_save_CFLAGS=$CFLAGS
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3537$as_echo_n "checking whether $CC accepts -g... " >&6; }
3538if ${ac_cv_prog_cc_g+:} false; then :
3539  $as_echo_n "(cached) " >&6
3540else
3541  ac_save_c_werror_flag=$ac_c_werror_flag
3542   ac_c_werror_flag=yes
3543   ac_cv_prog_cc_g=no
3544   CFLAGS="-g"
3545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h.  */
3547
3548int
3549main ()
3550{
3551
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556if ac_fn_c_try_compile "$LINENO"; then :
3557  ac_cv_prog_cc_g=yes
3558else
3559  CFLAGS=""
3560      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561/* end confdefs.h.  */
3562
3563int
3564main ()
3565{
3566
3567  ;
3568  return 0;
3569}
3570_ACEOF
3571if ac_fn_c_try_compile "$LINENO"; then :
3572
3573else
3574  ac_c_werror_flag=$ac_save_c_werror_flag
3575	 CFLAGS="-g"
3576	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h.  */
3578
3579int
3580main ()
3581{
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587if ac_fn_c_try_compile "$LINENO"; then :
3588  ac_cv_prog_cc_g=yes
3589fi
3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591fi
3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593fi
3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595   ac_c_werror_flag=$ac_save_c_werror_flag
3596fi
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3598$as_echo "$ac_cv_prog_cc_g" >&6; }
3599if test "$ac_test_CFLAGS" = set; then
3600  CFLAGS=$ac_save_CFLAGS
3601elif test $ac_cv_prog_cc_g = yes; then
3602  if test "$GCC" = yes; then
3603    CFLAGS="-g -O2"
3604  else
3605    CFLAGS="-g"
3606  fi
3607else
3608  if test "$GCC" = yes; then
3609    CFLAGS="-O2"
3610  else
3611    CFLAGS=
3612  fi
3613fi
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3615$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3616if ${ac_cv_prog_cc_c89+:} false; then :
3617  $as_echo_n "(cached) " >&6
3618else
3619  ac_cv_prog_cc_c89=no
3620ac_save_CC=$CC
3621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h.  */
3623#include <stdarg.h>
3624#include <stdio.h>
3625struct stat;
3626/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3627struct buf { int x; };
3628FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629static char *e (p, i)
3630     char **p;
3631     int i;
3632{
3633  return p[i];
3634}
3635static char *f (char * (*g) (char **, int), char **p, ...)
3636{
3637  char *s;
3638  va_list v;
3639  va_start (v,p);
3640  s = g (p, va_arg (v,int));
3641  va_end (v);
3642  return s;
3643}
3644
3645/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3646   function prototypes and stuff, but not '\xHH' hex character constants.
3647   These don't provoke an error unfortunately, instead are silently treated
3648   as 'x'.  The following induces an error, until -std is added to get
3649   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3650   array size at least.  It's necessary to write '\x00'==0 to get something
3651   that's true only with -std.  */
3652int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3653
3654/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655   inside strings and character constants.  */
3656#define FOO(x) 'x'
3657int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3658
3659int test (int i, double x);
3660struct s1 {int (*f) (int a);};
3661struct s2 {int (*f) (double a);};
3662int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663int argc;
3664char **argv;
3665int
3666main ()
3667{
3668return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3675do
3676  CC="$ac_save_CC $ac_arg"
3677  if ac_fn_c_try_compile "$LINENO"; then :
3678  ac_cv_prog_cc_c89=$ac_arg
3679fi
3680rm -f core conftest.err conftest.$ac_objext
3681  test "x$ac_cv_prog_cc_c89" != "xno" && break
3682done
3683rm -f conftest.$ac_ext
3684CC=$ac_save_CC
3685
3686fi
3687# AC_CACHE_VAL
3688case "x$ac_cv_prog_cc_c89" in
3689  x)
3690    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691$as_echo "none needed" >&6; } ;;
3692  xno)
3693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694$as_echo "unsupported" >&6; } ;;
3695  *)
3696    CC="$CC $ac_cv_prog_cc_c89"
3697    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3698$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3699esac
3700if test "x$ac_cv_prog_cc_c89" != xno; then :
3701
3702fi
3703
3704ac_ext=c
3705ac_cpp='$CPP $CPPFLAGS'
3706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710ac_ext=c
3711ac_cpp='$CPP $CPPFLAGS'
3712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3716$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3717if ${am_cv_prog_cc_c_o+:} false; then :
3718  $as_echo_n "(cached) " >&6
3719else
3720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722
3723int
3724main ()
3725{
3726
3727  ;
3728  return 0;
3729}
3730_ACEOF
3731  # Make sure it works both with $CC and with simple cc.
3732  # Following AC_PROG_CC_C_O, we do the test twice because some
3733  # compilers refuse to overwrite an existing .o file with -o,
3734  # though they will create one.
3735  am_cv_prog_cc_c_o=yes
3736  for am_i in 1 2; do
3737    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3738   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3739   ac_status=$?
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); } \
3742         && test -f conftest2.$ac_objext; then
3743      : OK
3744    else
3745      am_cv_prog_cc_c_o=no
3746      break
3747    fi
3748  done
3749  rm -f core conftest*
3750  unset am_i
3751fi
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3753$as_echo "$am_cv_prog_cc_c_o" >&6; }
3754if test "$am_cv_prog_cc_c_o" != yes; then
3755   # Losing compiler, so override with the script.
3756   # FIXME: It is wrong to rewrite CC.
3757   # But if we don't then we get into trouble of one sort or another.
3758   # A longer-term fix would be to have automake use am__CC in this case,
3759   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3760   CC="$am_aux_dir/compile $CC"
3761fi
3762ac_ext=c
3763ac_cpp='$CPP $CPPFLAGS'
3764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3768
3769depcc="$CC"   am_compiler_list=
3770
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772$as_echo_n "checking dependency style of $depcc... " >&6; }
3773if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3774  $as_echo_n "(cached) " >&6
3775else
3776  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777  # We make a subdir and do the tests there.  Otherwise we can end up
3778  # making bogus files that we don't know about and never remove.  For
3779  # instance it was reported that on HP-UX the gcc test will end up
3780  # making a dummy file named 'D' -- because '-MD' means "put the output
3781  # in D".
3782  rm -rf conftest.dir
3783  mkdir conftest.dir
3784  # Copy depcomp to subdir because otherwise we won't find it if we're
3785  # using a relative directory.
3786  cp "$am_depcomp" conftest.dir
3787  cd conftest.dir
3788  # We will build objects and dependencies in a subdirectory because
3789  # it helps to detect inapplicable dependency modes.  For instance
3790  # both Tru64's cc and ICC support -MD to output dependencies as a
3791  # side effect of compilation, but ICC will put the dependencies in
3792  # the current directory while Tru64 will put them in the object
3793  # directory.
3794  mkdir sub
3795
3796  am_cv_CC_dependencies_compiler_type=none
3797  if test "$am_compiler_list" = ""; then
3798     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799  fi
3800  am__universal=false
3801  case " $depcc " in #(
3802     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803     esac
3804
3805  for depmode in $am_compiler_list; do
3806    # Setup a source with many dependencies, because some compilers
3807    # like to wrap large dependency lists on column 80 (with \), and
3808    # we should not choose a depcomp mode which is confused by this.
3809    #
3810    # We need to recreate these files for each test, as the compiler may
3811    # overwrite some of them when testing with obscure command lines.
3812    # This happens at least with the AIX C compiler.
3813    : > sub/conftest.c
3814    for i in 1 2 3 4 5 6; do
3815      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3817      # Solaris 10 /bin/sh.
3818      echo '/* dummy */' > sub/conftst$i.h
3819    done
3820    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
3822    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3823    # mode.  It turns out that the SunPro C++ compiler does not properly
3824    # handle '-M -o', and we need to detect this.  Also, some Intel
3825    # versions had trouble with output in subdirs.
3826    am__obj=sub/conftest.${OBJEXT-o}
3827    am__minus_obj="-o $am__obj"
3828    case $depmode in
3829    gcc)
3830      # This depmode causes a compiler race in universal mode.
3831      test "$am__universal" = false || continue
3832      ;;
3833    nosideeffect)
3834      # After this tag, mechanisms are not by side-effect, so they'll
3835      # only be used when explicitly requested.
3836      if test "x$enable_dependency_tracking" = xyes; then
3837	continue
3838      else
3839	break
3840      fi
3841      ;;
3842    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3843      # This compiler won't grok '-c -o', but also, the minuso test has
3844      # not run yet.  These depmodes are late enough in the game, and
3845      # so weak that their functioning should not be impacted.
3846      am__obj=conftest.${OBJEXT-o}
3847      am__minus_obj=
3848      ;;
3849    none) break ;;
3850    esac
3851    if depmode=$depmode \
3852       source=sub/conftest.c object=$am__obj \
3853       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855         >/dev/null 2>conftest.err &&
3856       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860      # icc doesn't choke on unknown options, it will just issue warnings
3861      # or remarks (even with -Werror).  So we grep stderr for any message
3862      # that says an option was ignored or not supported.
3863      # When given -MP, icc 7.0 and 7.1 complain thusly:
3864      #   icc: Command line warning: ignoring option '-M'; no argument required
3865      # The diagnosis changed in icc 8.0:
3866      #   icc: Command line remark: option '-MP' not supported
3867      if (grep 'ignoring option' conftest.err ||
3868          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869        am_cv_CC_dependencies_compiler_type=$depmode
3870        break
3871      fi
3872    fi
3873  done
3874
3875  cd ..
3876  rm -rf conftest.dir
3877else
3878  am_cv_CC_dependencies_compiler_type=none
3879fi
3880
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3885
3886 if
3887  test "x$enable_dependency_tracking" != xno \
3888  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889  am__fastdepCC_TRUE=
3890  am__fastdepCC_FALSE='#'
3891else
3892  am__fastdepCC_TRUE='#'
3893  am__fastdepCC_FALSE=
3894fi
3895
3896
3897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3898$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3899if ${ac_cv_prog_cc_c99+:} false; then :
3900  $as_echo_n "(cached) " >&6
3901else
3902  ac_cv_prog_cc_c99=no
3903ac_save_CC=$CC
3904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h.  */
3906#include <stdarg.h>
3907#include <stdbool.h>
3908#include <stdlib.h>
3909#include <wchar.h>
3910#include <stdio.h>
3911
3912// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3913#define debug(...) fprintf (stderr, __VA_ARGS__)
3914#define showlist(...) puts (#__VA_ARGS__)
3915#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3916static void
3917test_varargs_macros (void)
3918{
3919  int x = 1234;
3920  int y = 5678;
3921  debug ("Flag");
3922  debug ("X = %d\n", x);
3923  showlist (The first, second, and third items.);
3924  report (x>y, "x is %d but y is %d", x, y);
3925}
3926
3927// Check long long types.
3928#define BIG64 18446744073709551615ull
3929#define BIG32 4294967295ul
3930#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3931#if !BIG_OK
3932  your preprocessor is broken;
3933#endif
3934#if BIG_OK
3935#else
3936  your preprocessor is broken;
3937#endif
3938static long long int bignum = -9223372036854775807LL;
3939static unsigned long long int ubignum = BIG64;
3940
3941struct incomplete_array
3942{
3943  int datasize;
3944  double data[];
3945};
3946
3947struct named_init {
3948  int number;
3949  const wchar_t *name;
3950  double average;
3951};
3952
3953typedef const char *ccp;
3954
3955static inline int
3956test_restrict (ccp restrict text)
3957{
3958  // See if C++-style comments work.
3959  // Iterate through items via the restricted pointer.
3960  // Also check for declarations in for loops.
3961  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3962    continue;
3963  return 0;
3964}
3965
3966// Check varargs and va_copy.
3967static void
3968test_varargs (const char *format, ...)
3969{
3970  va_list args;
3971  va_start (args, format);
3972  va_list args_copy;
3973  va_copy (args_copy, args);
3974
3975  const char *str;
3976  int number;
3977  float fnumber;
3978
3979  while (*format)
3980    {
3981      switch (*format++)
3982	{
3983	case 's': // string
3984	  str = va_arg (args_copy, const char *);
3985	  break;
3986	case 'd': // int
3987	  number = va_arg (args_copy, int);
3988	  break;
3989	case 'f': // float
3990	  fnumber = va_arg (args_copy, double);
3991	  break;
3992	default:
3993	  break;
3994	}
3995    }
3996  va_end (args_copy);
3997  va_end (args);
3998}
3999
4000int
4001main ()
4002{
4003
4004  // Check bool.
4005  _Bool success = false;
4006
4007  // Check restrict.
4008  if (test_restrict ("String literal") == 0)
4009    success = true;
4010  char *restrict newvar = "Another string";
4011
4012  // Check varargs.
4013  test_varargs ("s, d' f .", "string", 65, 34.234);
4014  test_varargs_macros ();
4015
4016  // Check flexible array members.
4017  struct incomplete_array *ia =
4018    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4019  ia->datasize = 10;
4020  for (int i = 0; i < ia->datasize; ++i)
4021    ia->data[i] = i * 1.234;
4022
4023  // Check named initializers.
4024  struct named_init ni = {
4025    .number = 34,
4026    .name = L"Test wide string",
4027    .average = 543.34343,
4028  };
4029
4030  ni.number = 58;
4031
4032  int dynamic_array[ni.number];
4033  dynamic_array[ni.number - 1] = 543;
4034
4035  // work around unused variable warnings
4036  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4037	  || dynamic_array[ni.number - 1] != 543);
4038
4039  ;
4040  return 0;
4041}
4042_ACEOF
4043for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4044do
4045  CC="$ac_save_CC $ac_arg"
4046  if ac_fn_c_try_compile "$LINENO"; then :
4047  ac_cv_prog_cc_c99=$ac_arg
4048fi
4049rm -f core conftest.err conftest.$ac_objext
4050  test "x$ac_cv_prog_cc_c99" != "xno" && break
4051done
4052rm -f conftest.$ac_ext
4053CC=$ac_save_CC
4054
4055fi
4056# AC_CACHE_VAL
4057case "x$ac_cv_prog_cc_c99" in
4058  x)
4059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060$as_echo "none needed" >&6; } ;;
4061  xno)
4062    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063$as_echo "unsupported" >&6; } ;;
4064  *)
4065    CC="$CC $ac_cv_prog_cc_c99"
4066    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4067$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4068esac
4069if test "x$ac_cv_prog_cc_c99" != xno; then :
4070
4071fi
4072
4073
4074
4075ac_ext=c
4076ac_cpp='$CPP $CPPFLAGS'
4077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4081$as_echo_n "checking how to run the C preprocessor... " >&6; }
4082# On Suns, sometimes $CPP names a directory.
4083if test -n "$CPP" && test -d "$CPP"; then
4084  CPP=
4085fi
4086if test -z "$CPP"; then
4087  if ${ac_cv_prog_CPP+:} false; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090      # Double quotes because CPP needs to be expanded
4091    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4092    do
4093      ac_preproc_ok=false
4094for ac_c_preproc_warn_flag in '' yes
4095do
4096  # Use a header file that comes with gcc, so configuring glibc
4097  # with a fresh cross-compiler works.
4098  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4099  # <limits.h> exists even on freestanding compilers.
4100  # On the NeXT, cc -E runs the code through the compiler's parser,
4101  # not just through cpp. "Syntax error" is here to catch this case.
4102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103/* end confdefs.h.  */
4104#ifdef __STDC__
4105# include <limits.h>
4106#else
4107# include <assert.h>
4108#endif
4109		     Syntax error
4110_ACEOF
4111if ac_fn_c_try_cpp "$LINENO"; then :
4112
4113else
4114  # Broken: fails on valid input.
4115continue
4116fi
4117rm -f conftest.err conftest.i conftest.$ac_ext
4118
4119  # OK, works on sane cases.  Now check whether nonexistent headers
4120  # can be detected and how.
4121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h.  */
4123#include <ac_nonexistent.h>
4124_ACEOF
4125if ac_fn_c_try_cpp "$LINENO"; then :
4126  # Broken: success on invalid input.
4127continue
4128else
4129  # Passes both tests.
4130ac_preproc_ok=:
4131break
4132fi
4133rm -f conftest.err conftest.i conftest.$ac_ext
4134
4135done
4136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4137rm -f conftest.i conftest.err conftest.$ac_ext
4138if $ac_preproc_ok; then :
4139  break
4140fi
4141
4142    done
4143    ac_cv_prog_CPP=$CPP
4144
4145fi
4146  CPP=$ac_cv_prog_CPP
4147else
4148  ac_cv_prog_CPP=$CPP
4149fi
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4151$as_echo "$CPP" >&6; }
4152ac_preproc_ok=false
4153for ac_c_preproc_warn_flag in '' yes
4154do
4155  # Use a header file that comes with gcc, so configuring glibc
4156  # with a fresh cross-compiler works.
4157  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4158  # <limits.h> exists even on freestanding compilers.
4159  # On the NeXT, cc -E runs the code through the compiler's parser,
4160  # not just through cpp. "Syntax error" is here to catch this case.
4161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h.  */
4163#ifdef __STDC__
4164# include <limits.h>
4165#else
4166# include <assert.h>
4167#endif
4168		     Syntax error
4169_ACEOF
4170if ac_fn_c_try_cpp "$LINENO"; then :
4171
4172else
4173  # Broken: fails on valid input.
4174continue
4175fi
4176rm -f conftest.err conftest.i conftest.$ac_ext
4177
4178  # OK, works on sane cases.  Now check whether nonexistent headers
4179  # can be detected and how.
4180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h.  */
4182#include <ac_nonexistent.h>
4183_ACEOF
4184if ac_fn_c_try_cpp "$LINENO"; then :
4185  # Broken: success on invalid input.
4186continue
4187else
4188  # Passes both tests.
4189ac_preproc_ok=:
4190break
4191fi
4192rm -f conftest.err conftest.i conftest.$ac_ext
4193
4194done
4195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4196rm -f conftest.i conftest.err conftest.$ac_ext
4197if $ac_preproc_ok; then :
4198
4199else
4200  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4202as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4203See \`config.log' for more details" "$LINENO" 5; }
4204fi
4205
4206ac_ext=c
4207ac_cpp='$CPP $CPPFLAGS'
4208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211
4212
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4214$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4215if ${ac_cv_path_GREP+:} false; then :
4216  $as_echo_n "(cached) " >&6
4217else
4218  if test -z "$GREP"; then
4219  ac_path_GREP_found=false
4220  # Loop through the user's path and test for each of PROGNAME-LIST
4221  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223do
4224  IFS=$as_save_IFS
4225  test -z "$as_dir" && as_dir=.
4226    for ac_prog in grep ggrep; do
4227    for ac_exec_ext in '' $ac_executable_extensions; do
4228      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4229      as_fn_executable_p "$ac_path_GREP" || continue
4230# Check for GNU ac_path_GREP and select it if it is found.
4231  # Check for GNU $ac_path_GREP
4232case `"$ac_path_GREP" --version 2>&1` in
4233*GNU*)
4234  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4235*)
4236  ac_count=0
4237  $as_echo_n 0123456789 >"conftest.in"
4238  while :
4239  do
4240    cat "conftest.in" "conftest.in" >"conftest.tmp"
4241    mv "conftest.tmp" "conftest.in"
4242    cp "conftest.in" "conftest.nl"
4243    $as_echo 'GREP' >> "conftest.nl"
4244    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246    as_fn_arith $ac_count + 1 && ac_count=$as_val
4247    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4248      # Best one so far, save it but keep looking for a better one
4249      ac_cv_path_GREP="$ac_path_GREP"
4250      ac_path_GREP_max=$ac_count
4251    fi
4252    # 10*(2^10) chars as input seems more than enough
4253    test $ac_count -gt 10 && break
4254  done
4255  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256esac
4257
4258      $ac_path_GREP_found && break 3
4259    done
4260  done
4261  done
4262IFS=$as_save_IFS
4263  if test -z "$ac_cv_path_GREP"; then
4264    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265  fi
4266else
4267  ac_cv_path_GREP=$GREP
4268fi
4269
4270fi
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4272$as_echo "$ac_cv_path_GREP" >&6; }
4273 GREP="$ac_cv_path_GREP"
4274
4275
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4277$as_echo_n "checking for egrep... " >&6; }
4278if ${ac_cv_path_EGREP+:} false; then :
4279  $as_echo_n "(cached) " >&6
4280else
4281  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4282   then ac_cv_path_EGREP="$GREP -E"
4283   else
4284     if test -z "$EGREP"; then
4285  ac_path_EGREP_found=false
4286  # Loop through the user's path and test for each of PROGNAME-LIST
4287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289do
4290  IFS=$as_save_IFS
4291  test -z "$as_dir" && as_dir=.
4292    for ac_prog in egrep; do
4293    for ac_exec_ext in '' $ac_executable_extensions; do
4294      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4295      as_fn_executable_p "$ac_path_EGREP" || continue
4296# Check for GNU ac_path_EGREP and select it if it is found.
4297  # Check for GNU $ac_path_EGREP
4298case `"$ac_path_EGREP" --version 2>&1` in
4299*GNU*)
4300  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4301*)
4302  ac_count=0
4303  $as_echo_n 0123456789 >"conftest.in"
4304  while :
4305  do
4306    cat "conftest.in" "conftest.in" >"conftest.tmp"
4307    mv "conftest.tmp" "conftest.in"
4308    cp "conftest.in" "conftest.nl"
4309    $as_echo 'EGREP' >> "conftest.nl"
4310    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312    as_fn_arith $ac_count + 1 && ac_count=$as_val
4313    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4314      # Best one so far, save it but keep looking for a better one
4315      ac_cv_path_EGREP="$ac_path_EGREP"
4316      ac_path_EGREP_max=$ac_count
4317    fi
4318    # 10*(2^10) chars as input seems more than enough
4319    test $ac_count -gt 10 && break
4320  done
4321  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322esac
4323
4324      $ac_path_EGREP_found && break 3
4325    done
4326  done
4327  done
4328IFS=$as_save_IFS
4329  if test -z "$ac_cv_path_EGREP"; then
4330    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331  fi
4332else
4333  ac_cv_path_EGREP=$EGREP
4334fi
4335
4336   fi
4337fi
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4339$as_echo "$ac_cv_path_EGREP" >&6; }
4340 EGREP="$ac_cv_path_EGREP"
4341
4342
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4344$as_echo_n "checking for ANSI C header files... " >&6; }
4345if ${ac_cv_header_stdc+:} false; then :
4346  $as_echo_n "(cached) " >&6
4347else
4348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349/* end confdefs.h.  */
4350#include <stdlib.h>
4351#include <stdarg.h>
4352#include <string.h>
4353#include <float.h>
4354
4355int
4356main ()
4357{
4358
4359  ;
4360  return 0;
4361}
4362_ACEOF
4363if ac_fn_c_try_compile "$LINENO"; then :
4364  ac_cv_header_stdc=yes
4365else
4366  ac_cv_header_stdc=no
4367fi
4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369
4370if test $ac_cv_header_stdc = yes; then
4371  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373/* end confdefs.h.  */
4374#include <string.h>
4375
4376_ACEOF
4377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4378  $EGREP "memchr" >/dev/null 2>&1; then :
4379
4380else
4381  ac_cv_header_stdc=no
4382fi
4383rm -f conftest*
4384
4385fi
4386
4387if test $ac_cv_header_stdc = yes; then
4388  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390/* end confdefs.h.  */
4391#include <stdlib.h>
4392
4393_ACEOF
4394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4395  $EGREP "free" >/dev/null 2>&1; then :
4396
4397else
4398  ac_cv_header_stdc=no
4399fi
4400rm -f conftest*
4401
4402fi
4403
4404if test $ac_cv_header_stdc = yes; then
4405  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4406  if test "$cross_compiling" = yes; then :
4407  :
4408else
4409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410/* end confdefs.h.  */
4411#include <ctype.h>
4412#include <stdlib.h>
4413#if ((' ' & 0x0FF) == 0x020)
4414# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4415# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4416#else
4417# define ISLOWER(c) \
4418		   (('a' <= (c) && (c) <= 'i') \
4419		     || ('j' <= (c) && (c) <= 'r') \
4420		     || ('s' <= (c) && (c) <= 'z'))
4421# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4422#endif
4423
4424#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4425int
4426main ()
4427{
4428  int i;
4429  for (i = 0; i < 256; i++)
4430    if (XOR (islower (i), ISLOWER (i))
4431	|| toupper (i) != TOUPPER (i))
4432      return 2;
4433  return 0;
4434}
4435_ACEOF
4436if ac_fn_c_try_run "$LINENO"; then :
4437
4438else
4439  ac_cv_header_stdc=no
4440fi
4441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4442  conftest.$ac_objext conftest.beam conftest.$ac_ext
4443fi
4444
4445fi
4446fi
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4448$as_echo "$ac_cv_header_stdc" >&6; }
4449if test $ac_cv_header_stdc = yes; then
4450
4451$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4452
4453fi
4454
4455# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4456for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4457		  inttypes.h stdint.h unistd.h
4458do :
4459  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4460ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4461"
4462if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4463  cat >>confdefs.h <<_ACEOF
4464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465_ACEOF
4466
4467fi
4468
4469done
4470
4471
4472
4473
4474
4475
4476ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4477if test "x$ac_cv_have_decl___clang__" = xyes; then :
4478  CLANGCC="yes"
4479else
4480  CLANGCC="no"
4481fi
4482
4483ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4484if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4485  INTELCC="yes"
4486else
4487  INTELCC="no"
4488fi
4489
4490ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4491if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4492  SUNCC="yes"
4493else
4494  SUNCC="no"
4495fi
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4506	if test -n "$ac_tool_prefix"; then
4507  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4508set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510$as_echo_n "checking for $ac_word... " >&6; }
4511if ${ac_cv_path_PKG_CONFIG+:} false; then :
4512  $as_echo_n "(cached) " >&6
4513else
4514  case $PKG_CONFIG in
4515  [\\/]* | ?:[\\/]*)
4516  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4517  ;;
4518  *)
4519  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522  IFS=$as_save_IFS
4523  test -z "$as_dir" && as_dir=.
4524    for ac_exec_ext in '' $ac_executable_extensions; do
4525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528    break 2
4529  fi
4530done
4531  done
4532IFS=$as_save_IFS
4533
4534  ;;
4535esac
4536fi
4537PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4538if test -n "$PKG_CONFIG"; then
4539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4540$as_echo "$PKG_CONFIG" >&6; }
4541else
4542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; }
4544fi
4545
4546
4547fi
4548if test -z "$ac_cv_path_PKG_CONFIG"; then
4549  ac_pt_PKG_CONFIG=$PKG_CONFIG
4550  # Extract the first word of "pkg-config", so it can be a program name with args.
4551set dummy pkg-config; ac_word=$2
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553$as_echo_n "checking for $ac_word... " >&6; }
4554if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4555  $as_echo_n "(cached) " >&6
4556else
4557  case $ac_pt_PKG_CONFIG in
4558  [\\/]* | ?:[\\/]*)
4559  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4560  ;;
4561  *)
4562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565  IFS=$as_save_IFS
4566  test -z "$as_dir" && as_dir=.
4567    for ac_exec_ext in '' $ac_executable_extensions; do
4568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571    break 2
4572  fi
4573done
4574  done
4575IFS=$as_save_IFS
4576
4577  ;;
4578esac
4579fi
4580ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4581if test -n "$ac_pt_PKG_CONFIG"; then
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4583$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4584else
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586$as_echo "no" >&6; }
4587fi
4588
4589  if test "x$ac_pt_PKG_CONFIG" = x; then
4590    PKG_CONFIG=""
4591  else
4592    case $cross_compiling:$ac_tool_warned in
4593yes:)
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4596ac_tool_warned=yes ;;
4597esac
4598    PKG_CONFIG=$ac_pt_PKG_CONFIG
4599  fi
4600else
4601  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4602fi
4603
4604fi
4605if test -n "$PKG_CONFIG"; then
4606	_pkg_min_version=0.9.0
4607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4608$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4609	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4610		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4611$as_echo "yes" >&6; }
4612	else
4613		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614$as_echo "no" >&6; }
4615		PKG_CONFIG=""
4616	fi
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      as_fn_executable_p "$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=xorg_cv_cc_flag__Wformat_2
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	if test $found = "no" ; then
5895		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5896			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897		fi
5898
5899		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5900			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5901		fi
5902
5903		CFLAGS="$CFLAGS -fd"
5904
5905		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5906$as_echo_n "checking if $CC supports -fd... " >&6; }
5907		cacheid=xorg_cv_cc_flag__fd
5908		if eval \${$cacheid+:} false; then :
5909  $as_echo_n "(cached) " >&6
5910else
5911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912/* end confdefs.h.  */
5913int i;
5914int
5915main ()
5916{
5917
5918  ;
5919  return 0;
5920}
5921_ACEOF
5922if ac_fn_c_try_link "$LINENO"; then :
5923  eval $cacheid=yes
5924else
5925  eval $cacheid=no
5926fi
5927rm -f core conftest.err conftest.$ac_objext \
5928    conftest$ac_exeext conftest.$ac_ext
5929fi
5930
5931
5932		CFLAGS="$xorg_testset_save_CFLAGS"
5933
5934		eval supported=\$$cacheid
5935		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5936$as_echo "$supported" >&6; }
5937		if test "$supported" = "yes" ; then
5938			BASE_CFLAGS="$BASE_CFLAGS -fd"
5939			found="yes"
5940		fi
5941	fi
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957xorg_testset_save_CFLAGS="$CFLAGS"
5958
5959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5960	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5961	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5962$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5963if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967/* end confdefs.h.  */
5968int i;
5969_ACEOF
5970if ac_fn_c_try_compile "$LINENO"; then :
5971  xorg_cv_cc_flag_unknown_warning_option=yes
5972else
5973  xorg_cv_cc_flag_unknown_warning_option=no
5974fi
5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976fi
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5978$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5979	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5980	CFLAGS="$xorg_testset_save_CFLAGS"
5981fi
5982
5983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5984	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5985		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5986	fi
5987	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5988	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5989$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5990if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5991  $as_echo_n "(cached) " >&6
5992else
5993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994/* end confdefs.h.  */
5995int i;
5996_ACEOF
5997if ac_fn_c_try_compile "$LINENO"; then :
5998  xorg_cv_cc_flag_unused_command_line_argument=yes
5999else
6000  xorg_cv_cc_flag_unused_command_line_argument=no
6001fi
6002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003fi
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6005$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6006	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6007	CFLAGS="$xorg_testset_save_CFLAGS"
6008fi
6009
6010found="no"
6011
6012	if test $found = "no" ; then
6013		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6014			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6015		fi
6016
6017		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6018			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6019		fi
6020
6021		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6022
6023		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6024$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6025		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6026		if eval \${$cacheid+:} false; then :
6027  $as_echo_n "(cached) " >&6
6028else
6029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030/* end confdefs.h.  */
6031int i;
6032int
6033main ()
6034{
6035
6036  ;
6037  return 0;
6038}
6039_ACEOF
6040if ac_fn_c_try_link "$LINENO"; then :
6041  eval $cacheid=yes
6042else
6043  eval $cacheid=no
6044fi
6045rm -f core conftest.err conftest.$ac_objext \
6046    conftest$ac_exeext conftest.$ac_ext
6047fi
6048
6049
6050		CFLAGS="$xorg_testset_save_CFLAGS"
6051
6052		eval supported=\$$cacheid
6053		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6054$as_echo "$supported" >&6; }
6055		if test "$supported" = "yes" ; then
6056			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6057			found="yes"
6058		fi
6059	fi
6060
6061
6062
6063
6064
6065# This chunk adds additional warnings that could catch undesired effects.
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079xorg_testset_save_CFLAGS="$CFLAGS"
6080
6081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6082	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6086  $as_echo_n "(cached) " >&6
6087else
6088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089/* end confdefs.h.  */
6090int i;
6091_ACEOF
6092if ac_fn_c_try_compile "$LINENO"; then :
6093  xorg_cv_cc_flag_unknown_warning_option=yes
6094else
6095  xorg_cv_cc_flag_unknown_warning_option=no
6096fi
6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098fi
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6101	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6102	CFLAGS="$xorg_testset_save_CFLAGS"
6103fi
6104
6105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6106	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6107		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6108	fi
6109	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6110	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6113  $as_echo_n "(cached) " >&6
6114else
6115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h.  */
6117int i;
6118_ACEOF
6119if ac_fn_c_try_compile "$LINENO"; then :
6120  xorg_cv_cc_flag_unused_command_line_argument=yes
6121else
6122  xorg_cv_cc_flag_unused_command_line_argument=no
6123fi
6124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125fi
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6128	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6129	CFLAGS="$xorg_testset_save_CFLAGS"
6130fi
6131
6132found="no"
6133
6134	if test $found = "no" ; then
6135		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6136			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6137		fi
6138
6139		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6140			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6141		fi
6142
6143		CFLAGS="$CFLAGS -Wunused"
6144
6145		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6146$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6147		cacheid=xorg_cv_cc_flag__Wunused
6148		if eval \${$cacheid+:} false; then :
6149  $as_echo_n "(cached) " >&6
6150else
6151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h.  */
6153int i;
6154int
6155main ()
6156{
6157
6158  ;
6159  return 0;
6160}
6161_ACEOF
6162if ac_fn_c_try_link "$LINENO"; then :
6163  eval $cacheid=yes
6164else
6165  eval $cacheid=no
6166fi
6167rm -f core conftest.err conftest.$ac_objext \
6168    conftest$ac_exeext conftest.$ac_ext
6169fi
6170
6171
6172		CFLAGS="$xorg_testset_save_CFLAGS"
6173
6174		eval supported=\$$cacheid
6175		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6176$as_echo "$supported" >&6; }
6177		if test "$supported" = "yes" ; then
6178			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6179			found="yes"
6180		fi
6181	fi
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197xorg_testset_save_CFLAGS="$CFLAGS"
6198
6199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6200	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207/* end confdefs.h.  */
6208int i;
6209_ACEOF
6210if ac_fn_c_try_compile "$LINENO"; then :
6211  xorg_cv_cc_flag_unknown_warning_option=yes
6212else
6213  xorg_cv_cc_flag_unknown_warning_option=no
6214fi
6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6219	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6220	CFLAGS="$xorg_testset_save_CFLAGS"
6221fi
6222
6223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6224	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6226	fi
6227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6228	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6231  $as_echo_n "(cached) " >&6
6232else
6233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234/* end confdefs.h.  */
6235int i;
6236_ACEOF
6237if ac_fn_c_try_compile "$LINENO"; then :
6238  xorg_cv_cc_flag_unused_command_line_argument=yes
6239else
6240  xorg_cv_cc_flag_unused_command_line_argument=no
6241fi
6242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243fi
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6246	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6247	CFLAGS="$xorg_testset_save_CFLAGS"
6248fi
6249
6250found="no"
6251
6252	if test $found = "no" ; then
6253		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6255		fi
6256
6257		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6259		fi
6260
6261		CFLAGS="$CFLAGS -Wuninitialized"
6262
6263		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6264$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6265		cacheid=xorg_cv_cc_flag__Wuninitialized
6266		if eval \${$cacheid+:} false; then :
6267  $as_echo_n "(cached) " >&6
6268else
6269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h.  */
6271int i;
6272int
6273main ()
6274{
6275
6276  ;
6277  return 0;
6278}
6279_ACEOF
6280if ac_fn_c_try_link "$LINENO"; then :
6281  eval $cacheid=yes
6282else
6283  eval $cacheid=no
6284fi
6285rm -f core conftest.err conftest.$ac_objext \
6286    conftest$ac_exeext conftest.$ac_ext
6287fi
6288
6289
6290		CFLAGS="$xorg_testset_save_CFLAGS"
6291
6292		eval supported=\$$cacheid
6293		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6294$as_echo "$supported" >&6; }
6295		if test "$supported" = "yes" ; then
6296			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6297			found="yes"
6298		fi
6299	fi
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315xorg_testset_save_CFLAGS="$CFLAGS"
6316
6317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6322  $as_echo_n "(cached) " >&6
6323else
6324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h.  */
6326int i;
6327_ACEOF
6328if ac_fn_c_try_compile "$LINENO"; then :
6329  xorg_cv_cc_flag_unknown_warning_option=yes
6330else
6331  xorg_cv_cc_flag_unknown_warning_option=no
6332fi
6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6338	CFLAGS="$xorg_testset_save_CFLAGS"
6339fi
6340
6341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6344	fi
6345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6346	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6349  $as_echo_n "(cached) " >&6
6350else
6351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352/* end confdefs.h.  */
6353int i;
6354_ACEOF
6355if ac_fn_c_try_compile "$LINENO"; then :
6356  xorg_cv_cc_flag_unused_command_line_argument=yes
6357else
6358  xorg_cv_cc_flag_unused_command_line_argument=no
6359fi
6360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361fi
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6365	CFLAGS="$xorg_testset_save_CFLAGS"
6366fi
6367
6368found="no"
6369
6370	if test $found = "no" ; then
6371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6373		fi
6374
6375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6377		fi
6378
6379		CFLAGS="$CFLAGS -Wshadow"
6380
6381		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6382$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6383		cacheid=xorg_cv_cc_flag__Wshadow
6384		if eval \${$cacheid+:} false; then :
6385  $as_echo_n "(cached) " >&6
6386else
6387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388/* end confdefs.h.  */
6389int i;
6390int
6391main ()
6392{
6393
6394  ;
6395  return 0;
6396}
6397_ACEOF
6398if ac_fn_c_try_link "$LINENO"; then :
6399  eval $cacheid=yes
6400else
6401  eval $cacheid=no
6402fi
6403rm -f core conftest.err conftest.$ac_objext \
6404    conftest$ac_exeext conftest.$ac_ext
6405fi
6406
6407
6408		CFLAGS="$xorg_testset_save_CFLAGS"
6409
6410		eval supported=\$$cacheid
6411		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6412$as_echo "$supported" >&6; }
6413		if test "$supported" = "yes" ; then
6414			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6415			found="yes"
6416		fi
6417	fi
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433xorg_testset_save_CFLAGS="$CFLAGS"
6434
6435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6436	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6440  $as_echo_n "(cached) " >&6
6441else
6442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h.  */
6444int i;
6445_ACEOF
6446if ac_fn_c_try_compile "$LINENO"; then :
6447  xorg_cv_cc_flag_unknown_warning_option=yes
6448else
6449  xorg_cv_cc_flag_unknown_warning_option=no
6450fi
6451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452fi
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6455	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6456	CFLAGS="$xorg_testset_save_CFLAGS"
6457fi
6458
6459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6460	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6461		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462	fi
6463	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6464	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6467  $as_echo_n "(cached) " >&6
6468else
6469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470/* end confdefs.h.  */
6471int i;
6472_ACEOF
6473if ac_fn_c_try_compile "$LINENO"; then :
6474  xorg_cv_cc_flag_unused_command_line_argument=yes
6475else
6476  xorg_cv_cc_flag_unused_command_line_argument=no
6477fi
6478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479fi
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6482	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6483	CFLAGS="$xorg_testset_save_CFLAGS"
6484fi
6485
6486found="no"
6487
6488	if test $found = "no" ; then
6489		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6491		fi
6492
6493		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6495		fi
6496
6497		CFLAGS="$CFLAGS -Wmissing-noreturn"
6498
6499		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6500$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6501		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6502		if eval \${$cacheid+:} false; then :
6503  $as_echo_n "(cached) " >&6
6504else
6505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h.  */
6507int i;
6508int
6509main ()
6510{
6511
6512  ;
6513  return 0;
6514}
6515_ACEOF
6516if ac_fn_c_try_link "$LINENO"; then :
6517  eval $cacheid=yes
6518else
6519  eval $cacheid=no
6520fi
6521rm -f core conftest.err conftest.$ac_objext \
6522    conftest$ac_exeext conftest.$ac_ext
6523fi
6524
6525
6526		CFLAGS="$xorg_testset_save_CFLAGS"
6527
6528		eval supported=\$$cacheid
6529		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6530$as_echo "$supported" >&6; }
6531		if test "$supported" = "yes" ; then
6532			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6533			found="yes"
6534		fi
6535	fi
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551xorg_testset_save_CFLAGS="$CFLAGS"
6552
6553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6554	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6558  $as_echo_n "(cached) " >&6
6559else
6560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561/* end confdefs.h.  */
6562int i;
6563_ACEOF
6564if ac_fn_c_try_compile "$LINENO"; then :
6565  xorg_cv_cc_flag_unknown_warning_option=yes
6566else
6567  xorg_cv_cc_flag_unknown_warning_option=no
6568fi
6569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6573	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6574	CFLAGS="$xorg_testset_save_CFLAGS"
6575fi
6576
6577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6578	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6579		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6580	fi
6581	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6585  $as_echo_n "(cached) " >&6
6586else
6587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588/* end confdefs.h.  */
6589int i;
6590_ACEOF
6591if ac_fn_c_try_compile "$LINENO"; then :
6592  xorg_cv_cc_flag_unused_command_line_argument=yes
6593else
6594  xorg_cv_cc_flag_unused_command_line_argument=no
6595fi
6596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597fi
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6600	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6601	CFLAGS="$xorg_testset_save_CFLAGS"
6602fi
6603
6604found="no"
6605
6606	if test $found = "no" ; then
6607		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6608			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6609		fi
6610
6611		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6612			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613		fi
6614
6615		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6616
6617		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6618$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6619		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6620		if eval \${$cacheid+:} false; then :
6621  $as_echo_n "(cached) " >&6
6622else
6623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h.  */
6625int i;
6626int
6627main ()
6628{
6629
6630  ;
6631  return 0;
6632}
6633_ACEOF
6634if ac_fn_c_try_link "$LINENO"; then :
6635  eval $cacheid=yes
6636else
6637  eval $cacheid=no
6638fi
6639rm -f core conftest.err conftest.$ac_objext \
6640    conftest$ac_exeext conftest.$ac_ext
6641fi
6642
6643
6644		CFLAGS="$xorg_testset_save_CFLAGS"
6645
6646		eval supported=\$$cacheid
6647		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6648$as_echo "$supported" >&6; }
6649		if test "$supported" = "yes" ; then
6650			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6651			found="yes"
6652		fi
6653	fi
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669xorg_testset_save_CFLAGS="$CFLAGS"
6670
6671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6672	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679/* end confdefs.h.  */
6680int i;
6681_ACEOF
6682if ac_fn_c_try_compile "$LINENO"; then :
6683  xorg_cv_cc_flag_unknown_warning_option=yes
6684else
6685  xorg_cv_cc_flag_unknown_warning_option=no
6686fi
6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688fi
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6691	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6692	CFLAGS="$xorg_testset_save_CFLAGS"
6693fi
6694
6695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6696	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6697		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6698	fi
6699	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6700	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6703  $as_echo_n "(cached) " >&6
6704else
6705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706/* end confdefs.h.  */
6707int i;
6708_ACEOF
6709if ac_fn_c_try_compile "$LINENO"; then :
6710  xorg_cv_cc_flag_unused_command_line_argument=yes
6711else
6712  xorg_cv_cc_flag_unused_command_line_argument=no
6713fi
6714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715fi
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6718	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6719	CFLAGS="$xorg_testset_save_CFLAGS"
6720fi
6721
6722found="no"
6723
6724	if test $found = "no" ; then
6725		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6726			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6727		fi
6728
6729		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6730			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6731		fi
6732
6733		CFLAGS="$CFLAGS -Wredundant-decls"
6734
6735		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6736$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6737		cacheid=xorg_cv_cc_flag__Wredundant_decls
6738		if eval \${$cacheid+:} false; then :
6739  $as_echo_n "(cached) " >&6
6740else
6741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742/* end confdefs.h.  */
6743int i;
6744int
6745main ()
6746{
6747
6748  ;
6749  return 0;
6750}
6751_ACEOF
6752if ac_fn_c_try_link "$LINENO"; then :
6753  eval $cacheid=yes
6754else
6755  eval $cacheid=no
6756fi
6757rm -f core conftest.err conftest.$ac_objext \
6758    conftest$ac_exeext conftest.$ac_ext
6759fi
6760
6761
6762		CFLAGS="$xorg_testset_save_CFLAGS"
6763
6764		eval supported=\$$cacheid
6765		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6766$as_echo "$supported" >&6; }
6767		if test "$supported" = "yes" ; then
6768			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6769			found="yes"
6770		fi
6771	fi
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787xorg_testset_save_CFLAGS="$CFLAGS"
6788
6789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6794  $as_echo_n "(cached) " >&6
6795else
6796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797/* end confdefs.h.  */
6798int i;
6799_ACEOF
6800if ac_fn_c_try_compile "$LINENO"; then :
6801  xorg_cv_cc_flag_unknown_warning_option=yes
6802else
6803  xorg_cv_cc_flag_unknown_warning_option=no
6804fi
6805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806fi
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6809	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6810	CFLAGS="$xorg_testset_save_CFLAGS"
6811fi
6812
6813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6814	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6815		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6816	fi
6817	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6821  $as_echo_n "(cached) " >&6
6822else
6823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h.  */
6825int i;
6826_ACEOF
6827if ac_fn_c_try_compile "$LINENO"; then :
6828  xorg_cv_cc_flag_unused_command_line_argument=yes
6829else
6830  xorg_cv_cc_flag_unused_command_line_argument=no
6831fi
6832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833fi
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6836	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6837	CFLAGS="$xorg_testset_save_CFLAGS"
6838fi
6839
6840found="no"
6841
6842	if test $found = "no" ; then
6843		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6845		fi
6846
6847		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6849		fi
6850
6851		CFLAGS="$CFLAGS -Wlogical-op"
6852
6853		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6854$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6855		cacheid=xorg_cv_cc_flag__Wlogical_op
6856		if eval \${$cacheid+:} false; then :
6857  $as_echo_n "(cached) " >&6
6858else
6859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860/* end confdefs.h.  */
6861int i;
6862int
6863main ()
6864{
6865
6866  ;
6867  return 0;
6868}
6869_ACEOF
6870if ac_fn_c_try_link "$LINENO"; then :
6871  eval $cacheid=yes
6872else
6873  eval $cacheid=no
6874fi
6875rm -f core conftest.err conftest.$ac_objext \
6876    conftest$ac_exeext conftest.$ac_ext
6877fi
6878
6879
6880		CFLAGS="$xorg_testset_save_CFLAGS"
6881
6882		eval supported=\$$cacheid
6883		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6884$as_echo "$supported" >&6; }
6885		if test "$supported" = "yes" ; then
6886			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6887			found="yes"
6888		fi
6889	fi
6890
6891
6892
6893# These are currently disabled because they are noisy.  They will be enabled
6894# in the future once the codebase is sufficiently modernized to silence
6895# them.  For now, I don't want them to drown out the other warnings.
6896# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6897# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6898# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6899
6900# Turn some warnings into errors, so we don't accidently get successful builds
6901# when there are problems that should be fixed.
6902
6903if test "x$SELECTIVE_WERROR" = "xyes" ; then
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917xorg_testset_save_CFLAGS="$CFLAGS"
6918
6919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6924  $as_echo_n "(cached) " >&6
6925else
6926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h.  */
6928int i;
6929_ACEOF
6930if ac_fn_c_try_compile "$LINENO"; then :
6931  xorg_cv_cc_flag_unknown_warning_option=yes
6932else
6933  xorg_cv_cc_flag_unknown_warning_option=no
6934fi
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936fi
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6940	CFLAGS="$xorg_testset_save_CFLAGS"
6941fi
6942
6943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946	fi
6947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6951  $as_echo_n "(cached) " >&6
6952else
6953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954/* end confdefs.h.  */
6955int i;
6956_ACEOF
6957if ac_fn_c_try_compile "$LINENO"; then :
6958  xorg_cv_cc_flag_unused_command_line_argument=yes
6959else
6960  xorg_cv_cc_flag_unused_command_line_argument=no
6961fi
6962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963fi
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6966	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6967	CFLAGS="$xorg_testset_save_CFLAGS"
6968fi
6969
6970found="no"
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 -Werror=implicit"
6982
6983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6984$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6985		cacheid=xorg_cv_cc_flag__Werror_implicit
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 -Werror=implicit"
7017			found="yes"
7018		fi
7019	fi
7020
7021	if test $found = "no" ; then
7022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024		fi
7025
7026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028		fi
7029
7030		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7031
7032		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7033$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7034		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7035		if eval \${$cacheid+:} false; then :
7036  $as_echo_n "(cached) " >&6
7037else
7038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039/* end confdefs.h.  */
7040int i;
7041int
7042main ()
7043{
7044
7045  ;
7046  return 0;
7047}
7048_ACEOF
7049if ac_fn_c_try_link "$LINENO"; then :
7050  eval $cacheid=yes
7051else
7052  eval $cacheid=no
7053fi
7054rm -f core conftest.err conftest.$ac_objext \
7055    conftest$ac_exeext conftest.$ac_ext
7056fi
7057
7058
7059		CFLAGS="$xorg_testset_save_CFLAGS"
7060
7061		eval supported=\$$cacheid
7062		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7063$as_echo "$supported" >&6; }
7064		if test "$supported" = "yes" ; then
7065			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7066			found="yes"
7067		fi
7068	fi
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084xorg_testset_save_CFLAGS="$CFLAGS"
7085
7086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7087	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7091  $as_echo_n "(cached) " >&6
7092else
7093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094/* end confdefs.h.  */
7095int i;
7096_ACEOF
7097if ac_fn_c_try_compile "$LINENO"; then :
7098  xorg_cv_cc_flag_unknown_warning_option=yes
7099else
7100  xorg_cv_cc_flag_unknown_warning_option=no
7101fi
7102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103fi
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7107	CFLAGS="$xorg_testset_save_CFLAGS"
7108fi
7109
7110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7113	fi
7114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7118  $as_echo_n "(cached) " >&6
7119else
7120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121/* end confdefs.h.  */
7122int i;
7123_ACEOF
7124if ac_fn_c_try_compile "$LINENO"; then :
7125  xorg_cv_cc_flag_unused_command_line_argument=yes
7126else
7127  xorg_cv_cc_flag_unused_command_line_argument=no
7128fi
7129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130fi
7131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7134	CFLAGS="$xorg_testset_save_CFLAGS"
7135fi
7136
7137found="no"
7138
7139	if test $found = "no" ; then
7140		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7142		fi
7143
7144		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7146		fi
7147
7148		CFLAGS="$CFLAGS -Werror=nonnull"
7149
7150		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7151$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7152		cacheid=xorg_cv_cc_flag__Werror_nonnull
7153		if eval \${$cacheid+:} false; then :
7154  $as_echo_n "(cached) " >&6
7155else
7156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157/* end confdefs.h.  */
7158int i;
7159int
7160main ()
7161{
7162
7163  ;
7164  return 0;
7165}
7166_ACEOF
7167if ac_fn_c_try_link "$LINENO"; then :
7168  eval $cacheid=yes
7169else
7170  eval $cacheid=no
7171fi
7172rm -f core conftest.err conftest.$ac_objext \
7173    conftest$ac_exeext conftest.$ac_ext
7174fi
7175
7176
7177		CFLAGS="$xorg_testset_save_CFLAGS"
7178
7179		eval supported=\$$cacheid
7180		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7181$as_echo "$supported" >&6; }
7182		if test "$supported" = "yes" ; then
7183			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7184			found="yes"
7185		fi
7186	fi
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202xorg_testset_save_CFLAGS="$CFLAGS"
7203
7204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7209  $as_echo_n "(cached) " >&6
7210else
7211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212/* end confdefs.h.  */
7213int i;
7214_ACEOF
7215if ac_fn_c_try_compile "$LINENO"; then :
7216  xorg_cv_cc_flag_unknown_warning_option=yes
7217else
7218  xorg_cv_cc_flag_unknown_warning_option=no
7219fi
7220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221fi
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7225	CFLAGS="$xorg_testset_save_CFLAGS"
7226fi
7227
7228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7231	fi
7232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7236  $as_echo_n "(cached) " >&6
7237else
7238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239/* end confdefs.h.  */
7240int i;
7241_ACEOF
7242if ac_fn_c_try_compile "$LINENO"; then :
7243  xorg_cv_cc_flag_unused_command_line_argument=yes
7244else
7245  xorg_cv_cc_flag_unused_command_line_argument=no
7246fi
7247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248fi
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7251	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7252	CFLAGS="$xorg_testset_save_CFLAGS"
7253fi
7254
7255found="no"
7256
7257	if test $found = "no" ; then
7258		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7260		fi
7261
7262		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7264		fi
7265
7266		CFLAGS="$CFLAGS -Werror=init-self"
7267
7268		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7269$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7270		cacheid=xorg_cv_cc_flag__Werror_init_self
7271		if eval \${$cacheid+:} false; then :
7272  $as_echo_n "(cached) " >&6
7273else
7274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275/* end confdefs.h.  */
7276int i;
7277int
7278main ()
7279{
7280
7281  ;
7282  return 0;
7283}
7284_ACEOF
7285if ac_fn_c_try_link "$LINENO"; then :
7286  eval $cacheid=yes
7287else
7288  eval $cacheid=no
7289fi
7290rm -f core conftest.err conftest.$ac_objext \
7291    conftest$ac_exeext conftest.$ac_ext
7292fi
7293
7294
7295		CFLAGS="$xorg_testset_save_CFLAGS"
7296
7297		eval supported=\$$cacheid
7298		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7299$as_echo "$supported" >&6; }
7300		if test "$supported" = "yes" ; then
7301			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7302			found="yes"
7303		fi
7304	fi
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320xorg_testset_save_CFLAGS="$CFLAGS"
7321
7322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7327  $as_echo_n "(cached) " >&6
7328else
7329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330/* end confdefs.h.  */
7331int i;
7332_ACEOF
7333if ac_fn_c_try_compile "$LINENO"; then :
7334  xorg_cv_cc_flag_unknown_warning_option=yes
7335else
7336  xorg_cv_cc_flag_unknown_warning_option=no
7337fi
7338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339fi
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7342	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7343	CFLAGS="$xorg_testset_save_CFLAGS"
7344fi
7345
7346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7347	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7348		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7349	fi
7350	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7354  $as_echo_n "(cached) " >&6
7355else
7356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357/* end confdefs.h.  */
7358int i;
7359_ACEOF
7360if ac_fn_c_try_compile "$LINENO"; then :
7361  xorg_cv_cc_flag_unused_command_line_argument=yes
7362else
7363  xorg_cv_cc_flag_unused_command_line_argument=no
7364fi
7365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366fi
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7370	CFLAGS="$xorg_testset_save_CFLAGS"
7371fi
7372
7373found="no"
7374
7375	if test $found = "no" ; then
7376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7378		fi
7379
7380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7382		fi
7383
7384		CFLAGS="$CFLAGS -Werror=main"
7385
7386		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7387$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7388		cacheid=xorg_cv_cc_flag__Werror_main
7389		if eval \${$cacheid+:} false; then :
7390  $as_echo_n "(cached) " >&6
7391else
7392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393/* end confdefs.h.  */
7394int i;
7395int
7396main ()
7397{
7398
7399  ;
7400  return 0;
7401}
7402_ACEOF
7403if ac_fn_c_try_link "$LINENO"; then :
7404  eval $cacheid=yes
7405else
7406  eval $cacheid=no
7407fi
7408rm -f core conftest.err conftest.$ac_objext \
7409    conftest$ac_exeext conftest.$ac_ext
7410fi
7411
7412
7413		CFLAGS="$xorg_testset_save_CFLAGS"
7414
7415		eval supported=\$$cacheid
7416		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7417$as_echo "$supported" >&6; }
7418		if test "$supported" = "yes" ; then
7419			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7420			found="yes"
7421		fi
7422	fi
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438xorg_testset_save_CFLAGS="$CFLAGS"
7439
7440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7441	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449int i;
7450_ACEOF
7451if ac_fn_c_try_compile "$LINENO"; then :
7452  xorg_cv_cc_flag_unknown_warning_option=yes
7453else
7454  xorg_cv_cc_flag_unknown_warning_option=no
7455fi
7456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457fi
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7460	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7461	CFLAGS="$xorg_testset_save_CFLAGS"
7462fi
7463
7464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7465	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7466		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7467	fi
7468	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7472  $as_echo_n "(cached) " >&6
7473else
7474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h.  */
7476int i;
7477_ACEOF
7478if ac_fn_c_try_compile "$LINENO"; then :
7479  xorg_cv_cc_flag_unused_command_line_argument=yes
7480else
7481  xorg_cv_cc_flag_unused_command_line_argument=no
7482fi
7483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484fi
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7487	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7488	CFLAGS="$xorg_testset_save_CFLAGS"
7489fi
7490
7491found="no"
7492
7493	if test $found = "no" ; then
7494		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7496		fi
7497
7498		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500		fi
7501
7502		CFLAGS="$CFLAGS -Werror=missing-braces"
7503
7504		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7505$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7506		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7507		if eval \${$cacheid+:} false; then :
7508  $as_echo_n "(cached) " >&6
7509else
7510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511/* end confdefs.h.  */
7512int i;
7513int
7514main ()
7515{
7516
7517  ;
7518  return 0;
7519}
7520_ACEOF
7521if ac_fn_c_try_link "$LINENO"; then :
7522  eval $cacheid=yes
7523else
7524  eval $cacheid=no
7525fi
7526rm -f core conftest.err conftest.$ac_objext \
7527    conftest$ac_exeext conftest.$ac_ext
7528fi
7529
7530
7531		CFLAGS="$xorg_testset_save_CFLAGS"
7532
7533		eval supported=\$$cacheid
7534		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7535$as_echo "$supported" >&6; }
7536		if test "$supported" = "yes" ; then
7537			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7538			found="yes"
7539		fi
7540	fi
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556xorg_testset_save_CFLAGS="$CFLAGS"
7557
7558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7563  $as_echo_n "(cached) " >&6
7564else
7565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566/* end confdefs.h.  */
7567int i;
7568_ACEOF
7569if ac_fn_c_try_compile "$LINENO"; then :
7570  xorg_cv_cc_flag_unknown_warning_option=yes
7571else
7572  xorg_cv_cc_flag_unknown_warning_option=no
7573fi
7574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575fi
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7579	CFLAGS="$xorg_testset_save_CFLAGS"
7580fi
7581
7582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585	fi
7586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7590  $as_echo_n "(cached) " >&6
7591else
7592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594int i;
7595_ACEOF
7596if ac_fn_c_try_compile "$LINENO"; then :
7597  xorg_cv_cc_flag_unused_command_line_argument=yes
7598else
7599  xorg_cv_cc_flag_unused_command_line_argument=no
7600fi
7601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602fi
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7605	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7606	CFLAGS="$xorg_testset_save_CFLAGS"
7607fi
7608
7609found="no"
7610
7611	if test $found = "no" ; then
7612		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7614		fi
7615
7616		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7618		fi
7619
7620		CFLAGS="$CFLAGS -Werror=sequence-point"
7621
7622		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7623$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7624		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7625		if eval \${$cacheid+:} false; then :
7626  $as_echo_n "(cached) " >&6
7627else
7628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h.  */
7630int i;
7631int
7632main ()
7633{
7634
7635  ;
7636  return 0;
7637}
7638_ACEOF
7639if ac_fn_c_try_link "$LINENO"; then :
7640  eval $cacheid=yes
7641else
7642  eval $cacheid=no
7643fi
7644rm -f core conftest.err conftest.$ac_objext \
7645    conftest$ac_exeext conftest.$ac_ext
7646fi
7647
7648
7649		CFLAGS="$xorg_testset_save_CFLAGS"
7650
7651		eval supported=\$$cacheid
7652		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7653$as_echo "$supported" >&6; }
7654		if test "$supported" = "yes" ; then
7655			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7656			found="yes"
7657		fi
7658	fi
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674xorg_testset_save_CFLAGS="$CFLAGS"
7675
7676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7677	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7681  $as_echo_n "(cached) " >&6
7682else
7683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684/* end confdefs.h.  */
7685int i;
7686_ACEOF
7687if ac_fn_c_try_compile "$LINENO"; then :
7688  xorg_cv_cc_flag_unknown_warning_option=yes
7689else
7690  xorg_cv_cc_flag_unknown_warning_option=no
7691fi
7692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693fi
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7697	CFLAGS="$xorg_testset_save_CFLAGS"
7698fi
7699
7700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7703	fi
7704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7708  $as_echo_n "(cached) " >&6
7709else
7710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711/* end confdefs.h.  */
7712int i;
7713_ACEOF
7714if ac_fn_c_try_compile "$LINENO"; then :
7715  xorg_cv_cc_flag_unused_command_line_argument=yes
7716else
7717  xorg_cv_cc_flag_unused_command_line_argument=no
7718fi
7719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720fi
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7723	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7724	CFLAGS="$xorg_testset_save_CFLAGS"
7725fi
7726
7727found="no"
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 -Werror=return-type"
7739
7740		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7741$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7742		cacheid=xorg_cv_cc_flag__Werror_return_type
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 -Werror=return-type"
7774			found="yes"
7775		fi
7776	fi
7777
7778	if test $found = "no" ; then
7779		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7781		fi
7782
7783		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7785		fi
7786
7787		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7788
7789		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7790$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7791		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7792		if eval \${$cacheid+:} false; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h.  */
7797int i;
7798int
7799main ()
7800{
7801
7802  ;
7803  return 0;
7804}
7805_ACEOF
7806if ac_fn_c_try_link "$LINENO"; then :
7807  eval $cacheid=yes
7808else
7809  eval $cacheid=no
7810fi
7811rm -f core conftest.err conftest.$ac_objext \
7812    conftest$ac_exeext conftest.$ac_ext
7813fi
7814
7815
7816		CFLAGS="$xorg_testset_save_CFLAGS"
7817
7818		eval supported=\$$cacheid
7819		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7820$as_echo "$supported" >&6; }
7821		if test "$supported" = "yes" ; then
7822			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7823			found="yes"
7824		fi
7825	fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841xorg_testset_save_CFLAGS="$CFLAGS"
7842
7843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7848  $as_echo_n "(cached) " >&6
7849else
7850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851/* end confdefs.h.  */
7852int i;
7853_ACEOF
7854if ac_fn_c_try_compile "$LINENO"; then :
7855  xorg_cv_cc_flag_unknown_warning_option=yes
7856else
7857  xorg_cv_cc_flag_unknown_warning_option=no
7858fi
7859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860fi
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7864	CFLAGS="$xorg_testset_save_CFLAGS"
7865fi
7866
7867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7870	fi
7871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7875  $as_echo_n "(cached) " >&6
7876else
7877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878/* end confdefs.h.  */
7879int i;
7880_ACEOF
7881if ac_fn_c_try_compile "$LINENO"; then :
7882  xorg_cv_cc_flag_unused_command_line_argument=yes
7883else
7884  xorg_cv_cc_flag_unused_command_line_argument=no
7885fi
7886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887fi
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7891	CFLAGS="$xorg_testset_save_CFLAGS"
7892fi
7893
7894found="no"
7895
7896	if test $found = "no" ; then
7897		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7899		fi
7900
7901		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7903		fi
7904
7905		CFLAGS="$CFLAGS -Werror=trigraphs"
7906
7907		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7908$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7909		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7910		if eval \${$cacheid+:} false; then :
7911  $as_echo_n "(cached) " >&6
7912else
7913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h.  */
7915int i;
7916int
7917main ()
7918{
7919
7920  ;
7921  return 0;
7922}
7923_ACEOF
7924if ac_fn_c_try_link "$LINENO"; then :
7925  eval $cacheid=yes
7926else
7927  eval $cacheid=no
7928fi
7929rm -f core conftest.err conftest.$ac_objext \
7930    conftest$ac_exeext conftest.$ac_ext
7931fi
7932
7933
7934		CFLAGS="$xorg_testset_save_CFLAGS"
7935
7936		eval supported=\$$cacheid
7937		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7938$as_echo "$supported" >&6; }
7939		if test "$supported" = "yes" ; then
7940			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7941			found="yes"
7942		fi
7943	fi
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959xorg_testset_save_CFLAGS="$CFLAGS"
7960
7961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7962	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7964$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7965if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7966  $as_echo_n "(cached) " >&6
7967else
7968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969/* end confdefs.h.  */
7970int i;
7971_ACEOF
7972if ac_fn_c_try_compile "$LINENO"; then :
7973  xorg_cv_cc_flag_unknown_warning_option=yes
7974else
7975  xorg_cv_cc_flag_unknown_warning_option=no
7976fi
7977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978fi
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7980$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7982	CFLAGS="$xorg_testset_save_CFLAGS"
7983fi
7984
7985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7988	fi
7989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7991$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7992if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7993  $as_echo_n "(cached) " >&6
7994else
7995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996/* end confdefs.h.  */
7997int i;
7998_ACEOF
7999if ac_fn_c_try_compile "$LINENO"; then :
8000  xorg_cv_cc_flag_unused_command_line_argument=yes
8001else
8002  xorg_cv_cc_flag_unused_command_line_argument=no
8003fi
8004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005fi
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8007$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8009	CFLAGS="$xorg_testset_save_CFLAGS"
8010fi
8011
8012found="no"
8013
8014	if test $found = "no" ; then
8015		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8017		fi
8018
8019		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8021		fi
8022
8023		CFLAGS="$CFLAGS -Werror=array-bounds"
8024
8025		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8026$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8027		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8028		if eval \${$cacheid+:} false; then :
8029  $as_echo_n "(cached) " >&6
8030else
8031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032/* end confdefs.h.  */
8033int i;
8034int
8035main ()
8036{
8037
8038  ;
8039  return 0;
8040}
8041_ACEOF
8042if ac_fn_c_try_link "$LINENO"; then :
8043  eval $cacheid=yes
8044else
8045  eval $cacheid=no
8046fi
8047rm -f core conftest.err conftest.$ac_objext \
8048    conftest$ac_exeext conftest.$ac_ext
8049fi
8050
8051
8052		CFLAGS="$xorg_testset_save_CFLAGS"
8053
8054		eval supported=\$$cacheid
8055		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8056$as_echo "$supported" >&6; }
8057		if test "$supported" = "yes" ; then
8058			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8059			found="yes"
8060		fi
8061	fi
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077xorg_testset_save_CFLAGS="$CFLAGS"
8078
8079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8080	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8082$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8083if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087/* end confdefs.h.  */
8088int i;
8089_ACEOF
8090if ac_fn_c_try_compile "$LINENO"; then :
8091  xorg_cv_cc_flag_unknown_warning_option=yes
8092else
8093  xorg_cv_cc_flag_unknown_warning_option=no
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096fi
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8098$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8100	CFLAGS="$xorg_testset_save_CFLAGS"
8101fi
8102
8103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8106	fi
8107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8109$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8110if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8111  $as_echo_n "(cached) " >&6
8112else
8113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114/* end confdefs.h.  */
8115int i;
8116_ACEOF
8117if ac_fn_c_try_compile "$LINENO"; then :
8118  xorg_cv_cc_flag_unused_command_line_argument=yes
8119else
8120  xorg_cv_cc_flag_unused_command_line_argument=no
8121fi
8122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123fi
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8125$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8126	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8127	CFLAGS="$xorg_testset_save_CFLAGS"
8128fi
8129
8130found="no"
8131
8132	if test $found = "no" ; then
8133		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8134			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8135		fi
8136
8137		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8138			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8139		fi
8140
8141		CFLAGS="$CFLAGS -Werror=write-strings"
8142
8143		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8144$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8145		cacheid=xorg_cv_cc_flag__Werror_write_strings
8146		if eval \${$cacheid+:} false; then :
8147  $as_echo_n "(cached) " >&6
8148else
8149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150/* end confdefs.h.  */
8151int i;
8152int
8153main ()
8154{
8155
8156  ;
8157  return 0;
8158}
8159_ACEOF
8160if ac_fn_c_try_link "$LINENO"; then :
8161  eval $cacheid=yes
8162else
8163  eval $cacheid=no
8164fi
8165rm -f core conftest.err conftest.$ac_objext \
8166    conftest$ac_exeext conftest.$ac_ext
8167fi
8168
8169
8170		CFLAGS="$xorg_testset_save_CFLAGS"
8171
8172		eval supported=\$$cacheid
8173		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8174$as_echo "$supported" >&6; }
8175		if test "$supported" = "yes" ; then
8176			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8177			found="yes"
8178		fi
8179	fi
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195xorg_testset_save_CFLAGS="$CFLAGS"
8196
8197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8198	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8200$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8201if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8202  $as_echo_n "(cached) " >&6
8203else
8204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205/* end confdefs.h.  */
8206int i;
8207_ACEOF
8208if ac_fn_c_try_compile "$LINENO"; then :
8209  xorg_cv_cc_flag_unknown_warning_option=yes
8210else
8211  xorg_cv_cc_flag_unknown_warning_option=no
8212fi
8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8216$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8218	CFLAGS="$xorg_testset_save_CFLAGS"
8219fi
8220
8221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8224	fi
8225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8227$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8228if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8229  $as_echo_n "(cached) " >&6
8230else
8231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232/* end confdefs.h.  */
8233int i;
8234_ACEOF
8235if ac_fn_c_try_compile "$LINENO"; then :
8236  xorg_cv_cc_flag_unused_command_line_argument=yes
8237else
8238  xorg_cv_cc_flag_unused_command_line_argument=no
8239fi
8240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241fi
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8243$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8244	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8245	CFLAGS="$xorg_testset_save_CFLAGS"
8246fi
8247
8248found="no"
8249
8250	if test $found = "no" ; then
8251		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8253		fi
8254
8255		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8257		fi
8258
8259		CFLAGS="$CFLAGS -Werror=address"
8260
8261		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8262$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8263		cacheid=xorg_cv_cc_flag__Werror_address
8264		if eval \${$cacheid+:} false; then :
8265  $as_echo_n "(cached) " >&6
8266else
8267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268/* end confdefs.h.  */
8269int i;
8270int
8271main ()
8272{
8273
8274  ;
8275  return 0;
8276}
8277_ACEOF
8278if ac_fn_c_try_link "$LINENO"; then :
8279  eval $cacheid=yes
8280else
8281  eval $cacheid=no
8282fi
8283rm -f core conftest.err conftest.$ac_objext \
8284    conftest$ac_exeext conftest.$ac_ext
8285fi
8286
8287
8288		CFLAGS="$xorg_testset_save_CFLAGS"
8289
8290		eval supported=\$$cacheid
8291		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8292$as_echo "$supported" >&6; }
8293		if test "$supported" = "yes" ; then
8294			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8295			found="yes"
8296		fi
8297	fi
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313xorg_testset_save_CFLAGS="$CFLAGS"
8314
8315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8320  $as_echo_n "(cached) " >&6
8321else
8322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323/* end confdefs.h.  */
8324int i;
8325_ACEOF
8326if ac_fn_c_try_compile "$LINENO"; then :
8327  xorg_cv_cc_flag_unknown_warning_option=yes
8328else
8329  xorg_cv_cc_flag_unknown_warning_option=no
8330fi
8331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332fi
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8336	CFLAGS="$xorg_testset_save_CFLAGS"
8337fi
8338
8339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8342	fi
8343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8347  $as_echo_n "(cached) " >&6
8348else
8349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350/* end confdefs.h.  */
8351int i;
8352_ACEOF
8353if ac_fn_c_try_compile "$LINENO"; then :
8354  xorg_cv_cc_flag_unused_command_line_argument=yes
8355else
8356  xorg_cv_cc_flag_unused_command_line_argument=no
8357fi
8358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359fi
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8362	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8363	CFLAGS="$xorg_testset_save_CFLAGS"
8364fi
8365
8366found="no"
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 -Werror=int-to-pointer-cast"
8378
8379		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8380$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8381		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
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 -Werror=int-to-pointer-cast"
8413			found="yes"
8414		fi
8415	fi
8416
8417	if test $found = "no" ; then
8418		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420		fi
8421
8422		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8424		fi
8425
8426		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8427
8428		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8429$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8430		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8431		if eval \${$cacheid+:} false; then :
8432  $as_echo_n "(cached) " >&6
8433else
8434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435/* end confdefs.h.  */
8436int i;
8437int
8438main ()
8439{
8440
8441  ;
8442  return 0;
8443}
8444_ACEOF
8445if ac_fn_c_try_link "$LINENO"; then :
8446  eval $cacheid=yes
8447else
8448  eval $cacheid=no
8449fi
8450rm -f core conftest.err conftest.$ac_objext \
8451    conftest$ac_exeext conftest.$ac_ext
8452fi
8453
8454
8455		CFLAGS="$xorg_testset_save_CFLAGS"
8456
8457		eval supported=\$$cacheid
8458		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8459$as_echo "$supported" >&6; }
8460		if test "$supported" = "yes" ; then
8461			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8462			found="yes"
8463		fi
8464	fi
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480xorg_testset_save_CFLAGS="$CFLAGS"
8481
8482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8483	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8484	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8485$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8486if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8487  $as_echo_n "(cached) " >&6
8488else
8489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490/* end confdefs.h.  */
8491int i;
8492_ACEOF
8493if ac_fn_c_try_compile "$LINENO"; then :
8494  xorg_cv_cc_flag_unknown_warning_option=yes
8495else
8496  xorg_cv_cc_flag_unknown_warning_option=no
8497fi
8498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499fi
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8501$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8503	CFLAGS="$xorg_testset_save_CFLAGS"
8504fi
8505
8506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8509	fi
8510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8512$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8513if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8514  $as_echo_n "(cached) " >&6
8515else
8516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517/* end confdefs.h.  */
8518int i;
8519_ACEOF
8520if ac_fn_c_try_compile "$LINENO"; then :
8521  xorg_cv_cc_flag_unused_command_line_argument=yes
8522else
8523  xorg_cv_cc_flag_unused_command_line_argument=no
8524fi
8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526fi
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8528$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8530	CFLAGS="$xorg_testset_save_CFLAGS"
8531fi
8532
8533found="no"
8534
8535	if test $found = "no" ; then
8536		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8538		fi
8539
8540		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8542		fi
8543
8544		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8545
8546		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8547$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8548		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8549		if eval \${$cacheid+:} false; then :
8550  $as_echo_n "(cached) " >&6
8551else
8552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553/* end confdefs.h.  */
8554int i;
8555int
8556main ()
8557{
8558
8559  ;
8560  return 0;
8561}
8562_ACEOF
8563if ac_fn_c_try_link "$LINENO"; then :
8564  eval $cacheid=yes
8565else
8566  eval $cacheid=no
8567fi
8568rm -f core conftest.err conftest.$ac_objext \
8569    conftest$ac_exeext conftest.$ac_ext
8570fi
8571
8572
8573		CFLAGS="$xorg_testset_save_CFLAGS"
8574
8575		eval supported=\$$cacheid
8576		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8577$as_echo "$supported" >&6; }
8578		if test "$supported" = "yes" ; then
8579			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8580			found="yes"
8581		fi
8582	fi
8583
8584 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8585else
8586{ $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
8587$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;}
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601xorg_testset_save_CFLAGS="$CFLAGS"
8602
8603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8604	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8608  $as_echo_n "(cached) " >&6
8609else
8610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h.  */
8612int i;
8613_ACEOF
8614if ac_fn_c_try_compile "$LINENO"; then :
8615  xorg_cv_cc_flag_unknown_warning_option=yes
8616else
8617  xorg_cv_cc_flag_unknown_warning_option=no
8618fi
8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620fi
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8623	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8624	CFLAGS="$xorg_testset_save_CFLAGS"
8625fi
8626
8627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8628	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8629		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8630	fi
8631	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8635  $as_echo_n "(cached) " >&6
8636else
8637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638/* end confdefs.h.  */
8639int i;
8640_ACEOF
8641if ac_fn_c_try_compile "$LINENO"; then :
8642  xorg_cv_cc_flag_unused_command_line_argument=yes
8643else
8644  xorg_cv_cc_flag_unused_command_line_argument=no
8645fi
8646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647fi
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8651	CFLAGS="$xorg_testset_save_CFLAGS"
8652fi
8653
8654found="no"
8655
8656	if test $found = "no" ; then
8657		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8659		fi
8660
8661		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663		fi
8664
8665		CFLAGS="$CFLAGS -Wimplicit"
8666
8667		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8668$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8669		cacheid=xorg_cv_cc_flag__Wimplicit
8670		if eval \${$cacheid+:} false; then :
8671  $as_echo_n "(cached) " >&6
8672else
8673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674/* end confdefs.h.  */
8675int i;
8676int
8677main ()
8678{
8679
8680  ;
8681  return 0;
8682}
8683_ACEOF
8684if ac_fn_c_try_link "$LINENO"; then :
8685  eval $cacheid=yes
8686else
8687  eval $cacheid=no
8688fi
8689rm -f core conftest.err conftest.$ac_objext \
8690    conftest$ac_exeext conftest.$ac_ext
8691fi
8692
8693
8694		CFLAGS="$xorg_testset_save_CFLAGS"
8695
8696		eval supported=\$$cacheid
8697		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8698$as_echo "$supported" >&6; }
8699		if test "$supported" = "yes" ; then
8700			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8701			found="yes"
8702		fi
8703	fi
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719xorg_testset_save_CFLAGS="$CFLAGS"
8720
8721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8722	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8726  $as_echo_n "(cached) " >&6
8727else
8728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729/* end confdefs.h.  */
8730int i;
8731_ACEOF
8732if ac_fn_c_try_compile "$LINENO"; then :
8733  xorg_cv_cc_flag_unknown_warning_option=yes
8734else
8735  xorg_cv_cc_flag_unknown_warning_option=no
8736fi
8737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738fi
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8742	CFLAGS="$xorg_testset_save_CFLAGS"
8743fi
8744
8745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8748	fi
8749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8753  $as_echo_n "(cached) " >&6
8754else
8755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756/* end confdefs.h.  */
8757int i;
8758_ACEOF
8759if ac_fn_c_try_compile "$LINENO"; then :
8760  xorg_cv_cc_flag_unused_command_line_argument=yes
8761else
8762  xorg_cv_cc_flag_unused_command_line_argument=no
8763fi
8764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765fi
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8769	CFLAGS="$xorg_testset_save_CFLAGS"
8770fi
8771
8772found="no"
8773
8774	if test $found = "no" ; then
8775		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777		fi
8778
8779		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8781		fi
8782
8783		CFLAGS="$CFLAGS -Wnonnull"
8784
8785		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8786$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8787		cacheid=xorg_cv_cc_flag__Wnonnull
8788		if eval \${$cacheid+:} false; then :
8789  $as_echo_n "(cached) " >&6
8790else
8791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792/* end confdefs.h.  */
8793int i;
8794int
8795main ()
8796{
8797
8798  ;
8799  return 0;
8800}
8801_ACEOF
8802if ac_fn_c_try_link "$LINENO"; then :
8803  eval $cacheid=yes
8804else
8805  eval $cacheid=no
8806fi
8807rm -f core conftest.err conftest.$ac_objext \
8808    conftest$ac_exeext conftest.$ac_ext
8809fi
8810
8811
8812		CFLAGS="$xorg_testset_save_CFLAGS"
8813
8814		eval supported=\$$cacheid
8815		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8816$as_echo "$supported" >&6; }
8817		if test "$supported" = "yes" ; then
8818			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8819			found="yes"
8820		fi
8821	fi
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837xorg_testset_save_CFLAGS="$CFLAGS"
8838
8839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847/* end confdefs.h.  */
8848int i;
8849_ACEOF
8850if ac_fn_c_try_compile "$LINENO"; then :
8851  xorg_cv_cc_flag_unknown_warning_option=yes
8852else
8853  xorg_cv_cc_flag_unknown_warning_option=no
8854fi
8855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856fi
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8859	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8860	CFLAGS="$xorg_testset_save_CFLAGS"
8861fi
8862
8863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8864	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8866	fi
8867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8868	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8871  $as_echo_n "(cached) " >&6
8872else
8873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874/* end confdefs.h.  */
8875int i;
8876_ACEOF
8877if ac_fn_c_try_compile "$LINENO"; then :
8878  xorg_cv_cc_flag_unused_command_line_argument=yes
8879else
8880  xorg_cv_cc_flag_unused_command_line_argument=no
8881fi
8882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8883fi
8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8886	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8887	CFLAGS="$xorg_testset_save_CFLAGS"
8888fi
8889
8890found="no"
8891
8892	if test $found = "no" ; then
8893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8895		fi
8896
8897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8899		fi
8900
8901		CFLAGS="$CFLAGS -Winit-self"
8902
8903		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8904$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8905		cacheid=xorg_cv_cc_flag__Winit_self
8906		if eval \${$cacheid+:} false; then :
8907  $as_echo_n "(cached) " >&6
8908else
8909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910/* end confdefs.h.  */
8911int i;
8912int
8913main ()
8914{
8915
8916  ;
8917  return 0;
8918}
8919_ACEOF
8920if ac_fn_c_try_link "$LINENO"; then :
8921  eval $cacheid=yes
8922else
8923  eval $cacheid=no
8924fi
8925rm -f core conftest.err conftest.$ac_objext \
8926    conftest$ac_exeext conftest.$ac_ext
8927fi
8928
8929
8930		CFLAGS="$xorg_testset_save_CFLAGS"
8931
8932		eval supported=\$$cacheid
8933		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8934$as_echo "$supported" >&6; }
8935		if test "$supported" = "yes" ; then
8936			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8937			found="yes"
8938		fi
8939	fi
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955xorg_testset_save_CFLAGS="$CFLAGS"
8956
8957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8958	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8960$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8961if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8962  $as_echo_n "(cached) " >&6
8963else
8964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965/* end confdefs.h.  */
8966int i;
8967_ACEOF
8968if ac_fn_c_try_compile "$LINENO"; then :
8969  xorg_cv_cc_flag_unknown_warning_option=yes
8970else
8971  xorg_cv_cc_flag_unknown_warning_option=no
8972fi
8973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974fi
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8976$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8977	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8978	CFLAGS="$xorg_testset_save_CFLAGS"
8979fi
8980
8981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8982	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8984	fi
8985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8987$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8988if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8989  $as_echo_n "(cached) " >&6
8990else
8991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992/* end confdefs.h.  */
8993int i;
8994_ACEOF
8995if ac_fn_c_try_compile "$LINENO"; then :
8996  xorg_cv_cc_flag_unused_command_line_argument=yes
8997else
8998  xorg_cv_cc_flag_unused_command_line_argument=no
8999fi
9000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001fi
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9003$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9004	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9005	CFLAGS="$xorg_testset_save_CFLAGS"
9006fi
9007
9008found="no"
9009
9010	if test $found = "no" ; then
9011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9013		fi
9014
9015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9017		fi
9018
9019		CFLAGS="$CFLAGS -Wmain"
9020
9021		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9022$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9023		cacheid=xorg_cv_cc_flag__Wmain
9024		if eval \${$cacheid+:} false; then :
9025  $as_echo_n "(cached) " >&6
9026else
9027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028/* end confdefs.h.  */
9029int i;
9030int
9031main ()
9032{
9033
9034  ;
9035  return 0;
9036}
9037_ACEOF
9038if ac_fn_c_try_link "$LINENO"; then :
9039  eval $cacheid=yes
9040else
9041  eval $cacheid=no
9042fi
9043rm -f core conftest.err conftest.$ac_objext \
9044    conftest$ac_exeext conftest.$ac_ext
9045fi
9046
9047
9048		CFLAGS="$xorg_testset_save_CFLAGS"
9049
9050		eval supported=\$$cacheid
9051		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9052$as_echo "$supported" >&6; }
9053		if test "$supported" = "yes" ; then
9054			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9055			found="yes"
9056		fi
9057	fi
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073xorg_testset_save_CFLAGS="$CFLAGS"
9074
9075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9080  $as_echo_n "(cached) " >&6
9081else
9082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h.  */
9084int i;
9085_ACEOF
9086if ac_fn_c_try_compile "$LINENO"; then :
9087  xorg_cv_cc_flag_unknown_warning_option=yes
9088else
9089  xorg_cv_cc_flag_unknown_warning_option=no
9090fi
9091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092fi
9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9096	CFLAGS="$xorg_testset_save_CFLAGS"
9097fi
9098
9099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9102	fi
9103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9107  $as_echo_n "(cached) " >&6
9108else
9109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110/* end confdefs.h.  */
9111int i;
9112_ACEOF
9113if ac_fn_c_try_compile "$LINENO"; then :
9114  xorg_cv_cc_flag_unused_command_line_argument=yes
9115else
9116  xorg_cv_cc_flag_unused_command_line_argument=no
9117fi
9118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119fi
9120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9123	CFLAGS="$xorg_testset_save_CFLAGS"
9124fi
9125
9126found="no"
9127
9128	if test $found = "no" ; then
9129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9131		fi
9132
9133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9135		fi
9136
9137		CFLAGS="$CFLAGS -Wmissing-braces"
9138
9139		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9140$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9141		cacheid=xorg_cv_cc_flag__Wmissing_braces
9142		if eval \${$cacheid+:} false; then :
9143  $as_echo_n "(cached) " >&6
9144else
9145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146/* end confdefs.h.  */
9147int i;
9148int
9149main ()
9150{
9151
9152  ;
9153  return 0;
9154}
9155_ACEOF
9156if ac_fn_c_try_link "$LINENO"; then :
9157  eval $cacheid=yes
9158else
9159  eval $cacheid=no
9160fi
9161rm -f core conftest.err conftest.$ac_objext \
9162    conftest$ac_exeext conftest.$ac_ext
9163fi
9164
9165
9166		CFLAGS="$xorg_testset_save_CFLAGS"
9167
9168		eval supported=\$$cacheid
9169		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9170$as_echo "$supported" >&6; }
9171		if test "$supported" = "yes" ; then
9172			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9173			found="yes"
9174		fi
9175	fi
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191xorg_testset_save_CFLAGS="$CFLAGS"
9192
9193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9195	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9196$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9197if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9198  $as_echo_n "(cached) " >&6
9199else
9200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201/* end confdefs.h.  */
9202int i;
9203_ACEOF
9204if ac_fn_c_try_compile "$LINENO"; then :
9205  xorg_cv_cc_flag_unknown_warning_option=yes
9206else
9207  xorg_cv_cc_flag_unknown_warning_option=no
9208fi
9209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210fi
9211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9212$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9213	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9214	CFLAGS="$xorg_testset_save_CFLAGS"
9215fi
9216
9217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9218	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9219		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9220	fi
9221	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9223$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9224if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9225  $as_echo_n "(cached) " >&6
9226else
9227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228/* end confdefs.h.  */
9229int i;
9230_ACEOF
9231if ac_fn_c_try_compile "$LINENO"; then :
9232  xorg_cv_cc_flag_unused_command_line_argument=yes
9233else
9234  xorg_cv_cc_flag_unused_command_line_argument=no
9235fi
9236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9237fi
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9239$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9241	CFLAGS="$xorg_testset_save_CFLAGS"
9242fi
9243
9244found="no"
9245
9246	if test $found = "no" ; then
9247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9249		fi
9250
9251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9253		fi
9254
9255		CFLAGS="$CFLAGS -Wsequence-point"
9256
9257		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9258$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9259		cacheid=xorg_cv_cc_flag__Wsequence_point
9260		if eval \${$cacheid+:} false; then :
9261  $as_echo_n "(cached) " >&6
9262else
9263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264/* end confdefs.h.  */
9265int i;
9266int
9267main ()
9268{
9269
9270  ;
9271  return 0;
9272}
9273_ACEOF
9274if ac_fn_c_try_link "$LINENO"; then :
9275  eval $cacheid=yes
9276else
9277  eval $cacheid=no
9278fi
9279rm -f core conftest.err conftest.$ac_objext \
9280    conftest$ac_exeext conftest.$ac_ext
9281fi
9282
9283
9284		CFLAGS="$xorg_testset_save_CFLAGS"
9285
9286		eval supported=\$$cacheid
9287		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9288$as_echo "$supported" >&6; }
9289		if test "$supported" = "yes" ; then
9290			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9291			found="yes"
9292		fi
9293	fi
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309xorg_testset_save_CFLAGS="$CFLAGS"
9310
9311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9312	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9316  $as_echo_n "(cached) " >&6
9317else
9318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319/* end confdefs.h.  */
9320int i;
9321_ACEOF
9322if ac_fn_c_try_compile "$LINENO"; then :
9323  xorg_cv_cc_flag_unknown_warning_option=yes
9324else
9325  xorg_cv_cc_flag_unknown_warning_option=no
9326fi
9327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328fi
9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9331	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9332	CFLAGS="$xorg_testset_save_CFLAGS"
9333fi
9334
9335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9336	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338	fi
9339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9343  $as_echo_n "(cached) " >&6
9344else
9345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346/* end confdefs.h.  */
9347int i;
9348_ACEOF
9349if ac_fn_c_try_compile "$LINENO"; then :
9350  xorg_cv_cc_flag_unused_command_line_argument=yes
9351else
9352  xorg_cv_cc_flag_unused_command_line_argument=no
9353fi
9354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355fi
9356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9359	CFLAGS="$xorg_testset_save_CFLAGS"
9360fi
9361
9362found="no"
9363
9364	if test $found = "no" ; then
9365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9367		fi
9368
9369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371		fi
9372
9373		CFLAGS="$CFLAGS -Wreturn-type"
9374
9375		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9376$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9377		cacheid=xorg_cv_cc_flag__Wreturn_type
9378		if eval \${$cacheid+:} false; then :
9379  $as_echo_n "(cached) " >&6
9380else
9381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382/* end confdefs.h.  */
9383int i;
9384int
9385main ()
9386{
9387
9388  ;
9389  return 0;
9390}
9391_ACEOF
9392if ac_fn_c_try_link "$LINENO"; then :
9393  eval $cacheid=yes
9394else
9395  eval $cacheid=no
9396fi
9397rm -f core conftest.err conftest.$ac_objext \
9398    conftest$ac_exeext conftest.$ac_ext
9399fi
9400
9401
9402		CFLAGS="$xorg_testset_save_CFLAGS"
9403
9404		eval supported=\$$cacheid
9405		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9406$as_echo "$supported" >&6; }
9407		if test "$supported" = "yes" ; then
9408			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9409			found="yes"
9410		fi
9411	fi
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427xorg_testset_save_CFLAGS="$CFLAGS"
9428
9429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9434  $as_echo_n "(cached) " >&6
9435else
9436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437/* end confdefs.h.  */
9438int i;
9439_ACEOF
9440if ac_fn_c_try_compile "$LINENO"; then :
9441  xorg_cv_cc_flag_unknown_warning_option=yes
9442else
9443  xorg_cv_cc_flag_unknown_warning_option=no
9444fi
9445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446fi
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9449	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9450	CFLAGS="$xorg_testset_save_CFLAGS"
9451fi
9452
9453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9454	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9455		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9456	fi
9457	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9461  $as_echo_n "(cached) " >&6
9462else
9463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464/* end confdefs.h.  */
9465int i;
9466_ACEOF
9467if ac_fn_c_try_compile "$LINENO"; then :
9468  xorg_cv_cc_flag_unused_command_line_argument=yes
9469else
9470  xorg_cv_cc_flag_unused_command_line_argument=no
9471fi
9472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9473fi
9474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9476	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9477	CFLAGS="$xorg_testset_save_CFLAGS"
9478fi
9479
9480found="no"
9481
9482	if test $found = "no" ; then
9483		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9485		fi
9486
9487		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9489		fi
9490
9491		CFLAGS="$CFLAGS -Wtrigraphs"
9492
9493		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9494$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9495		cacheid=xorg_cv_cc_flag__Wtrigraphs
9496		if eval \${$cacheid+:} false; then :
9497  $as_echo_n "(cached) " >&6
9498else
9499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500/* end confdefs.h.  */
9501int i;
9502int
9503main ()
9504{
9505
9506  ;
9507  return 0;
9508}
9509_ACEOF
9510if ac_fn_c_try_link "$LINENO"; then :
9511  eval $cacheid=yes
9512else
9513  eval $cacheid=no
9514fi
9515rm -f core conftest.err conftest.$ac_objext \
9516    conftest$ac_exeext conftest.$ac_ext
9517fi
9518
9519
9520		CFLAGS="$xorg_testset_save_CFLAGS"
9521
9522		eval supported=\$$cacheid
9523		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9524$as_echo "$supported" >&6; }
9525		if test "$supported" = "yes" ; then
9526			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9527			found="yes"
9528		fi
9529	fi
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545xorg_testset_save_CFLAGS="$CFLAGS"
9546
9547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9548	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9550$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9551if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9552  $as_echo_n "(cached) " >&6
9553else
9554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555/* end confdefs.h.  */
9556int i;
9557_ACEOF
9558if ac_fn_c_try_compile "$LINENO"; then :
9559  xorg_cv_cc_flag_unknown_warning_option=yes
9560else
9561  xorg_cv_cc_flag_unknown_warning_option=no
9562fi
9563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564fi
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9566$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9567	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9568	CFLAGS="$xorg_testset_save_CFLAGS"
9569fi
9570
9571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9572	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9573		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9574	fi
9575	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9577$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9578if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9579  $as_echo_n "(cached) " >&6
9580else
9581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h.  */
9583int i;
9584_ACEOF
9585if ac_fn_c_try_compile "$LINENO"; then :
9586  xorg_cv_cc_flag_unused_command_line_argument=yes
9587else
9588  xorg_cv_cc_flag_unused_command_line_argument=no
9589fi
9590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591fi
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9593$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9594	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9595	CFLAGS="$xorg_testset_save_CFLAGS"
9596fi
9597
9598found="no"
9599
9600	if test $found = "no" ; then
9601		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9603		fi
9604
9605		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607		fi
9608
9609		CFLAGS="$CFLAGS -Warray-bounds"
9610
9611		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9612$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9613		cacheid=xorg_cv_cc_flag__Warray_bounds
9614		if eval \${$cacheid+:} false; then :
9615  $as_echo_n "(cached) " >&6
9616else
9617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618/* end confdefs.h.  */
9619int i;
9620int
9621main ()
9622{
9623
9624  ;
9625  return 0;
9626}
9627_ACEOF
9628if ac_fn_c_try_link "$LINENO"; then :
9629  eval $cacheid=yes
9630else
9631  eval $cacheid=no
9632fi
9633rm -f core conftest.err conftest.$ac_objext \
9634    conftest$ac_exeext conftest.$ac_ext
9635fi
9636
9637
9638		CFLAGS="$xorg_testset_save_CFLAGS"
9639
9640		eval supported=\$$cacheid
9641		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9642$as_echo "$supported" >&6; }
9643		if test "$supported" = "yes" ; then
9644			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9645			found="yes"
9646		fi
9647	fi
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663xorg_testset_save_CFLAGS="$CFLAGS"
9664
9665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9668$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9669if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9670  $as_echo_n "(cached) " >&6
9671else
9672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673/* end confdefs.h.  */
9674int i;
9675_ACEOF
9676if ac_fn_c_try_compile "$LINENO"; then :
9677  xorg_cv_cc_flag_unknown_warning_option=yes
9678else
9679  xorg_cv_cc_flag_unknown_warning_option=no
9680fi
9681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682fi
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9684$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9686	CFLAGS="$xorg_testset_save_CFLAGS"
9687fi
9688
9689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9692	fi
9693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9695$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9696if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9697  $as_echo_n "(cached) " >&6
9698else
9699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700/* end confdefs.h.  */
9701int i;
9702_ACEOF
9703if ac_fn_c_try_compile "$LINENO"; then :
9704  xorg_cv_cc_flag_unused_command_line_argument=yes
9705else
9706  xorg_cv_cc_flag_unused_command_line_argument=no
9707fi
9708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709fi
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9711$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9713	CFLAGS="$xorg_testset_save_CFLAGS"
9714fi
9715
9716found="no"
9717
9718	if test $found = "no" ; then
9719		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9721		fi
9722
9723		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9725		fi
9726
9727		CFLAGS="$CFLAGS -Wwrite-strings"
9728
9729		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9730$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9731		cacheid=xorg_cv_cc_flag__Wwrite_strings
9732		if eval \${$cacheid+:} false; then :
9733  $as_echo_n "(cached) " >&6
9734else
9735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736/* end confdefs.h.  */
9737int i;
9738int
9739main ()
9740{
9741
9742  ;
9743  return 0;
9744}
9745_ACEOF
9746if ac_fn_c_try_link "$LINENO"; then :
9747  eval $cacheid=yes
9748else
9749  eval $cacheid=no
9750fi
9751rm -f core conftest.err conftest.$ac_objext \
9752    conftest$ac_exeext conftest.$ac_ext
9753fi
9754
9755
9756		CFLAGS="$xorg_testset_save_CFLAGS"
9757
9758		eval supported=\$$cacheid
9759		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9760$as_echo "$supported" >&6; }
9761		if test "$supported" = "yes" ; then
9762			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9763			found="yes"
9764		fi
9765	fi
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781xorg_testset_save_CFLAGS="$CFLAGS"
9782
9783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9784	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9788  $as_echo_n "(cached) " >&6
9789else
9790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792int i;
9793_ACEOF
9794if ac_fn_c_try_compile "$LINENO"; then :
9795  xorg_cv_cc_flag_unknown_warning_option=yes
9796else
9797  xorg_cv_cc_flag_unknown_warning_option=no
9798fi
9799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800fi
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9803	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9804	CFLAGS="$xorg_testset_save_CFLAGS"
9805fi
9806
9807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9808	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9809		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9810	fi
9811	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9815  $as_echo_n "(cached) " >&6
9816else
9817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818/* end confdefs.h.  */
9819int i;
9820_ACEOF
9821if ac_fn_c_try_compile "$LINENO"; then :
9822  xorg_cv_cc_flag_unused_command_line_argument=yes
9823else
9824  xorg_cv_cc_flag_unused_command_line_argument=no
9825fi
9826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827fi
9828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9831	CFLAGS="$xorg_testset_save_CFLAGS"
9832fi
9833
9834found="no"
9835
9836	if test $found = "no" ; then
9837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9839		fi
9840
9841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9843		fi
9844
9845		CFLAGS="$CFLAGS -Waddress"
9846
9847		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9848$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9849		cacheid=xorg_cv_cc_flag__Waddress
9850		if eval \${$cacheid+:} false; then :
9851  $as_echo_n "(cached) " >&6
9852else
9853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854/* end confdefs.h.  */
9855int i;
9856int
9857main ()
9858{
9859
9860  ;
9861  return 0;
9862}
9863_ACEOF
9864if ac_fn_c_try_link "$LINENO"; then :
9865  eval $cacheid=yes
9866else
9867  eval $cacheid=no
9868fi
9869rm -f core conftest.err conftest.$ac_objext \
9870    conftest$ac_exeext conftest.$ac_ext
9871fi
9872
9873
9874		CFLAGS="$xorg_testset_save_CFLAGS"
9875
9876		eval supported=\$$cacheid
9877		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9878$as_echo "$supported" >&6; }
9879		if test "$supported" = "yes" ; then
9880			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9881			found="yes"
9882		fi
9883	fi
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899xorg_testset_save_CFLAGS="$CFLAGS"
9900
9901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9906  $as_echo_n "(cached) " >&6
9907else
9908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909/* end confdefs.h.  */
9910int i;
9911_ACEOF
9912if ac_fn_c_try_compile "$LINENO"; then :
9913  xorg_cv_cc_flag_unknown_warning_option=yes
9914else
9915  xorg_cv_cc_flag_unknown_warning_option=no
9916fi
9917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9918fi
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9922	CFLAGS="$xorg_testset_save_CFLAGS"
9923fi
9924
9925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9928	fi
9929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9933  $as_echo_n "(cached) " >&6
9934else
9935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h.  */
9937int i;
9938_ACEOF
9939if ac_fn_c_try_compile "$LINENO"; then :
9940  xorg_cv_cc_flag_unused_command_line_argument=yes
9941else
9942  xorg_cv_cc_flag_unused_command_line_argument=no
9943fi
9944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945fi
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9948	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9949	CFLAGS="$xorg_testset_save_CFLAGS"
9950fi
9951
9952found="no"
9953
9954	if test $found = "no" ; then
9955		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9957		fi
9958
9959		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9961		fi
9962
9963		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9964
9965		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9966$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9967		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9968		if eval \${$cacheid+:} false; then :
9969  $as_echo_n "(cached) " >&6
9970else
9971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972/* end confdefs.h.  */
9973int i;
9974int
9975main ()
9976{
9977
9978  ;
9979  return 0;
9980}
9981_ACEOF
9982if ac_fn_c_try_link "$LINENO"; then :
9983  eval $cacheid=yes
9984else
9985  eval $cacheid=no
9986fi
9987rm -f core conftest.err conftest.$ac_objext \
9988    conftest$ac_exeext conftest.$ac_ext
9989fi
9990
9991
9992		CFLAGS="$xorg_testset_save_CFLAGS"
9993
9994		eval supported=\$$cacheid
9995		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9996$as_echo "$supported" >&6; }
9997		if test "$supported" = "yes" ; then
9998			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9999			found="yes"
10000		fi
10001	fi
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017xorg_testset_save_CFLAGS="$CFLAGS"
10018
10019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10024  $as_echo_n "(cached) " >&6
10025else
10026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027/* end confdefs.h.  */
10028int i;
10029_ACEOF
10030if ac_fn_c_try_compile "$LINENO"; then :
10031  xorg_cv_cc_flag_unknown_warning_option=yes
10032else
10033  xorg_cv_cc_flag_unknown_warning_option=no
10034fi
10035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036fi
10037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10039	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10040	CFLAGS="$xorg_testset_save_CFLAGS"
10041fi
10042
10043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10044	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10045		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10046	fi
10047	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10051  $as_echo_n "(cached) " >&6
10052else
10053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054/* end confdefs.h.  */
10055int i;
10056_ACEOF
10057if ac_fn_c_try_compile "$LINENO"; then :
10058  xorg_cv_cc_flag_unused_command_line_argument=yes
10059else
10060  xorg_cv_cc_flag_unused_command_line_argument=no
10061fi
10062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063fi
10064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10066	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10067	CFLAGS="$xorg_testset_save_CFLAGS"
10068fi
10069
10070found="no"
10071
10072	if test $found = "no" ; then
10073		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10074			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10075		fi
10076
10077		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10078			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10079		fi
10080
10081		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10082
10083		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10084$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10085		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10086		if eval \${$cacheid+:} false; then :
10087  $as_echo_n "(cached) " >&6
10088else
10089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090/* end confdefs.h.  */
10091int i;
10092int
10093main ()
10094{
10095
10096  ;
10097  return 0;
10098}
10099_ACEOF
10100if ac_fn_c_try_link "$LINENO"; then :
10101  eval $cacheid=yes
10102else
10103  eval $cacheid=no
10104fi
10105rm -f core conftest.err conftest.$ac_objext \
10106    conftest$ac_exeext conftest.$ac_ext
10107fi
10108
10109
10110		CFLAGS="$xorg_testset_save_CFLAGS"
10111
10112		eval supported=\$$cacheid
10113		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10114$as_echo "$supported" >&6; }
10115		if test "$supported" = "yes" ; then
10116			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10117			found="yes"
10118		fi
10119	fi
10120
10121
10122fi
10123
10124
10125
10126
10127
10128
10129
10130		CWARNFLAGS="$BASE_CFLAGS"
10131		if  test "x$GCC" = xyes ; then
10132		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10133		fi
10134
10135
10136
10137
10138
10139
10140
10141
10142# Check whether --enable-strict-compilation was given.
10143if test "${enable_strict_compilation+set}" = set; then :
10144  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10145else
10146  STRICT_COMPILE=no
10147fi
10148
10149
10150
10151
10152
10153
10154STRICT_CFLAGS=""
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168xorg_testset_save_CFLAGS="$CFLAGS"
10169
10170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10175  $as_echo_n "(cached) " >&6
10176else
10177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178/* end confdefs.h.  */
10179int i;
10180_ACEOF
10181if ac_fn_c_try_compile "$LINENO"; then :
10182  xorg_cv_cc_flag_unknown_warning_option=yes
10183else
10184  xorg_cv_cc_flag_unknown_warning_option=no
10185fi
10186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10187fi
10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10191	CFLAGS="$xorg_testset_save_CFLAGS"
10192fi
10193
10194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10197	fi
10198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10202  $as_echo_n "(cached) " >&6
10203else
10204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205/* end confdefs.h.  */
10206int i;
10207_ACEOF
10208if ac_fn_c_try_compile "$LINENO"; then :
10209  xorg_cv_cc_flag_unused_command_line_argument=yes
10210else
10211  xorg_cv_cc_flag_unused_command_line_argument=no
10212fi
10213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214fi
10215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10218	CFLAGS="$xorg_testset_save_CFLAGS"
10219fi
10220
10221found="no"
10222
10223	if test $found = "no" ; then
10224		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226		fi
10227
10228		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10230		fi
10231
10232		CFLAGS="$CFLAGS -pedantic"
10233
10234		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10235$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10236		cacheid=xorg_cv_cc_flag__pedantic
10237		if eval \${$cacheid+:} false; then :
10238  $as_echo_n "(cached) " >&6
10239else
10240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h.  */
10242int i;
10243int
10244main ()
10245{
10246
10247  ;
10248  return 0;
10249}
10250_ACEOF
10251if ac_fn_c_try_link "$LINENO"; then :
10252  eval $cacheid=yes
10253else
10254  eval $cacheid=no
10255fi
10256rm -f core conftest.err conftest.$ac_objext \
10257    conftest$ac_exeext conftest.$ac_ext
10258fi
10259
10260
10261		CFLAGS="$xorg_testset_save_CFLAGS"
10262
10263		eval supported=\$$cacheid
10264		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10265$as_echo "$supported" >&6; }
10266		if test "$supported" = "yes" ; then
10267			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10268			found="yes"
10269		fi
10270	fi
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286xorg_testset_save_CFLAGS="$CFLAGS"
10287
10288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10289	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10293  $as_echo_n "(cached) " >&6
10294else
10295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296/* end confdefs.h.  */
10297int i;
10298_ACEOF
10299if ac_fn_c_try_compile "$LINENO"; then :
10300  xorg_cv_cc_flag_unknown_warning_option=yes
10301else
10302  xorg_cv_cc_flag_unknown_warning_option=no
10303fi
10304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10305fi
10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10308	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10309	CFLAGS="$xorg_testset_save_CFLAGS"
10310fi
10311
10312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10313	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10314		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315	fi
10316	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10320  $as_echo_n "(cached) " >&6
10321else
10322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323/* end confdefs.h.  */
10324int i;
10325_ACEOF
10326if ac_fn_c_try_compile "$LINENO"; then :
10327  xorg_cv_cc_flag_unused_command_line_argument=yes
10328else
10329  xorg_cv_cc_flag_unused_command_line_argument=no
10330fi
10331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10332fi
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10335	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10336	CFLAGS="$xorg_testset_save_CFLAGS"
10337fi
10338
10339found="no"
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 -Werror"
10351
10352		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10353$as_echo_n "checking if $CC supports -Werror... " >&6; }
10354		cacheid=xorg_cv_cc_flag__Werror
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 -Werror"
10386			found="yes"
10387		fi
10388	fi
10389
10390	if test $found = "no" ; then
10391		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10392			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393		fi
10394
10395		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10396			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10397		fi
10398
10399		CFLAGS="$CFLAGS -errwarn"
10400
10401		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10402$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10403		cacheid=xorg_cv_cc_flag__errwarn
10404		if eval \${$cacheid+:} false; then :
10405  $as_echo_n "(cached) " >&6
10406else
10407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408/* end confdefs.h.  */
10409int i;
10410int
10411main ()
10412{
10413
10414  ;
10415  return 0;
10416}
10417_ACEOF
10418if ac_fn_c_try_link "$LINENO"; then :
10419  eval $cacheid=yes
10420else
10421  eval $cacheid=no
10422fi
10423rm -f core conftest.err conftest.$ac_objext \
10424    conftest$ac_exeext conftest.$ac_ext
10425fi
10426
10427
10428		CFLAGS="$xorg_testset_save_CFLAGS"
10429
10430		eval supported=\$$cacheid
10431		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10432$as_echo "$supported" >&6; }
10433		if test "$supported" = "yes" ; then
10434			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10435			found="yes"
10436		fi
10437	fi
10438
10439
10440
10441# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10442# activate it with -Werror, so we add it here explicitly.
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456xorg_testset_save_CFLAGS="$CFLAGS"
10457
10458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10463  $as_echo_n "(cached) " >&6
10464else
10465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466/* end confdefs.h.  */
10467int i;
10468_ACEOF
10469if ac_fn_c_try_compile "$LINENO"; then :
10470  xorg_cv_cc_flag_unknown_warning_option=yes
10471else
10472  xorg_cv_cc_flag_unknown_warning_option=no
10473fi
10474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10475fi
10476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10479	CFLAGS="$xorg_testset_save_CFLAGS"
10480fi
10481
10482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10485	fi
10486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10490  $as_echo_n "(cached) " >&6
10491else
10492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493/* end confdefs.h.  */
10494int i;
10495_ACEOF
10496if ac_fn_c_try_compile "$LINENO"; then :
10497  xorg_cv_cc_flag_unused_command_line_argument=yes
10498else
10499  xorg_cv_cc_flag_unused_command_line_argument=no
10500fi
10501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502fi
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10505	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10506	CFLAGS="$xorg_testset_save_CFLAGS"
10507fi
10508
10509found="no"
10510
10511	if test $found = "no" ; then
10512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10514		fi
10515
10516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10518		fi
10519
10520		CFLAGS="$CFLAGS -Werror=attributes"
10521
10522		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10523$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10524		cacheid=xorg_cv_cc_flag__Werror_attributes
10525		if eval \${$cacheid+:} false; then :
10526  $as_echo_n "(cached) " >&6
10527else
10528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529/* end confdefs.h.  */
10530int i;
10531int
10532main ()
10533{
10534
10535  ;
10536  return 0;
10537}
10538_ACEOF
10539if ac_fn_c_try_link "$LINENO"; then :
10540  eval $cacheid=yes
10541else
10542  eval $cacheid=no
10543fi
10544rm -f core conftest.err conftest.$ac_objext \
10545    conftest$ac_exeext conftest.$ac_ext
10546fi
10547
10548
10549		CFLAGS="$xorg_testset_save_CFLAGS"
10550
10551		eval supported=\$$cacheid
10552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10553$as_echo "$supported" >&6; }
10554		if test "$supported" = "yes" ; then
10555			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10556			found="yes"
10557		fi
10558	fi
10559
10560
10561
10562if test "x$STRICT_COMPILE" = "xyes"; then
10563    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10564    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10565fi
10566
10567
10568
10569
10570
10571
10572cat >>confdefs.h <<_ACEOF
10573#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10574_ACEOF
10575
10576	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10577	if test "x$PVM" = "x"; then
10578		PVM="0"
10579	fi
10580
10581cat >>confdefs.h <<_ACEOF
10582#define PACKAGE_VERSION_MINOR $PVM
10583_ACEOF
10584
10585	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10586	if test "x$PVP" = "x"; then
10587		PVP="0"
10588	fi
10589
10590cat >>confdefs.h <<_ACEOF
10591#define PACKAGE_VERSION_PATCHLEVEL $PVP
10592_ACEOF
10593
10594
10595
10596CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10597mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10598|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10599echo 'git directory not found: installing possibly empty changelog.' >&2)"
10600
10601
10602
10603
10604macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10605INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10606mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10607|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10608echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10609
10610
10611
10612
10613
10614
10615if test x$APP_MAN_SUFFIX = x    ; then
10616    APP_MAN_SUFFIX=1
10617fi
10618if test x$APP_MAN_DIR = x    ; then
10619    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10620fi
10621
10622if test x$LIB_MAN_SUFFIX = x    ; then
10623    LIB_MAN_SUFFIX=3
10624fi
10625if test x$LIB_MAN_DIR = x    ; then
10626    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10627fi
10628
10629if test x$FILE_MAN_SUFFIX = x    ; then
10630    case $host_os in
10631	solaris*)	FILE_MAN_SUFFIX=4  ;;
10632	*)		FILE_MAN_SUFFIX=5  ;;
10633    esac
10634fi
10635if test x$FILE_MAN_DIR = x    ; then
10636    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10637fi
10638
10639if test x$MISC_MAN_SUFFIX = x    ; then
10640    case $host_os in
10641	solaris*)	MISC_MAN_SUFFIX=5  ;;
10642	*)		MISC_MAN_SUFFIX=7  ;;
10643    esac
10644fi
10645if test x$MISC_MAN_DIR = x    ; then
10646    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10647fi
10648
10649if test x$DRIVER_MAN_SUFFIX = x    ; then
10650    case $host_os in
10651	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10652	*)		DRIVER_MAN_SUFFIX=4  ;;
10653    esac
10654fi
10655if test x$DRIVER_MAN_DIR = x    ; then
10656    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10657fi
10658
10659if test x$ADMIN_MAN_SUFFIX = x    ; then
10660    case $host_os in
10661	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10662	*)		ADMIN_MAN_SUFFIX=8  ;;
10663    esac
10664fi
10665if test x$ADMIN_MAN_DIR = x    ; then
10666    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10667fi
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683XORG_MAN_PAGE="X Version 11"
10684
10685MAN_SUBSTS="\
10686	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10687	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10688	-e 's|__xservername__|Xorg|g' \
10689	-e 's|__xconfigfile__|xorg.conf|g' \
10690	-e 's|__projectroot__|\$(prefix)|g' \
10691	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10692	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10693	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10694	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10695	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10696	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10697	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10698
10699
10700
10701# Check whether --enable-silent-rules was given.
10702if test "${enable_silent_rules+set}" = set; then :
10703  enableval=$enable_silent_rules;
10704fi
10705
10706case $enable_silent_rules in # (((
10707  yes) AM_DEFAULT_VERBOSITY=0;;
10708   no) AM_DEFAULT_VERBOSITY=1;;
10709    *) AM_DEFAULT_VERBOSITY=0;;
10710esac
10711am_make=${MAKE-make}
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10713$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10714if ${am_cv_make_support_nested_variables+:} false; then :
10715  $as_echo_n "(cached) " >&6
10716else
10717  if $as_echo 'TRUE=$(BAR$(V))
10718BAR0=false
10719BAR1=true
10720V=1
10721am__doit:
10722	@$(TRUE)
10723.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10724  am_cv_make_support_nested_variables=yes
10725else
10726  am_cv_make_support_nested_variables=no
10727fi
10728fi
10729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10730$as_echo "$am_cv_make_support_nested_variables" >&6; }
10731if test $am_cv_make_support_nested_variables = yes; then
10732    AM_V='$(V)'
10733  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10734else
10735  AM_V=$AM_DEFAULT_VERBOSITY
10736  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10737fi
10738AM_BACKSLASH='\'
10739
10740
10741
10742
10743
10744for ac_prog in cpp
10745do
10746  # Extract the first word of "$ac_prog", so it can be a program name with args.
10747set dummy $ac_prog; ac_word=$2
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749$as_echo_n "checking for $ac_word... " >&6; }
10750if ${ac_cv_path_RAWCPP+:} false; then :
10751  $as_echo_n "(cached) " >&6
10752else
10753  case $RAWCPP in
10754  [\\/]* | ?:[\\/]*)
10755  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
10756  ;;
10757  *)
10758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
10760for as_dir in $as_dummy
10761do
10762  IFS=$as_save_IFS
10763  test -z "$as_dir" && as_dir=.
10764    for ac_exec_ext in '' $ac_executable_extensions; do
10765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
10767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768    break 2
10769  fi
10770done
10771  done
10772IFS=$as_save_IFS
10773
10774  ;;
10775esac
10776fi
10777RAWCPP=$ac_cv_path_RAWCPP
10778if test -n "$RAWCPP"; then
10779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
10780$as_echo "$RAWCPP" >&6; }
10781else
10782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783$as_echo "no" >&6; }
10784fi
10785
10786
10787  test -n "$RAWCPP" && break
10788done
10789test -n "$RAWCPP" || RAWCPP="${CPP}"
10790
10791
10792# Check for flag to avoid builtin definitions - assumes unix is predefined,
10793# which is not the best choice for supporting other OS'es, but covers most
10794# of the ones we need for now.
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
10796$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
10797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798/* end confdefs.h.  */
10799Does cpp redefine unix ?
10800_ACEOF
10801if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10802	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803$as_echo "no" >&6; }
10804else
10805	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10806		RAWCPPFLAGS=-undef
10807		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10808$as_echo "yes" >&6; }
10809	# under Cygwin unix is still defined even with -undef
10810	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10811		RAWCPPFLAGS="-undef -ansi"
10812		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
10813$as_echo "yes, with -ansi" >&6; }
10814	else
10815		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
10816	fi
10817fi
10818rm -f conftest.$ac_ext
10819
10820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
10821$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
10822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823/* end confdefs.h.  */
10824Does cpp preserve   "whitespace"?
10825_ACEOF
10826if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
10827	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828$as_echo "no" >&6; }
10829else
10830	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
10831		TRADITIONALCPPFLAGS="-traditional"
10832		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
10833		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10834$as_echo "yes" >&6; }
10835	else
10836		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
10837	fi
10838fi
10839rm -f conftest.$ac_ext
10840
10841
10842
10843
10844
10845# Build options
10846DEFAULT_XRDB=xrdb
10847DEFAULT_XMODMAP=xmodmap
10848DEFAULT_TWM=twm
10849DEFAULT_XCLOCK=xclock
10850DEFAULT_XTERM=xterm
10851# You always want to specify the full path to the X server
10852DEFAULT_XSERVER=${bindir}/X
10853DEFAULT_XAUTH=xauth
10854DEFAULT_XINIT=xinit
10855DEFAULT_XINITDIR=${sysconfdir}/X11/xinit
10856
10857
10858# Check whether --with-xrdb was given.
10859if test "${with_xrdb+set}" = set; then :
10860  withval=$with_xrdb; XRDB="$withval"
10861else
10862  XRDB="$DEFAULT_XRDB"
10863fi
10864
10865
10866
10867# Check whether --with-xmodmap was given.
10868if test "${with_xmodmap+set}" = set; then :
10869  withval=$with_xmodmap; XMODMAP="$withval"
10870else
10871  XMODMAP="$DEFAULT_XMODMAP"
10872fi
10873
10874
10875
10876# Check whether --with-twm was given.
10877if test "${with_twm+set}" = set; then :
10878  withval=$with_twm; TWM="$withval"
10879else
10880  TWM="$DEFAULT_TWM"
10881fi
10882
10883
10884
10885# Check whether --with-xclock was given.
10886if test "${with_xclock+set}" = set; then :
10887  withval=$with_xclock; XCLOCK="$withval"
10888else
10889  XCLOCK="$DEFAULT_XCLOCK"
10890fi
10891
10892
10893
10894# Check whether --with-xterm was given.
10895if test "${with_xterm+set}" = set; then :
10896  withval=$with_xterm; XTERM="$withval"
10897else
10898  XTERM="$DEFAULT_XTERM"
10899fi
10900
10901
10902
10903# Check whether --with-xserver was given.
10904if test "${with_xserver+set}" = set; then :
10905  withval=$with_xserver; XSERVER="$withval"
10906else
10907  XSERVER="$DEFAULT_XSERVER"
10908fi
10909
10910
10911
10912# Check whether --with-xauth was given.
10913if test "${with_xauth+set}" = set; then :
10914  withval=$with_xauth; XAUTH="$withval"
10915else
10916  XAUTH="$DEFAULT_XAUTH"
10917fi
10918
10919
10920
10921# Check whether --with-xinit was given.
10922if test "${with_xinit+set}" = set; then :
10923  withval=$with_xinit; XINIT="$withval"
10924else
10925  XINIT="$DEFAULT_XINIT"
10926fi
10927
10928
10929
10930# Check whether --with-xinitdir was given.
10931if test "${with_xinitdir+set}" = set; then :
10932  withval=$with_xinitdir; XINITDIR="$withval"
10933else
10934  XINITDIR="$DEFAULT_XINITDIR"
10935fi
10936
10937
10938
10939# Check whether --with-launchd was given.
10940if test "${with_launchd+set}" = set; then :
10941  withval=$with_launchd; LAUNCHD=$withval
10942else
10943  LAUNCHD=auto
10944fi
10945
10946
10947# Check whether --with-launchagents-dir was given.
10948if test "${with_launchagents_dir+set}" = set; then :
10949  withval=$with_launchagents_dir;  launchagentsdir="${withval}"
10950else
10951   launchagentsdir="/Library/LaunchAgents"
10952fi
10953
10954
10955# Check whether --with-launchagent-xserver was given.
10956if test "${with_launchagent_xserver+set}" = set; then :
10957  withval=$with_launchagent_xserver;  launchagentxserver="${withval}"
10958else
10959   launchagentxserver="no"
10960fi
10961
10962
10963# Check whether --with-launchdaemons-dir was given.
10964if test "${with_launchdaemons_dir+set}" = set; then :
10965  withval=$with_launchdaemons_dir;  launchdaemonsdir="${withval}"
10966else
10967   launchdaemonsdir="/Library/LaunchDaemons"
10968fi
10969
10970
10971# Check whether --with-launchd-id-prefix was given.
10972if test "${with_launchd_id_prefix+set}" = set; then :
10973  withval=$with_launchd_id_prefix;  bundleidprefix="${withval}"
10974else
10975   bundleidprefix="org.x"
10976fi
10977
10978
10979# Check whether --with-bundle-id-prefix was given.
10980if test "${with_bundle_id_prefix+set}" = set; then :
10981  withval=$with_bundle_id_prefix;  bundleidprefix="${withval}"
10982fi
10983
10984
10985if test "x$LAUNCHD" = "xauto"; then
10986	unset LAUNCHD
10987	# Extract the first word of "launchd", so it can be a program name with args.
10988set dummy launchd; ac_word=$2
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990$as_echo_n "checking for $ac_word... " >&6; }
10991if ${ac_cv_prog_LAUNCHD+:} false; then :
10992  $as_echo_n "(cached) " >&6
10993else
10994  if test -n "$LAUNCHD"; then
10995  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
10996else
10997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998for as_dir in $PATH$PATH_SEPARATOR/sbin
10999do
11000  IFS=$as_save_IFS
11001  test -z "$as_dir" && as_dir=.
11002    for ac_exec_ext in '' $ac_executable_extensions; do
11003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11004    ac_cv_prog_LAUNCHD="yes"
11005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11006    break 2
11007  fi
11008done
11009  done
11010IFS=$as_save_IFS
11011
11012  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
11013fi
11014fi
11015LAUNCHD=$ac_cv_prog_LAUNCHD
11016if test -n "$LAUNCHD"; then
11017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
11018$as_echo "$LAUNCHD" >&6; }
11019else
11020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021$as_echo "no" >&6; }
11022fi
11023
11024
11025fi
11026
11027TIGER_LAUNCHD=no
11028if test "x$LAUNCHD" = "xyes" ; then
11029
11030$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
11031
11032	case $host_os in
11033		darwin8*)
11034			TIGER_LAUNCHD=yes
11035		;;
11036	esac
11037        ac_fn_c_check_func "$LINENO" "dispatch_async" "ac_cv_func_dispatch_async"
11038if test "x$ac_cv_func_dispatch_async" = xyes; then :
11039
11040$as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h
11041
11042fi
11043
11044fi
11045
11046
11047cat >>confdefs.h <<_ACEOF
11048#define BUNDLE_ID_PREFIX "$bundleidprefix"
11049_ACEOF
11050
11051
11052
11053
11054
11055 if test "x$LAUNCHD" = "xyes"; then
11056  LAUNCHD_TRUE=
11057  LAUNCHD_FALSE='#'
11058else
11059  LAUNCHD_TRUE='#'
11060  LAUNCHD_FALSE=
11061fi
11062
11063 if test "x$TIGER_LAUNCHD" = "xyes"; then
11064  TIGER_LAUNCHD_TRUE=
11065  TIGER_LAUNCHD_FALSE='#'
11066else
11067  TIGER_LAUNCHD_TRUE='#'
11068  TIGER_LAUNCHD_FALSE=
11069fi
11070
11071 if test "x$launchagentxserver" != "xno"; then
11072  LAUNCHAGENT_XSERVER_TRUE=
11073  LAUNCHAGENT_XSERVER_FALSE='#'
11074else
11075  LAUNCHAGENT_XSERVER_TRUE='#'
11076  LAUNCHAGENT_XSERVER_FALSE=
11077fi
11078
11079
11080# Checks for pkg-config packages
11081
11082pkg_failed=no
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5
11084$as_echo_n "checking for XINIT... " >&6; }
11085
11086if test -n "$XINIT_CFLAGS"; then
11087    pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
11088 elif test -n "$PKG_CONFIG"; then
11089    if test -n "$PKG_CONFIG" && \
11090    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11091  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11092  ac_status=$?
11093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11094  test $ac_status = 0; }; then
11095  pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
11096		      test "x$?" != "x0" && pkg_failed=yes
11097else
11098  pkg_failed=yes
11099fi
11100 else
11101    pkg_failed=untried
11102fi
11103if test -n "$XINIT_LIBS"; then
11104    pkg_cv_XINIT_LIBS="$XINIT_LIBS"
11105 elif test -n "$PKG_CONFIG"; then
11106    if test -n "$PKG_CONFIG" && \
11107    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11108  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11109  ac_status=$?
11110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11111  test $ac_status = 0; }; then
11112  pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
11113		      test "x$?" != "x0" && pkg_failed=yes
11114else
11115  pkg_failed=yes
11116fi
11117 else
11118    pkg_failed=untried
11119fi
11120
11121
11122
11123if test $pkg_failed = yes; then
11124   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125$as_echo "no" >&6; }
11126
11127if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11128        _pkg_short_errors_supported=yes
11129else
11130        _pkg_short_errors_supported=no
11131fi
11132        if test $_pkg_short_errors_supported = yes; then
11133	        XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11134        else
11135	        XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11136        fi
11137	# Put the nasty error message in config.log where it belongs
11138	echo "$XINIT_PKG_ERRORS" >&5
11139
11140	as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
11141
11142$XINIT_PKG_ERRORS
11143
11144Consider adjusting the PKG_CONFIG_PATH environment variable if you
11145installed software in a non-standard prefix.
11146
11147Alternatively, you may set the environment variables XINIT_CFLAGS
11148and XINIT_LIBS to avoid the need to call pkg-config.
11149See the pkg-config man page for more details." "$LINENO" 5
11150elif test $pkg_failed = untried; then
11151     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152$as_echo "no" >&6; }
11153	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11155as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11156is in your PATH or set the PKG_CONFIG environment variable to the full
11157path to pkg-config.
11158
11159Alternatively, you may set the environment variables XINIT_CFLAGS
11160and XINIT_LIBS to avoid the need to call pkg-config.
11161See the pkg-config man page for more details.
11162
11163To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11164See \`config.log' for more details" "$LINENO" 5; }
11165else
11166	XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
11167	XINIT_LIBS=$pkg_cv_XINIT_LIBS
11168        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11169$as_echo "yes" >&6; }
11170
11171fi
11172
11173case $host_os in
11174    *bsd*)
11175        XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
11176        ;;
11177esac
11178
11179
11180for ac_prog in mcookie
11181do
11182  # Extract the first word of "$ac_prog", so it can be a program name with args.
11183set dummy $ac_prog; ac_word=$2
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185$as_echo_n "checking for $ac_word... " >&6; }
11186if ${ac_cv_path_MCOOKIE+:} false; then :
11187  $as_echo_n "(cached) " >&6
11188else
11189  case $MCOOKIE in
11190  [\\/]* | ?:[\\/]*)
11191  ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
11192  ;;
11193  *)
11194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
11196for as_dir in $as_dummy
11197do
11198  IFS=$as_save_IFS
11199  test -z "$as_dir" && as_dir=.
11200    for ac_exec_ext in '' $ac_executable_extensions; do
11201  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11202    ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext"
11203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11204    break 2
11205  fi
11206done
11207  done
11208IFS=$as_save_IFS
11209
11210  ;;
11211esac
11212fi
11213MCOOKIE=$ac_cv_path_MCOOKIE
11214if test -n "$MCOOKIE"; then
11215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5
11216$as_echo "$MCOOKIE" >&6; }
11217else
11218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219$as_echo "no" >&6; }
11220fi
11221
11222
11223  test -n "$MCOOKIE" && break
11224done
11225test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
11226
11227
11228# If mcookie not found, try openssl, else per-system fallbacks
11229if test "x$MCOOKIE" = x ; then
11230    for ac_prog in openssl
11231do
11232  # Extract the first word of "$ac_prog", so it can be a program name with args.
11233set dummy $ac_prog; ac_word=$2
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235$as_echo_n "checking for $ac_word... " >&6; }
11236if ${ac_cv_path_OPENSSL+:} false; then :
11237  $as_echo_n "(cached) " >&6
11238else
11239  case $OPENSSL in
11240  [\\/]* | ?:[\\/]*)
11241  ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
11242  ;;
11243  *)
11244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245as_dummy="$PATH:/bin:/usr/bin:/usr/sbin:/usr/lib:/usr/libexec:/usr/local/bin"
11246for as_dir in $as_dummy
11247do
11248  IFS=$as_save_IFS
11249  test -z "$as_dir" && as_dir=.
11250    for ac_exec_ext in '' $ac_executable_extensions; do
11251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11252    ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
11253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254    break 2
11255  fi
11256done
11257  done
11258IFS=$as_save_IFS
11259
11260  ;;
11261esac
11262fi
11263OPENSSL=$ac_cv_path_OPENSSL
11264if test -n "$OPENSSL"; then
11265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
11266$as_echo "$OPENSSL" >&6; }
11267else
11268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
11270fi
11271
11272
11273  test -n "$OPENSSL" && break
11274done
11275test -n "$OPENSSL" || OPENSSL="$OPENSSL"
11276
11277    if test "x$OPENSSL" != x ; then
11278        MCOOKIE="$OPENSSL rand -hex 16"
11279    else
11280        case $host_os in
11281            *solaris*)
11282                MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
11283                ;;
11284        esac
11285    fi
11286fi
11287if test "x$MCOOKIE" != x ; then
11288	STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
11289	{ $as_echo "$as_me:${as_lineno-$LINENO}: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&5
11290$as_echo "$as_me: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&6;}
11291fi
11292
11293
11294# Additional substitutions in startx, xinitrc & man pages
11295SHELL_CMD="/bin/sh"
11296XSERVERNAME="Xorg"
11297XCONFIGFILE="xorg.conf"
11298XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})'
11299case $host_os in
11300    cygwin*)
11301	XSERVERNAME="XWin"
11302	XCONFIGFILE="XWinrc"
11303	;;
11304    darwin*)
11305	XSERVERNAME="Xquartz"
11306	XCONFIGFILE="defaults"
11307	XCONFIGFILEMAN='defaults (1)'
11308	;;
11309    *solaris*)
11310	SHELL_CMD="/bin/ksh"
11311	;;
11312    *sco*)
11313	SHELL_CMD="/bin/ksh"
11314	SCOMAN=1
11315	;;
11316esac
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333ac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile"
11334
11335cat >confcache <<\_ACEOF
11336# This file is a shell script that caches the results of configure
11337# tests run on this system so they can be shared between configure
11338# scripts and configure runs, see configure's option --config-cache.
11339# It is not useful on other systems.  If it contains results you don't
11340# want to keep, you may remove or edit it.
11341#
11342# config.status only pays attention to the cache file if you give it
11343# the --recheck option to rerun configure.
11344#
11345# `ac_cv_env_foo' variables (set or unset) will be overridden when
11346# loading this file, other *unset* `ac_cv_foo' will be assigned the
11347# following values.
11348
11349_ACEOF
11350
11351# The following way of writing the cache mishandles newlines in values,
11352# but we know of no workaround that is simple, portable, and efficient.
11353# So, we kill variables containing newlines.
11354# Ultrix sh set writes to stderr and can't be redirected directly,
11355# and sets the high bit in the cache file unless we assign to the vars.
11356(
11357  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11358    eval ac_val=\$$ac_var
11359    case $ac_val in #(
11360    *${as_nl}*)
11361      case $ac_var in #(
11362      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11363$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11364      esac
11365      case $ac_var in #(
11366      _ | IFS | as_nl) ;; #(
11367      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11368      *) { eval $ac_var=; unset $ac_var;} ;;
11369      esac ;;
11370    esac
11371  done
11372
11373  (set) 2>&1 |
11374    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11375    *${as_nl}ac_space=\ *)
11376      # `set' does not quote correctly, so add quotes: double-quote
11377      # substitution turns \\\\ into \\, and sed turns \\ into \.
11378      sed -n \
11379	"s/'/'\\\\''/g;
11380	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11381      ;; #(
11382    *)
11383      # `set' quotes correctly as required by POSIX, so do not add quotes.
11384      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11385      ;;
11386    esac |
11387    sort
11388) |
11389  sed '
11390     /^ac_cv_env_/b end
11391     t clear
11392     :clear
11393     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11394     t end
11395     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11396     :end' >>confcache
11397if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11398  if test -w "$cache_file"; then
11399    if test "x$cache_file" != "x/dev/null"; then
11400      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11401$as_echo "$as_me: updating cache $cache_file" >&6;}
11402      if test ! -f "$cache_file" || test -h "$cache_file"; then
11403	cat confcache >"$cache_file"
11404      else
11405        case $cache_file in #(
11406        */* | ?:*)
11407	  mv -f confcache "$cache_file"$$ &&
11408	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11409        *)
11410	  mv -f confcache "$cache_file" ;;
11411	esac
11412      fi
11413    fi
11414  else
11415    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11416$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11417  fi
11418fi
11419rm -f confcache
11420
11421test "x$prefix" = xNONE && prefix=$ac_default_prefix
11422# Let make expand exec_prefix.
11423test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11424
11425DEFS=-DHAVE_CONFIG_H
11426
11427ac_libobjs=
11428ac_ltlibobjs=
11429U=
11430for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11431  # 1. Remove the extension, and $U if already installed.
11432  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11433  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11434  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11435  #    will be set to the directory where LIBOBJS objects are built.
11436  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11437  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11438done
11439LIBOBJS=$ac_libobjs
11440
11441LTLIBOBJS=$ac_ltlibobjs
11442
11443
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11445$as_echo_n "checking that generated files are newer than configure... " >&6; }
11446   if test -n "$am_sleep_pid"; then
11447     # Hide warnings about reused PIDs.
11448     wait $am_sleep_pid 2>/dev/null
11449   fi
11450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11451$as_echo "done" >&6; }
11452 if test -n "$EXEEXT"; then
11453  am__EXEEXT_TRUE=
11454  am__EXEEXT_FALSE='#'
11455else
11456  am__EXEEXT_TRUE='#'
11457  am__EXEEXT_FALSE=
11458fi
11459
11460if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11461  as_fn_error $? "conditional \"AMDEP\" was never defined.
11462Usually this means the macro was only invoked conditionally." "$LINENO" 5
11463fi
11464if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11465  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11466Usually this means the macro was only invoked conditionally." "$LINENO" 5
11467fi
11468if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
11469  as_fn_error $? "conditional \"LAUNCHD\" was never defined.
11470Usually this means the macro was only invoked conditionally." "$LINENO" 5
11471fi
11472if test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then
11473  as_fn_error $? "conditional \"TIGER_LAUNCHD\" was never defined.
11474Usually this means the macro was only invoked conditionally." "$LINENO" 5
11475fi
11476if test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then
11477  as_fn_error $? "conditional \"LAUNCHAGENT_XSERVER\" was never defined.
11478Usually this means the macro was only invoked conditionally." "$LINENO" 5
11479fi
11480
11481: "${CONFIG_STATUS=./config.status}"
11482ac_write_fail=0
11483ac_clean_files_save=$ac_clean_files
11484ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11486$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11487as_write_fail=0
11488cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11489#! $SHELL
11490# Generated by $as_me.
11491# Run this file to recreate the current configuration.
11492# Compiler output produced by configure, useful for debugging
11493# configure, is in config.log if it exists.
11494
11495debug=false
11496ac_cs_recheck=false
11497ac_cs_silent=false
11498
11499SHELL=\${CONFIG_SHELL-$SHELL}
11500export SHELL
11501_ASEOF
11502cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11503## -------------------- ##
11504## M4sh Initialization. ##
11505## -------------------- ##
11506
11507# Be more Bourne compatible
11508DUALCASE=1; export DUALCASE # for MKS sh
11509if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11510  emulate sh
11511  NULLCMD=:
11512  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11513  # is contrary to our usage.  Disable this feature.
11514  alias -g '${1+"$@"}'='"$@"'
11515  setopt NO_GLOB_SUBST
11516else
11517  case `(set -o) 2>/dev/null` in #(
11518  *posix*) :
11519    set -o posix ;; #(
11520  *) :
11521     ;;
11522esac
11523fi
11524
11525
11526as_nl='
11527'
11528export as_nl
11529# Printing a long string crashes Solaris 7 /usr/bin/printf.
11530as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11531as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11532as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11533# Prefer a ksh shell builtin over an external printf program on Solaris,
11534# but without wasting forks for bash or zsh.
11535if test -z "$BASH_VERSION$ZSH_VERSION" \
11536    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11537  as_echo='print -r --'
11538  as_echo_n='print -rn --'
11539elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11540  as_echo='printf %s\n'
11541  as_echo_n='printf %s'
11542else
11543  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11544    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11545    as_echo_n='/usr/ucb/echo -n'
11546  else
11547    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11548    as_echo_n_body='eval
11549      arg=$1;
11550      case $arg in #(
11551      *"$as_nl"*)
11552	expr "X$arg" : "X\\(.*\\)$as_nl";
11553	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11554      esac;
11555      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11556    '
11557    export as_echo_n_body
11558    as_echo_n='sh -c $as_echo_n_body as_echo'
11559  fi
11560  export as_echo_body
11561  as_echo='sh -c $as_echo_body as_echo'
11562fi
11563
11564# The user is always right.
11565if test "${PATH_SEPARATOR+set}" != set; then
11566  PATH_SEPARATOR=:
11567  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11568    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11569      PATH_SEPARATOR=';'
11570  }
11571fi
11572
11573
11574# IFS
11575# We need space, tab and new line, in precisely that order.  Quoting is
11576# there to prevent editors from complaining about space-tab.
11577# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11578# splitting by setting IFS to empty value.)
11579IFS=" ""	$as_nl"
11580
11581# Find who we are.  Look in the path if we contain no directory separator.
11582as_myself=
11583case $0 in #((
11584  *[\\/]* ) as_myself=$0 ;;
11585  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586for as_dir in $PATH
11587do
11588  IFS=$as_save_IFS
11589  test -z "$as_dir" && as_dir=.
11590    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11591  done
11592IFS=$as_save_IFS
11593
11594     ;;
11595esac
11596# We did not find ourselves, most probably we were run as `sh COMMAND'
11597# in which case we are not to be found in the path.
11598if test "x$as_myself" = x; then
11599  as_myself=$0
11600fi
11601if test ! -f "$as_myself"; then
11602  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11603  exit 1
11604fi
11605
11606# Unset variables that we do not need and which cause bugs (e.g. in
11607# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11608# suppresses any "Segmentation fault" message there.  '((' could
11609# trigger a bug in pdksh 5.2.14.
11610for as_var in BASH_ENV ENV MAIL MAILPATH
11611do eval test x\${$as_var+set} = xset \
11612  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11613done
11614PS1='$ '
11615PS2='> '
11616PS4='+ '
11617
11618# NLS nuisances.
11619LC_ALL=C
11620export LC_ALL
11621LANGUAGE=C
11622export LANGUAGE
11623
11624# CDPATH.
11625(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11626
11627
11628# as_fn_error STATUS ERROR [LINENO LOG_FD]
11629# ----------------------------------------
11630# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11631# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11632# script with STATUS, using 1 if that was 0.
11633as_fn_error ()
11634{
11635  as_status=$1; test $as_status -eq 0 && as_status=1
11636  if test "$4"; then
11637    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11638    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11639  fi
11640  $as_echo "$as_me: error: $2" >&2
11641  as_fn_exit $as_status
11642} # as_fn_error
11643
11644
11645# as_fn_set_status STATUS
11646# -----------------------
11647# Set $? to STATUS, without forking.
11648as_fn_set_status ()
11649{
11650  return $1
11651} # as_fn_set_status
11652
11653# as_fn_exit STATUS
11654# -----------------
11655# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11656as_fn_exit ()
11657{
11658  set +e
11659  as_fn_set_status $1
11660  exit $1
11661} # as_fn_exit
11662
11663# as_fn_unset VAR
11664# ---------------
11665# Portably unset VAR.
11666as_fn_unset ()
11667{
11668  { eval $1=; unset $1;}
11669}
11670as_unset=as_fn_unset
11671# as_fn_append VAR VALUE
11672# ----------------------
11673# Append the text in VALUE to the end of the definition contained in VAR. Take
11674# advantage of any shell optimizations that allow amortized linear growth over
11675# repeated appends, instead of the typical quadratic growth present in naive
11676# implementations.
11677if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11678  eval 'as_fn_append ()
11679  {
11680    eval $1+=\$2
11681  }'
11682else
11683  as_fn_append ()
11684  {
11685    eval $1=\$$1\$2
11686  }
11687fi # as_fn_append
11688
11689# as_fn_arith ARG...
11690# ------------------
11691# Perform arithmetic evaluation on the ARGs, and store the result in the
11692# global $as_val. Take advantage of shells that can avoid forks. The arguments
11693# must be portable across $(()) and expr.
11694if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11695  eval 'as_fn_arith ()
11696  {
11697    as_val=$(( $* ))
11698  }'
11699else
11700  as_fn_arith ()
11701  {
11702    as_val=`expr "$@" || test $? -eq 1`
11703  }
11704fi # as_fn_arith
11705
11706
11707if expr a : '\(a\)' >/dev/null 2>&1 &&
11708   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11709  as_expr=expr
11710else
11711  as_expr=false
11712fi
11713
11714if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11715  as_basename=basename
11716else
11717  as_basename=false
11718fi
11719
11720if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11721  as_dirname=dirname
11722else
11723  as_dirname=false
11724fi
11725
11726as_me=`$as_basename -- "$0" ||
11727$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11728	 X"$0" : 'X\(//\)$' \| \
11729	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11730$as_echo X/"$0" |
11731    sed '/^.*\/\([^/][^/]*\)\/*$/{
11732	    s//\1/
11733	    q
11734	  }
11735	  /^X\/\(\/\/\)$/{
11736	    s//\1/
11737	    q
11738	  }
11739	  /^X\/\(\/\).*/{
11740	    s//\1/
11741	    q
11742	  }
11743	  s/.*/./; q'`
11744
11745# Avoid depending upon Character Ranges.
11746as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11747as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11748as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11749as_cr_digits='0123456789'
11750as_cr_alnum=$as_cr_Letters$as_cr_digits
11751
11752ECHO_C= ECHO_N= ECHO_T=
11753case `echo -n x` in #(((((
11754-n*)
11755  case `echo 'xy\c'` in
11756  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11757  xy)  ECHO_C='\c';;
11758  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11759       ECHO_T='	';;
11760  esac;;
11761*)
11762  ECHO_N='-n';;
11763esac
11764
11765rm -f conf$$ conf$$.exe conf$$.file
11766if test -d conf$$.dir; then
11767  rm -f conf$$.dir/conf$$.file
11768else
11769  rm -f conf$$.dir
11770  mkdir conf$$.dir 2>/dev/null
11771fi
11772if (echo >conf$$.file) 2>/dev/null; then
11773  if ln -s conf$$.file conf$$ 2>/dev/null; then
11774    as_ln_s='ln -s'
11775    # ... but there are two gotchas:
11776    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11777    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11778    # In both cases, we have to default to `cp -pR'.
11779    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11780      as_ln_s='cp -pR'
11781  elif ln conf$$.file conf$$ 2>/dev/null; then
11782    as_ln_s=ln
11783  else
11784    as_ln_s='cp -pR'
11785  fi
11786else
11787  as_ln_s='cp -pR'
11788fi
11789rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11790rmdir conf$$.dir 2>/dev/null
11791
11792
11793# as_fn_mkdir_p
11794# -------------
11795# Create "$as_dir" as a directory, including parents if necessary.
11796as_fn_mkdir_p ()
11797{
11798
11799  case $as_dir in #(
11800  -*) as_dir=./$as_dir;;
11801  esac
11802  test -d "$as_dir" || eval $as_mkdir_p || {
11803    as_dirs=
11804    while :; do
11805      case $as_dir in #(
11806      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11807      *) as_qdir=$as_dir;;
11808      esac
11809      as_dirs="'$as_qdir' $as_dirs"
11810      as_dir=`$as_dirname -- "$as_dir" ||
11811$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11812	 X"$as_dir" : 'X\(//\)[^/]' \| \
11813	 X"$as_dir" : 'X\(//\)$' \| \
11814	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11815$as_echo X"$as_dir" |
11816    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11817	    s//\1/
11818	    q
11819	  }
11820	  /^X\(\/\/\)[^/].*/{
11821	    s//\1/
11822	    q
11823	  }
11824	  /^X\(\/\/\)$/{
11825	    s//\1/
11826	    q
11827	  }
11828	  /^X\(\/\).*/{
11829	    s//\1/
11830	    q
11831	  }
11832	  s/.*/./; q'`
11833      test -d "$as_dir" && break
11834    done
11835    test -z "$as_dirs" || eval "mkdir $as_dirs"
11836  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11837
11838
11839} # as_fn_mkdir_p
11840if mkdir -p . 2>/dev/null; then
11841  as_mkdir_p='mkdir -p "$as_dir"'
11842else
11843  test -d ./-p && rmdir ./-p
11844  as_mkdir_p=false
11845fi
11846
11847
11848# as_fn_executable_p FILE
11849# -----------------------
11850# Test if FILE is an executable regular file.
11851as_fn_executable_p ()
11852{
11853  test -f "$1" && test -x "$1"
11854} # as_fn_executable_p
11855as_test_x='test -x'
11856as_executable_p=as_fn_executable_p
11857
11858# Sed expression to map a string onto a valid CPP name.
11859as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11860
11861# Sed expression to map a string onto a valid variable name.
11862as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11863
11864
11865exec 6>&1
11866## ----------------------------------- ##
11867## Main body of $CONFIG_STATUS script. ##
11868## ----------------------------------- ##
11869_ASEOF
11870test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11871
11872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11873# Save the log message, to keep $0 and so on meaningful, and to
11874# report actual input values of CONFIG_FILES etc. instead of their
11875# values after options handling.
11876ac_log="
11877This file was extended by xinit $as_me 1.3.4, which was
11878generated by GNU Autoconf 2.69.  Invocation command line was
11879
11880  CONFIG_FILES    = $CONFIG_FILES
11881  CONFIG_HEADERS  = $CONFIG_HEADERS
11882  CONFIG_LINKS    = $CONFIG_LINKS
11883  CONFIG_COMMANDS = $CONFIG_COMMANDS
11884  $ $0 $@
11885
11886on `(hostname || uname -n) 2>/dev/null | sed 1q`
11887"
11888
11889_ACEOF
11890
11891case $ac_config_files in *"
11892"*) set x $ac_config_files; shift; ac_config_files=$*;;
11893esac
11894
11895case $ac_config_headers in *"
11896"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11897esac
11898
11899
11900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11901# Files that config.status was made for.
11902config_files="$ac_config_files"
11903config_headers="$ac_config_headers"
11904config_commands="$ac_config_commands"
11905
11906_ACEOF
11907
11908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11909ac_cs_usage="\
11910\`$as_me' instantiates files and other configuration actions
11911from templates according to the current configuration.  Unless the files
11912and actions are specified as TAGs, all are instantiated by default.
11913
11914Usage: $0 [OPTION]... [TAG]...
11915
11916  -h, --help       print this help, then exit
11917  -V, --version    print version number and configuration settings, then exit
11918      --config     print configuration, then exit
11919  -q, --quiet, --silent
11920                   do not print progress messages
11921  -d, --debug      don't remove temporary files
11922      --recheck    update $as_me by reconfiguring in the same conditions
11923      --file=FILE[:TEMPLATE]
11924                   instantiate the configuration file FILE
11925      --header=FILE[:TEMPLATE]
11926                   instantiate the configuration header FILE
11927
11928Configuration files:
11929$config_files
11930
11931Configuration headers:
11932$config_headers
11933
11934Configuration commands:
11935$config_commands
11936
11937Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11938
11939_ACEOF
11940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11941ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11942ac_cs_version="\\
11943xinit config.status 1.3.4
11944configured by $0, generated by GNU Autoconf 2.69,
11945  with options \\"\$ac_cs_config\\"
11946
11947Copyright (C) 2012 Free Software Foundation, Inc.
11948This config.status script is free software; the Free Software Foundation
11949gives unlimited permission to copy, distribute and modify it."
11950
11951ac_pwd='$ac_pwd'
11952srcdir='$srcdir'
11953INSTALL='$INSTALL'
11954MKDIR_P='$MKDIR_P'
11955AWK='$AWK'
11956test -n "\$AWK" || AWK=awk
11957_ACEOF
11958
11959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11960# The default lists apply if the user does not specify any file.
11961ac_need_defaults=:
11962while test $# != 0
11963do
11964  case $1 in
11965  --*=?*)
11966    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11967    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11968    ac_shift=:
11969    ;;
11970  --*=)
11971    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11972    ac_optarg=
11973    ac_shift=:
11974    ;;
11975  *)
11976    ac_option=$1
11977    ac_optarg=$2
11978    ac_shift=shift
11979    ;;
11980  esac
11981
11982  case $ac_option in
11983  # Handling of the options.
11984  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11985    ac_cs_recheck=: ;;
11986  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11987    $as_echo "$ac_cs_version"; exit ;;
11988  --config | --confi | --conf | --con | --co | --c )
11989    $as_echo "$ac_cs_config"; exit ;;
11990  --debug | --debu | --deb | --de | --d | -d )
11991    debug=: ;;
11992  --file | --fil | --fi | --f )
11993    $ac_shift
11994    case $ac_optarg in
11995    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11996    '') as_fn_error $? "missing file argument" ;;
11997    esac
11998    as_fn_append CONFIG_FILES " '$ac_optarg'"
11999    ac_need_defaults=false;;
12000  --header | --heade | --head | --hea )
12001    $ac_shift
12002    case $ac_optarg in
12003    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12004    esac
12005    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12006    ac_need_defaults=false;;
12007  --he | --h)
12008    # Conflict between --help and --header
12009    as_fn_error $? "ambiguous option: \`$1'
12010Try \`$0 --help' for more information.";;
12011  --help | --hel | -h )
12012    $as_echo "$ac_cs_usage"; exit ;;
12013  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12014  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12015    ac_cs_silent=: ;;
12016
12017  # This is an error.
12018  -*) as_fn_error $? "unrecognized option: \`$1'
12019Try \`$0 --help' for more information." ;;
12020
12021  *) as_fn_append ac_config_targets " $1"
12022     ac_need_defaults=false ;;
12023
12024  esac
12025  shift
12026done
12027
12028ac_configure_extra_args=
12029
12030if $ac_cs_silent; then
12031  exec 6>/dev/null
12032  ac_configure_extra_args="$ac_configure_extra_args --silent"
12033fi
12034
12035_ACEOF
12036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12037if \$ac_cs_recheck; then
12038  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12039  shift
12040  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12041  CONFIG_SHELL='$SHELL'
12042  export CONFIG_SHELL
12043  exec "\$@"
12044fi
12045
12046_ACEOF
12047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12048exec 5>>config.log
12049{
12050  echo
12051  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12052## Running $as_me. ##
12053_ASBOX
12054  $as_echo "$ac_log"
12055} >&5
12056
12057_ACEOF
12058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12059#
12060# INIT-COMMANDS
12061#
12062AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12063
12064_ACEOF
12065
12066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12067
12068# Handling of arguments.
12069for ac_config_target in $ac_config_targets
12070do
12071  case $ac_config_target in
12072    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12073    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12074    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12075    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12076    "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;;
12077    "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;;
12078    "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;;
12079
12080  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12081  esac
12082done
12083
12084
12085# If the user did not use the arguments to specify the items to instantiate,
12086# then the envvar interface is used.  Set only those that are not.
12087# We use the long form for the default assignment because of an extremely
12088# bizarre bug on SunOS 4.1.3.
12089if $ac_need_defaults; then
12090  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12091  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12092  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12093fi
12094
12095# Have a temporary directory for convenience.  Make it in the build tree
12096# simply because there is no reason against having it here, and in addition,
12097# creating and moving files from /tmp can sometimes cause problems.
12098# Hook for its removal unless debugging.
12099# Note that there is a small window in which the directory will not be cleaned:
12100# after its creation but before its name has been assigned to `$tmp'.
12101$debug ||
12102{
12103  tmp= ac_tmp=
12104  trap 'exit_status=$?
12105  : "${ac_tmp:=$tmp}"
12106  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12107' 0
12108  trap 'as_fn_exit 1' 1 2 13 15
12109}
12110# Create a (secure) tmp directory for tmp files.
12111
12112{
12113  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12114  test -d "$tmp"
12115}  ||
12116{
12117  tmp=./conf$$-$RANDOM
12118  (umask 077 && mkdir "$tmp")
12119} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12120ac_tmp=$tmp
12121
12122# Set up the scripts for CONFIG_FILES section.
12123# No need to generate them if there are no CONFIG_FILES.
12124# This happens for instance with `./config.status config.h'.
12125if test -n "$CONFIG_FILES"; then
12126
12127
12128ac_cr=`echo X | tr X '\015'`
12129# On cygwin, bash can eat \r inside `` if the user requested igncr.
12130# But we know of no other shell where ac_cr would be empty at this
12131# point, so we can use a bashism as a fallback.
12132if test "x$ac_cr" = x; then
12133  eval ac_cr=\$\'\\r\'
12134fi
12135ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12136if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12137  ac_cs_awk_cr='\\r'
12138else
12139  ac_cs_awk_cr=$ac_cr
12140fi
12141
12142echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12143_ACEOF
12144
12145
12146{
12147  echo "cat >conf$$subs.awk <<_ACEOF" &&
12148  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12149  echo "_ACEOF"
12150} >conf$$subs.sh ||
12151  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12152ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12153ac_delim='%!_!# '
12154for ac_last_try in false false false false false :; do
12155  . ./conf$$subs.sh ||
12156    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12157
12158  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12159  if test $ac_delim_n = $ac_delim_num; then
12160    break
12161  elif $ac_last_try; then
12162    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12163  else
12164    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12165  fi
12166done
12167rm -f conf$$subs.sh
12168
12169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12170cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12171_ACEOF
12172sed -n '
12173h
12174s/^/S["/; s/!.*/"]=/
12175p
12176g
12177s/^[^!]*!//
12178:repl
12179t repl
12180s/'"$ac_delim"'$//
12181t delim
12182:nl
12183h
12184s/\(.\{148\}\)..*/\1/
12185t more1
12186s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12187p
12188n
12189b repl
12190:more1
12191s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12192p
12193g
12194s/.\{148\}//
12195t nl
12196:delim
12197h
12198s/\(.\{148\}\)..*/\1/
12199t more2
12200s/["\\]/\\&/g; s/^/"/; s/$/"/
12201p
12202b
12203:more2
12204s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12205p
12206g
12207s/.\{148\}//
12208t delim
12209' <conf$$subs.awk | sed '
12210/^[^""]/{
12211  N
12212  s/\n//
12213}
12214' >>$CONFIG_STATUS || ac_write_fail=1
12215rm -f conf$$subs.awk
12216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12217_ACAWK
12218cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12219  for (key in S) S_is_set[key] = 1
12220  FS = ""
12221
12222}
12223{
12224  line = $ 0
12225  nfields = split(line, field, "@")
12226  substed = 0
12227  len = length(field[1])
12228  for (i = 2; i < nfields; i++) {
12229    key = field[i]
12230    keylen = length(key)
12231    if (S_is_set[key]) {
12232      value = S[key]
12233      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12234      len += length(value) + length(field[++i])
12235      substed = 1
12236    } else
12237      len += 1 + keylen
12238  }
12239
12240  print line
12241}
12242
12243_ACAWK
12244_ACEOF
12245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12246if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12247  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12248else
12249  cat
12250fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12251  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12252_ACEOF
12253
12254# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12255# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12256# trailing colons and then remove the whole line if VPATH becomes empty
12257# (actually we leave an empty line to preserve line numbers).
12258if test "x$srcdir" = x.; then
12259  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12260h
12261s///
12262s/^/:/
12263s/[	 ]*$/:/
12264s/:\$(srcdir):/:/g
12265s/:\${srcdir}:/:/g
12266s/:@srcdir@:/:/g
12267s/^:*//
12268s/:*$//
12269x
12270s/\(=[	 ]*\).*/\1/
12271G
12272s/\n//
12273s/^[^=]*=[	 ]*$//
12274}'
12275fi
12276
12277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12278fi # test -n "$CONFIG_FILES"
12279
12280# Set up the scripts for CONFIG_HEADERS section.
12281# No need to generate them if there are no CONFIG_HEADERS.
12282# This happens for instance with `./config.status Makefile'.
12283if test -n "$CONFIG_HEADERS"; then
12284cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12285BEGIN {
12286_ACEOF
12287
12288# Transform confdefs.h into an awk script `defines.awk', embedded as
12289# here-document in config.status, that substitutes the proper values into
12290# config.h.in to produce config.h.
12291
12292# Create a delimiter string that does not exist in confdefs.h, to ease
12293# handling of long lines.
12294ac_delim='%!_!# '
12295for ac_last_try in false false :; do
12296  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12297  if test -z "$ac_tt"; then
12298    break
12299  elif $ac_last_try; then
12300    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12301  else
12302    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12303  fi
12304done
12305
12306# For the awk script, D is an array of macro values keyed by name,
12307# likewise P contains macro parameters if any.  Preserve backslash
12308# newline sequences.
12309
12310ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12311sed -n '
12312s/.\{148\}/&'"$ac_delim"'/g
12313t rset
12314:rset
12315s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12316t def
12317d
12318:def
12319s/\\$//
12320t bsnl
12321s/["\\]/\\&/g
12322s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12323D["\1"]=" \3"/p
12324s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12325d
12326:bsnl
12327s/["\\]/\\&/g
12328s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12329D["\1"]=" \3\\\\\\n"\\/p
12330t cont
12331s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12332t cont
12333d
12334:cont
12335n
12336s/.\{148\}/&'"$ac_delim"'/g
12337t clear
12338:clear
12339s/\\$//
12340t bsnlc
12341s/["\\]/\\&/g; s/^/"/; s/$/"/p
12342d
12343:bsnlc
12344s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12345b cont
12346' <confdefs.h | sed '
12347s/'"$ac_delim"'/"\\\
12348"/g' >>$CONFIG_STATUS || ac_write_fail=1
12349
12350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12351  for (key in D) D_is_set[key] = 1
12352  FS = ""
12353}
12354/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12355  line = \$ 0
12356  split(line, arg, " ")
12357  if (arg[1] == "#") {
12358    defundef = arg[2]
12359    mac1 = arg[3]
12360  } else {
12361    defundef = substr(arg[1], 2)
12362    mac1 = arg[2]
12363  }
12364  split(mac1, mac2, "(") #)
12365  macro = mac2[1]
12366  prefix = substr(line, 1, index(line, defundef) - 1)
12367  if (D_is_set[macro]) {
12368    # Preserve the white space surrounding the "#".
12369    print prefix "define", macro P[macro] D[macro]
12370    next
12371  } else {
12372    # Replace #undef with comments.  This is necessary, for example,
12373    # in the case of _POSIX_SOURCE, which is predefined and required
12374    # on some systems where configure will not decide to define it.
12375    if (defundef == "undef") {
12376      print "/*", prefix defundef, macro, "*/"
12377      next
12378    }
12379  }
12380}
12381{ print }
12382_ACAWK
12383_ACEOF
12384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12385  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12386fi # test -n "$CONFIG_HEADERS"
12387
12388
12389eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12390shift
12391for ac_tag
12392do
12393  case $ac_tag in
12394  :[FHLC]) ac_mode=$ac_tag; continue;;
12395  esac
12396  case $ac_mode$ac_tag in
12397  :[FHL]*:*);;
12398  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12399  :[FH]-) ac_tag=-:-;;
12400  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12401  esac
12402  ac_save_IFS=$IFS
12403  IFS=:
12404  set x $ac_tag
12405  IFS=$ac_save_IFS
12406  shift
12407  ac_file=$1
12408  shift
12409
12410  case $ac_mode in
12411  :L) ac_source=$1;;
12412  :[FH])
12413    ac_file_inputs=
12414    for ac_f
12415    do
12416      case $ac_f in
12417      -) ac_f="$ac_tmp/stdin";;
12418      *) # Look for the file first in the build tree, then in the source tree
12419	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12420	 # because $ac_f cannot contain `:'.
12421	 test -f "$ac_f" ||
12422	   case $ac_f in
12423	   [\\/$]*) false;;
12424	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12425	   esac ||
12426	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12427      esac
12428      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12429      as_fn_append ac_file_inputs " '$ac_f'"
12430    done
12431
12432    # Let's still pretend it is `configure' which instantiates (i.e., don't
12433    # use $as_me), people would be surprised to read:
12434    #    /* config.h.  Generated by config.status.  */
12435    configure_input='Generated from '`
12436	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12437	`' by configure.'
12438    if test x"$ac_file" != x-; then
12439      configure_input="$ac_file.  $configure_input"
12440      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12441$as_echo "$as_me: creating $ac_file" >&6;}
12442    fi
12443    # Neutralize special characters interpreted by sed in replacement strings.
12444    case $configure_input in #(
12445    *\&* | *\|* | *\\* )
12446       ac_sed_conf_input=`$as_echo "$configure_input" |
12447       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12448    *) ac_sed_conf_input=$configure_input;;
12449    esac
12450
12451    case $ac_tag in
12452    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12453      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12454    esac
12455    ;;
12456  esac
12457
12458  ac_dir=`$as_dirname -- "$ac_file" ||
12459$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12460	 X"$ac_file" : 'X\(//\)[^/]' \| \
12461	 X"$ac_file" : 'X\(//\)$' \| \
12462	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12463$as_echo X"$ac_file" |
12464    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12465	    s//\1/
12466	    q
12467	  }
12468	  /^X\(\/\/\)[^/].*/{
12469	    s//\1/
12470	    q
12471	  }
12472	  /^X\(\/\/\)$/{
12473	    s//\1/
12474	    q
12475	  }
12476	  /^X\(\/\).*/{
12477	    s//\1/
12478	    q
12479	  }
12480	  s/.*/./; q'`
12481  as_dir="$ac_dir"; as_fn_mkdir_p
12482  ac_builddir=.
12483
12484case "$ac_dir" in
12485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12486*)
12487  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12488  # A ".." for each directory in $ac_dir_suffix.
12489  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12490  case $ac_top_builddir_sub in
12491  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12492  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12493  esac ;;
12494esac
12495ac_abs_top_builddir=$ac_pwd
12496ac_abs_builddir=$ac_pwd$ac_dir_suffix
12497# for backward compatibility:
12498ac_top_builddir=$ac_top_build_prefix
12499
12500case $srcdir in
12501  .)  # We are building in place.
12502    ac_srcdir=.
12503    ac_top_srcdir=$ac_top_builddir_sub
12504    ac_abs_top_srcdir=$ac_pwd ;;
12505  [\\/]* | ?:[\\/]* )  # Absolute name.
12506    ac_srcdir=$srcdir$ac_dir_suffix;
12507    ac_top_srcdir=$srcdir
12508    ac_abs_top_srcdir=$srcdir ;;
12509  *) # Relative name.
12510    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12511    ac_top_srcdir=$ac_top_build_prefix$srcdir
12512    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12513esac
12514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12515
12516
12517  case $ac_mode in
12518  :F)
12519  #
12520  # CONFIG_FILE
12521  #
12522
12523  case $INSTALL in
12524  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12525  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12526  esac
12527  ac_MKDIR_P=$MKDIR_P
12528  case $MKDIR_P in
12529  [\\/$]* | ?:[\\/]* ) ;;
12530  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12531  esac
12532_ACEOF
12533
12534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12535# If the template does not know about datarootdir, expand it.
12536# FIXME: This hack should be removed a few years after 2.60.
12537ac_datarootdir_hack=; ac_datarootdir_seen=
12538ac_sed_dataroot='
12539/datarootdir/ {
12540  p
12541  q
12542}
12543/@datadir@/p
12544/@docdir@/p
12545/@infodir@/p
12546/@localedir@/p
12547/@mandir@/p'
12548case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12549*datarootdir*) ac_datarootdir_seen=yes;;
12550*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12551  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12552$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12553_ACEOF
12554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12555  ac_datarootdir_hack='
12556  s&@datadir@&$datadir&g
12557  s&@docdir@&$docdir&g
12558  s&@infodir@&$infodir&g
12559  s&@localedir@&$localedir&g
12560  s&@mandir@&$mandir&g
12561  s&\\\${datarootdir}&$datarootdir&g' ;;
12562esac
12563_ACEOF
12564
12565# Neutralize VPATH when `$srcdir' = `.'.
12566# Shell code in configure.ac might set extrasub.
12567# FIXME: do we really want to maintain this feature?
12568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12569ac_sed_extra="$ac_vpsub
12570$extrasub
12571_ACEOF
12572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573:t
12574/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12575s|@configure_input@|$ac_sed_conf_input|;t t
12576s&@top_builddir@&$ac_top_builddir_sub&;t t
12577s&@top_build_prefix@&$ac_top_build_prefix&;t t
12578s&@srcdir@&$ac_srcdir&;t t
12579s&@abs_srcdir@&$ac_abs_srcdir&;t t
12580s&@top_srcdir@&$ac_top_srcdir&;t t
12581s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12582s&@builddir@&$ac_builddir&;t t
12583s&@abs_builddir@&$ac_abs_builddir&;t t
12584s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12585s&@INSTALL@&$ac_INSTALL&;t t
12586s&@MKDIR_P@&$ac_MKDIR_P&;t t
12587$ac_datarootdir_hack
12588"
12589eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12590  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12591
12592test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12593  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12594  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12595      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12596  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12597which seems to be undefined.  Please make sure it is defined" >&5
12598$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12599which seems to be undefined.  Please make sure it is defined" >&2;}
12600
12601  rm -f "$ac_tmp/stdin"
12602  case $ac_file in
12603  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12604  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12605  esac \
12606  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12607 ;;
12608  :H)
12609  #
12610  # CONFIG_HEADER
12611  #
12612  if test x"$ac_file" != x-; then
12613    {
12614      $as_echo "/* $configure_input  */" \
12615      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12616    } >"$ac_tmp/config.h" \
12617      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12618    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12619      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12620$as_echo "$as_me: $ac_file is unchanged" >&6;}
12621    else
12622      rm -f "$ac_file"
12623      mv "$ac_tmp/config.h" "$ac_file" \
12624	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12625    fi
12626  else
12627    $as_echo "/* $configure_input  */" \
12628      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12629      || as_fn_error $? "could not create -" "$LINENO" 5
12630  fi
12631# Compute "$ac_file"'s index in $config_headers.
12632_am_arg="$ac_file"
12633_am_stamp_count=1
12634for _am_header in $config_headers :; do
12635  case $_am_header in
12636    $_am_arg | $_am_arg:* )
12637      break ;;
12638    * )
12639      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12640  esac
12641done
12642echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12643$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12644	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12645	 X"$_am_arg" : 'X\(//\)$' \| \
12646	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12647$as_echo X"$_am_arg" |
12648    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12649	    s//\1/
12650	    q
12651	  }
12652	  /^X\(\/\/\)[^/].*/{
12653	    s//\1/
12654	    q
12655	  }
12656	  /^X\(\/\/\)$/{
12657	    s//\1/
12658	    q
12659	  }
12660	  /^X\(\/\).*/{
12661	    s//\1/
12662	    q
12663	  }
12664	  s/.*/./; q'`/stamp-h$_am_stamp_count
12665 ;;
12666
12667  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12668$as_echo "$as_me: executing $ac_file commands" >&6;}
12669 ;;
12670  esac
12671
12672
12673  case $ac_file$ac_mode in
12674    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12675  # Older Autoconf quotes --file arguments for eval, but not when files
12676  # are listed without --file.  Let's play safe and only enable the eval
12677  # if we detect the quoting.
12678  case $CONFIG_FILES in
12679  *\'*) eval set x "$CONFIG_FILES" ;;
12680  *)   set x $CONFIG_FILES ;;
12681  esac
12682  shift
12683  for mf
12684  do
12685    # Strip MF so we end up with the name of the file.
12686    mf=`echo "$mf" | sed -e 's/:.*$//'`
12687    # Check whether this is an Automake generated Makefile or not.
12688    # We used to match only the files named 'Makefile.in', but
12689    # some people rename them; so instead we look at the file content.
12690    # Grep'ing the first line is not enough: some people post-process
12691    # each Makefile.in and add a new line on top of each file to say so.
12692    # Grep'ing the whole file is not good either: AIX grep has a line
12693    # limit of 2048, but all sed's we know have understand at least 4000.
12694    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12695      dirpart=`$as_dirname -- "$mf" ||
12696$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12697	 X"$mf" : 'X\(//\)[^/]' \| \
12698	 X"$mf" : 'X\(//\)$' \| \
12699	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12700$as_echo X"$mf" |
12701    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12702	    s//\1/
12703	    q
12704	  }
12705	  /^X\(\/\/\)[^/].*/{
12706	    s//\1/
12707	    q
12708	  }
12709	  /^X\(\/\/\)$/{
12710	    s//\1/
12711	    q
12712	  }
12713	  /^X\(\/\).*/{
12714	    s//\1/
12715	    q
12716	  }
12717	  s/.*/./; q'`
12718    else
12719      continue
12720    fi
12721    # Extract the definition of DEPDIR, am__include, and am__quote
12722    # from the Makefile without running 'make'.
12723    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12724    test -z "$DEPDIR" && continue
12725    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12726    test -z "$am__include" && continue
12727    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12728    # Find all dependency output files, they are included files with
12729    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12730    # simplest approach to changing $(DEPDIR) to its actual value in the
12731    # expansion.
12732    for file in `sed -n "
12733      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12734	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12735      # Make sure the directory exists.
12736      test -f "$dirpart/$file" && continue
12737      fdir=`$as_dirname -- "$file" ||
12738$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12739	 X"$file" : 'X\(//\)[^/]' \| \
12740	 X"$file" : 'X\(//\)$' \| \
12741	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12742$as_echo X"$file" |
12743    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12744	    s//\1/
12745	    q
12746	  }
12747	  /^X\(\/\/\)[^/].*/{
12748	    s//\1/
12749	    q
12750	  }
12751	  /^X\(\/\/\)$/{
12752	    s//\1/
12753	    q
12754	  }
12755	  /^X\(\/\).*/{
12756	    s//\1/
12757	    q
12758	  }
12759	  s/.*/./; q'`
12760      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12761      # echo "creating $dirpart/$file"
12762      echo '# dummy' > "$dirpart/$file"
12763    done
12764  done
12765}
12766 ;;
12767
12768  esac
12769done # for ac_tag
12770
12771
12772as_fn_exit 0
12773_ACEOF
12774ac_clean_files=$ac_clean_files_save
12775
12776test $ac_write_fail = 0 ||
12777  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12778
12779
12780# configure is writing to config.log, and then calls config.status.
12781# config.status does its own redirection, appending to config.log.
12782# Unfortunately, on DOS this fails, as config.log is still kept open
12783# by configure, so config.status won't be able to write to it; its
12784# output is simply discarded.  So we exec the FD to /dev/null,
12785# effectively closing config.log, so it can be properly (re)opened and
12786# appended to by config.status.  When coming back to configure, we
12787# need to make the FD available again.
12788if test "$no_create" != yes; then
12789  ac_cs_success=:
12790  ac_config_status_args=
12791  test "$silent" = yes &&
12792    ac_config_status_args="$ac_config_status_args --quiet"
12793  exec 5>/dev/null
12794  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12795  exec 5>>config.log
12796  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12797  # would make configure fail if this is the last instruction.
12798  $ac_cs_success || as_fn_exit 1
12799fi
12800if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12801  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12802$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12803fi
12804
12805