configure revision 2f167a42
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xkbprint 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='xkbprint'
583PACKAGE_TARNAME='xkbprint'
584PACKAGE_VERSION='1.0.4'
585PACKAGE_STRING='xkbprint 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
630XKBPRINT_LIBS
631XKBPRINT_CFLAGS
632MAN_SUBSTS
633XORG_MAN_PAGE
634ADMIN_MAN_DIR
635DRIVER_MAN_DIR
636MISC_MAN_DIR
637FILE_MAN_DIR
638LIB_MAN_DIR
639APP_MAN_DIR
640ADMIN_MAN_SUFFIX
641DRIVER_MAN_SUFFIX
642MISC_MAN_SUFFIX
643FILE_MAN_SUFFIX
644LIB_MAN_SUFFIX
645APP_MAN_SUFFIX
646SED
647host_os
648host_vendor
649host_cpu
650host
651build_os
652build_vendor
653build_cpu
654build
655INSTALL_CMD
656PKG_CONFIG
657CHANGELOG_CMD
658STRICT_CFLAGS
659CWARNFLAGS
660BASE_CFLAGS
661AM_BACKSLASH
662AM_DEFAULT_VERBOSITY
663AM_DEFAULT_V
664AM_V
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
668am__nodep
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675am__untar
676am__tar
677AMTAR
678am__leading_dot
679SET_MAKE
680AWK
681mkdir_p
682MKDIR_P
683INSTALL_STRIP_PROGRAM
684STRIP
685install_sh
686MAKEINFO
687AUTOHEADER
688AUTOMAKE
689AUTOCONF
690ACLOCAL
691VERSION
692PACKAGE
693CYGPATH_W
694am__isrc
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698EGREP
699GREP
700CPP
701OBJEXT
702EXEEXT
703ac_ct_CC
704CPPFLAGS
705LDFLAGS
706CFLAGS
707CC
708target_alias
709host_alias
710build_alias
711LIBS
712ECHO_T
713ECHO_N
714ECHO_C
715DEFS
716mandir
717localedir
718libdir
719psdir
720pdfdir
721dvidir
722htmldir
723infodir
724docdir
725oldincludedir
726includedir
727localstatedir
728sharedstatedir
729sysconfdir
730datadir
731datarootdir
732libexecdir
733sbindir
734bindir
735program_transform_name
736prefix
737exec_prefix
738PACKAGE_URL
739PACKAGE_BUGREPORT
740PACKAGE_STRING
741PACKAGE_VERSION
742PACKAGE_TARNAME
743PACKAGE_NAME
744PATH_SEPARATOR
745SHELL'
746ac_subst_files=''
747ac_user_opts='
748enable_option_checking
749enable_dependency_tracking
750enable_silent_rules
751enable_selective_werror
752enable_strict_compilation
753'
754      ac_precious_vars='build_alias
755host_alias
756target_alias
757CC
758CFLAGS
759LDFLAGS
760LIBS
761CPPFLAGS
762CPP
763PKG_CONFIG
764XKBPRINT_CFLAGS
765XKBPRINT_LIBS'
766
767
768# Initialize some variables set by options.
769ac_init_help=
770ac_init_version=false
771ac_unrecognized_opts=
772ac_unrecognized_sep=
773# The variables have the same names as the options, with
774# dashes changed to underlines.
775cache_file=/dev/null
776exec_prefix=NONE
777no_create=
778no_recursion=
779prefix=NONE
780program_prefix=NONE
781program_suffix=NONE
782program_transform_name=s,x,x,
783silent=
784site=
785srcdir=
786verbose=
787x_includes=NONE
788x_libraries=NONE
789
790# Installation directory options.
791# These are left unexpanded so users can "make install exec_prefix=/foo"
792# and all the variables that are supposed to be based on exec_prefix
793# by default will actually change.
794# Use braces instead of parens because sh, perl, etc. also accept them.
795# (The list follows the same order as the GNU Coding Standards.)
796bindir='${exec_prefix}/bin'
797sbindir='${exec_prefix}/sbin'
798libexecdir='${exec_prefix}/libexec'
799datarootdir='${prefix}/share'
800datadir='${datarootdir}'
801sysconfdir='${prefix}/etc'
802sharedstatedir='${prefix}/com'
803localstatedir='${prefix}/var'
804includedir='${prefix}/include'
805oldincludedir='/usr/include'
806docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807infodir='${datarootdir}/info'
808htmldir='${docdir}'
809dvidir='${docdir}'
810pdfdir='${docdir}'
811psdir='${docdir}'
812libdir='${exec_prefix}/lib'
813localedir='${datarootdir}/locale'
814mandir='${datarootdir}/man'
815
816ac_prev=
817ac_dashdash=
818for ac_option
819do
820  # If the previous option needs an argument, assign it.
821  if test -n "$ac_prev"; then
822    eval $ac_prev=\$ac_option
823    ac_prev=
824    continue
825  fi
826
827  case $ac_option in
828  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829  *=)   ac_optarg= ;;
830  *)    ac_optarg=yes ;;
831  esac
832
833  # Accept the important Cygnus configure options, so we can diagnose typos.
834
835  case $ac_dashdash$ac_option in
836  --)
837    ac_dashdash=yes ;;
838
839  -bindir | --bindir | --bindi | --bind | --bin | --bi)
840    ac_prev=bindir ;;
841  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842    bindir=$ac_optarg ;;
843
844  -build | --build | --buil | --bui | --bu)
845    ac_prev=build_alias ;;
846  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847    build_alias=$ac_optarg ;;
848
849  -cache-file | --cache-file | --cache-fil | --cache-fi \
850  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851    ac_prev=cache_file ;;
852  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854    cache_file=$ac_optarg ;;
855
856  --config-cache | -C)
857    cache_file=config.cache ;;
858
859  -datadir | --datadir | --datadi | --datad)
860    ac_prev=datadir ;;
861  -datadir=* | --datadir=* | --datadi=* | --datad=*)
862    datadir=$ac_optarg ;;
863
864  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865  | --dataroo | --dataro | --datar)
866    ac_prev=datarootdir ;;
867  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869    datarootdir=$ac_optarg ;;
870
871  -disable-* | --disable-*)
872    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873    # Reject names that are not valid shell variable names.
874    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875      as_fn_error $? "invalid feature name: $ac_useropt"
876    ac_useropt_orig=$ac_useropt
877    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878    case $ac_user_opts in
879      *"
880"enable_$ac_useropt"
881"*) ;;
882      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883	 ac_unrecognized_sep=', ';;
884    esac
885    eval enable_$ac_useropt=no ;;
886
887  -docdir | --docdir | --docdi | --doc | --do)
888    ac_prev=docdir ;;
889  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890    docdir=$ac_optarg ;;
891
892  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893    ac_prev=dvidir ;;
894  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895    dvidir=$ac_optarg ;;
896
897  -enable-* | --enable-*)
898    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899    # Reject names that are not valid shell variable names.
900    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901      as_fn_error $? "invalid feature name: $ac_useropt"
902    ac_useropt_orig=$ac_useropt
903    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904    case $ac_user_opts in
905      *"
906"enable_$ac_useropt"
907"*) ;;
908      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909	 ac_unrecognized_sep=', ';;
910    esac
911    eval enable_$ac_useropt=\$ac_optarg ;;
912
913  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915  | --exec | --exe | --ex)
916    ac_prev=exec_prefix ;;
917  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919  | --exec=* | --exe=* | --ex=*)
920    exec_prefix=$ac_optarg ;;
921
922  -gas | --gas | --ga | --g)
923    # Obsolete; use --with-gas.
924    with_gas=yes ;;
925
926  -help | --help | --hel | --he | -h)
927    ac_init_help=long ;;
928  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929    ac_init_help=recursive ;;
930  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931    ac_init_help=short ;;
932
933  -host | --host | --hos | --ho)
934    ac_prev=host_alias ;;
935  -host=* | --host=* | --hos=* | --ho=*)
936    host_alias=$ac_optarg ;;
937
938  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939    ac_prev=htmldir ;;
940  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941  | --ht=*)
942    htmldir=$ac_optarg ;;
943
944  -includedir | --includedir | --includedi | --included | --include \
945  | --includ | --inclu | --incl | --inc)
946    ac_prev=includedir ;;
947  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948  | --includ=* | --inclu=* | --incl=* | --inc=*)
949    includedir=$ac_optarg ;;
950
951  -infodir | --infodir | --infodi | --infod | --info | --inf)
952    ac_prev=infodir ;;
953  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954    infodir=$ac_optarg ;;
955
956  -libdir | --libdir | --libdi | --libd)
957    ac_prev=libdir ;;
958  -libdir=* | --libdir=* | --libdi=* | --libd=*)
959    libdir=$ac_optarg ;;
960
961  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962  | --libexe | --libex | --libe)
963    ac_prev=libexecdir ;;
964  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965  | --libexe=* | --libex=* | --libe=*)
966    libexecdir=$ac_optarg ;;
967
968  -localedir | --localedir | --localedi | --localed | --locale)
969    ac_prev=localedir ;;
970  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971    localedir=$ac_optarg ;;
972
973  -localstatedir | --localstatedir | --localstatedi | --localstated \
974  | --localstate | --localstat | --localsta | --localst | --locals)
975    ac_prev=localstatedir ;;
976  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978    localstatedir=$ac_optarg ;;
979
980  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981    ac_prev=mandir ;;
982  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983    mandir=$ac_optarg ;;
984
985  -nfp | --nfp | --nf)
986    # Obsolete; use --without-fp.
987    with_fp=no ;;
988
989  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990  | --no-cr | --no-c | -n)
991    no_create=yes ;;
992
993  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995    no_recursion=yes ;;
996
997  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999  | --oldin | --oldi | --old | --ol | --o)
1000    ac_prev=oldincludedir ;;
1001  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004    oldincludedir=$ac_optarg ;;
1005
1006  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007    ac_prev=prefix ;;
1008  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009    prefix=$ac_optarg ;;
1010
1011  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012  | --program-pre | --program-pr | --program-p)
1013    ac_prev=program_prefix ;;
1014  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016    program_prefix=$ac_optarg ;;
1017
1018  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019  | --program-suf | --program-su | --program-s)
1020    ac_prev=program_suffix ;;
1021  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023    program_suffix=$ac_optarg ;;
1024
1025  -program-transform-name | --program-transform-name \
1026  | --program-transform-nam | --program-transform-na \
1027  | --program-transform-n | --program-transform- \
1028  | --program-transform | --program-transfor \
1029  | --program-transfo | --program-transf \
1030  | --program-trans | --program-tran \
1031  | --progr-tra | --program-tr | --program-t)
1032    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1041
1042  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043    ac_prev=pdfdir ;;
1044  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045    pdfdir=$ac_optarg ;;
1046
1047  -psdir | --psdir | --psdi | --psd | --ps)
1048    ac_prev=psdir ;;
1049  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050    psdir=$ac_optarg ;;
1051
1052  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053  | -silent | --silent | --silen | --sile | --sil)
1054    silent=yes ;;
1055
1056  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057    ac_prev=sbindir ;;
1058  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059  | --sbi=* | --sb=*)
1060    sbindir=$ac_optarg ;;
1061
1062  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064  | --sharedst | --shareds | --shared | --share | --shar \
1065  | --sha | --sh)
1066    ac_prev=sharedstatedir ;;
1067  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070  | --sha=* | --sh=*)
1071    sharedstatedir=$ac_optarg ;;
1072
1073  -site | --site | --sit)
1074    ac_prev=site ;;
1075  -site=* | --site=* | --sit=*)
1076    site=$ac_optarg ;;
1077
1078  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079    ac_prev=srcdir ;;
1080  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081    srcdir=$ac_optarg ;;
1082
1083  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084  | --syscon | --sysco | --sysc | --sys | --sy)
1085    ac_prev=sysconfdir ;;
1086  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088    sysconfdir=$ac_optarg ;;
1089
1090  -target | --target | --targe | --targ | --tar | --ta | --t)
1091    ac_prev=target_alias ;;
1092  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093    target_alias=$ac_optarg ;;
1094
1095  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096    verbose=yes ;;
1097
1098  -version | --version | --versio | --versi | --vers | -V)
1099    ac_init_version=: ;;
1100
1101  -with-* | --with-*)
1102    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103    # Reject names that are not valid shell variable names.
1104    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105      as_fn_error $? "invalid package name: $ac_useropt"
1106    ac_useropt_orig=$ac_useropt
1107    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108    case $ac_user_opts in
1109      *"
1110"with_$ac_useropt"
1111"*) ;;
1112      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113	 ac_unrecognized_sep=', ';;
1114    esac
1115    eval with_$ac_useropt=\$ac_optarg ;;
1116
1117  -without-* | --without-*)
1118    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119    # Reject names that are not valid shell variable names.
1120    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121      as_fn_error $? "invalid package name: $ac_useropt"
1122    ac_useropt_orig=$ac_useropt
1123    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124    case $ac_user_opts in
1125      *"
1126"with_$ac_useropt"
1127"*) ;;
1128      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129	 ac_unrecognized_sep=', ';;
1130    esac
1131    eval with_$ac_useropt=no ;;
1132
1133  --x)
1134    # Obsolete; use --with-x.
1135    with_x=yes ;;
1136
1137  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138  | --x-incl | --x-inc | --x-in | --x-i)
1139    ac_prev=x_includes ;;
1140  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142    x_includes=$ac_optarg ;;
1143
1144  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146    ac_prev=x_libraries ;;
1147  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149    x_libraries=$ac_optarg ;;
1150
1151  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1152Try \`$0 --help' for more information"
1153    ;;
1154
1155  *=*)
1156    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157    # Reject names that are not valid shell variable names.
1158    case $ac_envvar in #(
1159      '' | [0-9]* | *[!_$as_cr_alnum]* )
1160      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161    esac
1162    eval $ac_envvar=\$ac_optarg
1163    export $ac_envvar ;;
1164
1165  *)
1166    # FIXME: should be removed in autoconf 3.0.
1167    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1171    ;;
1172
1173  esac
1174done
1175
1176if test -n "$ac_prev"; then
1177  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178  as_fn_error $? "missing argument to $ac_option"
1179fi
1180
1181if test -n "$ac_unrecognized_opts"; then
1182  case $enable_option_checking in
1183    no) ;;
1184    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1185    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186  esac
1187fi
1188
1189# Check all directory arguments for consistency.
1190for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191		datadir sysconfdir sharedstatedir localstatedir includedir \
1192		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193		libdir localedir mandir
1194do
1195  eval ac_val=\$$ac_var
1196  # Remove trailing slashes.
1197  case $ac_val in
1198    */ )
1199      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200      eval $ac_var=\$ac_val;;
1201  esac
1202  # Be sure to have absolute directory names.
1203  case $ac_val in
1204    [\\/$]* | ?:[\\/]* )  continue;;
1205    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206  esac
1207  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208done
1209
1210# There might be people who depend on the old broken behavior: `$host'
1211# used to hold the argument of --host etc.
1212# FIXME: To remove some day.
1213build=$build_alias
1214host=$host_alias
1215target=$target_alias
1216
1217# FIXME: To remove some day.
1218if test "x$host_alias" != x; then
1219  if test "x$build_alias" = x; then
1220    cross_compiling=maybe
1221  elif test "x$build_alias" != "x$host_alias"; then
1222    cross_compiling=yes
1223  fi
1224fi
1225
1226ac_tool_prefix=
1227test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229test "$silent" = yes && exec 6>/dev/null
1230
1231
1232ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233ac_ls_di=`ls -di .` &&
1234ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235  as_fn_error $? "working directory cannot be determined"
1236test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237  as_fn_error $? "pwd does not report name of working directory"
1238
1239
1240# Find the source files, if location was not specified.
1241if test -z "$srcdir"; then
1242  ac_srcdir_defaulted=yes
1243  # Try the directory containing this script, then the parent directory.
1244  ac_confdir=`$as_dirname -- "$as_myself" ||
1245$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246	 X"$as_myself" : 'X\(//\)[^/]' \| \
1247	 X"$as_myself" : 'X\(//\)$' \| \
1248	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249$as_echo X"$as_myself" |
1250    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251	    s//\1/
1252	    q
1253	  }
1254	  /^X\(\/\/\)[^/].*/{
1255	    s//\1/
1256	    q
1257	  }
1258	  /^X\(\/\/\)$/{
1259	    s//\1/
1260	    q
1261	  }
1262	  /^X\(\/\).*/{
1263	    s//\1/
1264	    q
1265	  }
1266	  s/.*/./; q'`
1267  srcdir=$ac_confdir
1268  if test ! -r "$srcdir/$ac_unique_file"; then
1269    srcdir=..
1270  fi
1271else
1272  ac_srcdir_defaulted=no
1273fi
1274if test ! -r "$srcdir/$ac_unique_file"; then
1275  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277fi
1278ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279ac_abs_confdir=`(
1280	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281	pwd)`
1282# When building in place, set srcdir=.
1283if test "$ac_abs_confdir" = "$ac_pwd"; then
1284  srcdir=.
1285fi
1286# Remove unnecessary trailing slashes from srcdir.
1287# Double slashes in file names in object file debugging info
1288# mess up M-x gdb in Emacs.
1289case $srcdir in
1290*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291esac
1292for ac_var in $ac_precious_vars; do
1293  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294  eval ac_env_${ac_var}_value=\$${ac_var}
1295  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297done
1298
1299#
1300# Report the --help message.
1301#
1302if test "$ac_init_help" = "long"; then
1303  # Omit some internal or obsolete options to make the list less imposing.
1304  # This message is too long to be a string in the A/UX 3.1 sh.
1305  cat <<_ACEOF
1306\`configure' configures xkbprint 1.0.4 to adapt to many kinds of systems.
1307
1308Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311VAR=VALUE.  See below for descriptions of some of the useful variables.
1312
1313Defaults for the options are specified in brackets.
1314
1315Configuration:
1316  -h, --help              display this help and exit
1317      --help=short        display options specific to this package
1318      --help=recursive    display the short help of all the included packages
1319  -V, --version           display version information and exit
1320  -q, --quiet, --silent   do not print \`checking ...' messages
1321      --cache-file=FILE   cache test results in FILE [disabled]
1322  -C, --config-cache      alias for \`--cache-file=config.cache'
1323  -n, --no-create         do not create output files
1324      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1325
1326Installation directories:
1327  --prefix=PREFIX         install architecture-independent files in PREFIX
1328                          [$ac_default_prefix]
1329  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1330                          [PREFIX]
1331
1332By default, \`make install' will install all the files in
1333\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1334an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335for instance \`--prefix=\$HOME'.
1336
1337For better control, use the options below.
1338
1339Fine tuning of the installation directories:
1340  --bindir=DIR            user executables [EPREFIX/bin]
1341  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1342  --libexecdir=DIR        program executables [EPREFIX/libexec]
1343  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1344  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1345  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1346  --libdir=DIR            object code libraries [EPREFIX/lib]
1347  --includedir=DIR        C header files [PREFIX/include]
1348  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1349  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1350  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1351  --infodir=DIR           info documentation [DATAROOTDIR/info]
1352  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1353  --mandir=DIR            man documentation [DATAROOTDIR/man]
1354  --docdir=DIR            documentation root [DATAROOTDIR/doc/xkbprint]
1355  --htmldir=DIR           html documentation [DOCDIR]
1356  --dvidir=DIR            dvi documentation [DOCDIR]
1357  --pdfdir=DIR            pdf documentation [DOCDIR]
1358  --psdir=DIR             ps documentation [DOCDIR]
1359_ACEOF
1360
1361  cat <<\_ACEOF
1362
1363Program names:
1364  --program-prefix=PREFIX            prepend PREFIX to installed program names
1365  --program-suffix=SUFFIX            append SUFFIX to installed program names
1366  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1367
1368System types:
1369  --build=BUILD     configure for building on BUILD [guessed]
1370  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1371_ACEOF
1372fi
1373
1374if test -n "$ac_init_help"; then
1375  case $ac_init_help in
1376     short | recursive ) echo "Configuration of xkbprint 1.0.4:";;
1377   esac
1378  cat <<\_ACEOF
1379
1380Optional Features:
1381  --disable-option-checking  ignore unrecognized --enable/--with options
1382  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1383  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1384  --enable-dependency-tracking
1385                          do not reject slow dependency extractors
1386  --disable-dependency-tracking
1387                          speeds up one-time build
1388  --enable-silent-rules   less verbose build output (undo: "make V=1")
1389  --disable-silent-rules  verbose build output (undo: "make V=0")
1390  --disable-selective-werror
1391                          Turn off selective compiler errors. (default:
1392                          enabled)
1393  --enable-strict-compilation
1394                          Enable all warnings from compiler and make them
1395                          errors (default: disabled)
1396
1397Some influential environment variables:
1398  CC          C compiler command
1399  CFLAGS      C compiler flags
1400  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1401              nonstandard directory <lib dir>
1402  LIBS        libraries to pass to the linker, e.g. -l<library>
1403  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1404              you have headers in a nonstandard directory <include dir>
1405  CPP         C preprocessor
1406  PKG_CONFIG  path to pkg-config utility
1407  XKBPRINT_CFLAGS
1408              C compiler flags for XKBPRINT, overriding pkg-config
1409  XKBPRINT_LIBS
1410              linker flags for XKBPRINT, overriding pkg-config
1411
1412Use these variables to override the choices made by `configure' or to help
1413it to find libraries and programs with nonstandard names/locations.
1414
1415Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1416_ACEOF
1417ac_status=$?
1418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421  # If there are subdirs, report their specific --help.
1422  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423    test -d "$ac_dir" ||
1424      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425      continue
1426    ac_builddir=.
1427
1428case "$ac_dir" in
1429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430*)
1431  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432  # A ".." for each directory in $ac_dir_suffix.
1433  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434  case $ac_top_builddir_sub in
1435  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437  esac ;;
1438esac
1439ac_abs_top_builddir=$ac_pwd
1440ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441# for backward compatibility:
1442ac_top_builddir=$ac_top_build_prefix
1443
1444case $srcdir in
1445  .)  # We are building in place.
1446    ac_srcdir=.
1447    ac_top_srcdir=$ac_top_builddir_sub
1448    ac_abs_top_srcdir=$ac_pwd ;;
1449  [\\/]* | ?:[\\/]* )  # Absolute name.
1450    ac_srcdir=$srcdir$ac_dir_suffix;
1451    ac_top_srcdir=$srcdir
1452    ac_abs_top_srcdir=$srcdir ;;
1453  *) # Relative name.
1454    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455    ac_top_srcdir=$ac_top_build_prefix$srcdir
1456    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457esac
1458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460    cd "$ac_dir" || { ac_status=$?; continue; }
1461    # Check for guested configure.
1462    if test -f "$ac_srcdir/configure.gnu"; then
1463      echo &&
1464      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465    elif test -f "$ac_srcdir/configure"; then
1466      echo &&
1467      $SHELL "$ac_srcdir/configure" --help=recursive
1468    else
1469      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470    fi || ac_status=$?
1471    cd "$ac_pwd" || { ac_status=$?; break; }
1472  done
1473fi
1474
1475test -n "$ac_init_help" && exit $ac_status
1476if $ac_init_version; then
1477  cat <<\_ACEOF
1478xkbprint configure 1.0.4
1479generated by GNU Autoconf 2.69
1480
1481Copyright (C) 2012 Free Software Foundation, Inc.
1482This configure script is free software; the Free Software Foundation
1483gives unlimited permission to copy, distribute and modify it.
1484_ACEOF
1485  exit
1486fi
1487
1488## ------------------------ ##
1489## Autoconf initialization. ##
1490## ------------------------ ##
1491
1492# ac_fn_c_try_compile LINENO
1493# --------------------------
1494# Try to compile conftest.$ac_ext, and return whether this succeeded.
1495ac_fn_c_try_compile ()
1496{
1497  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498  rm -f conftest.$ac_objext
1499  if { { ac_try="$ac_compile"
1500case "(($ac_try" in
1501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502  *) ac_try_echo=$ac_try;;
1503esac
1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505$as_echo "$ac_try_echo"; } >&5
1506  (eval "$ac_compile") 2>conftest.err
1507  ac_status=$?
1508  if test -s conftest.err; then
1509    grep -v '^ *+' conftest.err >conftest.er1
1510    cat conftest.er1 >&5
1511    mv -f conftest.er1 conftest.err
1512  fi
1513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514  test $ac_status = 0; } && {
1515	 test -z "$ac_c_werror_flag" ||
1516	 test ! -s conftest.err
1517       } && test -s conftest.$ac_objext; then :
1518  ac_retval=0
1519else
1520  $as_echo "$as_me: failed program was:" >&5
1521sed 's/^/| /' conftest.$ac_ext >&5
1522
1523	ac_retval=1
1524fi
1525  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526  as_fn_set_status $ac_retval
1527
1528} # ac_fn_c_try_compile
1529
1530# ac_fn_c_try_cpp LINENO
1531# ----------------------
1532# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1533ac_fn_c_try_cpp ()
1534{
1535  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536  if { { ac_try="$ac_cpp conftest.$ac_ext"
1537case "(($ac_try" in
1538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539  *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542$as_echo "$ac_try_echo"; } >&5
1543  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1544  ac_status=$?
1545  if test -s conftest.err; then
1546    grep -v '^ *+' conftest.err >conftest.er1
1547    cat conftest.er1 >&5
1548    mv -f conftest.er1 conftest.err
1549  fi
1550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551  test $ac_status = 0; } > conftest.i && {
1552	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1553	 test ! -s conftest.err
1554       }; then :
1555  ac_retval=0
1556else
1557  $as_echo "$as_me: failed program was:" >&5
1558sed 's/^/| /' conftest.$ac_ext >&5
1559
1560    ac_retval=1
1561fi
1562  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563  as_fn_set_status $ac_retval
1564
1565} # ac_fn_c_try_cpp
1566
1567# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1568# -------------------------------------------------------
1569# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1570# the include files in INCLUDES and setting the cache variable VAR
1571# accordingly.
1572ac_fn_c_check_header_mongrel ()
1573{
1574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575  if eval \${$3+:} false; then :
1576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1577$as_echo_n "checking for $2... " >&6; }
1578if eval \${$3+:} false; then :
1579  $as_echo_n "(cached) " >&6
1580fi
1581eval ac_res=\$$3
1582	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1583$as_echo "$ac_res" >&6; }
1584else
1585  # Is the header compilable?
1586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1587$as_echo_n "checking $2 usability... " >&6; }
1588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589/* end confdefs.h.  */
1590$4
1591#include <$2>
1592_ACEOF
1593if ac_fn_c_try_compile "$LINENO"; then :
1594  ac_header_compiler=yes
1595else
1596  ac_header_compiler=no
1597fi
1598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1600$as_echo "$ac_header_compiler" >&6; }
1601
1602# Is the header present?
1603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1604$as_echo_n "checking $2 presence... " >&6; }
1605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606/* end confdefs.h.  */
1607#include <$2>
1608_ACEOF
1609if ac_fn_c_try_cpp "$LINENO"; then :
1610  ac_header_preproc=yes
1611else
1612  ac_header_preproc=no
1613fi
1614rm -f conftest.err conftest.i conftest.$ac_ext
1615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1616$as_echo "$ac_header_preproc" >&6; }
1617
1618# So?  What about this header?
1619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1620  yes:no: )
1621    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1622$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1623    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1625    ;;
1626  no:yes:* )
1627    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1628$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1629    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1630$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1631    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1632$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1633    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1634$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1635    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1636$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1637( $as_echo "## ---------------------------------------------------------------------- ##
1638## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1639## ---------------------------------------------------------------------- ##"
1640     ) | sed "s/^/$as_me: WARNING:     /" >&2
1641    ;;
1642esac
1643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644$as_echo_n "checking for $2... " >&6; }
1645if eval \${$3+:} false; then :
1646  $as_echo_n "(cached) " >&6
1647else
1648  eval "$3=\$ac_header_compiler"
1649fi
1650eval ac_res=\$$3
1651	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652$as_echo "$ac_res" >&6; }
1653fi
1654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656} # ac_fn_c_check_header_mongrel
1657
1658# ac_fn_c_try_run LINENO
1659# ----------------------
1660# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661# that executables *can* be run.
1662ac_fn_c_try_run ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  if { { ac_try="$ac_link"
1666case "(($ac_try" in
1667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668  *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672  (eval "$ac_link") 2>&5
1673  ac_status=$?
1674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676  { { case "(($ac_try" in
1677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678  *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682  (eval "$ac_try") 2>&5
1683  ac_status=$?
1684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685  test $ac_status = 0; }; }; then :
1686  ac_retval=0
1687else
1688  $as_echo "$as_me: program exited with status $ac_status" >&5
1689       $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692       ac_retval=$ac_status
1693fi
1694  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696  as_fn_set_status $ac_retval
1697
1698} # ac_fn_c_try_run
1699
1700# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701# -------------------------------------------------------
1702# Tests whether HEADER exists and can be compiled using the include files in
1703# INCLUDES, setting the cache variable VAR accordingly.
1704ac_fn_c_check_header_compile ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708$as_echo_n "checking for $2... " >&6; }
1709if eval \${$3+:} false; then :
1710  $as_echo_n "(cached) " >&6
1711else
1712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h.  */
1714$4
1715#include <$2>
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"; then :
1718  eval "$3=yes"
1719else
1720  eval "$3=no"
1721fi
1722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723fi
1724eval ac_res=\$$3
1725	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726$as_echo "$ac_res" >&6; }
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729} # ac_fn_c_check_header_compile
1730
1731# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1732# ---------------------------------------------
1733# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1734# accordingly.
1735ac_fn_c_check_decl ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  as_decl_name=`echo $2|sed 's/ *(.*//'`
1739  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1741$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1742if eval \${$3+:} false; then :
1743  $as_echo_n "(cached) " >&6
1744else
1745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h.  */
1747$4
1748int
1749main ()
1750{
1751#ifndef $as_decl_name
1752#ifdef __cplusplus
1753  (void) $as_decl_use;
1754#else
1755  (void) $as_decl_name;
1756#endif
1757#endif
1758
1759  ;
1760  return 0;
1761}
1762_ACEOF
1763if ac_fn_c_try_compile "$LINENO"; then :
1764  eval "$3=yes"
1765else
1766  eval "$3=no"
1767fi
1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769fi
1770eval ac_res=\$$3
1771	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772$as_echo "$ac_res" >&6; }
1773  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775} # ac_fn_c_check_decl
1776
1777# ac_fn_c_try_link LINENO
1778# -----------------------
1779# Try to link conftest.$ac_ext, and return whether this succeeded.
1780ac_fn_c_try_link ()
1781{
1782  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783  rm -f conftest.$ac_objext conftest$ac_exeext
1784  if { { ac_try="$ac_link"
1785case "(($ac_try" in
1786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787  *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
1791  (eval "$ac_link") 2>conftest.err
1792  ac_status=$?
1793  if test -s conftest.err; then
1794    grep -v '^ *+' conftest.err >conftest.er1
1795    cat conftest.er1 >&5
1796    mv -f conftest.er1 conftest.err
1797  fi
1798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799  test $ac_status = 0; } && {
1800	 test -z "$ac_c_werror_flag" ||
1801	 test ! -s conftest.err
1802       } && test -s conftest$ac_exeext && {
1803	 test "$cross_compiling" = yes ||
1804	 test -x conftest$ac_exeext
1805       }; then :
1806  ac_retval=0
1807else
1808  $as_echo "$as_me: failed program was:" >&5
1809sed 's/^/| /' conftest.$ac_ext >&5
1810
1811	ac_retval=1
1812fi
1813  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1814  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1815  # interfere with the next link command; also delete a directory that is
1816  # left behind by Apple's compiler.  We do this before executing the actions.
1817  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819  as_fn_set_status $ac_retval
1820
1821} # ac_fn_c_try_link
1822
1823# ac_fn_c_check_func LINENO FUNC VAR
1824# ----------------------------------
1825# Tests whether FUNC exists, setting the cache variable VAR accordingly
1826ac_fn_c_check_func ()
1827{
1828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830$as_echo_n "checking for $2... " >&6; }
1831if eval \${$3+:} false; then :
1832  $as_echo_n "(cached) " >&6
1833else
1834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h.  */
1836/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1838#define $2 innocuous_$2
1839
1840/* System header to define __stub macros and hopefully few prototypes,
1841    which can conflict with char $2 (); below.
1842    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843    <limits.h> exists even on freestanding compilers.  */
1844
1845#ifdef __STDC__
1846# include <limits.h>
1847#else
1848# include <assert.h>
1849#endif
1850
1851#undef $2
1852
1853/* Override any GCC internal prototype to avoid an error.
1854   Use char because int might match the return type of a GCC
1855   builtin and then its argument prototype would still apply.  */
1856#ifdef __cplusplus
1857extern "C"
1858#endif
1859char $2 ();
1860/* The GNU C library defines this for functions which it implements
1861    to always fail with ENOSYS.  Some functions are actually named
1862    something starting with __ and the normal name is an alias.  */
1863#if defined __stub_$2 || defined __stub___$2
1864choke me
1865#endif
1866
1867int
1868main ()
1869{
1870return $2 ();
1871  ;
1872  return 0;
1873}
1874_ACEOF
1875if ac_fn_c_try_link "$LINENO"; then :
1876  eval "$3=yes"
1877else
1878  eval "$3=no"
1879fi
1880rm -f core conftest.err conftest.$ac_objext \
1881    conftest$ac_exeext conftest.$ac_ext
1882fi
1883eval ac_res=\$$3
1884	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885$as_echo "$ac_res" >&6; }
1886  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888} # ac_fn_c_check_func
1889cat >config.log <<_ACEOF
1890This file contains any messages produced by compilers while
1891running configure, to aid debugging if configure makes a mistake.
1892
1893It was created by xkbprint $as_me 1.0.4, which was
1894generated by GNU Autoconf 2.69.  Invocation command line was
1895
1896  $ $0 $@
1897
1898_ACEOF
1899exec 5>>config.log
1900{
1901cat <<_ASUNAME
1902## --------- ##
1903## Platform. ##
1904## --------- ##
1905
1906hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1907uname -m = `(uname -m) 2>/dev/null || echo unknown`
1908uname -r = `(uname -r) 2>/dev/null || echo unknown`
1909uname -s = `(uname -s) 2>/dev/null || echo unknown`
1910uname -v = `(uname -v) 2>/dev/null || echo unknown`
1911
1912/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1913/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1914
1915/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1916/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1917/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1918/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1919/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1920/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1921/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1922
1923_ASUNAME
1924
1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926for as_dir in $PATH
1927do
1928  IFS=$as_save_IFS
1929  test -z "$as_dir" && as_dir=.
1930    $as_echo "PATH: $as_dir"
1931  done
1932IFS=$as_save_IFS
1933
1934} >&5
1935
1936cat >&5 <<_ACEOF
1937
1938
1939## ----------- ##
1940## Core tests. ##
1941## ----------- ##
1942
1943_ACEOF
1944
1945
1946# Keep a trace of the command line.
1947# Strip out --no-create and --no-recursion so they do not pile up.
1948# Strip out --silent because we don't want to record it for future runs.
1949# Also quote any args containing shell meta-characters.
1950# Make two passes to allow for proper duplicate-argument suppression.
1951ac_configure_args=
1952ac_configure_args0=
1953ac_configure_args1=
1954ac_must_keep_next=false
1955for ac_pass in 1 2
1956do
1957  for ac_arg
1958  do
1959    case $ac_arg in
1960    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1961    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1962    | -silent | --silent | --silen | --sile | --sil)
1963      continue ;;
1964    *\'*)
1965      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1966    esac
1967    case $ac_pass in
1968    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1969    2)
1970      as_fn_append ac_configure_args1 " '$ac_arg'"
1971      if test $ac_must_keep_next = true; then
1972	ac_must_keep_next=false # Got value, back to normal.
1973      else
1974	case $ac_arg in
1975	  *=* | --config-cache | -C | -disable-* | --disable-* \
1976	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1977	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1978	  | -with-* | --with-* | -without-* | --without-* | --x)
1979	    case "$ac_configure_args0 " in
1980	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1981	    esac
1982	    ;;
1983	  -* ) ac_must_keep_next=true ;;
1984	esac
1985      fi
1986      as_fn_append ac_configure_args " '$ac_arg'"
1987      ;;
1988    esac
1989  done
1990done
1991{ ac_configure_args0=; unset ac_configure_args0;}
1992{ ac_configure_args1=; unset ac_configure_args1;}
1993
1994# When interrupted or exit'd, cleanup temporary files, and complete
1995# config.log.  We remove comments because anyway the quotes in there
1996# would cause problems or look ugly.
1997# WARNING: Use '\'' to represent an apostrophe within the trap.
1998# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1999trap 'exit_status=$?
2000  # Save into config.log some information that might help in debugging.
2001  {
2002    echo
2003
2004    $as_echo "## ---------------- ##
2005## Cache variables. ##
2006## ---------------- ##"
2007    echo
2008    # The following way of writing the cache mishandles newlines in values,
2009(
2010  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011    eval ac_val=\$$ac_var
2012    case $ac_val in #(
2013    *${as_nl}*)
2014      case $ac_var in #(
2015      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017      esac
2018      case $ac_var in #(
2019      _ | IFS | as_nl) ;; #(
2020      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021      *) { eval $ac_var=; unset $ac_var;} ;;
2022      esac ;;
2023    esac
2024  done
2025  (set) 2>&1 |
2026    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027    *${as_nl}ac_space=\ *)
2028      sed -n \
2029	"s/'\''/'\''\\\\'\'''\''/g;
2030	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031      ;; #(
2032    *)
2033      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2034      ;;
2035    esac |
2036    sort
2037)
2038    echo
2039
2040    $as_echo "## ----------------- ##
2041## Output variables. ##
2042## ----------------- ##"
2043    echo
2044    for ac_var in $ac_subst_vars
2045    do
2046      eval ac_val=\$$ac_var
2047      case $ac_val in
2048      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049      esac
2050      $as_echo "$ac_var='\''$ac_val'\''"
2051    done | sort
2052    echo
2053
2054    if test -n "$ac_subst_files"; then
2055      $as_echo "## ------------------- ##
2056## File substitutions. ##
2057## ------------------- ##"
2058      echo
2059      for ac_var in $ac_subst_files
2060      do
2061	eval ac_val=\$$ac_var
2062	case $ac_val in
2063	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064	esac
2065	$as_echo "$ac_var='\''$ac_val'\''"
2066      done | sort
2067      echo
2068    fi
2069
2070    if test -s confdefs.h; then
2071      $as_echo "## ----------- ##
2072## confdefs.h. ##
2073## ----------- ##"
2074      echo
2075      cat confdefs.h
2076      echo
2077    fi
2078    test "$ac_signal" != 0 &&
2079      $as_echo "$as_me: caught signal $ac_signal"
2080    $as_echo "$as_me: exit $exit_status"
2081  } >&5
2082  rm -f core *.core core.conftest.* &&
2083    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2084    exit $exit_status
2085' 0
2086for ac_signal in 1 2 13 15; do
2087  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2088done
2089ac_signal=0
2090
2091# confdefs.h avoids OS command line length limits that DEFS can exceed.
2092rm -f -r conftest* confdefs.h
2093
2094$as_echo "/* confdefs.h */" > confdefs.h
2095
2096# Predefined preprocessor variables.
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_NAME "$PACKAGE_NAME"
2100_ACEOF
2101
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2104_ACEOF
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_VERSION "$PACKAGE_VERSION"
2108_ACEOF
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_STRING "$PACKAGE_STRING"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2116_ACEOF
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_URL "$PACKAGE_URL"
2120_ACEOF
2121
2122
2123# Let the site file select an alternate cache file if it wants to.
2124# Prefer an explicitly selected file to automatically selected ones.
2125ac_site_file1=NONE
2126ac_site_file2=NONE
2127if test -n "$CONFIG_SITE"; then
2128  # We do not want a PATH search for config.site.
2129  case $CONFIG_SITE in #((
2130    -*)  ac_site_file1=./$CONFIG_SITE;;
2131    */*) ac_site_file1=$CONFIG_SITE;;
2132    *)   ac_site_file1=./$CONFIG_SITE;;
2133  esac
2134elif test "x$prefix" != xNONE; then
2135  ac_site_file1=$prefix/share/config.site
2136  ac_site_file2=$prefix/etc/config.site
2137else
2138  ac_site_file1=$ac_default_prefix/share/config.site
2139  ac_site_file2=$ac_default_prefix/etc/config.site
2140fi
2141for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2142do
2143  test "x$ac_site_file" = xNONE && continue
2144  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2145    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2146$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2147    sed 's/^/| /' "$ac_site_file" >&5
2148    . "$ac_site_file" \
2149      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151as_fn_error $? "failed to load site script $ac_site_file
2152See \`config.log' for more details" "$LINENO" 5; }
2153  fi
2154done
2155
2156if test -r "$cache_file"; then
2157  # Some versions of bash will fail to source /dev/null (special files
2158  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2159  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2160    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2161$as_echo "$as_me: loading cache $cache_file" >&6;}
2162    case $cache_file in
2163      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2164      *)                      . "./$cache_file";;
2165    esac
2166  fi
2167else
2168  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2169$as_echo "$as_me: creating cache $cache_file" >&6;}
2170  >$cache_file
2171fi
2172
2173# Check that the precious variables saved in the cache have kept the same
2174# value.
2175ac_cache_corrupted=false
2176for ac_var in $ac_precious_vars; do
2177  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2178  eval ac_new_set=\$ac_env_${ac_var}_set
2179  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2180  eval ac_new_val=\$ac_env_${ac_var}_value
2181  case $ac_old_set,$ac_new_set in
2182    set,)
2183      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2184$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2185      ac_cache_corrupted=: ;;
2186    ,set)
2187      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2188$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2189      ac_cache_corrupted=: ;;
2190    ,);;
2191    *)
2192      if test "x$ac_old_val" != "x$ac_new_val"; then
2193	# differences in whitespace do not lead to failure.
2194	ac_old_val_w=`echo x $ac_old_val`
2195	ac_new_val_w=`echo x $ac_new_val`
2196	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2197	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2198$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2199	  ac_cache_corrupted=:
2200	else
2201	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2202$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2203	  eval $ac_var=\$ac_old_val
2204	fi
2205	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2206$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2207	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2208$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2209      fi;;
2210  esac
2211  # Pass precious variables to config.status.
2212  if test "$ac_new_set" = set; then
2213    case $ac_new_val in
2214    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2215    *) ac_arg=$ac_var=$ac_new_val ;;
2216    esac
2217    case " $ac_configure_args " in
2218      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2219      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2220    esac
2221  fi
2222done
2223if $ac_cache_corrupted; then
2224  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2227$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2228  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2229fi
2230## -------------------- ##
2231## Main body of script. ##
2232## -------------------- ##
2233
2234ac_ext=c
2235ac_cpp='$CPP $CPPFLAGS'
2236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2238ac_compiler_gnu=$ac_cv_c_compiler_gnu
2239
2240
2241
2242ac_config_headers="$ac_config_headers config.h"
2243
2244# Needed for asprintf on GNU libc
2245ac_aux_dir=
2246for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2247  if test -f "$ac_dir/install-sh"; then
2248    ac_aux_dir=$ac_dir
2249    ac_install_sh="$ac_aux_dir/install-sh -c"
2250    break
2251  elif test -f "$ac_dir/install.sh"; then
2252    ac_aux_dir=$ac_dir
2253    ac_install_sh="$ac_aux_dir/install.sh -c"
2254    break
2255  elif test -f "$ac_dir/shtool"; then
2256    ac_aux_dir=$ac_dir
2257    ac_install_sh="$ac_aux_dir/shtool install -c"
2258    break
2259  fi
2260done
2261if test -z "$ac_aux_dir"; then
2262  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2263fi
2264
2265# These three variables are undocumented and unsupported,
2266# and are intended to be withdrawn in a future Autoconf release.
2267# They can cause serious problems if a builder's source tree is in a directory
2268# whose full name contains unusual characters.
2269ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2270ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2271ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2272
2273
2274# Expand $ac_aux_dir to an absolute path.
2275am_aux_dir=`cd "$ac_aux_dir" && pwd`
2276
2277ac_ext=c
2278ac_cpp='$CPP $CPPFLAGS'
2279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282if test -n "$ac_tool_prefix"; then
2283  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2284set dummy ${ac_tool_prefix}gcc; ac_word=$2
2285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2286$as_echo_n "checking for $ac_word... " >&6; }
2287if ${ac_cv_prog_CC+:} false; then :
2288  $as_echo_n "(cached) " >&6
2289else
2290  if test -n "$CC"; then
2291  ac_cv_prog_CC="$CC" # Let the user override the test.
2292else
2293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296  IFS=$as_save_IFS
2297  test -z "$as_dir" && as_dir=.
2298    for ac_exec_ext in '' $ac_executable_extensions; do
2299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2302    break 2
2303  fi
2304done
2305  done
2306IFS=$as_save_IFS
2307
2308fi
2309fi
2310CC=$ac_cv_prog_CC
2311if test -n "$CC"; then
2312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2313$as_echo "$CC" >&6; }
2314else
2315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2316$as_echo "no" >&6; }
2317fi
2318
2319
2320fi
2321if test -z "$ac_cv_prog_CC"; then
2322  ac_ct_CC=$CC
2323  # Extract the first word of "gcc", so it can be a program name with args.
2324set dummy gcc; ac_word=$2
2325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2326$as_echo_n "checking for $ac_word... " >&6; }
2327if ${ac_cv_prog_ac_ct_CC+:} false; then :
2328  $as_echo_n "(cached) " >&6
2329else
2330  if test -n "$ac_ct_CC"; then
2331  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2332else
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336  IFS=$as_save_IFS
2337  test -z "$as_dir" && as_dir=.
2338    for ac_exec_ext in '' $ac_executable_extensions; do
2339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340    ac_cv_prog_ac_ct_CC="gcc"
2341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2342    break 2
2343  fi
2344done
2345  done
2346IFS=$as_save_IFS
2347
2348fi
2349fi
2350ac_ct_CC=$ac_cv_prog_ac_ct_CC
2351if test -n "$ac_ct_CC"; then
2352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2353$as_echo "$ac_ct_CC" >&6; }
2354else
2355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2356$as_echo "no" >&6; }
2357fi
2358
2359  if test "x$ac_ct_CC" = x; then
2360    CC=""
2361  else
2362    case $cross_compiling:$ac_tool_warned in
2363yes:)
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2366ac_tool_warned=yes ;;
2367esac
2368    CC=$ac_ct_CC
2369  fi
2370else
2371  CC="$ac_cv_prog_CC"
2372fi
2373
2374if test -z "$CC"; then
2375          if test -n "$ac_tool_prefix"; then
2376    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2377set dummy ${ac_tool_prefix}cc; ac_word=$2
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379$as_echo_n "checking for $ac_word... " >&6; }
2380if ${ac_cv_prog_CC+:} false; then :
2381  $as_echo_n "(cached) " >&6
2382else
2383  if test -n "$CC"; then
2384  ac_cv_prog_CC="$CC" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389  IFS=$as_save_IFS
2390  test -z "$as_dir" && as_dir=.
2391    for ac_exec_ext in '' $ac_executable_extensions; do
2392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393    ac_cv_prog_CC="${ac_tool_prefix}cc"
2394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2395    break 2
2396  fi
2397done
2398  done
2399IFS=$as_save_IFS
2400
2401fi
2402fi
2403CC=$ac_cv_prog_CC
2404if test -n "$CC"; then
2405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2406$as_echo "$CC" >&6; }
2407else
2408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409$as_echo "no" >&6; }
2410fi
2411
2412
2413  fi
2414fi
2415if test -z "$CC"; then
2416  # Extract the first word of "cc", so it can be a program name with args.
2417set dummy cc; ac_word=$2
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419$as_echo_n "checking for $ac_word... " >&6; }
2420if ${ac_cv_prog_CC+:} false; then :
2421  $as_echo_n "(cached) " >&6
2422else
2423  if test -n "$CC"; then
2424  ac_cv_prog_CC="$CC" # Let the user override the test.
2425else
2426  ac_prog_rejected=no
2427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428for as_dir in $PATH
2429do
2430  IFS=$as_save_IFS
2431  test -z "$as_dir" && as_dir=.
2432    for ac_exec_ext in '' $ac_executable_extensions; do
2433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2434    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2435       ac_prog_rejected=yes
2436       continue
2437     fi
2438    ac_cv_prog_CC="cc"
2439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2440    break 2
2441  fi
2442done
2443  done
2444IFS=$as_save_IFS
2445
2446if test $ac_prog_rejected = yes; then
2447  # We found a bogon in the path, so make sure we never use it.
2448  set dummy $ac_cv_prog_CC
2449  shift
2450  if test $# != 0; then
2451    # We chose a different compiler from the bogus one.
2452    # However, it has the same basename, so the bogon will be chosen
2453    # first if we set CC to just the basename; use the full file name.
2454    shift
2455    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2456  fi
2457fi
2458fi
2459fi
2460CC=$ac_cv_prog_CC
2461if test -n "$CC"; then
2462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2463$as_echo "$CC" >&6; }
2464else
2465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466$as_echo "no" >&6; }
2467fi
2468
2469
2470fi
2471if test -z "$CC"; then
2472  if test -n "$ac_tool_prefix"; then
2473  for ac_prog in cl.exe
2474  do
2475    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2476set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478$as_echo_n "checking for $ac_word... " >&6; }
2479if ${ac_cv_prog_CC+:} false; then :
2480  $as_echo_n "(cached) " >&6
2481else
2482  if test -n "$CC"; then
2483  ac_cv_prog_CC="$CC" # Let the user override the test.
2484else
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH
2487do
2488  IFS=$as_save_IFS
2489  test -z "$as_dir" && as_dir=.
2490    for ac_exec_ext in '' $ac_executable_extensions; do
2491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494    break 2
2495  fi
2496done
2497  done
2498IFS=$as_save_IFS
2499
2500fi
2501fi
2502CC=$ac_cv_prog_CC
2503if test -n "$CC"; then
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2505$as_echo "$CC" >&6; }
2506else
2507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508$as_echo "no" >&6; }
2509fi
2510
2511
2512    test -n "$CC" && break
2513  done
2514fi
2515if test -z "$CC"; then
2516  ac_ct_CC=$CC
2517  for ac_prog in cl.exe
2518do
2519  # Extract the first word of "$ac_prog", so it can be a program name with args.
2520set dummy $ac_prog; ac_word=$2
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2522$as_echo_n "checking for $ac_word... " >&6; }
2523if ${ac_cv_prog_ac_ct_CC+:} false; then :
2524  $as_echo_n "(cached) " >&6
2525else
2526  if test -n "$ac_ct_CC"; then
2527  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2528else
2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532  IFS=$as_save_IFS
2533  test -z "$as_dir" && as_dir=.
2534    for ac_exec_ext in '' $ac_executable_extensions; do
2535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536    ac_cv_prog_ac_ct_CC="$ac_prog"
2537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538    break 2
2539  fi
2540done
2541  done
2542IFS=$as_save_IFS
2543
2544fi
2545fi
2546ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547if test -n "$ac_ct_CC"; then
2548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2549$as_echo "$ac_ct_CC" >&6; }
2550else
2551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552$as_echo "no" >&6; }
2553fi
2554
2555
2556  test -n "$ac_ct_CC" && break
2557done
2558
2559  if test "x$ac_ct_CC" = x; then
2560    CC=""
2561  else
2562    case $cross_compiling:$ac_tool_warned in
2563yes:)
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2566ac_tool_warned=yes ;;
2567esac
2568    CC=$ac_ct_CC
2569  fi
2570fi
2571
2572fi
2573
2574
2575test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577as_fn_error $? "no acceptable C compiler found in \$PATH
2578See \`config.log' for more details" "$LINENO" 5; }
2579
2580# Provide some information about the compiler.
2581$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2582set X $ac_compile
2583ac_compiler=$2
2584for ac_option in --version -v -V -qversion; do
2585  { { ac_try="$ac_compiler $ac_option >&5"
2586case "(($ac_try" in
2587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588  *) ac_try_echo=$ac_try;;
2589esac
2590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2591$as_echo "$ac_try_echo"; } >&5
2592  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2593  ac_status=$?
2594  if test -s conftest.err; then
2595    sed '10a\
2596... rest of stderr output deleted ...
2597         10q' conftest.err >conftest.er1
2598    cat conftest.er1 >&5
2599  fi
2600  rm -f conftest.er1 conftest.err
2601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2602  test $ac_status = 0; }
2603done
2604
2605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2606/* end confdefs.h.  */
2607
2608int
2609main ()
2610{
2611
2612  ;
2613  return 0;
2614}
2615_ACEOF
2616ac_clean_files_save=$ac_clean_files
2617ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2618# Try to create an executable without -o first, disregard a.out.
2619# It will help us diagnose broken compilers, and finding out an intuition
2620# of exeext.
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2622$as_echo_n "checking whether the C compiler works... " >&6; }
2623ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2624
2625# The possible output files:
2626ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2627
2628ac_rmfiles=
2629for ac_file in $ac_files
2630do
2631  case $ac_file in
2632    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2633    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2634  esac
2635done
2636rm -f $ac_rmfiles
2637
2638if { { ac_try="$ac_link_default"
2639case "(($ac_try" in
2640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641  *) ac_try_echo=$ac_try;;
2642esac
2643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644$as_echo "$ac_try_echo"; } >&5
2645  (eval "$ac_link_default") 2>&5
2646  ac_status=$?
2647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648  test $ac_status = 0; }; then :
2649  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2650# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2651# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2652# so that the user can short-circuit this test for compilers unknown to
2653# Autoconf.
2654for ac_file in $ac_files ''
2655do
2656  test -f "$ac_file" || continue
2657  case $ac_file in
2658    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2659	;;
2660    [ab].out )
2661	# We found the default executable, but exeext='' is most
2662	# certainly right.
2663	break;;
2664    *.* )
2665	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2666	then :; else
2667	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2668	fi
2669	# We set ac_cv_exeext here because the later test for it is not
2670	# safe: cross compilers may not add the suffix if given an `-o'
2671	# argument, so we may need to know it at that point already.
2672	# Even if this section looks crufty: it has the advantage of
2673	# actually working.
2674	break;;
2675    * )
2676	break;;
2677  esac
2678done
2679test "$ac_cv_exeext" = no && ac_cv_exeext=
2680
2681else
2682  ac_file=''
2683fi
2684if test -z "$ac_file"; then :
2685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
2687$as_echo "$as_me: failed program was:" >&5
2688sed 's/^/| /' conftest.$ac_ext >&5
2689
2690{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692as_fn_error 77 "C compiler cannot create executables
2693See \`config.log' for more details" "$LINENO" 5; }
2694else
2695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2696$as_echo "yes" >&6; }
2697fi
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2699$as_echo_n "checking for C compiler default output file name... " >&6; }
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2701$as_echo "$ac_file" >&6; }
2702ac_exeext=$ac_cv_exeext
2703
2704rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2705ac_clean_files=$ac_clean_files_save
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2707$as_echo_n "checking for suffix of executables... " >&6; }
2708if { { ac_try="$ac_link"
2709case "(($ac_try" in
2710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711  *) ac_try_echo=$ac_try;;
2712esac
2713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2714$as_echo "$ac_try_echo"; } >&5
2715  (eval "$ac_link") 2>&5
2716  ac_status=$?
2717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718  test $ac_status = 0; }; then :
2719  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2720# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2721# work properly (i.e., refer to `conftest.exe'), while it won't with
2722# `rm'.
2723for ac_file in conftest.exe conftest conftest.*; do
2724  test -f "$ac_file" || continue
2725  case $ac_file in
2726    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2727    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2728	  break;;
2729    * ) break;;
2730  esac
2731done
2732else
2733  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2736See \`config.log' for more details" "$LINENO" 5; }
2737fi
2738rm -f conftest conftest$ac_cv_exeext
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2740$as_echo "$ac_cv_exeext" >&6; }
2741
2742rm -f conftest.$ac_ext
2743EXEEXT=$ac_cv_exeext
2744ac_exeext=$EXEEXT
2745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746/* end confdefs.h.  */
2747#include <stdio.h>
2748int
2749main ()
2750{
2751FILE *f = fopen ("conftest.out", "w");
2752 return ferror (f) || fclose (f) != 0;
2753
2754  ;
2755  return 0;
2756}
2757_ACEOF
2758ac_clean_files="$ac_clean_files conftest.out"
2759# Check that the compiler produces executables we can run.  If not, either
2760# the compiler is broken, or we cross compile.
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2762$as_echo_n "checking whether we are cross compiling... " >&6; }
2763if test "$cross_compiling" != yes; then
2764  { { ac_try="$ac_link"
2765case "(($ac_try" in
2766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767  *) ac_try_echo=$ac_try;;
2768esac
2769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2770$as_echo "$ac_try_echo"; } >&5
2771  (eval "$ac_link") 2>&5
2772  ac_status=$?
2773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2774  test $ac_status = 0; }
2775  if { ac_try='./conftest$ac_cv_exeext'
2776  { { case "(($ac_try" in
2777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778  *) ac_try_echo=$ac_try;;
2779esac
2780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781$as_echo "$ac_try_echo"; } >&5
2782  (eval "$ac_try") 2>&5
2783  ac_status=$?
2784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785  test $ac_status = 0; }; }; then
2786    cross_compiling=no
2787  else
2788    if test "$cross_compiling" = maybe; then
2789	cross_compiling=yes
2790    else
2791	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793as_fn_error $? "cannot run C compiled programs.
2794If you meant to cross compile, use \`--host'.
2795See \`config.log' for more details" "$LINENO" 5; }
2796    fi
2797  fi
2798fi
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2800$as_echo "$cross_compiling" >&6; }
2801
2802rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2803ac_clean_files=$ac_clean_files_save
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2805$as_echo_n "checking for suffix of object files... " >&6; }
2806if ${ac_cv_objext+:} false; then :
2807  $as_echo_n "(cached) " >&6
2808else
2809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810/* end confdefs.h.  */
2811
2812int
2813main ()
2814{
2815
2816  ;
2817  return 0;
2818}
2819_ACEOF
2820rm -f conftest.o conftest.obj
2821if { { ac_try="$ac_compile"
2822case "(($ac_try" in
2823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824  *) ac_try_echo=$ac_try;;
2825esac
2826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2827$as_echo "$ac_try_echo"; } >&5
2828  (eval "$ac_compile") 2>&5
2829  ac_status=$?
2830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2831  test $ac_status = 0; }; then :
2832  for ac_file in conftest.o conftest.obj conftest.*; do
2833  test -f "$ac_file" || continue;
2834  case $ac_file in
2835    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2836    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2837       break;;
2838  esac
2839done
2840else
2841  $as_echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2846as_fn_error $? "cannot compute suffix of object files: cannot compile
2847See \`config.log' for more details" "$LINENO" 5; }
2848fi
2849rm -f conftest.$ac_cv_objext conftest.$ac_ext
2850fi
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2852$as_echo "$ac_cv_objext" >&6; }
2853OBJEXT=$ac_cv_objext
2854ac_objext=$OBJEXT
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2856$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2857if ${ac_cv_c_compiler_gnu+:} false; then :
2858  $as_echo_n "(cached) " >&6
2859else
2860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861/* end confdefs.h.  */
2862
2863int
2864main ()
2865{
2866#ifndef __GNUC__
2867       choke me
2868#endif
2869
2870  ;
2871  return 0;
2872}
2873_ACEOF
2874if ac_fn_c_try_compile "$LINENO"; then :
2875  ac_compiler_gnu=yes
2876else
2877  ac_compiler_gnu=no
2878fi
2879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880ac_cv_c_compiler_gnu=$ac_compiler_gnu
2881
2882fi
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2884$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2885if test $ac_compiler_gnu = yes; then
2886  GCC=yes
2887else
2888  GCC=
2889fi
2890ac_test_CFLAGS=${CFLAGS+set}
2891ac_save_CFLAGS=$CFLAGS
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2893$as_echo_n "checking whether $CC accepts -g... " >&6; }
2894if ${ac_cv_prog_cc_g+:} false; then :
2895  $as_echo_n "(cached) " >&6
2896else
2897  ac_save_c_werror_flag=$ac_c_werror_flag
2898   ac_c_werror_flag=yes
2899   ac_cv_prog_cc_g=no
2900   CFLAGS="-g"
2901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902/* end confdefs.h.  */
2903
2904int
2905main ()
2906{
2907
2908  ;
2909  return 0;
2910}
2911_ACEOF
2912if ac_fn_c_try_compile "$LINENO"; then :
2913  ac_cv_prog_cc_g=yes
2914else
2915  CFLAGS=""
2916      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917/* end confdefs.h.  */
2918
2919int
2920main ()
2921{
2922
2923  ;
2924  return 0;
2925}
2926_ACEOF
2927if ac_fn_c_try_compile "$LINENO"; then :
2928
2929else
2930  ac_c_werror_flag=$ac_save_c_werror_flag
2931	 CFLAGS="-g"
2932	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933/* end confdefs.h.  */
2934
2935int
2936main ()
2937{
2938
2939  ;
2940  return 0;
2941}
2942_ACEOF
2943if ac_fn_c_try_compile "$LINENO"; then :
2944  ac_cv_prog_cc_g=yes
2945fi
2946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947fi
2948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2949fi
2950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951   ac_c_werror_flag=$ac_save_c_werror_flag
2952fi
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2954$as_echo "$ac_cv_prog_cc_g" >&6; }
2955if test "$ac_test_CFLAGS" = set; then
2956  CFLAGS=$ac_save_CFLAGS
2957elif test $ac_cv_prog_cc_g = yes; then
2958  if test "$GCC" = yes; then
2959    CFLAGS="-g -O2"
2960  else
2961    CFLAGS="-g"
2962  fi
2963else
2964  if test "$GCC" = yes; then
2965    CFLAGS="-O2"
2966  else
2967    CFLAGS=
2968  fi
2969fi
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2971$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2972if ${ac_cv_prog_cc_c89+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  ac_cv_prog_cc_c89=no
2976ac_save_CC=$CC
2977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978/* end confdefs.h.  */
2979#include <stdarg.h>
2980#include <stdio.h>
2981struct stat;
2982/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2983struct buf { int x; };
2984FILE * (*rcsopen) (struct buf *, struct stat *, int);
2985static char *e (p, i)
2986     char **p;
2987     int i;
2988{
2989  return p[i];
2990}
2991static char *f (char * (*g) (char **, int), char **p, ...)
2992{
2993  char *s;
2994  va_list v;
2995  va_start (v,p);
2996  s = g (p, va_arg (v,int));
2997  va_end (v);
2998  return s;
2999}
3000
3001/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3002   function prototypes and stuff, but not '\xHH' hex character constants.
3003   These don't provoke an error unfortunately, instead are silently treated
3004   as 'x'.  The following induces an error, until -std is added to get
3005   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3006   array size at least.  It's necessary to write '\x00'==0 to get something
3007   that's true only with -std.  */
3008int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3009
3010/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3011   inside strings and character constants.  */
3012#define FOO(x) 'x'
3013int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3014
3015int test (int i, double x);
3016struct s1 {int (*f) (int a);};
3017struct s2 {int (*f) (double a);};
3018int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3019int argc;
3020char **argv;
3021int
3022main ()
3023{
3024return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3025  ;
3026  return 0;
3027}
3028_ACEOF
3029for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3030	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3031do
3032  CC="$ac_save_CC $ac_arg"
3033  if ac_fn_c_try_compile "$LINENO"; then :
3034  ac_cv_prog_cc_c89=$ac_arg
3035fi
3036rm -f core conftest.err conftest.$ac_objext
3037  test "x$ac_cv_prog_cc_c89" != "xno" && break
3038done
3039rm -f conftest.$ac_ext
3040CC=$ac_save_CC
3041
3042fi
3043# AC_CACHE_VAL
3044case "x$ac_cv_prog_cc_c89" in
3045  x)
3046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3047$as_echo "none needed" >&6; } ;;
3048  xno)
3049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3050$as_echo "unsupported" >&6; } ;;
3051  *)
3052    CC="$CC $ac_cv_prog_cc_c89"
3053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3054$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3055esac
3056if test "x$ac_cv_prog_cc_c89" != xno; then :
3057
3058fi
3059
3060ac_ext=c
3061ac_cpp='$CPP $CPPFLAGS'
3062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065
3066ac_ext=c
3067ac_cpp='$CPP $CPPFLAGS'
3068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3070ac_compiler_gnu=$ac_cv_c_compiler_gnu
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3072$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3073if ${am_cv_prog_cc_c_o+:} false; then :
3074  $as_echo_n "(cached) " >&6
3075else
3076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077/* end confdefs.h.  */
3078
3079int
3080main ()
3081{
3082
3083  ;
3084  return 0;
3085}
3086_ACEOF
3087  # Make sure it works both with $CC and with simple cc.
3088  # Following AC_PROG_CC_C_O, we do the test twice because some
3089  # compilers refuse to overwrite an existing .o file with -o,
3090  # though they will create one.
3091  am_cv_prog_cc_c_o=yes
3092  for am_i in 1 2; do
3093    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3094   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } \
3098         && test -f conftest2.$ac_objext; then
3099      : OK
3100    else
3101      am_cv_prog_cc_c_o=no
3102      break
3103    fi
3104  done
3105  rm -f core conftest*
3106  unset am_i
3107fi
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3109$as_echo "$am_cv_prog_cc_c_o" >&6; }
3110if test "$am_cv_prog_cc_c_o" != yes; then
3111   # Losing compiler, so override with the script.
3112   # FIXME: It is wrong to rewrite CC.
3113   # But if we don't then we get into trouble of one sort or another.
3114   # A longer-term fix would be to have automake use am__CC in this case,
3115   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3116   CC="$am_aux_dir/compile $CC"
3117fi
3118ac_ext=c
3119ac_cpp='$CPP $CPPFLAGS'
3120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123
3124
3125
3126ac_ext=c
3127ac_cpp='$CPP $CPPFLAGS'
3128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3132$as_echo_n "checking how to run the C preprocessor... " >&6; }
3133# On Suns, sometimes $CPP names a directory.
3134if test -n "$CPP" && test -d "$CPP"; then
3135  CPP=
3136fi
3137if test -z "$CPP"; then
3138  if ${ac_cv_prog_CPP+:} false; then :
3139  $as_echo_n "(cached) " >&6
3140else
3141      # Double quotes because CPP needs to be expanded
3142    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3143    do
3144      ac_preproc_ok=false
3145for ac_c_preproc_warn_flag in '' yes
3146do
3147  # Use a header file that comes with gcc, so configuring glibc
3148  # with a fresh cross-compiler works.
3149  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3150  # <limits.h> exists even on freestanding compilers.
3151  # On the NeXT, cc -E runs the code through the compiler's parser,
3152  # not just through cpp. "Syntax error" is here to catch this case.
3153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154/* end confdefs.h.  */
3155#ifdef __STDC__
3156# include <limits.h>
3157#else
3158# include <assert.h>
3159#endif
3160		     Syntax error
3161_ACEOF
3162if ac_fn_c_try_cpp "$LINENO"; then :
3163
3164else
3165  # Broken: fails on valid input.
3166continue
3167fi
3168rm -f conftest.err conftest.i conftest.$ac_ext
3169
3170  # OK, works on sane cases.  Now check whether nonexistent headers
3171  # can be detected and how.
3172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173/* end confdefs.h.  */
3174#include <ac_nonexistent.h>
3175_ACEOF
3176if ac_fn_c_try_cpp "$LINENO"; then :
3177  # Broken: success on invalid input.
3178continue
3179else
3180  # Passes both tests.
3181ac_preproc_ok=:
3182break
3183fi
3184rm -f conftest.err conftest.i conftest.$ac_ext
3185
3186done
3187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3188rm -f conftest.i conftest.err conftest.$ac_ext
3189if $ac_preproc_ok; then :
3190  break
3191fi
3192
3193    done
3194    ac_cv_prog_CPP=$CPP
3195
3196fi
3197  CPP=$ac_cv_prog_CPP
3198else
3199  ac_cv_prog_CPP=$CPP
3200fi
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3202$as_echo "$CPP" >&6; }
3203ac_preproc_ok=false
3204for ac_c_preproc_warn_flag in '' yes
3205do
3206  # Use a header file that comes with gcc, so configuring glibc
3207  # with a fresh cross-compiler works.
3208  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3209  # <limits.h> exists even on freestanding compilers.
3210  # On the NeXT, cc -E runs the code through the compiler's parser,
3211  # not just through cpp. "Syntax error" is here to catch this case.
3212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h.  */
3214#ifdef __STDC__
3215# include <limits.h>
3216#else
3217# include <assert.h>
3218#endif
3219		     Syntax error
3220_ACEOF
3221if ac_fn_c_try_cpp "$LINENO"; then :
3222
3223else
3224  # Broken: fails on valid input.
3225continue
3226fi
3227rm -f conftest.err conftest.i conftest.$ac_ext
3228
3229  # OK, works on sane cases.  Now check whether nonexistent headers
3230  # can be detected and how.
3231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232/* end confdefs.h.  */
3233#include <ac_nonexistent.h>
3234_ACEOF
3235if ac_fn_c_try_cpp "$LINENO"; then :
3236  # Broken: success on invalid input.
3237continue
3238else
3239  # Passes both tests.
3240ac_preproc_ok=:
3241break
3242fi
3243rm -f conftest.err conftest.i conftest.$ac_ext
3244
3245done
3246# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3247rm -f conftest.i conftest.err conftest.$ac_ext
3248if $ac_preproc_ok; then :
3249
3250else
3251  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3254See \`config.log' for more details" "$LINENO" 5; }
3255fi
3256
3257ac_ext=c
3258ac_cpp='$CPP $CPPFLAGS'
3259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262
3263
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3265$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3266if ${ac_cv_path_GREP+:} false; then :
3267  $as_echo_n "(cached) " >&6
3268else
3269  if test -z "$GREP"; then
3270  ac_path_GREP_found=false
3271  # Loop through the user's path and test for each of PROGNAME-LIST
3272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3274do
3275  IFS=$as_save_IFS
3276  test -z "$as_dir" && as_dir=.
3277    for ac_prog in grep ggrep; do
3278    for ac_exec_ext in '' $ac_executable_extensions; do
3279      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3280      as_fn_executable_p "$ac_path_GREP" || continue
3281# Check for GNU ac_path_GREP and select it if it is found.
3282  # Check for GNU $ac_path_GREP
3283case `"$ac_path_GREP" --version 2>&1` in
3284*GNU*)
3285  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3286*)
3287  ac_count=0
3288  $as_echo_n 0123456789 >"conftest.in"
3289  while :
3290  do
3291    cat "conftest.in" "conftest.in" >"conftest.tmp"
3292    mv "conftest.tmp" "conftest.in"
3293    cp "conftest.in" "conftest.nl"
3294    $as_echo 'GREP' >> "conftest.nl"
3295    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3296    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3297    as_fn_arith $ac_count + 1 && ac_count=$as_val
3298    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3299      # Best one so far, save it but keep looking for a better one
3300      ac_cv_path_GREP="$ac_path_GREP"
3301      ac_path_GREP_max=$ac_count
3302    fi
3303    # 10*(2^10) chars as input seems more than enough
3304    test $ac_count -gt 10 && break
3305  done
3306  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3307esac
3308
3309      $ac_path_GREP_found && break 3
3310    done
3311  done
3312  done
3313IFS=$as_save_IFS
3314  if test -z "$ac_cv_path_GREP"; then
3315    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3316  fi
3317else
3318  ac_cv_path_GREP=$GREP
3319fi
3320
3321fi
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3323$as_echo "$ac_cv_path_GREP" >&6; }
3324 GREP="$ac_cv_path_GREP"
3325
3326
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3328$as_echo_n "checking for egrep... " >&6; }
3329if ${ac_cv_path_EGREP+:} false; then :
3330  $as_echo_n "(cached) " >&6
3331else
3332  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3333   then ac_cv_path_EGREP="$GREP -E"
3334   else
3335     if test -z "$EGREP"; then
3336  ac_path_EGREP_found=false
3337  # Loop through the user's path and test for each of PROGNAME-LIST
3338  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3340do
3341  IFS=$as_save_IFS
3342  test -z "$as_dir" && as_dir=.
3343    for ac_prog in egrep; do
3344    for ac_exec_ext in '' $ac_executable_extensions; do
3345      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3346      as_fn_executable_p "$ac_path_EGREP" || continue
3347# Check for GNU ac_path_EGREP and select it if it is found.
3348  # Check for GNU $ac_path_EGREP
3349case `"$ac_path_EGREP" --version 2>&1` in
3350*GNU*)
3351  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3352*)
3353  ac_count=0
3354  $as_echo_n 0123456789 >"conftest.in"
3355  while :
3356  do
3357    cat "conftest.in" "conftest.in" >"conftest.tmp"
3358    mv "conftest.tmp" "conftest.in"
3359    cp "conftest.in" "conftest.nl"
3360    $as_echo 'EGREP' >> "conftest.nl"
3361    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3362    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3363    as_fn_arith $ac_count + 1 && ac_count=$as_val
3364    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3365      # Best one so far, save it but keep looking for a better one
3366      ac_cv_path_EGREP="$ac_path_EGREP"
3367      ac_path_EGREP_max=$ac_count
3368    fi
3369    # 10*(2^10) chars as input seems more than enough
3370    test $ac_count -gt 10 && break
3371  done
3372  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3373esac
3374
3375      $ac_path_EGREP_found && break 3
3376    done
3377  done
3378  done
3379IFS=$as_save_IFS
3380  if test -z "$ac_cv_path_EGREP"; then
3381    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3382  fi
3383else
3384  ac_cv_path_EGREP=$EGREP
3385fi
3386
3387   fi
3388fi
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3390$as_echo "$ac_cv_path_EGREP" >&6; }
3391 EGREP="$ac_cv_path_EGREP"
3392
3393
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3395$as_echo_n "checking for ANSI C header files... " >&6; }
3396if ${ac_cv_header_stdc+:} false; then :
3397  $as_echo_n "(cached) " >&6
3398else
3399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400/* end confdefs.h.  */
3401#include <stdlib.h>
3402#include <stdarg.h>
3403#include <string.h>
3404#include <float.h>
3405
3406int
3407main ()
3408{
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414if ac_fn_c_try_compile "$LINENO"; then :
3415  ac_cv_header_stdc=yes
3416else
3417  ac_cv_header_stdc=no
3418fi
3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420
3421if test $ac_cv_header_stdc = yes; then
3422  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h.  */
3425#include <string.h>
3426
3427_ACEOF
3428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3429  $EGREP "memchr" >/dev/null 2>&1; then :
3430
3431else
3432  ac_cv_header_stdc=no
3433fi
3434rm -f conftest*
3435
3436fi
3437
3438if test $ac_cv_header_stdc = yes; then
3439  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441/* end confdefs.h.  */
3442#include <stdlib.h>
3443
3444_ACEOF
3445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446  $EGREP "free" >/dev/null 2>&1; then :
3447
3448else
3449  ac_cv_header_stdc=no
3450fi
3451rm -f conftest*
3452
3453fi
3454
3455if test $ac_cv_header_stdc = yes; then
3456  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3457  if test "$cross_compiling" = yes; then :
3458  :
3459else
3460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h.  */
3462#include <ctype.h>
3463#include <stdlib.h>
3464#if ((' ' & 0x0FF) == 0x020)
3465# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3466# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3467#else
3468# define ISLOWER(c) \
3469		   (('a' <= (c) && (c) <= 'i') \
3470		     || ('j' <= (c) && (c) <= 'r') \
3471		     || ('s' <= (c) && (c) <= 'z'))
3472# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3473#endif
3474
3475#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3476int
3477main ()
3478{
3479  int i;
3480  for (i = 0; i < 256; i++)
3481    if (XOR (islower (i), ISLOWER (i))
3482	|| toupper (i) != TOUPPER (i))
3483      return 2;
3484  return 0;
3485}
3486_ACEOF
3487if ac_fn_c_try_run "$LINENO"; then :
3488
3489else
3490  ac_cv_header_stdc=no
3491fi
3492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3493  conftest.$ac_objext conftest.beam conftest.$ac_ext
3494fi
3495
3496fi
3497fi
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3499$as_echo "$ac_cv_header_stdc" >&6; }
3500if test $ac_cv_header_stdc = yes; then
3501
3502$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3503
3504fi
3505
3506# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3507for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3508		  inttypes.h stdint.h unistd.h
3509do :
3510  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3511ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3512"
3513if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3514  cat >>confdefs.h <<_ACEOF
3515#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3516_ACEOF
3517
3518fi
3519
3520done
3521
3522
3523
3524  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3525if test "x$ac_cv_header_minix_config_h" = xyes; then :
3526  MINIX=yes
3527else
3528  MINIX=
3529fi
3530
3531
3532  if test "$MINIX" = yes; then
3533
3534$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3535
3536
3537$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3538
3539
3540$as_echo "#define _MINIX 1" >>confdefs.h
3541
3542  fi
3543
3544
3545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3546$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3547if ${ac_cv_safe_to_define___extensions__+:} false; then :
3548  $as_echo_n "(cached) " >&6
3549else
3550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551/* end confdefs.h.  */
3552
3553#         define __EXTENSIONS__ 1
3554          $ac_includes_default
3555int
3556main ()
3557{
3558
3559  ;
3560  return 0;
3561}
3562_ACEOF
3563if ac_fn_c_try_compile "$LINENO"; then :
3564  ac_cv_safe_to_define___extensions__=yes
3565else
3566  ac_cv_safe_to_define___extensions__=no
3567fi
3568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3571$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3572  test $ac_cv_safe_to_define___extensions__ = yes &&
3573    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3574
3575  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3576
3577  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3578
3579  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3580
3581  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3582
3583
3584
3585# Initialize Automake
3586am__api_version='1.15'
3587
3588# Find a good install program.  We prefer a C program (faster),
3589# so one script is as good as another.  But avoid the broken or
3590# incompatible versions:
3591# SysV /etc/install, /usr/sbin/install
3592# SunOS /usr/etc/install
3593# IRIX /sbin/install
3594# AIX /bin/install
3595# AmigaOS /C/install, which installs bootblocks on floppy discs
3596# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3597# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3598# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3599# OS/2's system install, which has a completely different semantic
3600# ./install, which can be erroneously created by make from ./install.sh.
3601# Reject install programs that cannot install multiple files.
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3603$as_echo_n "checking for a BSD-compatible install... " >&6; }
3604if test -z "$INSTALL"; then
3605if ${ac_cv_path_install+:} false; then :
3606  $as_echo_n "(cached) " >&6
3607else
3608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609for as_dir in $PATH
3610do
3611  IFS=$as_save_IFS
3612  test -z "$as_dir" && as_dir=.
3613    # Account for people who put trailing slashes in PATH elements.
3614case $as_dir/ in #((
3615  ./ | .// | /[cC]/* | \
3616  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3617  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3618  /usr/ucb/* ) ;;
3619  *)
3620    # OSF1 and SCO ODT 3.0 have their own names for install.
3621    # Don't use installbsd from OSF since it installs stuff as root
3622    # by default.
3623    for ac_prog in ginstall scoinst install; do
3624      for ac_exec_ext in '' $ac_executable_extensions; do
3625	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3626	  if test $ac_prog = install &&
3627	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3628	    # AIX install.  It has an incompatible calling convention.
3629	    :
3630	  elif test $ac_prog = install &&
3631	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3632	    # program-specific install script used by HP pwplus--don't use.
3633	    :
3634	  else
3635	    rm -rf conftest.one conftest.two conftest.dir
3636	    echo one > conftest.one
3637	    echo two > conftest.two
3638	    mkdir conftest.dir
3639	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3640	      test -s conftest.one && test -s conftest.two &&
3641	      test -s conftest.dir/conftest.one &&
3642	      test -s conftest.dir/conftest.two
3643	    then
3644	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3645	      break 3
3646	    fi
3647	  fi
3648	fi
3649      done
3650    done
3651    ;;
3652esac
3653
3654  done
3655IFS=$as_save_IFS
3656
3657rm -rf conftest.one conftest.two conftest.dir
3658
3659fi
3660  if test "${ac_cv_path_install+set}" = set; then
3661    INSTALL=$ac_cv_path_install
3662  else
3663    # As a last resort, use the slow shell script.  Don't cache a
3664    # value for INSTALL within a source directory, because that will
3665    # break other packages using the cache if that directory is
3666    # removed, or if the value is a relative name.
3667    INSTALL=$ac_install_sh
3668  fi
3669fi
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3671$as_echo "$INSTALL" >&6; }
3672
3673# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3674# It thinks the first close brace ends the variable substitution.
3675test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3676
3677test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3678
3679test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3680
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3682$as_echo_n "checking whether build environment is sane... " >&6; }
3683# Reject unsafe characters in $srcdir or the absolute working directory
3684# name.  Accept space and tab only in the latter.
3685am_lf='
3686'
3687case `pwd` in
3688  *[\\\"\#\$\&\'\`$am_lf]*)
3689    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3690esac
3691case $srcdir in
3692  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3693    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3694esac
3695
3696# Do 'set' in a subshell so we don't clobber the current shell's
3697# arguments.  Must try -L first in case configure is actually a
3698# symlink; some systems play weird games with the mod time of symlinks
3699# (eg FreeBSD returns the mod time of the symlink's containing
3700# directory).
3701if (
3702   am_has_slept=no
3703   for am_try in 1 2; do
3704     echo "timestamp, slept: $am_has_slept" > conftest.file
3705     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3706     if test "$*" = "X"; then
3707	# -L didn't work.
3708	set X `ls -t "$srcdir/configure" conftest.file`
3709     fi
3710     if test "$*" != "X $srcdir/configure conftest.file" \
3711	&& test "$*" != "X conftest.file $srcdir/configure"; then
3712
3713	# If neither matched, then we have a broken ls.  This can happen
3714	# if, for instance, CONFIG_SHELL is bash and it inherits a
3715	# broken ls alias from the environment.  This has actually
3716	# happened.  Such a system could not be considered "sane".
3717	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3718  alias in your environment" "$LINENO" 5
3719     fi
3720     if test "$2" = conftest.file || test $am_try -eq 2; then
3721       break
3722     fi
3723     # Just in case.
3724     sleep 1
3725     am_has_slept=yes
3726   done
3727   test "$2" = conftest.file
3728   )
3729then
3730   # Ok.
3731   :
3732else
3733   as_fn_error $? "newly created file is older than distributed files!
3734Check your system clock" "$LINENO" 5
3735fi
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3737$as_echo "yes" >&6; }
3738# If we didn't sleep, we still need to ensure time stamps of config.status and
3739# generated files are strictly newer.
3740am_sleep_pid=
3741if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3742  ( sleep 1 ) &
3743  am_sleep_pid=$!
3744fi
3745
3746rm -f conftest.file
3747
3748test "$program_prefix" != NONE &&
3749  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3750# Use a double $ so make ignores it.
3751test "$program_suffix" != NONE &&
3752  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3753# Double any \ or $.
3754# By default was `s,x,x', remove it if useless.
3755ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3756program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3757
3758if test x"${MISSING+set}" != xset; then
3759  case $am_aux_dir in
3760  *\ * | *\	*)
3761    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3762  *)
3763    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3764  esac
3765fi
3766# Use eval to expand $SHELL
3767if eval "$MISSING --is-lightweight"; then
3768  am_missing_run="$MISSING "
3769else
3770  am_missing_run=
3771  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3772$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3773fi
3774
3775if test x"${install_sh+set}" != xset; then
3776  case $am_aux_dir in
3777  *\ * | *\	*)
3778    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3779  *)
3780    install_sh="\${SHELL} $am_aux_dir/install-sh"
3781  esac
3782fi
3783
3784# Installed binaries are usually stripped using 'strip' when the user
3785# run "make install-strip".  However 'strip' might not be the right
3786# tool to use in cross-compilation environments, therefore Automake
3787# will honor the 'STRIP' environment variable to overrule this program.
3788if test "$cross_compiling" != no; then
3789  if test -n "$ac_tool_prefix"; then
3790  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3791set dummy ${ac_tool_prefix}strip; ac_word=$2
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793$as_echo_n "checking for $ac_word... " >&6; }
3794if ${ac_cv_prog_STRIP+:} false; then :
3795  $as_echo_n "(cached) " >&6
3796else
3797  if test -n "$STRIP"; then
3798  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3799else
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803  IFS=$as_save_IFS
3804  test -z "$as_dir" && as_dir=.
3805    for ac_exec_ext in '' $ac_executable_extensions; do
3806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809    break 2
3810  fi
3811done
3812  done
3813IFS=$as_save_IFS
3814
3815fi
3816fi
3817STRIP=$ac_cv_prog_STRIP
3818if test -n "$STRIP"; then
3819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3820$as_echo "$STRIP" >&6; }
3821else
3822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823$as_echo "no" >&6; }
3824fi
3825
3826
3827fi
3828if test -z "$ac_cv_prog_STRIP"; then
3829  ac_ct_STRIP=$STRIP
3830  # Extract the first word of "strip", so it can be a program name with args.
3831set dummy strip; ac_word=$2
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833$as_echo_n "checking for $ac_word... " >&6; }
3834if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3835  $as_echo_n "(cached) " >&6
3836else
3837  if test -n "$ac_ct_STRIP"; then
3838  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3839else
3840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841for as_dir in $PATH
3842do
3843  IFS=$as_save_IFS
3844  test -z "$as_dir" && as_dir=.
3845    for ac_exec_ext in '' $ac_executable_extensions; do
3846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3847    ac_cv_prog_ac_ct_STRIP="strip"
3848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849    break 2
3850  fi
3851done
3852  done
3853IFS=$as_save_IFS
3854
3855fi
3856fi
3857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3858if test -n "$ac_ct_STRIP"; then
3859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3860$as_echo "$ac_ct_STRIP" >&6; }
3861else
3862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863$as_echo "no" >&6; }
3864fi
3865
3866  if test "x$ac_ct_STRIP" = x; then
3867    STRIP=":"
3868  else
3869    case $cross_compiling:$ac_tool_warned in
3870yes:)
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3873ac_tool_warned=yes ;;
3874esac
3875    STRIP=$ac_ct_STRIP
3876  fi
3877else
3878  STRIP="$ac_cv_prog_STRIP"
3879fi
3880
3881fi
3882INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3883
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3885$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3886if test -z "$MKDIR_P"; then
3887  if ${ac_cv_path_mkdir+:} false; then :
3888  $as_echo_n "(cached) " >&6
3889else
3890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3892do
3893  IFS=$as_save_IFS
3894  test -z "$as_dir" && as_dir=.
3895    for ac_prog in mkdir gmkdir; do
3896	 for ac_exec_ext in '' $ac_executable_extensions; do
3897	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3898	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3899	     'mkdir (GNU coreutils) '* | \
3900	     'mkdir (coreutils) '* | \
3901	     'mkdir (fileutils) '4.1*)
3902	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3903	       break 3;;
3904	   esac
3905	 done
3906       done
3907  done
3908IFS=$as_save_IFS
3909
3910fi
3911
3912  test -d ./--version && rmdir ./--version
3913  if test "${ac_cv_path_mkdir+set}" = set; then
3914    MKDIR_P="$ac_cv_path_mkdir -p"
3915  else
3916    # As a last resort, use the slow shell script.  Don't cache a
3917    # value for MKDIR_P within a source directory, because that will
3918    # break other packages using the cache if that directory is
3919    # removed, or if the value is a relative name.
3920    MKDIR_P="$ac_install_sh -d"
3921  fi
3922fi
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3924$as_echo "$MKDIR_P" >&6; }
3925
3926for ac_prog in gawk mawk nawk awk
3927do
3928  # Extract the first word of "$ac_prog", so it can be a program name with args.
3929set dummy $ac_prog; ac_word=$2
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931$as_echo_n "checking for $ac_word... " >&6; }
3932if ${ac_cv_prog_AWK+:} false; then :
3933  $as_echo_n "(cached) " >&6
3934else
3935  if test -n "$AWK"; then
3936  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3937else
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941  IFS=$as_save_IFS
3942  test -z "$as_dir" && as_dir=.
3943    for ac_exec_ext in '' $ac_executable_extensions; do
3944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945    ac_cv_prog_AWK="$ac_prog"
3946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947    break 2
3948  fi
3949done
3950  done
3951IFS=$as_save_IFS
3952
3953fi
3954fi
3955AWK=$ac_cv_prog_AWK
3956if test -n "$AWK"; then
3957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3958$as_echo "$AWK" >&6; }
3959else
3960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
3962fi
3963
3964
3965  test -n "$AWK" && break
3966done
3967
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3969$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3970set x ${MAKE-make}
3971ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3972if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3973  $as_echo_n "(cached) " >&6
3974else
3975  cat >conftest.make <<\_ACEOF
3976SHELL = /bin/sh
3977all:
3978	@echo '@@@%%%=$(MAKE)=@@@%%%'
3979_ACEOF
3980# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3981case `${MAKE-make} -f conftest.make 2>/dev/null` in
3982  *@@@%%%=?*=@@@%%%*)
3983    eval ac_cv_prog_make_${ac_make}_set=yes;;
3984  *)
3985    eval ac_cv_prog_make_${ac_make}_set=no;;
3986esac
3987rm -f conftest.make
3988fi
3989if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3991$as_echo "yes" >&6; }
3992  SET_MAKE=
3993else
3994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995$as_echo "no" >&6; }
3996  SET_MAKE="MAKE=${MAKE-make}"
3997fi
3998
3999rm -rf .tst 2>/dev/null
4000mkdir .tst 2>/dev/null
4001if test -d .tst; then
4002  am__leading_dot=.
4003else
4004  am__leading_dot=_
4005fi
4006rmdir .tst 2>/dev/null
4007
4008DEPDIR="${am__leading_dot}deps"
4009
4010ac_config_commands="$ac_config_commands depfiles"
4011
4012
4013am_make=${MAKE-make}
4014cat > confinc << 'END'
4015am__doit:
4016	@echo this is the am__doit target
4017.PHONY: am__doit
4018END
4019# If we don't find an include directive, just comment out the code.
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4021$as_echo_n "checking for style of include used by $am_make... " >&6; }
4022am__include="#"
4023am__quote=
4024_am_result=none
4025# First try GNU make style include.
4026echo "include confinc" > confmf
4027# Ignore all kinds of additional output from 'make'.
4028case `$am_make -s -f confmf 2> /dev/null` in #(
4029*the\ am__doit\ target*)
4030  am__include=include
4031  am__quote=
4032  _am_result=GNU
4033  ;;
4034esac
4035# Now try BSD make style include.
4036if test "$am__include" = "#"; then
4037   echo '.include "confinc"' > confmf
4038   case `$am_make -s -f confmf 2> /dev/null` in #(
4039   *the\ am__doit\ target*)
4040     am__include=.include
4041     am__quote="\""
4042     _am_result=BSD
4043     ;;
4044   esac
4045fi
4046
4047
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4049$as_echo "$_am_result" >&6; }
4050rm -f confinc confmf
4051
4052# Check whether --enable-dependency-tracking was given.
4053if test "${enable_dependency_tracking+set}" = set; then :
4054  enableval=$enable_dependency_tracking;
4055fi
4056
4057if test "x$enable_dependency_tracking" != xno; then
4058  am_depcomp="$ac_aux_dir/depcomp"
4059  AMDEPBACKSLASH='\'
4060  am__nodep='_no'
4061fi
4062 if test "x$enable_dependency_tracking" != xno; then
4063  AMDEP_TRUE=
4064  AMDEP_FALSE='#'
4065else
4066  AMDEP_TRUE='#'
4067  AMDEP_FALSE=
4068fi
4069
4070
4071# Check whether --enable-silent-rules was given.
4072if test "${enable_silent_rules+set}" = set; then :
4073  enableval=$enable_silent_rules;
4074fi
4075
4076case $enable_silent_rules in # (((
4077  yes) AM_DEFAULT_VERBOSITY=0;;
4078   no) AM_DEFAULT_VERBOSITY=1;;
4079    *) AM_DEFAULT_VERBOSITY=1;;
4080esac
4081am_make=${MAKE-make}
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4083$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4084if ${am_cv_make_support_nested_variables+:} false; then :
4085  $as_echo_n "(cached) " >&6
4086else
4087  if $as_echo 'TRUE=$(BAR$(V))
4088BAR0=false
4089BAR1=true
4090V=1
4091am__doit:
4092	@$(TRUE)
4093.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4094  am_cv_make_support_nested_variables=yes
4095else
4096  am_cv_make_support_nested_variables=no
4097fi
4098fi
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4100$as_echo "$am_cv_make_support_nested_variables" >&6; }
4101if test $am_cv_make_support_nested_variables = yes; then
4102    AM_V='$(V)'
4103  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4104else
4105  AM_V=$AM_DEFAULT_VERBOSITY
4106  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4107fi
4108AM_BACKSLASH='\'
4109
4110if test "`cd $srcdir && pwd`" != "`pwd`"; then
4111  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4112  # is not polluted with repeated "-I."
4113  am__isrc=' -I$(srcdir)'
4114  # test to see if srcdir already configured
4115  if test -f $srcdir/config.status; then
4116    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4117  fi
4118fi
4119
4120# test whether we have cygpath
4121if test -z "$CYGPATH_W"; then
4122  if (cygpath --version) >/dev/null 2>/dev/null; then
4123    CYGPATH_W='cygpath -w'
4124  else
4125    CYGPATH_W=echo
4126  fi
4127fi
4128
4129
4130# Define the identity of the package.
4131 PACKAGE='xkbprint'
4132 VERSION='1.0.4'
4133
4134
4135cat >>confdefs.h <<_ACEOF
4136#define PACKAGE "$PACKAGE"
4137_ACEOF
4138
4139
4140cat >>confdefs.h <<_ACEOF
4141#define VERSION "$VERSION"
4142_ACEOF
4143
4144# Some tools Automake needs.
4145
4146ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4147
4148
4149AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4150
4151
4152AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4153
4154
4155AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4156
4157
4158MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4159
4160# For better backward compatibility.  To be removed once Automake 1.9.x
4161# dies out for good.  For more background, see:
4162# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4163# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4164mkdir_p='$(MKDIR_P)'
4165
4166# We need awk for the "check" target (and possibly the TAP driver).  The
4167# system "awk" is bad on some platforms.
4168# Always define AMTAR for backward compatibility.  Yes, it's still used
4169# in the wild :-(  We should find a proper way to deprecate it ...
4170AMTAR='$${TAR-tar}'
4171
4172
4173# We'll loop over all known methods to create a tar archive until one works.
4174_am_tools='gnutar  pax cpio none'
4175
4176am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4177
4178
4179
4180
4181
4182depcc="$CC"   am_compiler_list=
4183
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4185$as_echo_n "checking dependency style of $depcc... " >&6; }
4186if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4187  $as_echo_n "(cached) " >&6
4188else
4189  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4190  # We make a subdir and do the tests there.  Otherwise we can end up
4191  # making bogus files that we don't know about and never remove.  For
4192  # instance it was reported that on HP-UX the gcc test will end up
4193  # making a dummy file named 'D' -- because '-MD' means "put the output
4194  # in D".
4195  rm -rf conftest.dir
4196  mkdir conftest.dir
4197  # Copy depcomp to subdir because otherwise we won't find it if we're
4198  # using a relative directory.
4199  cp "$am_depcomp" conftest.dir
4200  cd conftest.dir
4201  # We will build objects and dependencies in a subdirectory because
4202  # it helps to detect inapplicable dependency modes.  For instance
4203  # both Tru64's cc and ICC support -MD to output dependencies as a
4204  # side effect of compilation, but ICC will put the dependencies in
4205  # the current directory while Tru64 will put them in the object
4206  # directory.
4207  mkdir sub
4208
4209  am_cv_CC_dependencies_compiler_type=none
4210  if test "$am_compiler_list" = ""; then
4211     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4212  fi
4213  am__universal=false
4214  case " $depcc " in #(
4215     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4216     esac
4217
4218  for depmode in $am_compiler_list; do
4219    # Setup a source with many dependencies, because some compilers
4220    # like to wrap large dependency lists on column 80 (with \), and
4221    # we should not choose a depcomp mode which is confused by this.
4222    #
4223    # We need to recreate these files for each test, as the compiler may
4224    # overwrite some of them when testing with obscure command lines.
4225    # This happens at least with the AIX C compiler.
4226    : > sub/conftest.c
4227    for i in 1 2 3 4 5 6; do
4228      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4229      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4230      # Solaris 10 /bin/sh.
4231      echo '/* dummy */' > sub/conftst$i.h
4232    done
4233    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4234
4235    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4236    # mode.  It turns out that the SunPro C++ compiler does not properly
4237    # handle '-M -o', and we need to detect this.  Also, some Intel
4238    # versions had trouble with output in subdirs.
4239    am__obj=sub/conftest.${OBJEXT-o}
4240    am__minus_obj="-o $am__obj"
4241    case $depmode in
4242    gcc)
4243      # This depmode causes a compiler race in universal mode.
4244      test "$am__universal" = false || continue
4245      ;;
4246    nosideeffect)
4247      # After this tag, mechanisms are not by side-effect, so they'll
4248      # only be used when explicitly requested.
4249      if test "x$enable_dependency_tracking" = xyes; then
4250	continue
4251      else
4252	break
4253      fi
4254      ;;
4255    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4256      # This compiler won't grok '-c -o', but also, the minuso test has
4257      # not run yet.  These depmodes are late enough in the game, and
4258      # so weak that their functioning should not be impacted.
4259      am__obj=conftest.${OBJEXT-o}
4260      am__minus_obj=
4261      ;;
4262    none) break ;;
4263    esac
4264    if depmode=$depmode \
4265       source=sub/conftest.c object=$am__obj \
4266       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4267       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4268         >/dev/null 2>conftest.err &&
4269       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4270       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4271       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4272       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4273      # icc doesn't choke on unknown options, it will just issue warnings
4274      # or remarks (even with -Werror).  So we grep stderr for any message
4275      # that says an option was ignored or not supported.
4276      # When given -MP, icc 7.0 and 7.1 complain thusly:
4277      #   icc: Command line warning: ignoring option '-M'; no argument required
4278      # The diagnosis changed in icc 8.0:
4279      #   icc: Command line remark: option '-MP' not supported
4280      if (grep 'ignoring option' conftest.err ||
4281          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4282        am_cv_CC_dependencies_compiler_type=$depmode
4283        break
4284      fi
4285    fi
4286  done
4287
4288  cd ..
4289  rm -rf conftest.dir
4290else
4291  am_cv_CC_dependencies_compiler_type=none
4292fi
4293
4294fi
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4296$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4297CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4298
4299 if
4300  test "x$enable_dependency_tracking" != xno \
4301  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4302  am__fastdepCC_TRUE=
4303  am__fastdepCC_FALSE='#'
4304else
4305  am__fastdepCC_TRUE='#'
4306  am__fastdepCC_FALSE=
4307fi
4308
4309
4310
4311# POSIX will say in a future version that running "rm -f" with no argument
4312# is OK; and we want to be able to make that assumption in our Makefile
4313# recipes.  So use an aggressive probe to check that the usage we want is
4314# actually supported "in the wild" to an acceptable degree.
4315# See automake bug#10828.
4316# To make any issue more visible, cause the running configure to be aborted
4317# by default if the 'rm' program in use doesn't match our expectations; the
4318# user can still override this though.
4319if rm -f && rm -fr && rm -rf; then : OK; else
4320  cat >&2 <<'END'
4321Oops!
4322
4323Your 'rm' program seems unable to run without file operands specified
4324on the command line, even when the '-f' option is present.  This is contrary
4325to the behaviour of most rm programs out there, and not conforming with
4326the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4327
4328Please tell bug-automake@gnu.org about your system, including the value
4329of your $PATH and any error possibly output before this message.  This
4330can help us improve future automake versions.
4331
4332END
4333  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4334    echo 'Configuration will proceed anyway, since you have set the' >&2
4335    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4336    echo >&2
4337  else
4338    cat >&2 <<'END'
4339Aborting the configuration process, to ensure you take notice of the issue.
4340
4341You can download and install GNU coreutils to get an 'rm' implementation
4342that behaves properly: <http://www.gnu.org/software/coreutils/>.
4343
4344If you want to complete the configuration process using your problematic
4345'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4346to "yes", and re-run configure.
4347
4348END
4349    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4350  fi
4351fi
4352
4353
4354# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4367$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4368if ${ac_cv_prog_cc_c99+:} false; then :
4369  $as_echo_n "(cached) " >&6
4370else
4371  ac_cv_prog_cc_c99=no
4372ac_save_CC=$CC
4373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374/* end confdefs.h.  */
4375#include <stdarg.h>
4376#include <stdbool.h>
4377#include <stdlib.h>
4378#include <wchar.h>
4379#include <stdio.h>
4380
4381// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4382#define debug(...) fprintf (stderr, __VA_ARGS__)
4383#define showlist(...) puts (#__VA_ARGS__)
4384#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4385static void
4386test_varargs_macros (void)
4387{
4388  int x = 1234;
4389  int y = 5678;
4390  debug ("Flag");
4391  debug ("X = %d\n", x);
4392  showlist (The first, second, and third items.);
4393  report (x>y, "x is %d but y is %d", x, y);
4394}
4395
4396// Check long long types.
4397#define BIG64 18446744073709551615ull
4398#define BIG32 4294967295ul
4399#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4400#if !BIG_OK
4401  your preprocessor is broken;
4402#endif
4403#if BIG_OK
4404#else
4405  your preprocessor is broken;
4406#endif
4407static long long int bignum = -9223372036854775807LL;
4408static unsigned long long int ubignum = BIG64;
4409
4410struct incomplete_array
4411{
4412  int datasize;
4413  double data[];
4414};
4415
4416struct named_init {
4417  int number;
4418  const wchar_t *name;
4419  double average;
4420};
4421
4422typedef const char *ccp;
4423
4424static inline int
4425test_restrict (ccp restrict text)
4426{
4427  // See if C++-style comments work.
4428  // Iterate through items via the restricted pointer.
4429  // Also check for declarations in for loops.
4430  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4431    continue;
4432  return 0;
4433}
4434
4435// Check varargs and va_copy.
4436static void
4437test_varargs (const char *format, ...)
4438{
4439  va_list args;
4440  va_start (args, format);
4441  va_list args_copy;
4442  va_copy (args_copy, args);
4443
4444  const char *str;
4445  int number;
4446  float fnumber;
4447
4448  while (*format)
4449    {
4450      switch (*format++)
4451	{
4452	case 's': // string
4453	  str = va_arg (args_copy, const char *);
4454	  break;
4455	case 'd': // int
4456	  number = va_arg (args_copy, int);
4457	  break;
4458	case 'f': // float
4459	  fnumber = va_arg (args_copy, double);
4460	  break;
4461	default:
4462	  break;
4463	}
4464    }
4465  va_end (args_copy);
4466  va_end (args);
4467}
4468
4469int
4470main ()
4471{
4472
4473  // Check bool.
4474  _Bool success = false;
4475
4476  // Check restrict.
4477  if (test_restrict ("String literal") == 0)
4478    success = true;
4479  char *restrict newvar = "Another string";
4480
4481  // Check varargs.
4482  test_varargs ("s, d' f .", "string", 65, 34.234);
4483  test_varargs_macros ();
4484
4485  // Check flexible array members.
4486  struct incomplete_array *ia =
4487    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4488  ia->datasize = 10;
4489  for (int i = 0; i < ia->datasize; ++i)
4490    ia->data[i] = i * 1.234;
4491
4492  // Check named initializers.
4493  struct named_init ni = {
4494    .number = 34,
4495    .name = L"Test wide string",
4496    .average = 543.34343,
4497  };
4498
4499  ni.number = 58;
4500
4501  int dynamic_array[ni.number];
4502  dynamic_array[ni.number - 1] = 543;
4503
4504  // work around unused variable warnings
4505  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4506	  || dynamic_array[ni.number - 1] != 543);
4507
4508  ;
4509  return 0;
4510}
4511_ACEOF
4512for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4513do
4514  CC="$ac_save_CC $ac_arg"
4515  if ac_fn_c_try_compile "$LINENO"; then :
4516  ac_cv_prog_cc_c99=$ac_arg
4517fi
4518rm -f core conftest.err conftest.$ac_objext
4519  test "x$ac_cv_prog_cc_c99" != "xno" && break
4520done
4521rm -f conftest.$ac_ext
4522CC=$ac_save_CC
4523
4524fi
4525# AC_CACHE_VAL
4526case "x$ac_cv_prog_cc_c99" in
4527  x)
4528    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4529$as_echo "none needed" >&6; } ;;
4530  xno)
4531    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4532$as_echo "unsupported" >&6; } ;;
4533  *)
4534    CC="$CC $ac_cv_prog_cc_c99"
4535    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4536$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4537esac
4538if test "x$ac_cv_prog_cc_c99" != xno; then :
4539
4540fi
4541
4542
4543
4544
4545
4546
4547ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4548if test "x$ac_cv_have_decl___clang__" = xyes; then :
4549  CLANGCC="yes"
4550else
4551  CLANGCC="no"
4552fi
4553
4554ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4555if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4556  INTELCC="yes"
4557else
4558  INTELCC="no"
4559fi
4560
4561ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4562if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4563  SUNCC="yes"
4564else
4565  SUNCC="no"
4566fi
4567
4568
4569
4570
4571if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4572	if test -n "$ac_tool_prefix"; then
4573  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4574set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576$as_echo_n "checking for $ac_word... " >&6; }
4577if ${ac_cv_path_PKG_CONFIG+:} false; then :
4578  $as_echo_n "(cached) " >&6
4579else
4580  case $PKG_CONFIG in
4581  [\\/]* | ?:[\\/]*)
4582  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4583  ;;
4584  *)
4585  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586for as_dir in $PATH
4587do
4588  IFS=$as_save_IFS
4589  test -z "$as_dir" && as_dir=.
4590    for ac_exec_ext in '' $ac_executable_extensions; do
4591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4592    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594    break 2
4595  fi
4596done
4597  done
4598IFS=$as_save_IFS
4599
4600  ;;
4601esac
4602fi
4603PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4604if test -n "$PKG_CONFIG"; then
4605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4606$as_echo "$PKG_CONFIG" >&6; }
4607else
4608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609$as_echo "no" >&6; }
4610fi
4611
4612
4613fi
4614if test -z "$ac_cv_path_PKG_CONFIG"; then
4615  ac_pt_PKG_CONFIG=$PKG_CONFIG
4616  # Extract the first word of "pkg-config", so it can be a program name with args.
4617set dummy pkg-config; ac_word=$2
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619$as_echo_n "checking for $ac_word... " >&6; }
4620if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4621  $as_echo_n "(cached) " >&6
4622else
4623  case $ac_pt_PKG_CONFIG in
4624  [\\/]* | ?:[\\/]*)
4625  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4626  ;;
4627  *)
4628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631  IFS=$as_save_IFS
4632  test -z "$as_dir" && as_dir=.
4633    for ac_exec_ext in '' $ac_executable_extensions; do
4634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637    break 2
4638  fi
4639done
4640  done
4641IFS=$as_save_IFS
4642
4643  ;;
4644esac
4645fi
4646ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4647if test -n "$ac_pt_PKG_CONFIG"; then
4648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4649$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4650else
4651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652$as_echo "no" >&6; }
4653fi
4654
4655  if test "x$ac_pt_PKG_CONFIG" = x; then
4656    PKG_CONFIG=""
4657  else
4658    case $cross_compiling:$ac_tool_warned in
4659yes:)
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4662ac_tool_warned=yes ;;
4663esac
4664    PKG_CONFIG=$ac_pt_PKG_CONFIG
4665  fi
4666else
4667  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4668fi
4669
4670fi
4671if test -n "$PKG_CONFIG"; then
4672	_pkg_min_version=0.9.0
4673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4674$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4675	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4676		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4677$as_echo "yes" >&6; }
4678	else
4679		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681		PKG_CONFIG=""
4682	fi
4683
4684fi
4685# Make sure we can run config.sub.
4686$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4687  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4688
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4690$as_echo_n "checking build system type... " >&6; }
4691if ${ac_cv_build+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694  ac_build_alias=$build_alias
4695test "x$ac_build_alias" = x &&
4696  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4697test "x$ac_build_alias" = x &&
4698  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4699ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4700  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4701
4702fi
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4704$as_echo "$ac_cv_build" >&6; }
4705case $ac_cv_build in
4706*-*-*) ;;
4707*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4708esac
4709build=$ac_cv_build
4710ac_save_IFS=$IFS; IFS='-'
4711set x $ac_cv_build
4712shift
4713build_cpu=$1
4714build_vendor=$2
4715shift; shift
4716# Remember, the first character of IFS is used to create $*,
4717# except with old shells:
4718build_os=$*
4719IFS=$ac_save_IFS
4720case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4721
4722
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4724$as_echo_n "checking host system type... " >&6; }
4725if ${ac_cv_host+:} false; then :
4726  $as_echo_n "(cached) " >&6
4727else
4728  if test "x$host_alias" = x; then
4729  ac_cv_host=$ac_cv_build
4730else
4731  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4732    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4733fi
4734
4735fi
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4737$as_echo "$ac_cv_host" >&6; }
4738case $ac_cv_host in
4739*-*-*) ;;
4740*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4741esac
4742host=$ac_cv_host
4743ac_save_IFS=$IFS; IFS='-'
4744set x $ac_cv_host
4745shift
4746host_cpu=$1
4747host_vendor=$2
4748shift; shift
4749# Remember, the first character of IFS is used to create $*,
4750# except with old shells:
4751host_os=$*
4752IFS=$ac_save_IFS
4753case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4754
4755
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4757$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4758if ${ac_cv_path_SED+:} false; then :
4759  $as_echo_n "(cached) " >&6
4760else
4761            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4762     for ac_i in 1 2 3 4 5 6 7; do
4763       ac_script="$ac_script$as_nl$ac_script"
4764     done
4765     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4766     { ac_script=; unset ac_script;}
4767     if test -z "$SED"; then
4768  ac_path_SED_found=false
4769  # Loop through the user's path and test for each of PROGNAME-LIST
4770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773  IFS=$as_save_IFS
4774  test -z "$as_dir" && as_dir=.
4775    for ac_prog in sed gsed; do
4776    for ac_exec_ext in '' $ac_executable_extensions; do
4777      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4778      as_fn_executable_p "$ac_path_SED" || continue
4779# Check for GNU ac_path_SED and select it if it is found.
4780  # Check for GNU $ac_path_SED
4781case `"$ac_path_SED" --version 2>&1` in
4782*GNU*)
4783  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4784*)
4785  ac_count=0
4786  $as_echo_n 0123456789 >"conftest.in"
4787  while :
4788  do
4789    cat "conftest.in" "conftest.in" >"conftest.tmp"
4790    mv "conftest.tmp" "conftest.in"
4791    cp "conftest.in" "conftest.nl"
4792    $as_echo '' >> "conftest.nl"
4793    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4794    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4795    as_fn_arith $ac_count + 1 && ac_count=$as_val
4796    if test $ac_count -gt ${ac_path_SED_max-0}; then
4797      # Best one so far, save it but keep looking for a better one
4798      ac_cv_path_SED="$ac_path_SED"
4799      ac_path_SED_max=$ac_count
4800    fi
4801    # 10*(2^10) chars as input seems more than enough
4802    test $ac_count -gt 10 && break
4803  done
4804  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4805esac
4806
4807      $ac_path_SED_found && break 3
4808    done
4809  done
4810  done
4811IFS=$as_save_IFS
4812  if test -z "$ac_cv_path_SED"; then
4813    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4814  fi
4815else
4816  ac_cv_path_SED=$SED
4817fi
4818
4819fi
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4821$as_echo "$ac_cv_path_SED" >&6; }
4822 SED="$ac_cv_path_SED"
4823  rm -f conftest.sed
4824
4825
4826
4827
4828
4829
4830# Check whether --enable-selective-werror was given.
4831if test "${enable_selective_werror+set}" = set; then :
4832  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4833else
4834  SELECTIVE_WERROR=yes
4835fi
4836
4837
4838
4839
4840
4841# -v is too short to test reliably with XORG_TESTSET_CFLAG
4842if test "x$SUNCC" = "xyes"; then
4843    BASE_CFLAGS="-v"
4844else
4845    BASE_CFLAGS=""
4846fi
4847
4848# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862xorg_testset_save_CFLAGS="$CFLAGS"
4863
4864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4865	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4867$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4868if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4869  $as_echo_n "(cached) " >&6
4870else
4871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872/* end confdefs.h.  */
4873int i;
4874_ACEOF
4875if ac_fn_c_try_compile "$LINENO"; then :
4876  xorg_cv_cc_flag_unknown_warning_option=yes
4877else
4878  xorg_cv_cc_flag_unknown_warning_option=no
4879fi
4880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881fi
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4883$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4884	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4885	CFLAGS="$xorg_testset_save_CFLAGS"
4886fi
4887
4888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4889	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4890		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4891	fi
4892	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4894$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4895if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899/* end confdefs.h.  */
4900int i;
4901_ACEOF
4902if ac_fn_c_try_compile "$LINENO"; then :
4903  xorg_cv_cc_flag_unused_command_line_argument=yes
4904else
4905  xorg_cv_cc_flag_unused_command_line_argument=no
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908fi
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4910$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4911	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4912	CFLAGS="$xorg_testset_save_CFLAGS"
4913fi
4914
4915found="no"
4916
4917	if test $found = "no" ; then
4918		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4919			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4920		fi
4921
4922		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4923			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4924		fi
4925
4926		CFLAGS="$CFLAGS -Wall"
4927
4928		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4929$as_echo_n "checking if $CC supports -Wall... " >&6; }
4930		cacheid=xorg_cv_cc_flag__Wall
4931		if eval \${$cacheid+:} false; then :
4932  $as_echo_n "(cached) " >&6
4933else
4934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935/* end confdefs.h.  */
4936int i;
4937int
4938main ()
4939{
4940
4941  ;
4942  return 0;
4943}
4944_ACEOF
4945if ac_fn_c_try_link "$LINENO"; then :
4946  eval $cacheid=yes
4947else
4948  eval $cacheid=no
4949fi
4950rm -f core conftest.err conftest.$ac_objext \
4951    conftest$ac_exeext conftest.$ac_ext
4952fi
4953
4954
4955		CFLAGS="$xorg_testset_save_CFLAGS"
4956
4957		eval supported=\$$cacheid
4958		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4959$as_echo "$supported" >&6; }
4960		if test "$supported" = "yes" ; then
4961			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4962			found="yes"
4963		fi
4964	fi
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980xorg_testset_save_CFLAGS="$CFLAGS"
4981
4982if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4983	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4985$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4986if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4987  $as_echo_n "(cached) " >&6
4988else
4989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h.  */
4991int i;
4992_ACEOF
4993if ac_fn_c_try_compile "$LINENO"; then :
4994  xorg_cv_cc_flag_unknown_warning_option=yes
4995else
4996  xorg_cv_cc_flag_unknown_warning_option=no
4997fi
4998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999fi
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5001$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5002	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5003	CFLAGS="$xorg_testset_save_CFLAGS"
5004fi
5005
5006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5007	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5008		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5009	fi
5010	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5012$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5013if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017/* end confdefs.h.  */
5018int i;
5019_ACEOF
5020if ac_fn_c_try_compile "$LINENO"; then :
5021  xorg_cv_cc_flag_unused_command_line_argument=yes
5022else
5023  xorg_cv_cc_flag_unused_command_line_argument=no
5024fi
5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026fi
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5028$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5029	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5030	CFLAGS="$xorg_testset_save_CFLAGS"
5031fi
5032
5033found="no"
5034
5035	if test $found = "no" ; then
5036		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5038		fi
5039
5040		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5042		fi
5043
5044		CFLAGS="$CFLAGS -Wpointer-arith"
5045
5046		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5047$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5048		cacheid=xorg_cv_cc_flag__Wpointer_arith
5049		if eval \${$cacheid+:} false; then :
5050  $as_echo_n "(cached) " >&6
5051else
5052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h.  */
5054int i;
5055int
5056main ()
5057{
5058
5059  ;
5060  return 0;
5061}
5062_ACEOF
5063if ac_fn_c_try_link "$LINENO"; then :
5064  eval $cacheid=yes
5065else
5066  eval $cacheid=no
5067fi
5068rm -f core conftest.err conftest.$ac_objext \
5069    conftest$ac_exeext conftest.$ac_ext
5070fi
5071
5072
5073		CFLAGS="$xorg_testset_save_CFLAGS"
5074
5075		eval supported=\$$cacheid
5076		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5077$as_echo "$supported" >&6; }
5078		if test "$supported" = "yes" ; then
5079			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5080			found="yes"
5081		fi
5082	fi
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098xorg_testset_save_CFLAGS="$CFLAGS"
5099
5100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5103$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5104if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5105  $as_echo_n "(cached) " >&6
5106else
5107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108/* end confdefs.h.  */
5109int i;
5110_ACEOF
5111if ac_fn_c_try_compile "$LINENO"; then :
5112  xorg_cv_cc_flag_unknown_warning_option=yes
5113else
5114  xorg_cv_cc_flag_unknown_warning_option=no
5115fi
5116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117fi
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5119$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5121	CFLAGS="$xorg_testset_save_CFLAGS"
5122fi
5123
5124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5127	fi
5128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5130$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5131if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5132  $as_echo_n "(cached) " >&6
5133else
5134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135/* end confdefs.h.  */
5136int i;
5137_ACEOF
5138if ac_fn_c_try_compile "$LINENO"; then :
5139  xorg_cv_cc_flag_unused_command_line_argument=yes
5140else
5141  xorg_cv_cc_flag_unused_command_line_argument=no
5142fi
5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5146$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5148	CFLAGS="$xorg_testset_save_CFLAGS"
5149fi
5150
5151found="no"
5152
5153	if test $found = "no" ; then
5154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5156		fi
5157
5158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5160		fi
5161
5162		CFLAGS="$CFLAGS -Wmissing-declarations"
5163
5164		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5165$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5166		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5167		if eval \${$cacheid+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171/* end confdefs.h.  */
5172int i;
5173int
5174main ()
5175{
5176
5177  ;
5178  return 0;
5179}
5180_ACEOF
5181if ac_fn_c_try_link "$LINENO"; then :
5182  eval $cacheid=yes
5183else
5184  eval $cacheid=no
5185fi
5186rm -f core conftest.err conftest.$ac_objext \
5187    conftest$ac_exeext conftest.$ac_ext
5188fi
5189
5190
5191		CFLAGS="$xorg_testset_save_CFLAGS"
5192
5193		eval supported=\$$cacheid
5194		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5195$as_echo "$supported" >&6; }
5196		if test "$supported" = "yes" ; then
5197			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5198			found="yes"
5199		fi
5200	fi
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216xorg_testset_save_CFLAGS="$CFLAGS"
5217
5218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5221$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5222if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5223  $as_echo_n "(cached) " >&6
5224else
5225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226/* end confdefs.h.  */
5227int i;
5228_ACEOF
5229if ac_fn_c_try_compile "$LINENO"; then :
5230  xorg_cv_cc_flag_unknown_warning_option=yes
5231else
5232  xorg_cv_cc_flag_unknown_warning_option=no
5233fi
5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235fi
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5237$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5239	CFLAGS="$xorg_testset_save_CFLAGS"
5240fi
5241
5242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5245	fi
5246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5248$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5249if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5250  $as_echo_n "(cached) " >&6
5251else
5252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h.  */
5254int i;
5255_ACEOF
5256if ac_fn_c_try_compile "$LINENO"; then :
5257  xorg_cv_cc_flag_unused_command_line_argument=yes
5258else
5259  xorg_cv_cc_flag_unused_command_line_argument=no
5260fi
5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262fi
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5264$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5265	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5266	CFLAGS="$xorg_testset_save_CFLAGS"
5267fi
5268
5269found="no"
5270
5271	if test $found = "no" ; then
5272		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5273			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5274		fi
5275
5276		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5277			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5278		fi
5279
5280		CFLAGS="$CFLAGS -Wformat=2"
5281
5282		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5283$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5284		cacheid=xorg_cv_cc_flag__Wformat_2
5285		if eval \${$cacheid+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289/* end confdefs.h.  */
5290int i;
5291int
5292main ()
5293{
5294
5295  ;
5296  return 0;
5297}
5298_ACEOF
5299if ac_fn_c_try_link "$LINENO"; then :
5300  eval $cacheid=yes
5301else
5302  eval $cacheid=no
5303fi
5304rm -f core conftest.err conftest.$ac_objext \
5305    conftest$ac_exeext conftest.$ac_ext
5306fi
5307
5308
5309		CFLAGS="$xorg_testset_save_CFLAGS"
5310
5311		eval supported=\$$cacheid
5312		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5313$as_echo "$supported" >&6; }
5314		if test "$supported" = "yes" ; then
5315			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5316			found="yes"
5317		fi
5318	fi
5319
5320	if test $found = "no" ; then
5321		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5323		fi
5324
5325		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327		fi
5328
5329		CFLAGS="$CFLAGS -Wformat"
5330
5331		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5332$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5333		cacheid=xorg_cv_cc_flag__Wformat
5334		if eval \${$cacheid+:} false; then :
5335  $as_echo_n "(cached) " >&6
5336else
5337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h.  */
5339int i;
5340int
5341main ()
5342{
5343
5344  ;
5345  return 0;
5346}
5347_ACEOF
5348if ac_fn_c_try_link "$LINENO"; then :
5349  eval $cacheid=yes
5350else
5351  eval $cacheid=no
5352fi
5353rm -f core conftest.err conftest.$ac_objext \
5354    conftest$ac_exeext conftest.$ac_ext
5355fi
5356
5357
5358		CFLAGS="$xorg_testset_save_CFLAGS"
5359
5360		eval supported=\$$cacheid
5361		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5362$as_echo "$supported" >&6; }
5363		if test "$supported" = "yes" ; then
5364			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5365			found="yes"
5366		fi
5367	fi
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385xorg_testset_save_CFLAGS="$CFLAGS"
5386
5387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5388	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5390$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5391if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396int i;
5397_ACEOF
5398if ac_fn_c_try_compile "$LINENO"; then :
5399  xorg_cv_cc_flag_unknown_warning_option=yes
5400else
5401  xorg_cv_cc_flag_unknown_warning_option=no
5402fi
5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404fi
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5406$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5407	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5408	CFLAGS="$xorg_testset_save_CFLAGS"
5409fi
5410
5411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5412	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5413		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5414	fi
5415	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5417$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5418if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5419  $as_echo_n "(cached) " >&6
5420else
5421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422/* end confdefs.h.  */
5423int i;
5424_ACEOF
5425if ac_fn_c_try_compile "$LINENO"; then :
5426  xorg_cv_cc_flag_unused_command_line_argument=yes
5427else
5428  xorg_cv_cc_flag_unused_command_line_argument=no
5429fi
5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431fi
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5433$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5434	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5435	CFLAGS="$xorg_testset_save_CFLAGS"
5436fi
5437
5438found="no"
5439
5440	if test $found = "no" ; then
5441		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5442			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443		fi
5444
5445		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5446			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5447		fi
5448
5449		CFLAGS="$CFLAGS -Wstrict-prototypes"
5450
5451		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5452$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5453		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5454		if eval \${$cacheid+:} false; then :
5455  $as_echo_n "(cached) " >&6
5456else
5457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h.  */
5459int i;
5460int
5461main ()
5462{
5463
5464  ;
5465  return 0;
5466}
5467_ACEOF
5468if ac_fn_c_try_link "$LINENO"; then :
5469  eval $cacheid=yes
5470else
5471  eval $cacheid=no
5472fi
5473rm -f core conftest.err conftest.$ac_objext \
5474    conftest$ac_exeext conftest.$ac_ext
5475fi
5476
5477
5478		CFLAGS="$xorg_testset_save_CFLAGS"
5479
5480		eval supported=\$$cacheid
5481		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5482$as_echo "$supported" >&6; }
5483		if test "$supported" = "yes" ; then
5484			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5485			found="yes"
5486		fi
5487	fi
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503xorg_testset_save_CFLAGS="$CFLAGS"
5504
5505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5506	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5510  $as_echo_n "(cached) " >&6
5511else
5512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h.  */
5514int i;
5515_ACEOF
5516if ac_fn_c_try_compile "$LINENO"; then :
5517  xorg_cv_cc_flag_unknown_warning_option=yes
5518else
5519  xorg_cv_cc_flag_unknown_warning_option=no
5520fi
5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522fi
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5526	CFLAGS="$xorg_testset_save_CFLAGS"
5527fi
5528
5529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532	fi
5533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5537  $as_echo_n "(cached) " >&6
5538else
5539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540/* end confdefs.h.  */
5541int i;
5542_ACEOF
5543if ac_fn_c_try_compile "$LINENO"; then :
5544  xorg_cv_cc_flag_unused_command_line_argument=yes
5545else
5546  xorg_cv_cc_flag_unused_command_line_argument=no
5547fi
5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549fi
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5553	CFLAGS="$xorg_testset_save_CFLAGS"
5554fi
5555
5556found="no"
5557
5558	if test $found = "no" ; then
5559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561		fi
5562
5563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5565		fi
5566
5567		CFLAGS="$CFLAGS -Wmissing-prototypes"
5568
5569		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5570$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5571		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5572		if eval \${$cacheid+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h.  */
5577int i;
5578int
5579main ()
5580{
5581
5582  ;
5583  return 0;
5584}
5585_ACEOF
5586if ac_fn_c_try_link "$LINENO"; then :
5587  eval $cacheid=yes
5588else
5589  eval $cacheid=no
5590fi
5591rm -f core conftest.err conftest.$ac_objext \
5592    conftest$ac_exeext conftest.$ac_ext
5593fi
5594
5595
5596		CFLAGS="$xorg_testset_save_CFLAGS"
5597
5598		eval supported=\$$cacheid
5599		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5600$as_echo "$supported" >&6; }
5601		if test "$supported" = "yes" ; then
5602			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5603			found="yes"
5604		fi
5605	fi
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621xorg_testset_save_CFLAGS="$CFLAGS"
5622
5623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5628  $as_echo_n "(cached) " >&6
5629else
5630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631/* end confdefs.h.  */
5632int i;
5633_ACEOF
5634if ac_fn_c_try_compile "$LINENO"; then :
5635  xorg_cv_cc_flag_unknown_warning_option=yes
5636else
5637  xorg_cv_cc_flag_unknown_warning_option=no
5638fi
5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640fi
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5644	CFLAGS="$xorg_testset_save_CFLAGS"
5645fi
5646
5647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5650	fi
5651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5655  $as_echo_n "(cached) " >&6
5656else
5657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h.  */
5659int i;
5660_ACEOF
5661if ac_fn_c_try_compile "$LINENO"; then :
5662  xorg_cv_cc_flag_unused_command_line_argument=yes
5663else
5664  xorg_cv_cc_flag_unused_command_line_argument=no
5665fi
5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667fi
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5671	CFLAGS="$xorg_testset_save_CFLAGS"
5672fi
5673
5674found="no"
5675
5676	if test $found = "no" ; then
5677		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5679		fi
5680
5681		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5683		fi
5684
5685		CFLAGS="$CFLAGS -Wnested-externs"
5686
5687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5688$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5689		cacheid=xorg_cv_cc_flag__Wnested_externs
5690		if eval \${$cacheid+:} false; then :
5691  $as_echo_n "(cached) " >&6
5692else
5693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h.  */
5695int i;
5696int
5697main ()
5698{
5699
5700  ;
5701  return 0;
5702}
5703_ACEOF
5704if ac_fn_c_try_link "$LINENO"; then :
5705  eval $cacheid=yes
5706else
5707  eval $cacheid=no
5708fi
5709rm -f core conftest.err conftest.$ac_objext \
5710    conftest$ac_exeext conftest.$ac_ext
5711fi
5712
5713
5714		CFLAGS="$xorg_testset_save_CFLAGS"
5715
5716		eval supported=\$$cacheid
5717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5718$as_echo "$supported" >&6; }
5719		if test "$supported" = "yes" ; then
5720			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5721			found="yes"
5722		fi
5723	fi
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739xorg_testset_save_CFLAGS="$CFLAGS"
5740
5741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5742	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5746  $as_echo_n "(cached) " >&6
5747else
5748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749/* end confdefs.h.  */
5750int i;
5751_ACEOF
5752if ac_fn_c_try_compile "$LINENO"; then :
5753  xorg_cv_cc_flag_unknown_warning_option=yes
5754else
5755  xorg_cv_cc_flag_unknown_warning_option=no
5756fi
5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758fi
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5761	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5762	CFLAGS="$xorg_testset_save_CFLAGS"
5763fi
5764
5765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5766	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5767		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5768	fi
5769	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h.  */
5777int i;
5778_ACEOF
5779if ac_fn_c_try_compile "$LINENO"; then :
5780  xorg_cv_cc_flag_unused_command_line_argument=yes
5781else
5782  xorg_cv_cc_flag_unused_command_line_argument=no
5783fi
5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785fi
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5789	CFLAGS="$xorg_testset_save_CFLAGS"
5790fi
5791
5792found="no"
5793
5794	if test $found = "no" ; then
5795		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797		fi
5798
5799		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5801		fi
5802
5803		CFLAGS="$CFLAGS -Wbad-function-cast"
5804
5805		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5806$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5807		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5808		if eval \${$cacheid+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812/* end confdefs.h.  */
5813int i;
5814int
5815main ()
5816{
5817
5818  ;
5819  return 0;
5820}
5821_ACEOF
5822if ac_fn_c_try_link "$LINENO"; then :
5823  eval $cacheid=yes
5824else
5825  eval $cacheid=no
5826fi
5827rm -f core conftest.err conftest.$ac_objext \
5828    conftest$ac_exeext conftest.$ac_ext
5829fi
5830
5831
5832		CFLAGS="$xorg_testset_save_CFLAGS"
5833
5834		eval supported=\$$cacheid
5835		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5836$as_echo "$supported" >&6; }
5837		if test "$supported" = "yes" ; then
5838			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5839			found="yes"
5840		fi
5841	fi
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857xorg_testset_save_CFLAGS="$CFLAGS"
5858
5859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5860	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5861	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5864  $as_echo_n "(cached) " >&6
5865else
5866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867/* end confdefs.h.  */
5868int i;
5869_ACEOF
5870if ac_fn_c_try_compile "$LINENO"; then :
5871  xorg_cv_cc_flag_unknown_warning_option=yes
5872else
5873  xorg_cv_cc_flag_unknown_warning_option=no
5874fi
5875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876fi
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5879	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5880	CFLAGS="$xorg_testset_save_CFLAGS"
5881fi
5882
5883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5884	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5885		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886	fi
5887	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5891  $as_echo_n "(cached) " >&6
5892else
5893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894/* end confdefs.h.  */
5895int i;
5896_ACEOF
5897if ac_fn_c_try_compile "$LINENO"; then :
5898  xorg_cv_cc_flag_unused_command_line_argument=yes
5899else
5900  xorg_cv_cc_flag_unused_command_line_argument=no
5901fi
5902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903fi
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5906	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5907	CFLAGS="$xorg_testset_save_CFLAGS"
5908fi
5909
5910found="no"
5911
5912	if test $found = "no" ; then
5913		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5914			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5915		fi
5916
5917		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5918			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5919		fi
5920
5921		CFLAGS="$CFLAGS -Wold-style-definition"
5922
5923		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5924$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5925		cacheid=xorg_cv_cc_flag__Wold_style_definition
5926		if eval \${$cacheid+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h.  */
5931int i;
5932int
5933main ()
5934{
5935
5936  ;
5937  return 0;
5938}
5939_ACEOF
5940if ac_fn_c_try_link "$LINENO"; then :
5941  eval $cacheid=yes
5942else
5943  eval $cacheid=no
5944fi
5945rm -f core conftest.err conftest.$ac_objext \
5946    conftest$ac_exeext conftest.$ac_ext
5947fi
5948
5949
5950		CFLAGS="$xorg_testset_save_CFLAGS"
5951
5952		eval supported=\$$cacheid
5953		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5954$as_echo "$supported" >&6; }
5955		if test "$supported" = "yes" ; then
5956			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5957			found="yes"
5958		fi
5959	fi
5960
5961	if test $found = "no" ; then
5962		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964		fi
5965
5966		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5968		fi
5969
5970		CFLAGS="$CFLAGS -fd"
5971
5972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5973$as_echo_n "checking if $CC supports -fd... " >&6; }
5974		cacheid=xorg_cv_cc_flag__fd
5975		if eval \${$cacheid+:} false; then :
5976  $as_echo_n "(cached) " >&6
5977else
5978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979/* end confdefs.h.  */
5980int i;
5981int
5982main ()
5983{
5984
5985  ;
5986  return 0;
5987}
5988_ACEOF
5989if ac_fn_c_try_link "$LINENO"; then :
5990  eval $cacheid=yes
5991else
5992  eval $cacheid=no
5993fi
5994rm -f core conftest.err conftest.$ac_objext \
5995    conftest$ac_exeext conftest.$ac_ext
5996fi
5997
5998
5999		CFLAGS="$xorg_testset_save_CFLAGS"
6000
6001		eval supported=\$$cacheid
6002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6003$as_echo "$supported" >&6; }
6004		if test "$supported" = "yes" ; then
6005			BASE_CFLAGS="$BASE_CFLAGS -fd"
6006			found="yes"
6007		fi
6008	fi
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024xorg_testset_save_CFLAGS="$CFLAGS"
6025
6026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6031  $as_echo_n "(cached) " >&6
6032else
6033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034/* end confdefs.h.  */
6035int i;
6036_ACEOF
6037if ac_fn_c_try_compile "$LINENO"; then :
6038  xorg_cv_cc_flag_unknown_warning_option=yes
6039else
6040  xorg_cv_cc_flag_unknown_warning_option=no
6041fi
6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043fi
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6047	CFLAGS="$xorg_testset_save_CFLAGS"
6048fi
6049
6050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6053	fi
6054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6058  $as_echo_n "(cached) " >&6
6059else
6060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061/* end confdefs.h.  */
6062int i;
6063_ACEOF
6064if ac_fn_c_try_compile "$LINENO"; then :
6065  xorg_cv_cc_flag_unused_command_line_argument=yes
6066else
6067  xorg_cv_cc_flag_unused_command_line_argument=no
6068fi
6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070fi
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6074	CFLAGS="$xorg_testset_save_CFLAGS"
6075fi
6076
6077found="no"
6078
6079	if test $found = "no" ; then
6080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082		fi
6083
6084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6086		fi
6087
6088		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6089
6090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6091$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6092		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6093		if eval \${$cacheid+:} false; then :
6094  $as_echo_n "(cached) " >&6
6095else
6096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097/* end confdefs.h.  */
6098int i;
6099int
6100main ()
6101{
6102
6103  ;
6104  return 0;
6105}
6106_ACEOF
6107if ac_fn_c_try_link "$LINENO"; then :
6108  eval $cacheid=yes
6109else
6110  eval $cacheid=no
6111fi
6112rm -f core conftest.err conftest.$ac_objext \
6113    conftest$ac_exeext conftest.$ac_ext
6114fi
6115
6116
6117		CFLAGS="$xorg_testset_save_CFLAGS"
6118
6119		eval supported=\$$cacheid
6120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6121$as_echo "$supported" >&6; }
6122		if test "$supported" = "yes" ; then
6123			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6124			found="yes"
6125		fi
6126	fi
6127
6128
6129
6130
6131
6132# This chunk adds additional warnings that could catch undesired effects.
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146xorg_testset_save_CFLAGS="$CFLAGS"
6147
6148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156/* end confdefs.h.  */
6157int i;
6158_ACEOF
6159if ac_fn_c_try_compile "$LINENO"; then :
6160  xorg_cv_cc_flag_unknown_warning_option=yes
6161else
6162  xorg_cv_cc_flag_unknown_warning_option=no
6163fi
6164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165fi
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6169	CFLAGS="$xorg_testset_save_CFLAGS"
6170fi
6171
6172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6175	fi
6176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6180  $as_echo_n "(cached) " >&6
6181else
6182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h.  */
6184int i;
6185_ACEOF
6186if ac_fn_c_try_compile "$LINENO"; then :
6187  xorg_cv_cc_flag_unused_command_line_argument=yes
6188else
6189  xorg_cv_cc_flag_unused_command_line_argument=no
6190fi
6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192fi
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6196	CFLAGS="$xorg_testset_save_CFLAGS"
6197fi
6198
6199found="no"
6200
6201	if test $found = "no" ; then
6202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204		fi
6205
6206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6208		fi
6209
6210		CFLAGS="$CFLAGS -Wunused"
6211
6212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6213$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6214		cacheid=xorg_cv_cc_flag__Wunused
6215		if eval \${$cacheid+:} false; then :
6216  $as_echo_n "(cached) " >&6
6217else
6218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219/* end confdefs.h.  */
6220int i;
6221int
6222main ()
6223{
6224
6225  ;
6226  return 0;
6227}
6228_ACEOF
6229if ac_fn_c_try_link "$LINENO"; then :
6230  eval $cacheid=yes
6231else
6232  eval $cacheid=no
6233fi
6234rm -f core conftest.err conftest.$ac_objext \
6235    conftest$ac_exeext conftest.$ac_ext
6236fi
6237
6238
6239		CFLAGS="$xorg_testset_save_CFLAGS"
6240
6241		eval supported=\$$cacheid
6242		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6243$as_echo "$supported" >&6; }
6244		if test "$supported" = "yes" ; then
6245			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6246			found="yes"
6247		fi
6248	fi
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264xorg_testset_save_CFLAGS="$CFLAGS"
6265
6266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6271  $as_echo_n "(cached) " >&6
6272else
6273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274/* end confdefs.h.  */
6275int i;
6276_ACEOF
6277if ac_fn_c_try_compile "$LINENO"; then :
6278  xorg_cv_cc_flag_unknown_warning_option=yes
6279else
6280  xorg_cv_cc_flag_unknown_warning_option=no
6281fi
6282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283fi
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6287	CFLAGS="$xorg_testset_save_CFLAGS"
6288fi
6289
6290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6293	fi
6294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301/* end confdefs.h.  */
6302int i;
6303_ACEOF
6304if ac_fn_c_try_compile "$LINENO"; then :
6305  xorg_cv_cc_flag_unused_command_line_argument=yes
6306else
6307  xorg_cv_cc_flag_unused_command_line_argument=no
6308fi
6309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310fi
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6314	CFLAGS="$xorg_testset_save_CFLAGS"
6315fi
6316
6317found="no"
6318
6319	if test $found = "no" ; then
6320		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322		fi
6323
6324		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6326		fi
6327
6328		CFLAGS="$CFLAGS -Wuninitialized"
6329
6330		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6331$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6332		cacheid=xorg_cv_cc_flag__Wuninitialized
6333		if eval \${$cacheid+:} false; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337/* end confdefs.h.  */
6338int i;
6339int
6340main ()
6341{
6342
6343  ;
6344  return 0;
6345}
6346_ACEOF
6347if ac_fn_c_try_link "$LINENO"; then :
6348  eval $cacheid=yes
6349else
6350  eval $cacheid=no
6351fi
6352rm -f core conftest.err conftest.$ac_objext \
6353    conftest$ac_exeext conftest.$ac_ext
6354fi
6355
6356
6357		CFLAGS="$xorg_testset_save_CFLAGS"
6358
6359		eval supported=\$$cacheid
6360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6361$as_echo "$supported" >&6; }
6362		if test "$supported" = "yes" ; then
6363			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6364			found="yes"
6365		fi
6366	fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382xorg_testset_save_CFLAGS="$CFLAGS"
6383
6384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6389  $as_echo_n "(cached) " >&6
6390else
6391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392/* end confdefs.h.  */
6393int i;
6394_ACEOF
6395if ac_fn_c_try_compile "$LINENO"; then :
6396  xorg_cv_cc_flag_unknown_warning_option=yes
6397else
6398  xorg_cv_cc_flag_unknown_warning_option=no
6399fi
6400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401fi
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6404	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6405	CFLAGS="$xorg_testset_save_CFLAGS"
6406fi
6407
6408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6409	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6410		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6411	fi
6412	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6416  $as_echo_n "(cached) " >&6
6417else
6418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419/* end confdefs.h.  */
6420int i;
6421_ACEOF
6422if ac_fn_c_try_compile "$LINENO"; then :
6423  xorg_cv_cc_flag_unused_command_line_argument=yes
6424else
6425  xorg_cv_cc_flag_unused_command_line_argument=no
6426fi
6427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6431	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6432	CFLAGS="$xorg_testset_save_CFLAGS"
6433fi
6434
6435found="no"
6436
6437	if test $found = "no" ; then
6438		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6439			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440		fi
6441
6442		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6443			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6444		fi
6445
6446		CFLAGS="$CFLAGS -Wshadow"
6447
6448		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6449$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6450		cacheid=xorg_cv_cc_flag__Wshadow
6451		if eval \${$cacheid+:} false; then :
6452  $as_echo_n "(cached) " >&6
6453else
6454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456int i;
6457int
6458main ()
6459{
6460
6461  ;
6462  return 0;
6463}
6464_ACEOF
6465if ac_fn_c_try_link "$LINENO"; then :
6466  eval $cacheid=yes
6467else
6468  eval $cacheid=no
6469fi
6470rm -f core conftest.err conftest.$ac_objext \
6471    conftest$ac_exeext conftest.$ac_ext
6472fi
6473
6474
6475		CFLAGS="$xorg_testset_save_CFLAGS"
6476
6477		eval supported=\$$cacheid
6478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6479$as_echo "$supported" >&6; }
6480		if test "$supported" = "yes" ; then
6481			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6482			found="yes"
6483		fi
6484	fi
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500xorg_testset_save_CFLAGS="$CFLAGS"
6501
6502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6503	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h.  */
6511int i;
6512_ACEOF
6513if ac_fn_c_try_compile "$LINENO"; then :
6514  xorg_cv_cc_flag_unknown_warning_option=yes
6515else
6516  xorg_cv_cc_flag_unknown_warning_option=no
6517fi
6518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519fi
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6523	CFLAGS="$xorg_testset_save_CFLAGS"
6524fi
6525
6526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6529	fi
6530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6533if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6534  $as_echo_n "(cached) " >&6
6535else
6536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537/* end confdefs.h.  */
6538int i;
6539_ACEOF
6540if ac_fn_c_try_compile "$LINENO"; then :
6541  xorg_cv_cc_flag_unused_command_line_argument=yes
6542else
6543  xorg_cv_cc_flag_unused_command_line_argument=no
6544fi
6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546fi
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6549	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6550	CFLAGS="$xorg_testset_save_CFLAGS"
6551fi
6552
6553found="no"
6554
6555	if test $found = "no" ; then
6556		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6557			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558		fi
6559
6560		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6561			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6562		fi
6563
6564		CFLAGS="$CFLAGS -Wmissing-noreturn"
6565
6566		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6567$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6568		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6569		if eval \${$cacheid+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575int
6576main ()
6577{
6578
6579  ;
6580  return 0;
6581}
6582_ACEOF
6583if ac_fn_c_try_link "$LINENO"; then :
6584  eval $cacheid=yes
6585else
6586  eval $cacheid=no
6587fi
6588rm -f core conftest.err conftest.$ac_objext \
6589    conftest$ac_exeext conftest.$ac_ext
6590fi
6591
6592
6593		CFLAGS="$xorg_testset_save_CFLAGS"
6594
6595		eval supported=\$$cacheid
6596		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6597$as_echo "$supported" >&6; }
6598		if test "$supported" = "yes" ; then
6599			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6600			found="yes"
6601		fi
6602	fi
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618xorg_testset_save_CFLAGS="$CFLAGS"
6619
6620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629int i;
6630_ACEOF
6631if ac_fn_c_try_compile "$LINENO"; then :
6632  xorg_cv_cc_flag_unknown_warning_option=yes
6633else
6634  xorg_cv_cc_flag_unknown_warning_option=no
6635fi
6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6641	CFLAGS="$xorg_testset_save_CFLAGS"
6642fi
6643
6644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6647	fi
6648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h.  */
6656int i;
6657_ACEOF
6658if ac_fn_c_try_compile "$LINENO"; then :
6659  xorg_cv_cc_flag_unused_command_line_argument=yes
6660else
6661  xorg_cv_cc_flag_unused_command_line_argument=no
6662fi
6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664fi
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6667	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6668	CFLAGS="$xorg_testset_save_CFLAGS"
6669fi
6670
6671found="no"
6672
6673	if test $found = "no" ; then
6674		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6675			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676		fi
6677
6678		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6679			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6680		fi
6681
6682		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6683
6684		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6685$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6686		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6687		if eval \${$cacheid+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692int i;
6693int
6694main ()
6695{
6696
6697  ;
6698  return 0;
6699}
6700_ACEOF
6701if ac_fn_c_try_link "$LINENO"; then :
6702  eval $cacheid=yes
6703else
6704  eval $cacheid=no
6705fi
6706rm -f core conftest.err conftest.$ac_objext \
6707    conftest$ac_exeext conftest.$ac_ext
6708fi
6709
6710
6711		CFLAGS="$xorg_testset_save_CFLAGS"
6712
6713		eval supported=\$$cacheid
6714		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6715$as_echo "$supported" >&6; }
6716		if test "$supported" = "yes" ; then
6717			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6718			found="yes"
6719		fi
6720	fi
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736xorg_testset_save_CFLAGS="$CFLAGS"
6737
6738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6739	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6741$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6742if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6743  $as_echo_n "(cached) " >&6
6744else
6745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h.  */
6747int i;
6748_ACEOF
6749if ac_fn_c_try_compile "$LINENO"; then :
6750  xorg_cv_cc_flag_unknown_warning_option=yes
6751else
6752  xorg_cv_cc_flag_unknown_warning_option=no
6753fi
6754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755fi
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6757$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6759	CFLAGS="$xorg_testset_save_CFLAGS"
6760fi
6761
6762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6765	fi
6766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6768$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6769if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6770  $as_echo_n "(cached) " >&6
6771else
6772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773/* end confdefs.h.  */
6774int i;
6775_ACEOF
6776if ac_fn_c_try_compile "$LINENO"; then :
6777  xorg_cv_cc_flag_unused_command_line_argument=yes
6778else
6779  xorg_cv_cc_flag_unused_command_line_argument=no
6780fi
6781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782fi
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6784$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6785	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6786	CFLAGS="$xorg_testset_save_CFLAGS"
6787fi
6788
6789found="no"
6790
6791	if test $found = "no" ; then
6792		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6793			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6794		fi
6795
6796		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6797			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6798		fi
6799
6800		CFLAGS="$CFLAGS -Wredundant-decls"
6801
6802		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6803$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6804		cacheid=xorg_cv_cc_flag__Wredundant_decls
6805		if eval \${$cacheid+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809/* end confdefs.h.  */
6810int i;
6811int
6812main ()
6813{
6814
6815  ;
6816  return 0;
6817}
6818_ACEOF
6819if ac_fn_c_try_link "$LINENO"; then :
6820  eval $cacheid=yes
6821else
6822  eval $cacheid=no
6823fi
6824rm -f core conftest.err conftest.$ac_objext \
6825    conftest$ac_exeext conftest.$ac_ext
6826fi
6827
6828
6829		CFLAGS="$xorg_testset_save_CFLAGS"
6830
6831		eval supported=\$$cacheid
6832		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6833$as_echo "$supported" >&6; }
6834		if test "$supported" = "yes" ; then
6835			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6836			found="yes"
6837		fi
6838	fi
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854xorg_testset_save_CFLAGS="$CFLAGS"
6855
6856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6857	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6859$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6860if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6861  $as_echo_n "(cached) " >&6
6862else
6863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864/* end confdefs.h.  */
6865int i;
6866_ACEOF
6867if ac_fn_c_try_compile "$LINENO"; then :
6868  xorg_cv_cc_flag_unknown_warning_option=yes
6869else
6870  xorg_cv_cc_flag_unknown_warning_option=no
6871fi
6872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873fi
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6875$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6876	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6877	CFLAGS="$xorg_testset_save_CFLAGS"
6878fi
6879
6880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6881	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6882		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6883	fi
6884	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6886$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6887if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6888  $as_echo_n "(cached) " >&6
6889else
6890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891/* end confdefs.h.  */
6892int i;
6893_ACEOF
6894if ac_fn_c_try_compile "$LINENO"; then :
6895  xorg_cv_cc_flag_unused_command_line_argument=yes
6896else
6897  xorg_cv_cc_flag_unused_command_line_argument=no
6898fi
6899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900fi
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6902$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6904	CFLAGS="$xorg_testset_save_CFLAGS"
6905fi
6906
6907found="no"
6908
6909	if test $found = "no" ; then
6910		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6912		fi
6913
6914		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6916		fi
6917
6918		CFLAGS="$CFLAGS -Wlogical-op"
6919
6920		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6921$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6922		cacheid=xorg_cv_cc_flag__Wlogical_op
6923		if eval \${$cacheid+:} false; then :
6924  $as_echo_n "(cached) " >&6
6925else
6926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h.  */
6928int i;
6929int
6930main ()
6931{
6932
6933  ;
6934  return 0;
6935}
6936_ACEOF
6937if ac_fn_c_try_link "$LINENO"; then :
6938  eval $cacheid=yes
6939else
6940  eval $cacheid=no
6941fi
6942rm -f core conftest.err conftest.$ac_objext \
6943    conftest$ac_exeext conftest.$ac_ext
6944fi
6945
6946
6947		CFLAGS="$xorg_testset_save_CFLAGS"
6948
6949		eval supported=\$$cacheid
6950		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6951$as_echo "$supported" >&6; }
6952		if test "$supported" = "yes" ; then
6953			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6954			found="yes"
6955		fi
6956	fi
6957
6958
6959
6960# These are currently disabled because they are noisy.  They will be enabled
6961# in the future once the codebase is sufficiently modernized to silence
6962# them.  For now, I don't want them to drown out the other warnings.
6963# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6964# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6965# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6966
6967# Turn some warnings into errors, so we don't accidently get successful builds
6968# when there are problems that should be fixed.
6969
6970if test "x$SELECTIVE_WERROR" = "xyes" ; then
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984xorg_testset_save_CFLAGS="$CFLAGS"
6985
6986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6987	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6988	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994/* end confdefs.h.  */
6995int i;
6996_ACEOF
6997if ac_fn_c_try_compile "$LINENO"; then :
6998  xorg_cv_cc_flag_unknown_warning_option=yes
6999else
7000  xorg_cv_cc_flag_unknown_warning_option=no
7001fi
7002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003fi
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7007	CFLAGS="$xorg_testset_save_CFLAGS"
7008fi
7009
7010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7013	fi
7014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7018  $as_echo_n "(cached) " >&6
7019else
7020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021/* end confdefs.h.  */
7022int i;
7023_ACEOF
7024if ac_fn_c_try_compile "$LINENO"; then :
7025  xorg_cv_cc_flag_unused_command_line_argument=yes
7026else
7027  xorg_cv_cc_flag_unused_command_line_argument=no
7028fi
7029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030fi
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7033	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7034	CFLAGS="$xorg_testset_save_CFLAGS"
7035fi
7036
7037found="no"
7038
7039	if test $found = "no" ; then
7040		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7042		fi
7043
7044		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7046		fi
7047
7048		CFLAGS="$CFLAGS -Werror=implicit"
7049
7050		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7051$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7052		cacheid=xorg_cv_cc_flag__Werror_implicit
7053		if eval \${$cacheid+:} false; then :
7054  $as_echo_n "(cached) " >&6
7055else
7056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057/* end confdefs.h.  */
7058int i;
7059int
7060main ()
7061{
7062
7063  ;
7064  return 0;
7065}
7066_ACEOF
7067if ac_fn_c_try_link "$LINENO"; then :
7068  eval $cacheid=yes
7069else
7070  eval $cacheid=no
7071fi
7072rm -f core conftest.err conftest.$ac_objext \
7073    conftest$ac_exeext conftest.$ac_ext
7074fi
7075
7076
7077		CFLAGS="$xorg_testset_save_CFLAGS"
7078
7079		eval supported=\$$cacheid
7080		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7081$as_echo "$supported" >&6; }
7082		if test "$supported" = "yes" ; then
7083			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7084			found="yes"
7085		fi
7086	fi
7087
7088	if test $found = "no" ; then
7089		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7090			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091		fi
7092
7093		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7094			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7095		fi
7096
7097		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7098
7099		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7100$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7101		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7102		if eval \${$cacheid+:} false; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h.  */
7107int i;
7108int
7109main ()
7110{
7111
7112  ;
7113  return 0;
7114}
7115_ACEOF
7116if ac_fn_c_try_link "$LINENO"; then :
7117  eval $cacheid=yes
7118else
7119  eval $cacheid=no
7120fi
7121rm -f core conftest.err conftest.$ac_objext \
7122    conftest$ac_exeext conftest.$ac_ext
7123fi
7124
7125
7126		CFLAGS="$xorg_testset_save_CFLAGS"
7127
7128		eval supported=\$$cacheid
7129		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7130$as_echo "$supported" >&6; }
7131		if test "$supported" = "yes" ; then
7132			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7133			found="yes"
7134		fi
7135	fi
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151xorg_testset_save_CFLAGS="$CFLAGS"
7152
7153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7154	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161/* end confdefs.h.  */
7162int i;
7163_ACEOF
7164if ac_fn_c_try_compile "$LINENO"; then :
7165  xorg_cv_cc_flag_unknown_warning_option=yes
7166else
7167  xorg_cv_cc_flag_unknown_warning_option=no
7168fi
7169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170fi
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7173	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7174	CFLAGS="$xorg_testset_save_CFLAGS"
7175fi
7176
7177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7178	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7179		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7180	fi
7181	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7185  $as_echo_n "(cached) " >&6
7186else
7187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188/* end confdefs.h.  */
7189int i;
7190_ACEOF
7191if ac_fn_c_try_compile "$LINENO"; then :
7192  xorg_cv_cc_flag_unused_command_line_argument=yes
7193else
7194  xorg_cv_cc_flag_unused_command_line_argument=no
7195fi
7196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197fi
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7200	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7201	CFLAGS="$xorg_testset_save_CFLAGS"
7202fi
7203
7204found="no"
7205
7206	if test $found = "no" ; then
7207		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209		fi
7210
7211		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7213		fi
7214
7215		CFLAGS="$CFLAGS -Werror=nonnull"
7216
7217		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7218$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7219		cacheid=xorg_cv_cc_flag__Werror_nonnull
7220		if eval \${$cacheid+:} false; then :
7221  $as_echo_n "(cached) " >&6
7222else
7223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224/* end confdefs.h.  */
7225int i;
7226int
7227main ()
7228{
7229
7230  ;
7231  return 0;
7232}
7233_ACEOF
7234if ac_fn_c_try_link "$LINENO"; then :
7235  eval $cacheid=yes
7236else
7237  eval $cacheid=no
7238fi
7239rm -f core conftest.err conftest.$ac_objext \
7240    conftest$ac_exeext conftest.$ac_ext
7241fi
7242
7243
7244		CFLAGS="$xorg_testset_save_CFLAGS"
7245
7246		eval supported=\$$cacheid
7247		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7248$as_echo "$supported" >&6; }
7249		if test "$supported" = "yes" ; then
7250			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7251			found="yes"
7252		fi
7253	fi
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269xorg_testset_save_CFLAGS="$CFLAGS"
7270
7271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7272	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7276  $as_echo_n "(cached) " >&6
7277else
7278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h.  */
7280int i;
7281_ACEOF
7282if ac_fn_c_try_compile "$LINENO"; then :
7283  xorg_cv_cc_flag_unknown_warning_option=yes
7284else
7285  xorg_cv_cc_flag_unknown_warning_option=no
7286fi
7287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288fi
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7291	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7292	CFLAGS="$xorg_testset_save_CFLAGS"
7293fi
7294
7295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7296	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7297		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7298	fi
7299	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7303  $as_echo_n "(cached) " >&6
7304else
7305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h.  */
7307int i;
7308_ACEOF
7309if ac_fn_c_try_compile "$LINENO"; then :
7310  xorg_cv_cc_flag_unused_command_line_argument=yes
7311else
7312  xorg_cv_cc_flag_unused_command_line_argument=no
7313fi
7314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315fi
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7319	CFLAGS="$xorg_testset_save_CFLAGS"
7320fi
7321
7322found="no"
7323
7324	if test $found = "no" ; then
7325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327		fi
7328
7329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7331		fi
7332
7333		CFLAGS="$CFLAGS -Werror=init-self"
7334
7335		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7336$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7337		cacheid=xorg_cv_cc_flag__Werror_init_self
7338		if eval \${$cacheid+:} false; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h.  */
7343int i;
7344int
7345main ()
7346{
7347
7348  ;
7349  return 0;
7350}
7351_ACEOF
7352if ac_fn_c_try_link "$LINENO"; then :
7353  eval $cacheid=yes
7354else
7355  eval $cacheid=no
7356fi
7357rm -f core conftest.err conftest.$ac_objext \
7358    conftest$ac_exeext conftest.$ac_ext
7359fi
7360
7361
7362		CFLAGS="$xorg_testset_save_CFLAGS"
7363
7364		eval supported=\$$cacheid
7365		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7366$as_echo "$supported" >&6; }
7367		if test "$supported" = "yes" ; then
7368			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7369			found="yes"
7370		fi
7371	fi
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387xorg_testset_save_CFLAGS="$CFLAGS"
7388
7389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h.  */
7398int i;
7399_ACEOF
7400if ac_fn_c_try_compile "$LINENO"; then :
7401  xorg_cv_cc_flag_unknown_warning_option=yes
7402else
7403  xorg_cv_cc_flag_unknown_warning_option=no
7404fi
7405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7406fi
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7409	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7410	CFLAGS="$xorg_testset_save_CFLAGS"
7411fi
7412
7413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7414	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7416	fi
7417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7421  $as_echo_n "(cached) " >&6
7422else
7423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424/* end confdefs.h.  */
7425int i;
7426_ACEOF
7427if ac_fn_c_try_compile "$LINENO"; then :
7428  xorg_cv_cc_flag_unused_command_line_argument=yes
7429else
7430  xorg_cv_cc_flag_unused_command_line_argument=no
7431fi
7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433fi
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7436	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7437	CFLAGS="$xorg_testset_save_CFLAGS"
7438fi
7439
7440found="no"
7441
7442	if test $found = "no" ; then
7443		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7444			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445		fi
7446
7447		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7448			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7449		fi
7450
7451		CFLAGS="$CFLAGS -Werror=main"
7452
7453		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7454$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7455		cacheid=xorg_cv_cc_flag__Werror_main
7456		if eval \${$cacheid+:} false; then :
7457  $as_echo_n "(cached) " >&6
7458else
7459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461int i;
7462int
7463main ()
7464{
7465
7466  ;
7467  return 0;
7468}
7469_ACEOF
7470if ac_fn_c_try_link "$LINENO"; then :
7471  eval $cacheid=yes
7472else
7473  eval $cacheid=no
7474fi
7475rm -f core conftest.err conftest.$ac_objext \
7476    conftest$ac_exeext conftest.$ac_ext
7477fi
7478
7479
7480		CFLAGS="$xorg_testset_save_CFLAGS"
7481
7482		eval supported=\$$cacheid
7483		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7484$as_echo "$supported" >&6; }
7485		if test "$supported" = "yes" ; then
7486			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7487			found="yes"
7488		fi
7489	fi
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505xorg_testset_save_CFLAGS="$CFLAGS"
7506
7507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7512  $as_echo_n "(cached) " >&6
7513else
7514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515/* end confdefs.h.  */
7516int i;
7517_ACEOF
7518if ac_fn_c_try_compile "$LINENO"; then :
7519  xorg_cv_cc_flag_unknown_warning_option=yes
7520else
7521  xorg_cv_cc_flag_unknown_warning_option=no
7522fi
7523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524fi
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7527	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7528	CFLAGS="$xorg_testset_save_CFLAGS"
7529fi
7530
7531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7532	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7533		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7534	fi
7535	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7539  $as_echo_n "(cached) " >&6
7540else
7541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542/* end confdefs.h.  */
7543int i;
7544_ACEOF
7545if ac_fn_c_try_compile "$LINENO"; then :
7546  xorg_cv_cc_flag_unused_command_line_argument=yes
7547else
7548  xorg_cv_cc_flag_unused_command_line_argument=no
7549fi
7550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551fi
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7555	CFLAGS="$xorg_testset_save_CFLAGS"
7556fi
7557
7558found="no"
7559
7560	if test $found = "no" ; then
7561		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563		fi
7564
7565		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7567		fi
7568
7569		CFLAGS="$CFLAGS -Werror=missing-braces"
7570
7571		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7572$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7573		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7574		if eval \${$cacheid+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h.  */
7579int i;
7580int
7581main ()
7582{
7583
7584  ;
7585  return 0;
7586}
7587_ACEOF
7588if ac_fn_c_try_link "$LINENO"; then :
7589  eval $cacheid=yes
7590else
7591  eval $cacheid=no
7592fi
7593rm -f core conftest.err conftest.$ac_objext \
7594    conftest$ac_exeext conftest.$ac_ext
7595fi
7596
7597
7598		CFLAGS="$xorg_testset_save_CFLAGS"
7599
7600		eval supported=\$$cacheid
7601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7602$as_echo "$supported" >&6; }
7603		if test "$supported" = "yes" ; then
7604			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7605			found="yes"
7606		fi
7607	fi
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623xorg_testset_save_CFLAGS="$CFLAGS"
7624
7625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7630  $as_echo_n "(cached) " >&6
7631else
7632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633/* end confdefs.h.  */
7634int i;
7635_ACEOF
7636if ac_fn_c_try_compile "$LINENO"; then :
7637  xorg_cv_cc_flag_unknown_warning_option=yes
7638else
7639  xorg_cv_cc_flag_unknown_warning_option=no
7640fi
7641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642fi
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7646	CFLAGS="$xorg_testset_save_CFLAGS"
7647fi
7648
7649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7652	fi
7653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7657  $as_echo_n "(cached) " >&6
7658else
7659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660/* end confdefs.h.  */
7661int i;
7662_ACEOF
7663if ac_fn_c_try_compile "$LINENO"; then :
7664  xorg_cv_cc_flag_unused_command_line_argument=yes
7665else
7666  xorg_cv_cc_flag_unused_command_line_argument=no
7667fi
7668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669fi
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7673	CFLAGS="$xorg_testset_save_CFLAGS"
7674fi
7675
7676found="no"
7677
7678	if test $found = "no" ; then
7679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7681		fi
7682
7683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7685		fi
7686
7687		CFLAGS="$CFLAGS -Werror=sequence-point"
7688
7689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7690$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7691		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7692		if eval \${$cacheid+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697int i;
7698int
7699main ()
7700{
7701
7702  ;
7703  return 0;
7704}
7705_ACEOF
7706if ac_fn_c_try_link "$LINENO"; then :
7707  eval $cacheid=yes
7708else
7709  eval $cacheid=no
7710fi
7711rm -f core conftest.err conftest.$ac_objext \
7712    conftest$ac_exeext conftest.$ac_ext
7713fi
7714
7715
7716		CFLAGS="$xorg_testset_save_CFLAGS"
7717
7718		eval supported=\$$cacheid
7719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7720$as_echo "$supported" >&6; }
7721		if test "$supported" = "yes" ; then
7722			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7723			found="yes"
7724		fi
7725	fi
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741xorg_testset_save_CFLAGS="$CFLAGS"
7742
7743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7748  $as_echo_n "(cached) " >&6
7749else
7750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752int i;
7753_ACEOF
7754if ac_fn_c_try_compile "$LINENO"; then :
7755  xorg_cv_cc_flag_unknown_warning_option=yes
7756else
7757  xorg_cv_cc_flag_unknown_warning_option=no
7758fi
7759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7760fi
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7764	CFLAGS="$xorg_testset_save_CFLAGS"
7765fi
7766
7767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7770	fi
7771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7775  $as_echo_n "(cached) " >&6
7776else
7777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778/* end confdefs.h.  */
7779int i;
7780_ACEOF
7781if ac_fn_c_try_compile "$LINENO"; then :
7782  xorg_cv_cc_flag_unused_command_line_argument=yes
7783else
7784  xorg_cv_cc_flag_unused_command_line_argument=no
7785fi
7786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7791	CFLAGS="$xorg_testset_save_CFLAGS"
7792fi
7793
7794found="no"
7795
7796	if test $found = "no" ; then
7797		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799		fi
7800
7801		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7803		fi
7804
7805		CFLAGS="$CFLAGS -Werror=return-type"
7806
7807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7808$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7809		cacheid=xorg_cv_cc_flag__Werror_return_type
7810		if eval \${$cacheid+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h.  */
7815int i;
7816int
7817main ()
7818{
7819
7820  ;
7821  return 0;
7822}
7823_ACEOF
7824if ac_fn_c_try_link "$LINENO"; then :
7825  eval $cacheid=yes
7826else
7827  eval $cacheid=no
7828fi
7829rm -f core conftest.err conftest.$ac_objext \
7830    conftest$ac_exeext conftest.$ac_ext
7831fi
7832
7833
7834		CFLAGS="$xorg_testset_save_CFLAGS"
7835
7836		eval supported=\$$cacheid
7837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7838$as_echo "$supported" >&6; }
7839		if test "$supported" = "yes" ; then
7840			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7841			found="yes"
7842		fi
7843	fi
7844
7845	if test $found = "no" ; then
7846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7848		fi
7849
7850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7852		fi
7853
7854		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7855
7856		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7857$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7858		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7859		if eval \${$cacheid+:} false; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863/* end confdefs.h.  */
7864int i;
7865int
7866main ()
7867{
7868
7869  ;
7870  return 0;
7871}
7872_ACEOF
7873if ac_fn_c_try_link "$LINENO"; then :
7874  eval $cacheid=yes
7875else
7876  eval $cacheid=no
7877fi
7878rm -f core conftest.err conftest.$ac_objext \
7879    conftest$ac_exeext conftest.$ac_ext
7880fi
7881
7882
7883		CFLAGS="$xorg_testset_save_CFLAGS"
7884
7885		eval supported=\$$cacheid
7886		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7887$as_echo "$supported" >&6; }
7888		if test "$supported" = "yes" ; then
7889			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7890			found="yes"
7891		fi
7892	fi
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908xorg_testset_save_CFLAGS="$CFLAGS"
7909
7910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7911	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7913$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7914if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7915  $as_echo_n "(cached) " >&6
7916else
7917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918/* end confdefs.h.  */
7919int i;
7920_ACEOF
7921if ac_fn_c_try_compile "$LINENO"; then :
7922  xorg_cv_cc_flag_unknown_warning_option=yes
7923else
7924  xorg_cv_cc_flag_unknown_warning_option=no
7925fi
7926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927fi
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7929$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7930	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7931	CFLAGS="$xorg_testset_save_CFLAGS"
7932fi
7933
7934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7935	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7936		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7937	fi
7938	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7940$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7941if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7942  $as_echo_n "(cached) " >&6
7943else
7944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h.  */
7946int i;
7947_ACEOF
7948if ac_fn_c_try_compile "$LINENO"; then :
7949  xorg_cv_cc_flag_unused_command_line_argument=yes
7950else
7951  xorg_cv_cc_flag_unused_command_line_argument=no
7952fi
7953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954fi
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7956$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7957	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7958	CFLAGS="$xorg_testset_save_CFLAGS"
7959fi
7960
7961found="no"
7962
7963	if test $found = "no" ; then
7964		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966		fi
7967
7968		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7970		fi
7971
7972		CFLAGS="$CFLAGS -Werror=trigraphs"
7973
7974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7975$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7976		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7977		if eval \${$cacheid+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981/* end confdefs.h.  */
7982int i;
7983int
7984main ()
7985{
7986
7987  ;
7988  return 0;
7989}
7990_ACEOF
7991if ac_fn_c_try_link "$LINENO"; then :
7992  eval $cacheid=yes
7993else
7994  eval $cacheid=no
7995fi
7996rm -f core conftest.err conftest.$ac_objext \
7997    conftest$ac_exeext conftest.$ac_ext
7998fi
7999
8000
8001		CFLAGS="$xorg_testset_save_CFLAGS"
8002
8003		eval supported=\$$cacheid
8004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8005$as_echo "$supported" >&6; }
8006		if test "$supported" = "yes" ; then
8007			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8008			found="yes"
8009		fi
8010	fi
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026xorg_testset_save_CFLAGS="$CFLAGS"
8027
8028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8031$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8032if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8033  $as_echo_n "(cached) " >&6
8034else
8035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036/* end confdefs.h.  */
8037int i;
8038_ACEOF
8039if ac_fn_c_try_compile "$LINENO"; then :
8040  xorg_cv_cc_flag_unknown_warning_option=yes
8041else
8042  xorg_cv_cc_flag_unknown_warning_option=no
8043fi
8044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045fi
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8047$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8048	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8049	CFLAGS="$xorg_testset_save_CFLAGS"
8050fi
8051
8052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8053	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8054		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8055	fi
8056	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8058$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8059if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8060  $as_echo_n "(cached) " >&6
8061else
8062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h.  */
8064int i;
8065_ACEOF
8066if ac_fn_c_try_compile "$LINENO"; then :
8067  xorg_cv_cc_flag_unused_command_line_argument=yes
8068else
8069  xorg_cv_cc_flag_unused_command_line_argument=no
8070fi
8071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072fi
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8074$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8076	CFLAGS="$xorg_testset_save_CFLAGS"
8077fi
8078
8079found="no"
8080
8081	if test $found = "no" ; then
8082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084		fi
8085
8086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8088		fi
8089
8090		CFLAGS="$CFLAGS -Werror=array-bounds"
8091
8092		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8093$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8094		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8095		if eval \${$cacheid+:} false; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h.  */
8100int i;
8101int
8102main ()
8103{
8104
8105  ;
8106  return 0;
8107}
8108_ACEOF
8109if ac_fn_c_try_link "$LINENO"; then :
8110  eval $cacheid=yes
8111else
8112  eval $cacheid=no
8113fi
8114rm -f core conftest.err conftest.$ac_objext \
8115    conftest$ac_exeext conftest.$ac_ext
8116fi
8117
8118
8119		CFLAGS="$xorg_testset_save_CFLAGS"
8120
8121		eval supported=\$$cacheid
8122		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8123$as_echo "$supported" >&6; }
8124		if test "$supported" = "yes" ; then
8125			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8126			found="yes"
8127		fi
8128	fi
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144xorg_testset_save_CFLAGS="$CFLAGS"
8145
8146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8151  $as_echo_n "(cached) " >&6
8152else
8153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154/* end confdefs.h.  */
8155int i;
8156_ACEOF
8157if ac_fn_c_try_compile "$LINENO"; then :
8158  xorg_cv_cc_flag_unknown_warning_option=yes
8159else
8160  xorg_cv_cc_flag_unknown_warning_option=no
8161fi
8162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163fi
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8167	CFLAGS="$xorg_testset_save_CFLAGS"
8168fi
8169
8170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8173	fi
8174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181/* end confdefs.h.  */
8182int i;
8183_ACEOF
8184if ac_fn_c_try_compile "$LINENO"; then :
8185  xorg_cv_cc_flag_unused_command_line_argument=yes
8186else
8187  xorg_cv_cc_flag_unused_command_line_argument=no
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8194	CFLAGS="$xorg_testset_save_CFLAGS"
8195fi
8196
8197found="no"
8198
8199	if test $found = "no" ; then
8200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202		fi
8203
8204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8206		fi
8207
8208		CFLAGS="$CFLAGS -Werror=write-strings"
8209
8210		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8211$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8212		cacheid=xorg_cv_cc_flag__Werror_write_strings
8213		if eval \${$cacheid+:} false; then :
8214  $as_echo_n "(cached) " >&6
8215else
8216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h.  */
8218int i;
8219int
8220main ()
8221{
8222
8223  ;
8224  return 0;
8225}
8226_ACEOF
8227if ac_fn_c_try_link "$LINENO"; then :
8228  eval $cacheid=yes
8229else
8230  eval $cacheid=no
8231fi
8232rm -f core conftest.err conftest.$ac_objext \
8233    conftest$ac_exeext conftest.$ac_ext
8234fi
8235
8236
8237		CFLAGS="$xorg_testset_save_CFLAGS"
8238
8239		eval supported=\$$cacheid
8240		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8241$as_echo "$supported" >&6; }
8242		if test "$supported" = "yes" ; then
8243			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8244			found="yes"
8245		fi
8246	fi
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262xorg_testset_save_CFLAGS="$CFLAGS"
8263
8264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8269  $as_echo_n "(cached) " >&6
8270else
8271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273int i;
8274_ACEOF
8275if ac_fn_c_try_compile "$LINENO"; then :
8276  xorg_cv_cc_flag_unknown_warning_option=yes
8277else
8278  xorg_cv_cc_flag_unknown_warning_option=no
8279fi
8280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281fi
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8284	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8285	CFLAGS="$xorg_testset_save_CFLAGS"
8286fi
8287
8288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8289	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8290		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8291	fi
8292	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8296  $as_echo_n "(cached) " >&6
8297else
8298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299/* end confdefs.h.  */
8300int i;
8301_ACEOF
8302if ac_fn_c_try_compile "$LINENO"; then :
8303  xorg_cv_cc_flag_unused_command_line_argument=yes
8304else
8305  xorg_cv_cc_flag_unused_command_line_argument=no
8306fi
8307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308fi
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8311	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8312	CFLAGS="$xorg_testset_save_CFLAGS"
8313fi
8314
8315found="no"
8316
8317	if test $found = "no" ; then
8318		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8319			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320		fi
8321
8322		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8323			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8324		fi
8325
8326		CFLAGS="$CFLAGS -Werror=address"
8327
8328		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8329$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8330		cacheid=xorg_cv_cc_flag__Werror_address
8331		if eval \${$cacheid+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h.  */
8336int i;
8337int
8338main ()
8339{
8340
8341  ;
8342  return 0;
8343}
8344_ACEOF
8345if ac_fn_c_try_link "$LINENO"; then :
8346  eval $cacheid=yes
8347else
8348  eval $cacheid=no
8349fi
8350rm -f core conftest.err conftest.$ac_objext \
8351    conftest$ac_exeext conftest.$ac_ext
8352fi
8353
8354
8355		CFLAGS="$xorg_testset_save_CFLAGS"
8356
8357		eval supported=\$$cacheid
8358		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8359$as_echo "$supported" >&6; }
8360		if test "$supported" = "yes" ; then
8361			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8362			found="yes"
8363		fi
8364	fi
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380xorg_testset_save_CFLAGS="$CFLAGS"
8381
8382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8383	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8387  $as_echo_n "(cached) " >&6
8388else
8389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390/* end confdefs.h.  */
8391int i;
8392_ACEOF
8393if ac_fn_c_try_compile "$LINENO"; then :
8394  xorg_cv_cc_flag_unknown_warning_option=yes
8395else
8396  xorg_cv_cc_flag_unknown_warning_option=no
8397fi
8398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399fi
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8403	CFLAGS="$xorg_testset_save_CFLAGS"
8404fi
8405
8406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8409	fi
8410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8414  $as_echo_n "(cached) " >&6
8415else
8416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417/* end confdefs.h.  */
8418int i;
8419_ACEOF
8420if ac_fn_c_try_compile "$LINENO"; then :
8421  xorg_cv_cc_flag_unused_command_line_argument=yes
8422else
8423  xorg_cv_cc_flag_unused_command_line_argument=no
8424fi
8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426fi
8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8429	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8430	CFLAGS="$xorg_testset_save_CFLAGS"
8431fi
8432
8433found="no"
8434
8435	if test $found = "no" ; then
8436		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8438		fi
8439
8440		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8442		fi
8443
8444		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8445
8446		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8447$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8448		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8449		if eval \${$cacheid+:} false; then :
8450  $as_echo_n "(cached) " >&6
8451else
8452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h.  */
8454int i;
8455int
8456main ()
8457{
8458
8459  ;
8460  return 0;
8461}
8462_ACEOF
8463if ac_fn_c_try_link "$LINENO"; then :
8464  eval $cacheid=yes
8465else
8466  eval $cacheid=no
8467fi
8468rm -f core conftest.err conftest.$ac_objext \
8469    conftest$ac_exeext conftest.$ac_ext
8470fi
8471
8472
8473		CFLAGS="$xorg_testset_save_CFLAGS"
8474
8475		eval supported=\$$cacheid
8476		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8477$as_echo "$supported" >&6; }
8478		if test "$supported" = "yes" ; then
8479			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8480			found="yes"
8481		fi
8482	fi
8483
8484	if test $found = "no" ; then
8485		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8486			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8487		fi
8488
8489		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8490			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8491		fi
8492
8493		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8494
8495		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8496$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8497		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8498		if eval \${$cacheid+:} false; then :
8499  $as_echo_n "(cached) " >&6
8500else
8501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502/* end confdefs.h.  */
8503int i;
8504int
8505main ()
8506{
8507
8508  ;
8509  return 0;
8510}
8511_ACEOF
8512if ac_fn_c_try_link "$LINENO"; then :
8513  eval $cacheid=yes
8514else
8515  eval $cacheid=no
8516fi
8517rm -f core conftest.err conftest.$ac_objext \
8518    conftest$ac_exeext conftest.$ac_ext
8519fi
8520
8521
8522		CFLAGS="$xorg_testset_save_CFLAGS"
8523
8524		eval supported=\$$cacheid
8525		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8526$as_echo "$supported" >&6; }
8527		if test "$supported" = "yes" ; then
8528			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8529			found="yes"
8530		fi
8531	fi
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547xorg_testset_save_CFLAGS="$CFLAGS"
8548
8549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8550	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8551	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8552$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8553if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8554  $as_echo_n "(cached) " >&6
8555else
8556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557/* end confdefs.h.  */
8558int i;
8559_ACEOF
8560if ac_fn_c_try_compile "$LINENO"; then :
8561  xorg_cv_cc_flag_unknown_warning_option=yes
8562else
8563  xorg_cv_cc_flag_unknown_warning_option=no
8564fi
8565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8566fi
8567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8568$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8569	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8570	CFLAGS="$xorg_testset_save_CFLAGS"
8571fi
8572
8573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8574	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8575		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8576	fi
8577	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8579$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8580if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8581  $as_echo_n "(cached) " >&6
8582else
8583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584/* end confdefs.h.  */
8585int i;
8586_ACEOF
8587if ac_fn_c_try_compile "$LINENO"; then :
8588  xorg_cv_cc_flag_unused_command_line_argument=yes
8589else
8590  xorg_cv_cc_flag_unused_command_line_argument=no
8591fi
8592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593fi
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8595$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8596	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8597	CFLAGS="$xorg_testset_save_CFLAGS"
8598fi
8599
8600found="no"
8601
8602	if test $found = "no" ; then
8603		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8604			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8605		fi
8606
8607		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8608			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8609		fi
8610
8611		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8612
8613		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8614$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8615		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8616		if eval \${$cacheid+:} false; then :
8617  $as_echo_n "(cached) " >&6
8618else
8619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620/* end confdefs.h.  */
8621int i;
8622int
8623main ()
8624{
8625
8626  ;
8627  return 0;
8628}
8629_ACEOF
8630if ac_fn_c_try_link "$LINENO"; then :
8631  eval $cacheid=yes
8632else
8633  eval $cacheid=no
8634fi
8635rm -f core conftest.err conftest.$ac_objext \
8636    conftest$ac_exeext conftest.$ac_ext
8637fi
8638
8639
8640		CFLAGS="$xorg_testset_save_CFLAGS"
8641
8642		eval supported=\$$cacheid
8643		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8644$as_echo "$supported" >&6; }
8645		if test "$supported" = "yes" ; then
8646			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8647			found="yes"
8648		fi
8649	fi
8650
8651 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8652else
8653{ $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
8654$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;}
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668xorg_testset_save_CFLAGS="$CFLAGS"
8669
8670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8673$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8674if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8675  $as_echo_n "(cached) " >&6
8676else
8677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678/* end confdefs.h.  */
8679int i;
8680_ACEOF
8681if ac_fn_c_try_compile "$LINENO"; then :
8682  xorg_cv_cc_flag_unknown_warning_option=yes
8683else
8684  xorg_cv_cc_flag_unknown_warning_option=no
8685fi
8686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687fi
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8689$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8690	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8691	CFLAGS="$xorg_testset_save_CFLAGS"
8692fi
8693
8694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8695	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8697	fi
8698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8700$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8701if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8702  $as_echo_n "(cached) " >&6
8703else
8704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h.  */
8706int i;
8707_ACEOF
8708if ac_fn_c_try_compile "$LINENO"; then :
8709  xorg_cv_cc_flag_unused_command_line_argument=yes
8710else
8711  xorg_cv_cc_flag_unused_command_line_argument=no
8712fi
8713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714fi
8715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8716$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8718	CFLAGS="$xorg_testset_save_CFLAGS"
8719fi
8720
8721found="no"
8722
8723	if test $found = "no" ; then
8724		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726		fi
8727
8728		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8730		fi
8731
8732		CFLAGS="$CFLAGS -Wimplicit"
8733
8734		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8735$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8736		cacheid=xorg_cv_cc_flag__Wimplicit
8737		if eval \${$cacheid+:} false; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h.  */
8742int i;
8743int
8744main ()
8745{
8746
8747  ;
8748  return 0;
8749}
8750_ACEOF
8751if ac_fn_c_try_link "$LINENO"; then :
8752  eval $cacheid=yes
8753else
8754  eval $cacheid=no
8755fi
8756rm -f core conftest.err conftest.$ac_objext \
8757    conftest$ac_exeext conftest.$ac_ext
8758fi
8759
8760
8761		CFLAGS="$xorg_testset_save_CFLAGS"
8762
8763		eval supported=\$$cacheid
8764		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8765$as_echo "$supported" >&6; }
8766		if test "$supported" = "yes" ; then
8767			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8768			found="yes"
8769		fi
8770	fi
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786xorg_testset_save_CFLAGS="$CFLAGS"
8787
8788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8793  $as_echo_n "(cached) " >&6
8794else
8795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796/* end confdefs.h.  */
8797int i;
8798_ACEOF
8799if ac_fn_c_try_compile "$LINENO"; then :
8800  xorg_cv_cc_flag_unknown_warning_option=yes
8801else
8802  xorg_cv_cc_flag_unknown_warning_option=no
8803fi
8804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805fi
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8809	CFLAGS="$xorg_testset_save_CFLAGS"
8810fi
8811
8812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8815	fi
8816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8820  $as_echo_n "(cached) " >&6
8821else
8822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823/* end confdefs.h.  */
8824int i;
8825_ACEOF
8826if ac_fn_c_try_compile "$LINENO"; then :
8827  xorg_cv_cc_flag_unused_command_line_argument=yes
8828else
8829  xorg_cv_cc_flag_unused_command_line_argument=no
8830fi
8831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832fi
8833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8836	CFLAGS="$xorg_testset_save_CFLAGS"
8837fi
8838
8839found="no"
8840
8841	if test $found = "no" ; then
8842		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844		fi
8845
8846		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8848		fi
8849
8850		CFLAGS="$CFLAGS -Wnonnull"
8851
8852		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8853$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8854		cacheid=xorg_cv_cc_flag__Wnonnull
8855		if eval \${$cacheid+:} false; then :
8856  $as_echo_n "(cached) " >&6
8857else
8858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859/* end confdefs.h.  */
8860int i;
8861int
8862main ()
8863{
8864
8865  ;
8866  return 0;
8867}
8868_ACEOF
8869if ac_fn_c_try_link "$LINENO"; then :
8870  eval $cacheid=yes
8871else
8872  eval $cacheid=no
8873fi
8874rm -f core conftest.err conftest.$ac_objext \
8875    conftest$ac_exeext conftest.$ac_ext
8876fi
8877
8878
8879		CFLAGS="$xorg_testset_save_CFLAGS"
8880
8881		eval supported=\$$cacheid
8882		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8883$as_echo "$supported" >&6; }
8884		if test "$supported" = "yes" ; then
8885			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8886			found="yes"
8887		fi
8888	fi
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904xorg_testset_save_CFLAGS="$CFLAGS"
8905
8906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8907	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8911  $as_echo_n "(cached) " >&6
8912else
8913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h.  */
8915int i;
8916_ACEOF
8917if ac_fn_c_try_compile "$LINENO"; then :
8918  xorg_cv_cc_flag_unknown_warning_option=yes
8919else
8920  xorg_cv_cc_flag_unknown_warning_option=no
8921fi
8922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8923fi
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8927	CFLAGS="$xorg_testset_save_CFLAGS"
8928fi
8929
8930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8933	fi
8934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8938  $as_echo_n "(cached) " >&6
8939else
8940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h.  */
8942int i;
8943_ACEOF
8944if ac_fn_c_try_compile "$LINENO"; then :
8945  xorg_cv_cc_flag_unused_command_line_argument=yes
8946else
8947  xorg_cv_cc_flag_unused_command_line_argument=no
8948fi
8949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950fi
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8953	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8954	CFLAGS="$xorg_testset_save_CFLAGS"
8955fi
8956
8957found="no"
8958
8959	if test $found = "no" ; then
8960		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962		fi
8963
8964		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8966		fi
8967
8968		CFLAGS="$CFLAGS -Winit-self"
8969
8970		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8971$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8972		cacheid=xorg_cv_cc_flag__Winit_self
8973		if eval \${$cacheid+:} false; then :
8974  $as_echo_n "(cached) " >&6
8975else
8976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979int
8980main ()
8981{
8982
8983  ;
8984  return 0;
8985}
8986_ACEOF
8987if ac_fn_c_try_link "$LINENO"; then :
8988  eval $cacheid=yes
8989else
8990  eval $cacheid=no
8991fi
8992rm -f core conftest.err conftest.$ac_objext \
8993    conftest$ac_exeext conftest.$ac_ext
8994fi
8995
8996
8997		CFLAGS="$xorg_testset_save_CFLAGS"
8998
8999		eval supported=\$$cacheid
9000		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9001$as_echo "$supported" >&6; }
9002		if test "$supported" = "yes" ; then
9003			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9004			found="yes"
9005		fi
9006	fi
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022xorg_testset_save_CFLAGS="$CFLAGS"
9023
9024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9029  $as_echo_n "(cached) " >&6
9030else
9031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032/* end confdefs.h.  */
9033int i;
9034_ACEOF
9035if ac_fn_c_try_compile "$LINENO"; then :
9036  xorg_cv_cc_flag_unknown_warning_option=yes
9037else
9038  xorg_cv_cc_flag_unknown_warning_option=no
9039fi
9040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041fi
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9045	CFLAGS="$xorg_testset_save_CFLAGS"
9046fi
9047
9048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9051	fi
9052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9056  $as_echo_n "(cached) " >&6
9057else
9058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h.  */
9060int i;
9061_ACEOF
9062if ac_fn_c_try_compile "$LINENO"; then :
9063  xorg_cv_cc_flag_unused_command_line_argument=yes
9064else
9065  xorg_cv_cc_flag_unused_command_line_argument=no
9066fi
9067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068fi
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9071	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9072	CFLAGS="$xorg_testset_save_CFLAGS"
9073fi
9074
9075found="no"
9076
9077	if test $found = "no" ; then
9078		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9079			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080		fi
9081
9082		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9083			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9084		fi
9085
9086		CFLAGS="$CFLAGS -Wmain"
9087
9088		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9089$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9090		cacheid=xorg_cv_cc_flag__Wmain
9091		if eval \${$cacheid+:} false; then :
9092  $as_echo_n "(cached) " >&6
9093else
9094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095/* end confdefs.h.  */
9096int i;
9097int
9098main ()
9099{
9100
9101  ;
9102  return 0;
9103}
9104_ACEOF
9105if ac_fn_c_try_link "$LINENO"; then :
9106  eval $cacheid=yes
9107else
9108  eval $cacheid=no
9109fi
9110rm -f core conftest.err conftest.$ac_objext \
9111    conftest$ac_exeext conftest.$ac_ext
9112fi
9113
9114
9115		CFLAGS="$xorg_testset_save_CFLAGS"
9116
9117		eval supported=\$$cacheid
9118		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9119$as_echo "$supported" >&6; }
9120		if test "$supported" = "yes" ; then
9121			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9122			found="yes"
9123		fi
9124	fi
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140xorg_testset_save_CFLAGS="$CFLAGS"
9141
9142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9145$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9146if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9147  $as_echo_n "(cached) " >&6
9148else
9149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150/* end confdefs.h.  */
9151int i;
9152_ACEOF
9153if ac_fn_c_try_compile "$LINENO"; then :
9154  xorg_cv_cc_flag_unknown_warning_option=yes
9155else
9156  xorg_cv_cc_flag_unknown_warning_option=no
9157fi
9158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9159fi
9160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9161$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9163	CFLAGS="$xorg_testset_save_CFLAGS"
9164fi
9165
9166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9169	fi
9170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9172$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9173if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9174  $as_echo_n "(cached) " >&6
9175else
9176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177/* end confdefs.h.  */
9178int i;
9179_ACEOF
9180if ac_fn_c_try_compile "$LINENO"; then :
9181  xorg_cv_cc_flag_unused_command_line_argument=yes
9182else
9183  xorg_cv_cc_flag_unused_command_line_argument=no
9184fi
9185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186fi
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9188$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9189	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9190	CFLAGS="$xorg_testset_save_CFLAGS"
9191fi
9192
9193found="no"
9194
9195	if test $found = "no" ; then
9196		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198		fi
9199
9200		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9202		fi
9203
9204		CFLAGS="$CFLAGS -Wmissing-braces"
9205
9206		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9207$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9208		cacheid=xorg_cv_cc_flag__Wmissing_braces
9209		if eval \${$cacheid+:} false; then :
9210  $as_echo_n "(cached) " >&6
9211else
9212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213/* end confdefs.h.  */
9214int i;
9215int
9216main ()
9217{
9218
9219  ;
9220  return 0;
9221}
9222_ACEOF
9223if ac_fn_c_try_link "$LINENO"; then :
9224  eval $cacheid=yes
9225else
9226  eval $cacheid=no
9227fi
9228rm -f core conftest.err conftest.$ac_objext \
9229    conftest$ac_exeext conftest.$ac_ext
9230fi
9231
9232
9233		CFLAGS="$xorg_testset_save_CFLAGS"
9234
9235		eval supported=\$$cacheid
9236		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9237$as_echo "$supported" >&6; }
9238		if test "$supported" = "yes" ; then
9239			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9240			found="yes"
9241		fi
9242	fi
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258xorg_testset_save_CFLAGS="$CFLAGS"
9259
9260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9261	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9263$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9264if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9265  $as_echo_n "(cached) " >&6
9266else
9267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268/* end confdefs.h.  */
9269int i;
9270_ACEOF
9271if ac_fn_c_try_compile "$LINENO"; then :
9272  xorg_cv_cc_flag_unknown_warning_option=yes
9273else
9274  xorg_cv_cc_flag_unknown_warning_option=no
9275fi
9276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277fi
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9279$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9280	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9281	CFLAGS="$xorg_testset_save_CFLAGS"
9282fi
9283
9284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9285	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9286		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9287	fi
9288	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9290$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9291if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9292  $as_echo_n "(cached) " >&6
9293else
9294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295/* end confdefs.h.  */
9296int i;
9297_ACEOF
9298if ac_fn_c_try_compile "$LINENO"; then :
9299  xorg_cv_cc_flag_unused_command_line_argument=yes
9300else
9301  xorg_cv_cc_flag_unused_command_line_argument=no
9302fi
9303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304fi
9305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9306$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9307	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9308	CFLAGS="$xorg_testset_save_CFLAGS"
9309fi
9310
9311found="no"
9312
9313	if test $found = "no" ; then
9314		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9315			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316		fi
9317
9318		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9319			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9320		fi
9321
9322		CFLAGS="$CFLAGS -Wsequence-point"
9323
9324		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9325$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9326		cacheid=xorg_cv_cc_flag__Wsequence_point
9327		if eval \${$cacheid+:} false; then :
9328  $as_echo_n "(cached) " >&6
9329else
9330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h.  */
9332int i;
9333int
9334main ()
9335{
9336
9337  ;
9338  return 0;
9339}
9340_ACEOF
9341if ac_fn_c_try_link "$LINENO"; then :
9342  eval $cacheid=yes
9343else
9344  eval $cacheid=no
9345fi
9346rm -f core conftest.err conftest.$ac_objext \
9347    conftest$ac_exeext conftest.$ac_ext
9348fi
9349
9350
9351		CFLAGS="$xorg_testset_save_CFLAGS"
9352
9353		eval supported=\$$cacheid
9354		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9355$as_echo "$supported" >&6; }
9356		if test "$supported" = "yes" ; then
9357			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9358			found="yes"
9359		fi
9360	fi
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376xorg_testset_save_CFLAGS="$CFLAGS"
9377
9378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9383  $as_echo_n "(cached) " >&6
9384else
9385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386/* end confdefs.h.  */
9387int i;
9388_ACEOF
9389if ac_fn_c_try_compile "$LINENO"; then :
9390  xorg_cv_cc_flag_unknown_warning_option=yes
9391else
9392  xorg_cv_cc_flag_unknown_warning_option=no
9393fi
9394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395fi
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9398	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9399	CFLAGS="$xorg_testset_save_CFLAGS"
9400fi
9401
9402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9403	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9404		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9405	fi
9406	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9410  $as_echo_n "(cached) " >&6
9411else
9412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413/* end confdefs.h.  */
9414int i;
9415_ACEOF
9416if ac_fn_c_try_compile "$LINENO"; then :
9417  xorg_cv_cc_flag_unused_command_line_argument=yes
9418else
9419  xorg_cv_cc_flag_unused_command_line_argument=no
9420fi
9421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9422fi
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9425	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9426	CFLAGS="$xorg_testset_save_CFLAGS"
9427fi
9428
9429found="no"
9430
9431	if test $found = "no" ; then
9432		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434		fi
9435
9436		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9438		fi
9439
9440		CFLAGS="$CFLAGS -Wreturn-type"
9441
9442		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9443$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9444		cacheid=xorg_cv_cc_flag__Wreturn_type
9445		if eval \${$cacheid+:} false; then :
9446  $as_echo_n "(cached) " >&6
9447else
9448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449/* end confdefs.h.  */
9450int i;
9451int
9452main ()
9453{
9454
9455  ;
9456  return 0;
9457}
9458_ACEOF
9459if ac_fn_c_try_link "$LINENO"; then :
9460  eval $cacheid=yes
9461else
9462  eval $cacheid=no
9463fi
9464rm -f core conftest.err conftest.$ac_objext \
9465    conftest$ac_exeext conftest.$ac_ext
9466fi
9467
9468
9469		CFLAGS="$xorg_testset_save_CFLAGS"
9470
9471		eval supported=\$$cacheid
9472		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9473$as_echo "$supported" >&6; }
9474		if test "$supported" = "yes" ; then
9475			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9476			found="yes"
9477		fi
9478	fi
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494xorg_testset_save_CFLAGS="$CFLAGS"
9495
9496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9497	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9501  $as_echo_n "(cached) " >&6
9502else
9503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h.  */
9505int i;
9506_ACEOF
9507if ac_fn_c_try_compile "$LINENO"; then :
9508  xorg_cv_cc_flag_unknown_warning_option=yes
9509else
9510  xorg_cv_cc_flag_unknown_warning_option=no
9511fi
9512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513fi
9514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9517	CFLAGS="$xorg_testset_save_CFLAGS"
9518fi
9519
9520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9523	fi
9524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9528  $as_echo_n "(cached) " >&6
9529else
9530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531/* end confdefs.h.  */
9532int i;
9533_ACEOF
9534if ac_fn_c_try_compile "$LINENO"; then :
9535  xorg_cv_cc_flag_unused_command_line_argument=yes
9536else
9537  xorg_cv_cc_flag_unused_command_line_argument=no
9538fi
9539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9540fi
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9543	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9544	CFLAGS="$xorg_testset_save_CFLAGS"
9545fi
9546
9547found="no"
9548
9549	if test $found = "no" ; then
9550		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552		fi
9553
9554		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9556		fi
9557
9558		CFLAGS="$CFLAGS -Wtrigraphs"
9559
9560		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9561$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9562		cacheid=xorg_cv_cc_flag__Wtrigraphs
9563		if eval \${$cacheid+:} false; then :
9564  $as_echo_n "(cached) " >&6
9565else
9566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567/* end confdefs.h.  */
9568int i;
9569int
9570main ()
9571{
9572
9573  ;
9574  return 0;
9575}
9576_ACEOF
9577if ac_fn_c_try_link "$LINENO"; then :
9578  eval $cacheid=yes
9579else
9580  eval $cacheid=no
9581fi
9582rm -f core conftest.err conftest.$ac_objext \
9583    conftest$ac_exeext conftest.$ac_ext
9584fi
9585
9586
9587		CFLAGS="$xorg_testset_save_CFLAGS"
9588
9589		eval supported=\$$cacheid
9590		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9591$as_echo "$supported" >&6; }
9592		if test "$supported" = "yes" ; then
9593			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9594			found="yes"
9595		fi
9596	fi
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612xorg_testset_save_CFLAGS="$CFLAGS"
9613
9614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9619  $as_echo_n "(cached) " >&6
9620else
9621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h.  */
9623int i;
9624_ACEOF
9625if ac_fn_c_try_compile "$LINENO"; then :
9626  xorg_cv_cc_flag_unknown_warning_option=yes
9627else
9628  xorg_cv_cc_flag_unknown_warning_option=no
9629fi
9630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9631fi
9632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9635	CFLAGS="$xorg_testset_save_CFLAGS"
9636fi
9637
9638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641	fi
9642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9646  $as_echo_n "(cached) " >&6
9647else
9648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649/* end confdefs.h.  */
9650int i;
9651_ACEOF
9652if ac_fn_c_try_compile "$LINENO"; then :
9653  xorg_cv_cc_flag_unused_command_line_argument=yes
9654else
9655  xorg_cv_cc_flag_unused_command_line_argument=no
9656fi
9657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9658fi
9659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9662	CFLAGS="$xorg_testset_save_CFLAGS"
9663fi
9664
9665found="no"
9666
9667	if test $found = "no" ; then
9668		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670		fi
9671
9672		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9674		fi
9675
9676		CFLAGS="$CFLAGS -Warray-bounds"
9677
9678		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9679$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9680		cacheid=xorg_cv_cc_flag__Warray_bounds
9681		if eval \${$cacheid+:} false; then :
9682  $as_echo_n "(cached) " >&6
9683else
9684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685/* end confdefs.h.  */
9686int i;
9687int
9688main ()
9689{
9690
9691  ;
9692  return 0;
9693}
9694_ACEOF
9695if ac_fn_c_try_link "$LINENO"; then :
9696  eval $cacheid=yes
9697else
9698  eval $cacheid=no
9699fi
9700rm -f core conftest.err conftest.$ac_objext \
9701    conftest$ac_exeext conftest.$ac_ext
9702fi
9703
9704
9705		CFLAGS="$xorg_testset_save_CFLAGS"
9706
9707		eval supported=\$$cacheid
9708		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9709$as_echo "$supported" >&6; }
9710		if test "$supported" = "yes" ; then
9711			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9712			found="yes"
9713		fi
9714	fi
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730xorg_testset_save_CFLAGS="$CFLAGS"
9731
9732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9733	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9735$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9736if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9737  $as_echo_n "(cached) " >&6
9738else
9739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740/* end confdefs.h.  */
9741int i;
9742_ACEOF
9743if ac_fn_c_try_compile "$LINENO"; then :
9744  xorg_cv_cc_flag_unknown_warning_option=yes
9745else
9746  xorg_cv_cc_flag_unknown_warning_option=no
9747fi
9748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749fi
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9751$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9752	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9753	CFLAGS="$xorg_testset_save_CFLAGS"
9754fi
9755
9756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9757	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9758		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759	fi
9760	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9762$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9763if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9764  $as_echo_n "(cached) " >&6
9765else
9766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767/* end confdefs.h.  */
9768int i;
9769_ACEOF
9770if ac_fn_c_try_compile "$LINENO"; then :
9771  xorg_cv_cc_flag_unused_command_line_argument=yes
9772else
9773  xorg_cv_cc_flag_unused_command_line_argument=no
9774fi
9775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776fi
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9778$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9779	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9780	CFLAGS="$xorg_testset_save_CFLAGS"
9781fi
9782
9783found="no"
9784
9785	if test $found = "no" ; then
9786		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9787			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788		fi
9789
9790		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9791			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9792		fi
9793
9794		CFLAGS="$CFLAGS -Wwrite-strings"
9795
9796		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9797$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9798		cacheid=xorg_cv_cc_flag__Wwrite_strings
9799		if eval \${$cacheid+:} false; then :
9800  $as_echo_n "(cached) " >&6
9801else
9802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h.  */
9804int i;
9805int
9806main ()
9807{
9808
9809  ;
9810  return 0;
9811}
9812_ACEOF
9813if ac_fn_c_try_link "$LINENO"; then :
9814  eval $cacheid=yes
9815else
9816  eval $cacheid=no
9817fi
9818rm -f core conftest.err conftest.$ac_objext \
9819    conftest$ac_exeext conftest.$ac_ext
9820fi
9821
9822
9823		CFLAGS="$xorg_testset_save_CFLAGS"
9824
9825		eval supported=\$$cacheid
9826		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9827$as_echo "$supported" >&6; }
9828		if test "$supported" = "yes" ; then
9829			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9830			found="yes"
9831		fi
9832	fi
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848xorg_testset_save_CFLAGS="$CFLAGS"
9849
9850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9851	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9853$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9854if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9855  $as_echo_n "(cached) " >&6
9856else
9857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858/* end confdefs.h.  */
9859int i;
9860_ACEOF
9861if ac_fn_c_try_compile "$LINENO"; then :
9862  xorg_cv_cc_flag_unknown_warning_option=yes
9863else
9864  xorg_cv_cc_flag_unknown_warning_option=no
9865fi
9866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9867fi
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9869$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9870	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9871	CFLAGS="$xorg_testset_save_CFLAGS"
9872fi
9873
9874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9875	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877	fi
9878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9880$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9881if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9882  $as_echo_n "(cached) " >&6
9883else
9884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885/* end confdefs.h.  */
9886int i;
9887_ACEOF
9888if ac_fn_c_try_compile "$LINENO"; then :
9889  xorg_cv_cc_flag_unused_command_line_argument=yes
9890else
9891  xorg_cv_cc_flag_unused_command_line_argument=no
9892fi
9893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894fi
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9896$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9897	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9898	CFLAGS="$xorg_testset_save_CFLAGS"
9899fi
9900
9901found="no"
9902
9903	if test $found = "no" ; then
9904		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9905			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906		fi
9907
9908		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9909			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9910		fi
9911
9912		CFLAGS="$CFLAGS -Waddress"
9913
9914		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9915$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9916		cacheid=xorg_cv_cc_flag__Waddress
9917		if eval \${$cacheid+:} false; then :
9918  $as_echo_n "(cached) " >&6
9919else
9920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h.  */
9922int i;
9923int
9924main ()
9925{
9926
9927  ;
9928  return 0;
9929}
9930_ACEOF
9931if ac_fn_c_try_link "$LINENO"; then :
9932  eval $cacheid=yes
9933else
9934  eval $cacheid=no
9935fi
9936rm -f core conftest.err conftest.$ac_objext \
9937    conftest$ac_exeext conftest.$ac_ext
9938fi
9939
9940
9941		CFLAGS="$xorg_testset_save_CFLAGS"
9942
9943		eval supported=\$$cacheid
9944		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9945$as_echo "$supported" >&6; }
9946		if test "$supported" = "yes" ; then
9947			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9948			found="yes"
9949		fi
9950	fi
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966xorg_testset_save_CFLAGS="$CFLAGS"
9967
9968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9971$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9972if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9973  $as_echo_n "(cached) " >&6
9974else
9975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976/* end confdefs.h.  */
9977int i;
9978_ACEOF
9979if ac_fn_c_try_compile "$LINENO"; then :
9980  xorg_cv_cc_flag_unknown_warning_option=yes
9981else
9982  xorg_cv_cc_flag_unknown_warning_option=no
9983fi
9984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9985fi
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9987$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9988	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9989	CFLAGS="$xorg_testset_save_CFLAGS"
9990fi
9991
9992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9993	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9994		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9995	fi
9996	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9998$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9999if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10000  $as_echo_n "(cached) " >&6
10001else
10002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003/* end confdefs.h.  */
10004int i;
10005_ACEOF
10006if ac_fn_c_try_compile "$LINENO"; then :
10007  xorg_cv_cc_flag_unused_command_line_argument=yes
10008else
10009  xorg_cv_cc_flag_unused_command_line_argument=no
10010fi
10011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012fi
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10014$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10016	CFLAGS="$xorg_testset_save_CFLAGS"
10017fi
10018
10019found="no"
10020
10021	if test $found = "no" ; then
10022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024		fi
10025
10026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10028		fi
10029
10030		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10031
10032		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10033$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10034		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10035		if eval \${$cacheid+:} false; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040int i;
10041int
10042main ()
10043{
10044
10045  ;
10046  return 0;
10047}
10048_ACEOF
10049if ac_fn_c_try_link "$LINENO"; then :
10050  eval $cacheid=yes
10051else
10052  eval $cacheid=no
10053fi
10054rm -f core conftest.err conftest.$ac_objext \
10055    conftest$ac_exeext conftest.$ac_ext
10056fi
10057
10058
10059		CFLAGS="$xorg_testset_save_CFLAGS"
10060
10061		eval supported=\$$cacheid
10062		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10063$as_echo "$supported" >&6; }
10064		if test "$supported" = "yes" ; then
10065			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10066			found="yes"
10067		fi
10068	fi
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084xorg_testset_save_CFLAGS="$CFLAGS"
10085
10086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10087	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10091  $as_echo_n "(cached) " >&6
10092else
10093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094/* end confdefs.h.  */
10095int i;
10096_ACEOF
10097if ac_fn_c_try_compile "$LINENO"; then :
10098  xorg_cv_cc_flag_unknown_warning_option=yes
10099else
10100  xorg_cv_cc_flag_unknown_warning_option=no
10101fi
10102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10103fi
10104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10107	CFLAGS="$xorg_testset_save_CFLAGS"
10108fi
10109
10110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10113	fi
10114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10118  $as_echo_n "(cached) " >&6
10119else
10120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h.  */
10122int i;
10123_ACEOF
10124if ac_fn_c_try_compile "$LINENO"; then :
10125  xorg_cv_cc_flag_unused_command_line_argument=yes
10126else
10127  xorg_cv_cc_flag_unused_command_line_argument=no
10128fi
10129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130fi
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10134	CFLAGS="$xorg_testset_save_CFLAGS"
10135fi
10136
10137found="no"
10138
10139	if test $found = "no" ; then
10140		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142		fi
10143
10144		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10146		fi
10147
10148		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10149
10150		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10151$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10152		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10153		if eval \${$cacheid+:} false; then :
10154  $as_echo_n "(cached) " >&6
10155else
10156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157/* end confdefs.h.  */
10158int i;
10159int
10160main ()
10161{
10162
10163  ;
10164  return 0;
10165}
10166_ACEOF
10167if ac_fn_c_try_link "$LINENO"; then :
10168  eval $cacheid=yes
10169else
10170  eval $cacheid=no
10171fi
10172rm -f core conftest.err conftest.$ac_objext \
10173    conftest$ac_exeext conftest.$ac_ext
10174fi
10175
10176
10177		CFLAGS="$xorg_testset_save_CFLAGS"
10178
10179		eval supported=\$$cacheid
10180		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10181$as_echo "$supported" >&6; }
10182		if test "$supported" = "yes" ; then
10183			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10184			found="yes"
10185		fi
10186	fi
10187
10188
10189fi
10190
10191
10192
10193
10194
10195
10196
10197		CWARNFLAGS="$BASE_CFLAGS"
10198		if  test "x$GCC" = xyes ; then
10199		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10200		fi
10201
10202
10203
10204
10205
10206
10207
10208
10209# Check whether --enable-strict-compilation was given.
10210if test "${enable_strict_compilation+set}" = set; then :
10211  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10212else
10213  STRICT_COMPILE=no
10214fi
10215
10216
10217
10218
10219
10220
10221STRICT_CFLAGS=""
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235xorg_testset_save_CFLAGS="$CFLAGS"
10236
10237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10238	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10239	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10240$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10241if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10242  $as_echo_n "(cached) " >&6
10243else
10244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245/* end confdefs.h.  */
10246int i;
10247_ACEOF
10248if ac_fn_c_try_compile "$LINENO"; then :
10249  xorg_cv_cc_flag_unknown_warning_option=yes
10250else
10251  xorg_cv_cc_flag_unknown_warning_option=no
10252fi
10253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10254fi
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10256$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10257	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10258	CFLAGS="$xorg_testset_save_CFLAGS"
10259fi
10260
10261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10262	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10263		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10264	fi
10265	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10267$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10268if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10269  $as_echo_n "(cached) " >&6
10270else
10271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272/* end confdefs.h.  */
10273int i;
10274_ACEOF
10275if ac_fn_c_try_compile "$LINENO"; then :
10276  xorg_cv_cc_flag_unused_command_line_argument=yes
10277else
10278  xorg_cv_cc_flag_unused_command_line_argument=no
10279fi
10280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281fi
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10283$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10284	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10285	CFLAGS="$xorg_testset_save_CFLAGS"
10286fi
10287
10288found="no"
10289
10290	if test $found = "no" ; then
10291		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10292			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293		fi
10294
10295		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10296			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10297		fi
10298
10299		CFLAGS="$CFLAGS -pedantic"
10300
10301		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10302$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10303		cacheid=xorg_cv_cc_flag__pedantic
10304		if eval \${$cacheid+:} false; then :
10305  $as_echo_n "(cached) " >&6
10306else
10307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h.  */
10309int i;
10310int
10311main ()
10312{
10313
10314  ;
10315  return 0;
10316}
10317_ACEOF
10318if ac_fn_c_try_link "$LINENO"; then :
10319  eval $cacheid=yes
10320else
10321  eval $cacheid=no
10322fi
10323rm -f core conftest.err conftest.$ac_objext \
10324    conftest$ac_exeext conftest.$ac_ext
10325fi
10326
10327
10328		CFLAGS="$xorg_testset_save_CFLAGS"
10329
10330		eval supported=\$$cacheid
10331		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10332$as_echo "$supported" >&6; }
10333		if test "$supported" = "yes" ; then
10334			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10335			found="yes"
10336		fi
10337	fi
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353xorg_testset_save_CFLAGS="$CFLAGS"
10354
10355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10356	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10357	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10358$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10359if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10360  $as_echo_n "(cached) " >&6
10361else
10362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363/* end confdefs.h.  */
10364int i;
10365_ACEOF
10366if ac_fn_c_try_compile "$LINENO"; then :
10367  xorg_cv_cc_flag_unknown_warning_option=yes
10368else
10369  xorg_cv_cc_flag_unknown_warning_option=no
10370fi
10371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372fi
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10374$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10375	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10376	CFLAGS="$xorg_testset_save_CFLAGS"
10377fi
10378
10379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10380	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10381		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10382	fi
10383	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10385$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10386if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10387  $as_echo_n "(cached) " >&6
10388else
10389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390/* end confdefs.h.  */
10391int i;
10392_ACEOF
10393if ac_fn_c_try_compile "$LINENO"; then :
10394  xorg_cv_cc_flag_unused_command_line_argument=yes
10395else
10396  xorg_cv_cc_flag_unused_command_line_argument=no
10397fi
10398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10399fi
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10401$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10402	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10403	CFLAGS="$xorg_testset_save_CFLAGS"
10404fi
10405
10406found="no"
10407
10408	if test $found = "no" ; then
10409		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10410			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10411		fi
10412
10413		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10414			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10415		fi
10416
10417		CFLAGS="$CFLAGS -Werror"
10418
10419		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10420$as_echo_n "checking if $CC supports -Werror... " >&6; }
10421		cacheid=xorg_cv_cc_flag__Werror
10422		if eval \${$cacheid+:} false; then :
10423  $as_echo_n "(cached) " >&6
10424else
10425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426/* end confdefs.h.  */
10427int i;
10428int
10429main ()
10430{
10431
10432  ;
10433  return 0;
10434}
10435_ACEOF
10436if ac_fn_c_try_link "$LINENO"; then :
10437  eval $cacheid=yes
10438else
10439  eval $cacheid=no
10440fi
10441rm -f core conftest.err conftest.$ac_objext \
10442    conftest$ac_exeext conftest.$ac_ext
10443fi
10444
10445
10446		CFLAGS="$xorg_testset_save_CFLAGS"
10447
10448		eval supported=\$$cacheid
10449		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10450$as_echo "$supported" >&6; }
10451		if test "$supported" = "yes" ; then
10452			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10453			found="yes"
10454		fi
10455	fi
10456
10457	if test $found = "no" ; then
10458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10460		fi
10461
10462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10464		fi
10465
10466		CFLAGS="$CFLAGS -errwarn"
10467
10468		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10469$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10470		cacheid=xorg_cv_cc_flag__errwarn
10471		if eval \${$cacheid+:} false; then :
10472  $as_echo_n "(cached) " >&6
10473else
10474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475/* end confdefs.h.  */
10476int i;
10477int
10478main ()
10479{
10480
10481  ;
10482  return 0;
10483}
10484_ACEOF
10485if ac_fn_c_try_link "$LINENO"; then :
10486  eval $cacheid=yes
10487else
10488  eval $cacheid=no
10489fi
10490rm -f core conftest.err conftest.$ac_objext \
10491    conftest$ac_exeext conftest.$ac_ext
10492fi
10493
10494
10495		CFLAGS="$xorg_testset_save_CFLAGS"
10496
10497		eval supported=\$$cacheid
10498		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10499$as_echo "$supported" >&6; }
10500		if test "$supported" = "yes" ; then
10501			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10502			found="yes"
10503		fi
10504	fi
10505
10506
10507
10508# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10509# activate it with -Werror, so we add it here explicitly.
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523xorg_testset_save_CFLAGS="$CFLAGS"
10524
10525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10526	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10530  $as_echo_n "(cached) " >&6
10531else
10532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533/* end confdefs.h.  */
10534int i;
10535_ACEOF
10536if ac_fn_c_try_compile "$LINENO"; then :
10537  xorg_cv_cc_flag_unknown_warning_option=yes
10538else
10539  xorg_cv_cc_flag_unknown_warning_option=no
10540fi
10541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10542fi
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10546	CFLAGS="$xorg_testset_save_CFLAGS"
10547fi
10548
10549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10552	fi
10553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10554	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10557  $as_echo_n "(cached) " >&6
10558else
10559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560/* end confdefs.h.  */
10561int i;
10562_ACEOF
10563if ac_fn_c_try_compile "$LINENO"; then :
10564  xorg_cv_cc_flag_unused_command_line_argument=yes
10565else
10566  xorg_cv_cc_flag_unused_command_line_argument=no
10567fi
10568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10569fi
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10572	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10573	CFLAGS="$xorg_testset_save_CFLAGS"
10574fi
10575
10576found="no"
10577
10578	if test $found = "no" ; then
10579		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10581		fi
10582
10583		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10585		fi
10586
10587		CFLAGS="$CFLAGS -Werror=attributes"
10588
10589		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10590$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10591		cacheid=xorg_cv_cc_flag__Werror_attributes
10592		if eval \${$cacheid+:} false; then :
10593  $as_echo_n "(cached) " >&6
10594else
10595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596/* end confdefs.h.  */
10597int i;
10598int
10599main ()
10600{
10601
10602  ;
10603  return 0;
10604}
10605_ACEOF
10606if ac_fn_c_try_link "$LINENO"; then :
10607  eval $cacheid=yes
10608else
10609  eval $cacheid=no
10610fi
10611rm -f core conftest.err conftest.$ac_objext \
10612    conftest$ac_exeext conftest.$ac_ext
10613fi
10614
10615
10616		CFLAGS="$xorg_testset_save_CFLAGS"
10617
10618		eval supported=\$$cacheid
10619		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10620$as_echo "$supported" >&6; }
10621		if test "$supported" = "yes" ; then
10622			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10623			found="yes"
10624		fi
10625	fi
10626
10627
10628
10629if test "x$STRICT_COMPILE" = "xyes"; then
10630    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10631    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10632fi
10633
10634
10635
10636
10637
10638
10639cat >>confdefs.h <<_ACEOF
10640#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10641_ACEOF
10642
10643	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10644	if test "x$PVM" = "x"; then
10645		PVM="0"
10646	fi
10647
10648cat >>confdefs.h <<_ACEOF
10649#define PACKAGE_VERSION_MINOR $PVM
10650_ACEOF
10651
10652	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10653	if test "x$PVP" = "x"; then
10654		PVP="0"
10655	fi
10656
10657cat >>confdefs.h <<_ACEOF
10658#define PACKAGE_VERSION_PATCHLEVEL $PVP
10659_ACEOF
10660
10661
10662
10663CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10664mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10665|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10666echo 'git directory not found: installing possibly empty changelog.' >&2)"
10667
10668
10669
10670
10671macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10672INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10673mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10674|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10675echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10676
10677
10678
10679
10680
10681
10682if test x$APP_MAN_SUFFIX = x    ; then
10683    APP_MAN_SUFFIX=1
10684fi
10685if test x$APP_MAN_DIR = x    ; then
10686    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10687fi
10688
10689if test x$LIB_MAN_SUFFIX = x    ; then
10690    LIB_MAN_SUFFIX=3
10691fi
10692if test x$LIB_MAN_DIR = x    ; then
10693    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10694fi
10695
10696if test x$FILE_MAN_SUFFIX = x    ; then
10697    case $host_os in
10698	solaris*)	FILE_MAN_SUFFIX=4  ;;
10699	*)		FILE_MAN_SUFFIX=5  ;;
10700    esac
10701fi
10702if test x$FILE_MAN_DIR = x    ; then
10703    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10704fi
10705
10706if test x$MISC_MAN_SUFFIX = x    ; then
10707    case $host_os in
10708	solaris*)	MISC_MAN_SUFFIX=5  ;;
10709	*)		MISC_MAN_SUFFIX=7  ;;
10710    esac
10711fi
10712if test x$MISC_MAN_DIR = x    ; then
10713    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10714fi
10715
10716if test x$DRIVER_MAN_SUFFIX = x    ; then
10717    case $host_os in
10718	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10719	*)		DRIVER_MAN_SUFFIX=4  ;;
10720    esac
10721fi
10722if test x$DRIVER_MAN_DIR = x    ; then
10723    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10724fi
10725
10726if test x$ADMIN_MAN_SUFFIX = x    ; then
10727    case $host_os in
10728	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10729	*)		ADMIN_MAN_SUFFIX=8  ;;
10730    esac
10731fi
10732if test x$ADMIN_MAN_DIR = x    ; then
10733    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10734fi
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750XORG_MAN_PAGE="X Version 11"
10751
10752MAN_SUBSTS="\
10753	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10754	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10755	-e 's|__xservername__|Xorg|g' \
10756	-e 's|__xconfigfile__|xorg.conf|g' \
10757	-e 's|__projectroot__|\$(prefix)|g' \
10758	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10759	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10760	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10761	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10762	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10763	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10764	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10765
10766
10767
10768# Check whether --enable-silent-rules was given.
10769if test "${enable_silent_rules+set}" = set; then :
10770  enableval=$enable_silent_rules;
10771fi
10772
10773case $enable_silent_rules in # (((
10774  yes) AM_DEFAULT_VERBOSITY=0;;
10775   no) AM_DEFAULT_VERBOSITY=1;;
10776    *) AM_DEFAULT_VERBOSITY=0;;
10777esac
10778am_make=${MAKE-make}
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10780$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10781if ${am_cv_make_support_nested_variables+:} false; then :
10782  $as_echo_n "(cached) " >&6
10783else
10784  if $as_echo 'TRUE=$(BAR$(V))
10785BAR0=false
10786BAR1=true
10787V=1
10788am__doit:
10789	@$(TRUE)
10790.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10791  am_cv_make_support_nested_variables=yes
10792else
10793  am_cv_make_support_nested_variables=no
10794fi
10795fi
10796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10797$as_echo "$am_cv_make_support_nested_variables" >&6; }
10798if test $am_cv_make_support_nested_variables = yes; then
10799    AM_V='$(V)'
10800  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10801else
10802  AM_V=$AM_DEFAULT_VERBOSITY
10803  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10804fi
10805AM_BACKSLASH='\'
10806
10807
10808
10809for ac_func in asprintf
10810do :
10811  ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
10812if test "x$ac_cv_func_asprintf" = xyes; then :
10813  cat >>confdefs.h <<_ACEOF
10814#define HAVE_ASPRINTF 1
10815_ACEOF
10816
10817fi
10818done
10819
10820
10821# Checks for pkg-config packages
10822
10823pkg_failed=no
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBPRINT" >&5
10825$as_echo_n "checking for XKBPRINT... " >&6; }
10826
10827if test -n "$XKBPRINT_CFLAGS"; then
10828    pkg_cv_XKBPRINT_CFLAGS="$XKBPRINT_CFLAGS"
10829 elif test -n "$PKG_CONFIG"; then
10830    if test -n "$PKG_CONFIG" && \
10831    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5
10832  ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5
10833  ac_status=$?
10834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10835  test $ac_status = 0; }; then
10836  pkg_cv_XKBPRINT_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11 xproto >= 7.0.17" 2>/dev/null`
10837else
10838  pkg_failed=yes
10839fi
10840 else
10841    pkg_failed=untried
10842fi
10843if test -n "$XKBPRINT_LIBS"; then
10844    pkg_cv_XKBPRINT_LIBS="$XKBPRINT_LIBS"
10845 elif test -n "$PKG_CONFIG"; then
10846    if test -n "$PKG_CONFIG" && \
10847    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5
10848  ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5
10849  ac_status=$?
10850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851  test $ac_status = 0; }; then
10852  pkg_cv_XKBPRINT_LIBS=`$PKG_CONFIG --libs "xkbfile x11 xproto >= 7.0.17" 2>/dev/null`
10853else
10854  pkg_failed=yes
10855fi
10856 else
10857    pkg_failed=untried
10858fi
10859
10860
10861
10862if test $pkg_failed = yes; then
10863
10864if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10865        _pkg_short_errors_supported=yes
10866else
10867        _pkg_short_errors_supported=no
10868fi
10869        if test $_pkg_short_errors_supported = yes; then
10870	        XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xkbfile x11 xproto >= 7.0.17" 2>&1`
10871        else
10872	        XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xkbfile x11 xproto >= 7.0.17" 2>&1`
10873        fi
10874	# Put the nasty error message in config.log where it belongs
10875	echo "$XKBPRINT_PKG_ERRORS" >&5
10876
10877	as_fn_error $? "Package requirements (xkbfile x11 xproto >= 7.0.17) were not met:
10878
10879$XKBPRINT_PKG_ERRORS
10880
10881Consider adjusting the PKG_CONFIG_PATH environment variable if you
10882installed software in a non-standard prefix.
10883
10884Alternatively, you may set the environment variables XKBPRINT_CFLAGS
10885and XKBPRINT_LIBS to avoid the need to call pkg-config.
10886See the pkg-config man page for more details.
10887" "$LINENO" 5
10888elif test $pkg_failed = untried; then
10889	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10891as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10892is in your PATH or set the PKG_CONFIG environment variable to the full
10893path to pkg-config.
10894
10895Alternatively, you may set the environment variables XKBPRINT_CFLAGS
10896and XKBPRINT_LIBS to avoid the need to call pkg-config.
10897See the pkg-config man page for more details.
10898
10899To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10900See \`config.log' for more details" "$LINENO" 5; }
10901else
10902	XKBPRINT_CFLAGS=$pkg_cv_XKBPRINT_CFLAGS
10903	XKBPRINT_LIBS=$pkg_cv_XKBPRINT_LIBS
10904        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10905$as_echo "yes" >&6; }
10906	:
10907fi
10908
10909ac_config_files="$ac_config_files Makefile man/Makefile"
10910
10911cat >confcache <<\_ACEOF
10912# This file is a shell script that caches the results of configure
10913# tests run on this system so they can be shared between configure
10914# scripts and configure runs, see configure's option --config-cache.
10915# It is not useful on other systems.  If it contains results you don't
10916# want to keep, you may remove or edit it.
10917#
10918# config.status only pays attention to the cache file if you give it
10919# the --recheck option to rerun configure.
10920#
10921# `ac_cv_env_foo' variables (set or unset) will be overridden when
10922# loading this file, other *unset* `ac_cv_foo' will be assigned the
10923# following values.
10924
10925_ACEOF
10926
10927# The following way of writing the cache mishandles newlines in values,
10928# but we know of no workaround that is simple, portable, and efficient.
10929# So, we kill variables containing newlines.
10930# Ultrix sh set writes to stderr and can't be redirected directly,
10931# and sets the high bit in the cache file unless we assign to the vars.
10932(
10933  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10934    eval ac_val=\$$ac_var
10935    case $ac_val in #(
10936    *${as_nl}*)
10937      case $ac_var in #(
10938      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10939$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10940      esac
10941      case $ac_var in #(
10942      _ | IFS | as_nl) ;; #(
10943      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10944      *) { eval $ac_var=; unset $ac_var;} ;;
10945      esac ;;
10946    esac
10947  done
10948
10949  (set) 2>&1 |
10950    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10951    *${as_nl}ac_space=\ *)
10952      # `set' does not quote correctly, so add quotes: double-quote
10953      # substitution turns \\\\ into \\, and sed turns \\ into \.
10954      sed -n \
10955	"s/'/'\\\\''/g;
10956	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10957      ;; #(
10958    *)
10959      # `set' quotes correctly as required by POSIX, so do not add quotes.
10960      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10961      ;;
10962    esac |
10963    sort
10964) |
10965  sed '
10966     /^ac_cv_env_/b end
10967     t clear
10968     :clear
10969     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10970     t end
10971     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10972     :end' >>confcache
10973if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10974  if test -w "$cache_file"; then
10975    if test "x$cache_file" != "x/dev/null"; then
10976      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10977$as_echo "$as_me: updating cache $cache_file" >&6;}
10978      if test ! -f "$cache_file" || test -h "$cache_file"; then
10979	cat confcache >"$cache_file"
10980      else
10981        case $cache_file in #(
10982        */* | ?:*)
10983	  mv -f confcache "$cache_file"$$ &&
10984	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10985        *)
10986	  mv -f confcache "$cache_file" ;;
10987	esac
10988      fi
10989    fi
10990  else
10991    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10992$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10993  fi
10994fi
10995rm -f confcache
10996
10997test "x$prefix" = xNONE && prefix=$ac_default_prefix
10998# Let make expand exec_prefix.
10999test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11000
11001DEFS=-DHAVE_CONFIG_H
11002
11003ac_libobjs=
11004ac_ltlibobjs=
11005U=
11006for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11007  # 1. Remove the extension, and $U if already installed.
11008  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11009  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11010  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11011  #    will be set to the directory where LIBOBJS objects are built.
11012  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11013  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11014done
11015LIBOBJS=$ac_libobjs
11016
11017LTLIBOBJS=$ac_ltlibobjs
11018
11019
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11021$as_echo_n "checking that generated files are newer than configure... " >&6; }
11022   if test -n "$am_sleep_pid"; then
11023     # Hide warnings about reused PIDs.
11024     wait $am_sleep_pid 2>/dev/null
11025   fi
11026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11027$as_echo "done" >&6; }
11028if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11029  as_fn_error $? "conditional \"AMDEP\" was never defined.
11030Usually this means the macro was only invoked conditionally." "$LINENO" 5
11031fi
11032if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11033  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11034Usually this means the macro was only invoked conditionally." "$LINENO" 5
11035fi
11036 if test -n "$EXEEXT"; then
11037  am__EXEEXT_TRUE=
11038  am__EXEEXT_FALSE='#'
11039else
11040  am__EXEEXT_TRUE='#'
11041  am__EXEEXT_FALSE=
11042fi
11043
11044
11045: "${CONFIG_STATUS=./config.status}"
11046ac_write_fail=0
11047ac_clean_files_save=$ac_clean_files
11048ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11050$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11051as_write_fail=0
11052cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11053#! $SHELL
11054# Generated by $as_me.
11055# Run this file to recreate the current configuration.
11056# Compiler output produced by configure, useful for debugging
11057# configure, is in config.log if it exists.
11058
11059debug=false
11060ac_cs_recheck=false
11061ac_cs_silent=false
11062
11063SHELL=\${CONFIG_SHELL-$SHELL}
11064export SHELL
11065_ASEOF
11066cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11067## -------------------- ##
11068## M4sh Initialization. ##
11069## -------------------- ##
11070
11071# Be more Bourne compatible
11072DUALCASE=1; export DUALCASE # for MKS sh
11073if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11074  emulate sh
11075  NULLCMD=:
11076  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11077  # is contrary to our usage.  Disable this feature.
11078  alias -g '${1+"$@"}'='"$@"'
11079  setopt NO_GLOB_SUBST
11080else
11081  case `(set -o) 2>/dev/null` in #(
11082  *posix*) :
11083    set -o posix ;; #(
11084  *) :
11085     ;;
11086esac
11087fi
11088
11089
11090as_nl='
11091'
11092export as_nl
11093# Printing a long string crashes Solaris 7 /usr/bin/printf.
11094as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11095as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11096as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11097# Prefer a ksh shell builtin over an external printf program on Solaris,
11098# but without wasting forks for bash or zsh.
11099if test -z "$BASH_VERSION$ZSH_VERSION" \
11100    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11101  as_echo='print -r --'
11102  as_echo_n='print -rn --'
11103elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11104  as_echo='printf %s\n'
11105  as_echo_n='printf %s'
11106else
11107  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11108    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11109    as_echo_n='/usr/ucb/echo -n'
11110  else
11111    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11112    as_echo_n_body='eval
11113      arg=$1;
11114      case $arg in #(
11115      *"$as_nl"*)
11116	expr "X$arg" : "X\\(.*\\)$as_nl";
11117	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11118      esac;
11119      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11120    '
11121    export as_echo_n_body
11122    as_echo_n='sh -c $as_echo_n_body as_echo'
11123  fi
11124  export as_echo_body
11125  as_echo='sh -c $as_echo_body as_echo'
11126fi
11127
11128# The user is always right.
11129if test "${PATH_SEPARATOR+set}" != set; then
11130  PATH_SEPARATOR=:
11131  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11132    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11133      PATH_SEPARATOR=';'
11134  }
11135fi
11136
11137
11138# IFS
11139# We need space, tab and new line, in precisely that order.  Quoting is
11140# there to prevent editors from complaining about space-tab.
11141# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11142# splitting by setting IFS to empty value.)
11143IFS=" ""	$as_nl"
11144
11145# Find who we are.  Look in the path if we contain no directory separator.
11146as_myself=
11147case $0 in #((
11148  *[\\/]* ) as_myself=$0 ;;
11149  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150for as_dir in $PATH
11151do
11152  IFS=$as_save_IFS
11153  test -z "$as_dir" && as_dir=.
11154    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11155  done
11156IFS=$as_save_IFS
11157
11158     ;;
11159esac
11160# We did not find ourselves, most probably we were run as `sh COMMAND'
11161# in which case we are not to be found in the path.
11162if test "x$as_myself" = x; then
11163  as_myself=$0
11164fi
11165if test ! -f "$as_myself"; then
11166  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11167  exit 1
11168fi
11169
11170# Unset variables that we do not need and which cause bugs (e.g. in
11171# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11172# suppresses any "Segmentation fault" message there.  '((' could
11173# trigger a bug in pdksh 5.2.14.
11174for as_var in BASH_ENV ENV MAIL MAILPATH
11175do eval test x\${$as_var+set} = xset \
11176  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11177done
11178PS1='$ '
11179PS2='> '
11180PS4='+ '
11181
11182# NLS nuisances.
11183LC_ALL=C
11184export LC_ALL
11185LANGUAGE=C
11186export LANGUAGE
11187
11188# CDPATH.
11189(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11190
11191
11192# as_fn_error STATUS ERROR [LINENO LOG_FD]
11193# ----------------------------------------
11194# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11195# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11196# script with STATUS, using 1 if that was 0.
11197as_fn_error ()
11198{
11199  as_status=$1; test $as_status -eq 0 && as_status=1
11200  if test "$4"; then
11201    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11202    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11203  fi
11204  $as_echo "$as_me: error: $2" >&2
11205  as_fn_exit $as_status
11206} # as_fn_error
11207
11208
11209# as_fn_set_status STATUS
11210# -----------------------
11211# Set $? to STATUS, without forking.
11212as_fn_set_status ()
11213{
11214  return $1
11215} # as_fn_set_status
11216
11217# as_fn_exit STATUS
11218# -----------------
11219# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11220as_fn_exit ()
11221{
11222  set +e
11223  as_fn_set_status $1
11224  exit $1
11225} # as_fn_exit
11226
11227# as_fn_unset VAR
11228# ---------------
11229# Portably unset VAR.
11230as_fn_unset ()
11231{
11232  { eval $1=; unset $1;}
11233}
11234as_unset=as_fn_unset
11235# as_fn_append VAR VALUE
11236# ----------------------
11237# Append the text in VALUE to the end of the definition contained in VAR. Take
11238# advantage of any shell optimizations that allow amortized linear growth over
11239# repeated appends, instead of the typical quadratic growth present in naive
11240# implementations.
11241if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11242  eval 'as_fn_append ()
11243  {
11244    eval $1+=\$2
11245  }'
11246else
11247  as_fn_append ()
11248  {
11249    eval $1=\$$1\$2
11250  }
11251fi # as_fn_append
11252
11253# as_fn_arith ARG...
11254# ------------------
11255# Perform arithmetic evaluation on the ARGs, and store the result in the
11256# global $as_val. Take advantage of shells that can avoid forks. The arguments
11257# must be portable across $(()) and expr.
11258if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11259  eval 'as_fn_arith ()
11260  {
11261    as_val=$(( $* ))
11262  }'
11263else
11264  as_fn_arith ()
11265  {
11266    as_val=`expr "$@" || test $? -eq 1`
11267  }
11268fi # as_fn_arith
11269
11270
11271if expr a : '\(a\)' >/dev/null 2>&1 &&
11272   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11273  as_expr=expr
11274else
11275  as_expr=false
11276fi
11277
11278if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11279  as_basename=basename
11280else
11281  as_basename=false
11282fi
11283
11284if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11285  as_dirname=dirname
11286else
11287  as_dirname=false
11288fi
11289
11290as_me=`$as_basename -- "$0" ||
11291$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11292	 X"$0" : 'X\(//\)$' \| \
11293	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11294$as_echo X/"$0" |
11295    sed '/^.*\/\([^/][^/]*\)\/*$/{
11296	    s//\1/
11297	    q
11298	  }
11299	  /^X\/\(\/\/\)$/{
11300	    s//\1/
11301	    q
11302	  }
11303	  /^X\/\(\/\).*/{
11304	    s//\1/
11305	    q
11306	  }
11307	  s/.*/./; q'`
11308
11309# Avoid depending upon Character Ranges.
11310as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11311as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11312as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11313as_cr_digits='0123456789'
11314as_cr_alnum=$as_cr_Letters$as_cr_digits
11315
11316ECHO_C= ECHO_N= ECHO_T=
11317case `echo -n x` in #(((((
11318-n*)
11319  case `echo 'xy\c'` in
11320  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11321  xy)  ECHO_C='\c';;
11322  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11323       ECHO_T='	';;
11324  esac;;
11325*)
11326  ECHO_N='-n';;
11327esac
11328
11329rm -f conf$$ conf$$.exe conf$$.file
11330if test -d conf$$.dir; then
11331  rm -f conf$$.dir/conf$$.file
11332else
11333  rm -f conf$$.dir
11334  mkdir conf$$.dir 2>/dev/null
11335fi
11336if (echo >conf$$.file) 2>/dev/null; then
11337  if ln -s conf$$.file conf$$ 2>/dev/null; then
11338    as_ln_s='ln -s'
11339    # ... but there are two gotchas:
11340    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11341    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11342    # In both cases, we have to default to `cp -pR'.
11343    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11344      as_ln_s='cp -pR'
11345  elif ln conf$$.file conf$$ 2>/dev/null; then
11346    as_ln_s=ln
11347  else
11348    as_ln_s='cp -pR'
11349  fi
11350else
11351  as_ln_s='cp -pR'
11352fi
11353rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11354rmdir conf$$.dir 2>/dev/null
11355
11356
11357# as_fn_mkdir_p
11358# -------------
11359# Create "$as_dir" as a directory, including parents if necessary.
11360as_fn_mkdir_p ()
11361{
11362
11363  case $as_dir in #(
11364  -*) as_dir=./$as_dir;;
11365  esac
11366  test -d "$as_dir" || eval $as_mkdir_p || {
11367    as_dirs=
11368    while :; do
11369      case $as_dir in #(
11370      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11371      *) as_qdir=$as_dir;;
11372      esac
11373      as_dirs="'$as_qdir' $as_dirs"
11374      as_dir=`$as_dirname -- "$as_dir" ||
11375$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11376	 X"$as_dir" : 'X\(//\)[^/]' \| \
11377	 X"$as_dir" : 'X\(//\)$' \| \
11378	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11379$as_echo X"$as_dir" |
11380    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11381	    s//\1/
11382	    q
11383	  }
11384	  /^X\(\/\/\)[^/].*/{
11385	    s//\1/
11386	    q
11387	  }
11388	  /^X\(\/\/\)$/{
11389	    s//\1/
11390	    q
11391	  }
11392	  /^X\(\/\).*/{
11393	    s//\1/
11394	    q
11395	  }
11396	  s/.*/./; q'`
11397      test -d "$as_dir" && break
11398    done
11399    test -z "$as_dirs" || eval "mkdir $as_dirs"
11400  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11401
11402
11403} # as_fn_mkdir_p
11404if mkdir -p . 2>/dev/null; then
11405  as_mkdir_p='mkdir -p "$as_dir"'
11406else
11407  test -d ./-p && rmdir ./-p
11408  as_mkdir_p=false
11409fi
11410
11411
11412# as_fn_executable_p FILE
11413# -----------------------
11414# Test if FILE is an executable regular file.
11415as_fn_executable_p ()
11416{
11417  test -f "$1" && test -x "$1"
11418} # as_fn_executable_p
11419as_test_x='test -x'
11420as_executable_p=as_fn_executable_p
11421
11422# Sed expression to map a string onto a valid CPP name.
11423as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11424
11425# Sed expression to map a string onto a valid variable name.
11426as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11427
11428
11429exec 6>&1
11430## ----------------------------------- ##
11431## Main body of $CONFIG_STATUS script. ##
11432## ----------------------------------- ##
11433_ASEOF
11434test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11435
11436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11437# Save the log message, to keep $0 and so on meaningful, and to
11438# report actual input values of CONFIG_FILES etc. instead of their
11439# values after options handling.
11440ac_log="
11441This file was extended by xkbprint $as_me 1.0.4, which was
11442generated by GNU Autoconf 2.69.  Invocation command line was
11443
11444  CONFIG_FILES    = $CONFIG_FILES
11445  CONFIG_HEADERS  = $CONFIG_HEADERS
11446  CONFIG_LINKS    = $CONFIG_LINKS
11447  CONFIG_COMMANDS = $CONFIG_COMMANDS
11448  $ $0 $@
11449
11450on `(hostname || uname -n) 2>/dev/null | sed 1q`
11451"
11452
11453_ACEOF
11454
11455case $ac_config_files in *"
11456"*) set x $ac_config_files; shift; ac_config_files=$*;;
11457esac
11458
11459case $ac_config_headers in *"
11460"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11461esac
11462
11463
11464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11465# Files that config.status was made for.
11466config_files="$ac_config_files"
11467config_headers="$ac_config_headers"
11468config_commands="$ac_config_commands"
11469
11470_ACEOF
11471
11472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11473ac_cs_usage="\
11474\`$as_me' instantiates files and other configuration actions
11475from templates according to the current configuration.  Unless the files
11476and actions are specified as TAGs, all are instantiated by default.
11477
11478Usage: $0 [OPTION]... [TAG]...
11479
11480  -h, --help       print this help, then exit
11481  -V, --version    print version number and configuration settings, then exit
11482      --config     print configuration, then exit
11483  -q, --quiet, --silent
11484                   do not print progress messages
11485  -d, --debug      don't remove temporary files
11486      --recheck    update $as_me by reconfiguring in the same conditions
11487      --file=FILE[:TEMPLATE]
11488                   instantiate the configuration file FILE
11489      --header=FILE[:TEMPLATE]
11490                   instantiate the configuration header FILE
11491
11492Configuration files:
11493$config_files
11494
11495Configuration headers:
11496$config_headers
11497
11498Configuration commands:
11499$config_commands
11500
11501Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11502
11503_ACEOF
11504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11505ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11506ac_cs_version="\\
11507xkbprint config.status 1.0.4
11508configured by $0, generated by GNU Autoconf 2.69,
11509  with options \\"\$ac_cs_config\\"
11510
11511Copyright (C) 2012 Free Software Foundation, Inc.
11512This config.status script is free software; the Free Software Foundation
11513gives unlimited permission to copy, distribute and modify it."
11514
11515ac_pwd='$ac_pwd'
11516srcdir='$srcdir'
11517INSTALL='$INSTALL'
11518MKDIR_P='$MKDIR_P'
11519AWK='$AWK'
11520test -n "\$AWK" || AWK=awk
11521_ACEOF
11522
11523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11524# The default lists apply if the user does not specify any file.
11525ac_need_defaults=:
11526while test $# != 0
11527do
11528  case $1 in
11529  --*=?*)
11530    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11531    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11532    ac_shift=:
11533    ;;
11534  --*=)
11535    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11536    ac_optarg=
11537    ac_shift=:
11538    ;;
11539  *)
11540    ac_option=$1
11541    ac_optarg=$2
11542    ac_shift=shift
11543    ;;
11544  esac
11545
11546  case $ac_option in
11547  # Handling of the options.
11548  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11549    ac_cs_recheck=: ;;
11550  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11551    $as_echo "$ac_cs_version"; exit ;;
11552  --config | --confi | --conf | --con | --co | --c )
11553    $as_echo "$ac_cs_config"; exit ;;
11554  --debug | --debu | --deb | --de | --d | -d )
11555    debug=: ;;
11556  --file | --fil | --fi | --f )
11557    $ac_shift
11558    case $ac_optarg in
11559    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11560    '') as_fn_error $? "missing file argument" ;;
11561    esac
11562    as_fn_append CONFIG_FILES " '$ac_optarg'"
11563    ac_need_defaults=false;;
11564  --header | --heade | --head | --hea )
11565    $ac_shift
11566    case $ac_optarg in
11567    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11568    esac
11569    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11570    ac_need_defaults=false;;
11571  --he | --h)
11572    # Conflict between --help and --header
11573    as_fn_error $? "ambiguous option: \`$1'
11574Try \`$0 --help' for more information.";;
11575  --help | --hel | -h )
11576    $as_echo "$ac_cs_usage"; exit ;;
11577  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11578  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11579    ac_cs_silent=: ;;
11580
11581  # This is an error.
11582  -*) as_fn_error $? "unrecognized option: \`$1'
11583Try \`$0 --help' for more information." ;;
11584
11585  *) as_fn_append ac_config_targets " $1"
11586     ac_need_defaults=false ;;
11587
11588  esac
11589  shift
11590done
11591
11592ac_configure_extra_args=
11593
11594if $ac_cs_silent; then
11595  exec 6>/dev/null
11596  ac_configure_extra_args="$ac_configure_extra_args --silent"
11597fi
11598
11599_ACEOF
11600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11601if \$ac_cs_recheck; then
11602  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11603  shift
11604  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11605  CONFIG_SHELL='$SHELL'
11606  export CONFIG_SHELL
11607  exec "\$@"
11608fi
11609
11610_ACEOF
11611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11612exec 5>>config.log
11613{
11614  echo
11615  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11616## Running $as_me. ##
11617_ASBOX
11618  $as_echo "$ac_log"
11619} >&5
11620
11621_ACEOF
11622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11623#
11624# INIT-COMMANDS
11625#
11626AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11627
11628_ACEOF
11629
11630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11631
11632# Handling of arguments.
11633for ac_config_target in $ac_config_targets
11634do
11635  case $ac_config_target in
11636    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11637    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11638    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11639    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11640
11641  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11642  esac
11643done
11644
11645
11646# If the user did not use the arguments to specify the items to instantiate,
11647# then the envvar interface is used.  Set only those that are not.
11648# We use the long form for the default assignment because of an extremely
11649# bizarre bug on SunOS 4.1.3.
11650if $ac_need_defaults; then
11651  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11652  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11653  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11654fi
11655
11656# Have a temporary directory for convenience.  Make it in the build tree
11657# simply because there is no reason against having it here, and in addition,
11658# creating and moving files from /tmp can sometimes cause problems.
11659# Hook for its removal unless debugging.
11660# Note that there is a small window in which the directory will not be cleaned:
11661# after its creation but before its name has been assigned to `$tmp'.
11662$debug ||
11663{
11664  tmp= ac_tmp=
11665  trap 'exit_status=$?
11666  : "${ac_tmp:=$tmp}"
11667  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11668' 0
11669  trap 'as_fn_exit 1' 1 2 13 15
11670}
11671# Create a (secure) tmp directory for tmp files.
11672
11673{
11674  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11675  test -d "$tmp"
11676}  ||
11677{
11678  tmp=./conf$$-$RANDOM
11679  (umask 077 && mkdir "$tmp")
11680} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11681ac_tmp=$tmp
11682
11683# Set up the scripts for CONFIG_FILES section.
11684# No need to generate them if there are no CONFIG_FILES.
11685# This happens for instance with `./config.status config.h'.
11686if test -n "$CONFIG_FILES"; then
11687
11688
11689ac_cr=`echo X | tr X '\015'`
11690# On cygwin, bash can eat \r inside `` if the user requested igncr.
11691# But we know of no other shell where ac_cr would be empty at this
11692# point, so we can use a bashism as a fallback.
11693if test "x$ac_cr" = x; then
11694  eval ac_cr=\$\'\\r\'
11695fi
11696ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11697if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11698  ac_cs_awk_cr='\\r'
11699else
11700  ac_cs_awk_cr=$ac_cr
11701fi
11702
11703echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11704_ACEOF
11705
11706
11707{
11708  echo "cat >conf$$subs.awk <<_ACEOF" &&
11709  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11710  echo "_ACEOF"
11711} >conf$$subs.sh ||
11712  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11713ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11714ac_delim='%!_!# '
11715for ac_last_try in false false false false false :; do
11716  . ./conf$$subs.sh ||
11717    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11718
11719  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11720  if test $ac_delim_n = $ac_delim_num; then
11721    break
11722  elif $ac_last_try; then
11723    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11724  else
11725    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11726  fi
11727done
11728rm -f conf$$subs.sh
11729
11730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11731cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11732_ACEOF
11733sed -n '
11734h
11735s/^/S["/; s/!.*/"]=/
11736p
11737g
11738s/^[^!]*!//
11739:repl
11740t repl
11741s/'"$ac_delim"'$//
11742t delim
11743:nl
11744h
11745s/\(.\{148\}\)..*/\1/
11746t more1
11747s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11748p
11749n
11750b repl
11751:more1
11752s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11753p
11754g
11755s/.\{148\}//
11756t nl
11757:delim
11758h
11759s/\(.\{148\}\)..*/\1/
11760t more2
11761s/["\\]/\\&/g; s/^/"/; s/$/"/
11762p
11763b
11764:more2
11765s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11766p
11767g
11768s/.\{148\}//
11769t delim
11770' <conf$$subs.awk | sed '
11771/^[^""]/{
11772  N
11773  s/\n//
11774}
11775' >>$CONFIG_STATUS || ac_write_fail=1
11776rm -f conf$$subs.awk
11777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11778_ACAWK
11779cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11780  for (key in S) S_is_set[key] = 1
11781  FS = ""
11782
11783}
11784{
11785  line = $ 0
11786  nfields = split(line, field, "@")
11787  substed = 0
11788  len = length(field[1])
11789  for (i = 2; i < nfields; i++) {
11790    key = field[i]
11791    keylen = length(key)
11792    if (S_is_set[key]) {
11793      value = S[key]
11794      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11795      len += length(value) + length(field[++i])
11796      substed = 1
11797    } else
11798      len += 1 + keylen
11799  }
11800
11801  print line
11802}
11803
11804_ACAWK
11805_ACEOF
11806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11807if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11808  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11809else
11810  cat
11811fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11812  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11813_ACEOF
11814
11815# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11816# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11817# trailing colons and then remove the whole line if VPATH becomes empty
11818# (actually we leave an empty line to preserve line numbers).
11819if test "x$srcdir" = x.; then
11820  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11821h
11822s///
11823s/^/:/
11824s/[	 ]*$/:/
11825s/:\$(srcdir):/:/g
11826s/:\${srcdir}:/:/g
11827s/:@srcdir@:/:/g
11828s/^:*//
11829s/:*$//
11830x
11831s/\(=[	 ]*\).*/\1/
11832G
11833s/\n//
11834s/^[^=]*=[	 ]*$//
11835}'
11836fi
11837
11838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11839fi # test -n "$CONFIG_FILES"
11840
11841# Set up the scripts for CONFIG_HEADERS section.
11842# No need to generate them if there are no CONFIG_HEADERS.
11843# This happens for instance with `./config.status Makefile'.
11844if test -n "$CONFIG_HEADERS"; then
11845cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11846BEGIN {
11847_ACEOF
11848
11849# Transform confdefs.h into an awk script `defines.awk', embedded as
11850# here-document in config.status, that substitutes the proper values into
11851# config.h.in to produce config.h.
11852
11853# Create a delimiter string that does not exist in confdefs.h, to ease
11854# handling of long lines.
11855ac_delim='%!_!# '
11856for ac_last_try in false false :; do
11857  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11858  if test -z "$ac_tt"; then
11859    break
11860  elif $ac_last_try; then
11861    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11862  else
11863    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11864  fi
11865done
11866
11867# For the awk script, D is an array of macro values keyed by name,
11868# likewise P contains macro parameters if any.  Preserve backslash
11869# newline sequences.
11870
11871ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11872sed -n '
11873s/.\{148\}/&'"$ac_delim"'/g
11874t rset
11875:rset
11876s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11877t def
11878d
11879:def
11880s/\\$//
11881t bsnl
11882s/["\\]/\\&/g
11883s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11884D["\1"]=" \3"/p
11885s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11886d
11887:bsnl
11888s/["\\]/\\&/g
11889s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11890D["\1"]=" \3\\\\\\n"\\/p
11891t cont
11892s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11893t cont
11894d
11895:cont
11896n
11897s/.\{148\}/&'"$ac_delim"'/g
11898t clear
11899:clear
11900s/\\$//
11901t bsnlc
11902s/["\\]/\\&/g; s/^/"/; s/$/"/p
11903d
11904:bsnlc
11905s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11906b cont
11907' <confdefs.h | sed '
11908s/'"$ac_delim"'/"\\\
11909"/g' >>$CONFIG_STATUS || ac_write_fail=1
11910
11911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11912  for (key in D) D_is_set[key] = 1
11913  FS = ""
11914}
11915/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11916  line = \$ 0
11917  split(line, arg, " ")
11918  if (arg[1] == "#") {
11919    defundef = arg[2]
11920    mac1 = arg[3]
11921  } else {
11922    defundef = substr(arg[1], 2)
11923    mac1 = arg[2]
11924  }
11925  split(mac1, mac2, "(") #)
11926  macro = mac2[1]
11927  prefix = substr(line, 1, index(line, defundef) - 1)
11928  if (D_is_set[macro]) {
11929    # Preserve the white space surrounding the "#".
11930    print prefix "define", macro P[macro] D[macro]
11931    next
11932  } else {
11933    # Replace #undef with comments.  This is necessary, for example,
11934    # in the case of _POSIX_SOURCE, which is predefined and required
11935    # on some systems where configure will not decide to define it.
11936    if (defundef == "undef") {
11937      print "/*", prefix defundef, macro, "*/"
11938      next
11939    }
11940  }
11941}
11942{ print }
11943_ACAWK
11944_ACEOF
11945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11946  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11947fi # test -n "$CONFIG_HEADERS"
11948
11949
11950eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11951shift
11952for ac_tag
11953do
11954  case $ac_tag in
11955  :[FHLC]) ac_mode=$ac_tag; continue;;
11956  esac
11957  case $ac_mode$ac_tag in
11958  :[FHL]*:*);;
11959  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11960  :[FH]-) ac_tag=-:-;;
11961  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11962  esac
11963  ac_save_IFS=$IFS
11964  IFS=:
11965  set x $ac_tag
11966  IFS=$ac_save_IFS
11967  shift
11968  ac_file=$1
11969  shift
11970
11971  case $ac_mode in
11972  :L) ac_source=$1;;
11973  :[FH])
11974    ac_file_inputs=
11975    for ac_f
11976    do
11977      case $ac_f in
11978      -) ac_f="$ac_tmp/stdin";;
11979      *) # Look for the file first in the build tree, then in the source tree
11980	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11981	 # because $ac_f cannot contain `:'.
11982	 test -f "$ac_f" ||
11983	   case $ac_f in
11984	   [\\/$]*) false;;
11985	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11986	   esac ||
11987	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11988      esac
11989      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11990      as_fn_append ac_file_inputs " '$ac_f'"
11991    done
11992
11993    # Let's still pretend it is `configure' which instantiates (i.e., don't
11994    # use $as_me), people would be surprised to read:
11995    #    /* config.h.  Generated by config.status.  */
11996    configure_input='Generated from '`
11997	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11998	`' by configure.'
11999    if test x"$ac_file" != x-; then
12000      configure_input="$ac_file.  $configure_input"
12001      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12002$as_echo "$as_me: creating $ac_file" >&6;}
12003    fi
12004    # Neutralize special characters interpreted by sed in replacement strings.
12005    case $configure_input in #(
12006    *\&* | *\|* | *\\* )
12007       ac_sed_conf_input=`$as_echo "$configure_input" |
12008       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12009    *) ac_sed_conf_input=$configure_input;;
12010    esac
12011
12012    case $ac_tag in
12013    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12014      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12015    esac
12016    ;;
12017  esac
12018
12019  ac_dir=`$as_dirname -- "$ac_file" ||
12020$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12021	 X"$ac_file" : 'X\(//\)[^/]' \| \
12022	 X"$ac_file" : 'X\(//\)$' \| \
12023	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12024$as_echo X"$ac_file" |
12025    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12026	    s//\1/
12027	    q
12028	  }
12029	  /^X\(\/\/\)[^/].*/{
12030	    s//\1/
12031	    q
12032	  }
12033	  /^X\(\/\/\)$/{
12034	    s//\1/
12035	    q
12036	  }
12037	  /^X\(\/\).*/{
12038	    s//\1/
12039	    q
12040	  }
12041	  s/.*/./; q'`
12042  as_dir="$ac_dir"; as_fn_mkdir_p
12043  ac_builddir=.
12044
12045case "$ac_dir" in
12046.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12047*)
12048  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12049  # A ".." for each directory in $ac_dir_suffix.
12050  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12051  case $ac_top_builddir_sub in
12052  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12053  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12054  esac ;;
12055esac
12056ac_abs_top_builddir=$ac_pwd
12057ac_abs_builddir=$ac_pwd$ac_dir_suffix
12058# for backward compatibility:
12059ac_top_builddir=$ac_top_build_prefix
12060
12061case $srcdir in
12062  .)  # We are building in place.
12063    ac_srcdir=.
12064    ac_top_srcdir=$ac_top_builddir_sub
12065    ac_abs_top_srcdir=$ac_pwd ;;
12066  [\\/]* | ?:[\\/]* )  # Absolute name.
12067    ac_srcdir=$srcdir$ac_dir_suffix;
12068    ac_top_srcdir=$srcdir
12069    ac_abs_top_srcdir=$srcdir ;;
12070  *) # Relative name.
12071    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12072    ac_top_srcdir=$ac_top_build_prefix$srcdir
12073    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12074esac
12075ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12076
12077
12078  case $ac_mode in
12079  :F)
12080  #
12081  # CONFIG_FILE
12082  #
12083
12084  case $INSTALL in
12085  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12086  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12087  esac
12088  ac_MKDIR_P=$MKDIR_P
12089  case $MKDIR_P in
12090  [\\/$]* | ?:[\\/]* ) ;;
12091  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12092  esac
12093_ACEOF
12094
12095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12096# If the template does not know about datarootdir, expand it.
12097# FIXME: This hack should be removed a few years after 2.60.
12098ac_datarootdir_hack=; ac_datarootdir_seen=
12099ac_sed_dataroot='
12100/datarootdir/ {
12101  p
12102  q
12103}
12104/@datadir@/p
12105/@docdir@/p
12106/@infodir@/p
12107/@localedir@/p
12108/@mandir@/p'
12109case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12110*datarootdir*) ac_datarootdir_seen=yes;;
12111*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12112  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12113$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12114_ACEOF
12115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12116  ac_datarootdir_hack='
12117  s&@datadir@&$datadir&g
12118  s&@docdir@&$docdir&g
12119  s&@infodir@&$infodir&g
12120  s&@localedir@&$localedir&g
12121  s&@mandir@&$mandir&g
12122  s&\\\${datarootdir}&$datarootdir&g' ;;
12123esac
12124_ACEOF
12125
12126# Neutralize VPATH when `$srcdir' = `.'.
12127# Shell code in configure.ac might set extrasub.
12128# FIXME: do we really want to maintain this feature?
12129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12130ac_sed_extra="$ac_vpsub
12131$extrasub
12132_ACEOF
12133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12134:t
12135/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12136s|@configure_input@|$ac_sed_conf_input|;t t
12137s&@top_builddir@&$ac_top_builddir_sub&;t t
12138s&@top_build_prefix@&$ac_top_build_prefix&;t t
12139s&@srcdir@&$ac_srcdir&;t t
12140s&@abs_srcdir@&$ac_abs_srcdir&;t t
12141s&@top_srcdir@&$ac_top_srcdir&;t t
12142s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12143s&@builddir@&$ac_builddir&;t t
12144s&@abs_builddir@&$ac_abs_builddir&;t t
12145s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12146s&@INSTALL@&$ac_INSTALL&;t t
12147s&@MKDIR_P@&$ac_MKDIR_P&;t t
12148$ac_datarootdir_hack
12149"
12150eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12151  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12152
12153test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12154  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12155  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12156      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12157  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12158which seems to be undefined.  Please make sure it is defined" >&5
12159$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12160which seems to be undefined.  Please make sure it is defined" >&2;}
12161
12162  rm -f "$ac_tmp/stdin"
12163  case $ac_file in
12164  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12165  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12166  esac \
12167  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12168 ;;
12169  :H)
12170  #
12171  # CONFIG_HEADER
12172  #
12173  if test x"$ac_file" != x-; then
12174    {
12175      $as_echo "/* $configure_input  */" \
12176      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12177    } >"$ac_tmp/config.h" \
12178      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12179    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12180      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12181$as_echo "$as_me: $ac_file is unchanged" >&6;}
12182    else
12183      rm -f "$ac_file"
12184      mv "$ac_tmp/config.h" "$ac_file" \
12185	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12186    fi
12187  else
12188    $as_echo "/* $configure_input  */" \
12189      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12190      || as_fn_error $? "could not create -" "$LINENO" 5
12191  fi
12192# Compute "$ac_file"'s index in $config_headers.
12193_am_arg="$ac_file"
12194_am_stamp_count=1
12195for _am_header in $config_headers :; do
12196  case $_am_header in
12197    $_am_arg | $_am_arg:* )
12198      break ;;
12199    * )
12200      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12201  esac
12202done
12203echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12204$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12205	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12206	 X"$_am_arg" : 'X\(//\)$' \| \
12207	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12208$as_echo X"$_am_arg" |
12209    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12210	    s//\1/
12211	    q
12212	  }
12213	  /^X\(\/\/\)[^/].*/{
12214	    s//\1/
12215	    q
12216	  }
12217	  /^X\(\/\/\)$/{
12218	    s//\1/
12219	    q
12220	  }
12221	  /^X\(\/\).*/{
12222	    s//\1/
12223	    q
12224	  }
12225	  s/.*/./; q'`/stamp-h$_am_stamp_count
12226 ;;
12227
12228  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12229$as_echo "$as_me: executing $ac_file commands" >&6;}
12230 ;;
12231  esac
12232
12233
12234  case $ac_file$ac_mode in
12235    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12236  # Older Autoconf quotes --file arguments for eval, but not when files
12237  # are listed without --file.  Let's play safe and only enable the eval
12238  # if we detect the quoting.
12239  case $CONFIG_FILES in
12240  *\'*) eval set x "$CONFIG_FILES" ;;
12241  *)   set x $CONFIG_FILES ;;
12242  esac
12243  shift
12244  for mf
12245  do
12246    # Strip MF so we end up with the name of the file.
12247    mf=`echo "$mf" | sed -e 's/:.*$//'`
12248    # Check whether this is an Automake generated Makefile or not.
12249    # We used to match only the files named 'Makefile.in', but
12250    # some people rename them; so instead we look at the file content.
12251    # Grep'ing the first line is not enough: some people post-process
12252    # each Makefile.in and add a new line on top of each file to say so.
12253    # Grep'ing the whole file is not good either: AIX grep has a line
12254    # limit of 2048, but all sed's we know have understand at least 4000.
12255    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12256      dirpart=`$as_dirname -- "$mf" ||
12257$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12258	 X"$mf" : 'X\(//\)[^/]' \| \
12259	 X"$mf" : 'X\(//\)$' \| \
12260	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12261$as_echo X"$mf" |
12262    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12263	    s//\1/
12264	    q
12265	  }
12266	  /^X\(\/\/\)[^/].*/{
12267	    s//\1/
12268	    q
12269	  }
12270	  /^X\(\/\/\)$/{
12271	    s//\1/
12272	    q
12273	  }
12274	  /^X\(\/\).*/{
12275	    s//\1/
12276	    q
12277	  }
12278	  s/.*/./; q'`
12279    else
12280      continue
12281    fi
12282    # Extract the definition of DEPDIR, am__include, and am__quote
12283    # from the Makefile without running 'make'.
12284    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12285    test -z "$DEPDIR" && continue
12286    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12287    test -z "$am__include" && continue
12288    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12289    # Find all dependency output files, they are included files with
12290    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12291    # simplest approach to changing $(DEPDIR) to its actual value in the
12292    # expansion.
12293    for file in `sed -n "
12294      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12295	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12296      # Make sure the directory exists.
12297      test -f "$dirpart/$file" && continue
12298      fdir=`$as_dirname -- "$file" ||
12299$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12300	 X"$file" : 'X\(//\)[^/]' \| \
12301	 X"$file" : 'X\(//\)$' \| \
12302	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12303$as_echo X"$file" |
12304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12305	    s//\1/
12306	    q
12307	  }
12308	  /^X\(\/\/\)[^/].*/{
12309	    s//\1/
12310	    q
12311	  }
12312	  /^X\(\/\/\)$/{
12313	    s//\1/
12314	    q
12315	  }
12316	  /^X\(\/\).*/{
12317	    s//\1/
12318	    q
12319	  }
12320	  s/.*/./; q'`
12321      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12322      # echo "creating $dirpart/$file"
12323      echo '# dummy' > "$dirpart/$file"
12324    done
12325  done
12326}
12327 ;;
12328
12329  esac
12330done # for ac_tag
12331
12332
12333as_fn_exit 0
12334_ACEOF
12335ac_clean_files=$ac_clean_files_save
12336
12337test $ac_write_fail = 0 ||
12338  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12339
12340
12341# configure is writing to config.log, and then calls config.status.
12342# config.status does its own redirection, appending to config.log.
12343# Unfortunately, on DOS this fails, as config.log is still kept open
12344# by configure, so config.status won't be able to write to it; its
12345# output is simply discarded.  So we exec the FD to /dev/null,
12346# effectively closing config.log, so it can be properly (re)opened and
12347# appended to by config.status.  When coming back to configure, we
12348# need to make the FD available again.
12349if test "$no_create" != yes; then
12350  ac_cs_success=:
12351  ac_config_status_args=
12352  test "$silent" = yes &&
12353    ac_config_status_args="$ac_config_status_args --quiet"
12354  exec 5>/dev/null
12355  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12356  exec 5>>config.log
12357  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12358  # would make configure fail if this is the last instruction.
12359  $ac_cs_success || as_fn_exit 1
12360fi
12361if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12362  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12363$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12364fi
12365
12366