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