configure revision feee4651
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xset 1.2.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='xset'
583PACKAGE_TARNAME='xset'
584PACKAGE_VERSION='1.2.4'
585PACKAGE_STRING='xset 1.2.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
630SET_FONTCACHE_LIBS
631SET_FONTCACHE_CFLAGS
632SET_XF86MISC_LIBS
633SET_XF86MISC_CFLAGS
634SET_XKB_LIBS
635SET_XKB_CFLAGS
636SET_XEXT_LIBS
637SET_XEXT_CFLAGS
638SET_X11_LIBS
639SET_X11_CFLAGS
640XSET_LIBS
641XSET_CFLAGS
642MAN_SUBSTS
643XORG_MAN_PAGE
644ADMIN_MAN_DIR
645DRIVER_MAN_DIR
646MISC_MAN_DIR
647FILE_MAN_DIR
648LIB_MAN_DIR
649APP_MAN_DIR
650ADMIN_MAN_SUFFIX
651DRIVER_MAN_SUFFIX
652MISC_MAN_SUFFIX
653FILE_MAN_SUFFIX
654LIB_MAN_SUFFIX
655APP_MAN_SUFFIX
656SED
657host_os
658host_vendor
659host_cpu
660host
661build_os
662build_vendor
663build_cpu
664build
665INSTALL_CMD
666PKG_CONFIG_LIBDIR
667PKG_CONFIG_PATH
668PKG_CONFIG
669CHANGELOG_CMD
670STRICT_CFLAGS
671CWARNFLAGS
672BASE_CFLAGS
673AM_BACKSLASH
674AM_DEFAULT_VERBOSITY
675AM_DEFAULT_V
676AM_V
677am__fastdepCC_FALSE
678am__fastdepCC_TRUE
679CCDEPMODE
680am__nodep
681AMDEPBACKSLASH
682AMDEP_FALSE
683AMDEP_TRUE
684am__quote
685am__include
686DEPDIR
687am__untar
688am__tar
689AMTAR
690am__leading_dot
691SET_MAKE
692AWK
693mkdir_p
694MKDIR_P
695INSTALL_STRIP_PROGRAM
696STRIP
697install_sh
698MAKEINFO
699AUTOHEADER
700AUTOMAKE
701AUTOCONF
702ACLOCAL
703VERSION
704PACKAGE
705CYGPATH_W
706am__isrc
707INSTALL_DATA
708INSTALL_SCRIPT
709INSTALL_PROGRAM
710EGREP
711GREP
712CPP
713OBJEXT
714EXEEXT
715ac_ct_CC
716CPPFLAGS
717LDFLAGS
718CFLAGS
719CC
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
750PACKAGE_URL
751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
757SHELL'
758ac_subst_files=''
759ac_user_opts='
760enable_option_checking
761enable_dependency_tracking
762enable_silent_rules
763enable_selective_werror
764enable_strict_compilation
765with_xf86misc
766with_fontcache
767'
768      ac_precious_vars='build_alias
769host_alias
770target_alias
771CC
772CFLAGS
773LDFLAGS
774LIBS
775CPPFLAGS
776CPP
777PKG_CONFIG
778PKG_CONFIG_PATH
779PKG_CONFIG_LIBDIR
780XSET_CFLAGS
781XSET_LIBS
782SET_X11_CFLAGS
783SET_X11_LIBS
784SET_XEXT_CFLAGS
785SET_XEXT_LIBS
786SET_XKB_CFLAGS
787SET_XKB_LIBS
788SET_XF86MISC_CFLAGS
789SET_XF86MISC_LIBS
790SET_FONTCACHE_CFLAGS
791SET_FONTCACHE_LIBS'
792
793
794# Initialize some variables set by options.
795ac_init_help=
796ac_init_version=false
797ac_unrecognized_opts=
798ac_unrecognized_sep=
799# The variables have the same names as the options, with
800# dashes changed to underlines.
801cache_file=/dev/null
802exec_prefix=NONE
803no_create=
804no_recursion=
805prefix=NONE
806program_prefix=NONE
807program_suffix=NONE
808program_transform_name=s,x,x,
809silent=
810site=
811srcdir=
812verbose=
813x_includes=NONE
814x_libraries=NONE
815
816# Installation directory options.
817# These are left unexpanded so users can "make install exec_prefix=/foo"
818# and all the variables that are supposed to be based on exec_prefix
819# by default will actually change.
820# Use braces instead of parens because sh, perl, etc. also accept them.
821# (The list follows the same order as the GNU Coding Standards.)
822bindir='${exec_prefix}/bin'
823sbindir='${exec_prefix}/sbin'
824libexecdir='${exec_prefix}/libexec'
825datarootdir='${prefix}/share'
826datadir='${datarootdir}'
827sysconfdir='${prefix}/etc'
828sharedstatedir='${prefix}/com'
829localstatedir='${prefix}/var'
830includedir='${prefix}/include'
831oldincludedir='/usr/include'
832docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833infodir='${datarootdir}/info'
834htmldir='${docdir}'
835dvidir='${docdir}'
836pdfdir='${docdir}'
837psdir='${docdir}'
838libdir='${exec_prefix}/lib'
839localedir='${datarootdir}/locale'
840mandir='${datarootdir}/man'
841
842ac_prev=
843ac_dashdash=
844for ac_option
845do
846  # If the previous option needs an argument, assign it.
847  if test -n "$ac_prev"; then
848    eval $ac_prev=\$ac_option
849    ac_prev=
850    continue
851  fi
852
853  case $ac_option in
854  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855  *=)   ac_optarg= ;;
856  *)    ac_optarg=yes ;;
857  esac
858
859  # Accept the important Cygnus configure options, so we can diagnose typos.
860
861  case $ac_dashdash$ac_option in
862  --)
863    ac_dashdash=yes ;;
864
865  -bindir | --bindir | --bindi | --bind | --bin | --bi)
866    ac_prev=bindir ;;
867  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868    bindir=$ac_optarg ;;
869
870  -build | --build | --buil | --bui | --bu)
871    ac_prev=build_alias ;;
872  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873    build_alias=$ac_optarg ;;
874
875  -cache-file | --cache-file | --cache-fil | --cache-fi \
876  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877    ac_prev=cache_file ;;
878  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880    cache_file=$ac_optarg ;;
881
882  --config-cache | -C)
883    cache_file=config.cache ;;
884
885  -datadir | --datadir | --datadi | --datad)
886    ac_prev=datadir ;;
887  -datadir=* | --datadir=* | --datadi=* | --datad=*)
888    datadir=$ac_optarg ;;
889
890  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891  | --dataroo | --dataro | --datar)
892    ac_prev=datarootdir ;;
893  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895    datarootdir=$ac_optarg ;;
896
897  -disable-* | --disable-*)
898    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
909	 ac_unrecognized_sep=', ';;
910    esac
911    eval enable_$ac_useropt=no ;;
912
913  -docdir | --docdir | --docdi | --doc | --do)
914    ac_prev=docdir ;;
915  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916    docdir=$ac_optarg ;;
917
918  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919    ac_prev=dvidir ;;
920  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921    dvidir=$ac_optarg ;;
922
923  -enable-* | --enable-*)
924    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925    # Reject names that are not valid shell variable names.
926    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927      as_fn_error $? "invalid feature name: $ac_useropt"
928    ac_useropt_orig=$ac_useropt
929    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930    case $ac_user_opts in
931      *"
932"enable_$ac_useropt"
933"*) ;;
934      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935	 ac_unrecognized_sep=', ';;
936    esac
937    eval enable_$ac_useropt=\$ac_optarg ;;
938
939  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941  | --exec | --exe | --ex)
942    ac_prev=exec_prefix ;;
943  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945  | --exec=* | --exe=* | --ex=*)
946    exec_prefix=$ac_optarg ;;
947
948  -gas | --gas | --ga | --g)
949    # Obsolete; use --with-gas.
950    with_gas=yes ;;
951
952  -help | --help | --hel | --he | -h)
953    ac_init_help=long ;;
954  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955    ac_init_help=recursive ;;
956  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957    ac_init_help=short ;;
958
959  -host | --host | --hos | --ho)
960    ac_prev=host_alias ;;
961  -host=* | --host=* | --hos=* | --ho=*)
962    host_alias=$ac_optarg ;;
963
964  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965    ac_prev=htmldir ;;
966  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967  | --ht=*)
968    htmldir=$ac_optarg ;;
969
970  -includedir | --includedir | --includedi | --included | --include \
971  | --includ | --inclu | --incl | --inc)
972    ac_prev=includedir ;;
973  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974  | --includ=* | --inclu=* | --incl=* | --inc=*)
975    includedir=$ac_optarg ;;
976
977  -infodir | --infodir | --infodi | --infod | --info | --inf)
978    ac_prev=infodir ;;
979  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980    infodir=$ac_optarg ;;
981
982  -libdir | --libdir | --libdi | --libd)
983    ac_prev=libdir ;;
984  -libdir=* | --libdir=* | --libdi=* | --libd=*)
985    libdir=$ac_optarg ;;
986
987  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988  | --libexe | --libex | --libe)
989    ac_prev=libexecdir ;;
990  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991  | --libexe=* | --libex=* | --libe=*)
992    libexecdir=$ac_optarg ;;
993
994  -localedir | --localedir | --localedi | --localed | --locale)
995    ac_prev=localedir ;;
996  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997    localedir=$ac_optarg ;;
998
999  -localstatedir | --localstatedir | --localstatedi | --localstated \
1000  | --localstate | --localstat | --localsta | --localst | --locals)
1001    ac_prev=localstatedir ;;
1002  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004    localstatedir=$ac_optarg ;;
1005
1006  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007    ac_prev=mandir ;;
1008  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009    mandir=$ac_optarg ;;
1010
1011  -nfp | --nfp | --nf)
1012    # Obsolete; use --without-fp.
1013    with_fp=no ;;
1014
1015  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016  | --no-cr | --no-c | -n)
1017    no_create=yes ;;
1018
1019  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021    no_recursion=yes ;;
1022
1023  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025  | --oldin | --oldi | --old | --ol | --o)
1026    ac_prev=oldincludedir ;;
1027  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030    oldincludedir=$ac_optarg ;;
1031
1032  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033    ac_prev=prefix ;;
1034  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035    prefix=$ac_optarg ;;
1036
1037  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038  | --program-pre | --program-pr | --program-p)
1039    ac_prev=program_prefix ;;
1040  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042    program_prefix=$ac_optarg ;;
1043
1044  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045  | --program-suf | --program-su | --program-s)
1046    ac_prev=program_suffix ;;
1047  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049    program_suffix=$ac_optarg ;;
1050
1051  -program-transform-name | --program-transform-name \
1052  | --program-transform-nam | --program-transform-na \
1053  | --program-transform-n | --program-transform- \
1054  | --program-transform | --program-transfor \
1055  | --program-transfo | --program-transf \
1056  | --program-trans | --program-tran \
1057  | --progr-tra | --program-tr | --program-t)
1058    ac_prev=program_transform_name ;;
1059  -program-transform-name=* | --program-transform-name=* \
1060  | --program-transform-nam=* | --program-transform-na=* \
1061  | --program-transform-n=* | --program-transform-=* \
1062  | --program-transform=* | --program-transfor=* \
1063  | --program-transfo=* | --program-transf=* \
1064  | --program-trans=* | --program-tran=* \
1065  | --progr-tra=* | --program-tr=* | --program-t=*)
1066    program_transform_name=$ac_optarg ;;
1067
1068  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069    ac_prev=pdfdir ;;
1070  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071    pdfdir=$ac_optarg ;;
1072
1073  -psdir | --psdir | --psdi | --psd | --ps)
1074    ac_prev=psdir ;;
1075  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076    psdir=$ac_optarg ;;
1077
1078  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079  | -silent | --silent | --silen | --sile | --sil)
1080    silent=yes ;;
1081
1082  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083    ac_prev=sbindir ;;
1084  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085  | --sbi=* | --sb=*)
1086    sbindir=$ac_optarg ;;
1087
1088  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090  | --sharedst | --shareds | --shared | --share | --shar \
1091  | --sha | --sh)
1092    ac_prev=sharedstatedir ;;
1093  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096  | --sha=* | --sh=*)
1097    sharedstatedir=$ac_optarg ;;
1098
1099  -site | --site | --sit)
1100    ac_prev=site ;;
1101  -site=* | --site=* | --sit=*)
1102    site=$ac_optarg ;;
1103
1104  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105    ac_prev=srcdir ;;
1106  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107    srcdir=$ac_optarg ;;
1108
1109  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110  | --syscon | --sysco | --sysc | --sys | --sy)
1111    ac_prev=sysconfdir ;;
1112  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114    sysconfdir=$ac_optarg ;;
1115
1116  -target | --target | --targe | --targ | --tar | --ta | --t)
1117    ac_prev=target_alias ;;
1118  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119    target_alias=$ac_optarg ;;
1120
1121  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122    verbose=yes ;;
1123
1124  -version | --version | --versio | --versi | --vers | -V)
1125    ac_init_version=: ;;
1126
1127  -with-* | --with-*)
1128    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129    # Reject names that are not valid shell variable names.
1130    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131      as_fn_error $? "invalid package name: $ac_useropt"
1132    ac_useropt_orig=$ac_useropt
1133    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134    case $ac_user_opts in
1135      *"
1136"with_$ac_useropt"
1137"*) ;;
1138      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139	 ac_unrecognized_sep=', ';;
1140    esac
1141    eval with_$ac_useropt=\$ac_optarg ;;
1142
1143  -without-* | --without-*)
1144    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147      as_fn_error $? "invalid package name: $ac_useropt"
1148    ac_useropt_orig=$ac_useropt
1149    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150    case $ac_user_opts in
1151      *"
1152"with_$ac_useropt"
1153"*) ;;
1154      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155	 ac_unrecognized_sep=', ';;
1156    esac
1157    eval with_$ac_useropt=no ;;
1158
1159  --x)
1160    # Obsolete; use --with-x.
1161    with_x=yes ;;
1162
1163  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164  | --x-incl | --x-inc | --x-in | --x-i)
1165    ac_prev=x_includes ;;
1166  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168    x_includes=$ac_optarg ;;
1169
1170  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172    ac_prev=x_libraries ;;
1173  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175    x_libraries=$ac_optarg ;;
1176
1177  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178Try \`$0 --help' for more information"
1179    ;;
1180
1181  *=*)
1182    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183    # Reject names that are not valid shell variable names.
1184    case $ac_envvar in #(
1185      '' | [0-9]* | *[!_$as_cr_alnum]* )
1186      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187    esac
1188    eval $ac_envvar=\$ac_optarg
1189    export $ac_envvar ;;
1190
1191  *)
1192    # FIXME: should be removed in autoconf 3.0.
1193    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197    ;;
1198
1199  esac
1200done
1201
1202if test -n "$ac_prev"; then
1203  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204  as_fn_error $? "missing argument to $ac_option"
1205fi
1206
1207if test -n "$ac_unrecognized_opts"; then
1208  case $enable_option_checking in
1209    no) ;;
1210    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212  esac
1213fi
1214
1215# Check all directory arguments for consistency.
1216for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217		datadir sysconfdir sharedstatedir localstatedir includedir \
1218		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219		libdir localedir mandir
1220do
1221  eval ac_val=\$$ac_var
1222  # Remove trailing slashes.
1223  case $ac_val in
1224    */ )
1225      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226      eval $ac_var=\$ac_val;;
1227  esac
1228  # Be sure to have absolute directory names.
1229  case $ac_val in
1230    [\\/$]* | ?:[\\/]* )  continue;;
1231    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232  esac
1233  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234done
1235
1236# There might be people who depend on the old broken behavior: `$host'
1237# used to hold the argument of --host etc.
1238# FIXME: To remove some day.
1239build=$build_alias
1240host=$host_alias
1241target=$target_alias
1242
1243# FIXME: To remove some day.
1244if test "x$host_alias" != x; then
1245  if test "x$build_alias" = x; then
1246    cross_compiling=maybe
1247  elif test "x$build_alias" != "x$host_alias"; then
1248    cross_compiling=yes
1249  fi
1250fi
1251
1252ac_tool_prefix=
1253test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255test "$silent" = yes && exec 6>/dev/null
1256
1257
1258ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259ac_ls_di=`ls -di .` &&
1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261  as_fn_error $? "working directory cannot be determined"
1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263  as_fn_error $? "pwd does not report name of working directory"
1264
1265
1266# Find the source files, if location was not specified.
1267if test -z "$srcdir"; then
1268  ac_srcdir_defaulted=yes
1269  # Try the directory containing this script, then the parent directory.
1270  ac_confdir=`$as_dirname -- "$as_myself" ||
1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272	 X"$as_myself" : 'X\(//\)[^/]' \| \
1273	 X"$as_myself" : 'X\(//\)$' \| \
1274	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275$as_echo X"$as_myself" |
1276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\/\)[^/].*/{
1281	    s//\1/
1282	    q
1283	  }
1284	  /^X\(\/\/\)$/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\).*/{
1289	    s//\1/
1290	    q
1291	  }
1292	  s/.*/./; q'`
1293  srcdir=$ac_confdir
1294  if test ! -r "$srcdir/$ac_unique_file"; then
1295    srcdir=..
1296  fi
1297else
1298  ac_srcdir_defaulted=no
1299fi
1300if test ! -r "$srcdir/$ac_unique_file"; then
1301  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303fi
1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305ac_abs_confdir=`(
1306	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307	pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310  srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320  eval ac_env_${ac_var}_value=\$${ac_var}
1321  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
1324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329  # Omit some internal or obsolete options to make the list less imposing.
1330  # This message is too long to be a string in the A/UX 3.1 sh.
1331  cat <<_ACEOF
1332\`configure' configures xset 1.2.4 to adapt to many kinds of systems.
1333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE.  See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342  -h, --help              display this help and exit
1343      --help=short        display options specific to this package
1344      --help=recursive    display the short help of all the included packages
1345  -V, --version           display version information and exit
1346  -q, --quiet, --silent   do not print \`checking ...' messages
1347      --cache-file=FILE   cache test results in FILE [disabled]
1348  -C, --config-cache      alias for \`--cache-file=config.cache'
1349  -n, --no-create         do not create output files
1350      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351
1352Installation directories:
1353  --prefix=PREFIX         install architecture-independent files in PREFIX
1354                          [$ac_default_prefix]
1355  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                          [PREFIX]
1357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
1366  --bindir=DIR            user executables [EPREFIX/bin]
1367  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1368  --libexecdir=DIR        program executables [EPREFIX/libexec]
1369  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1370  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1371  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1372  --libdir=DIR            object code libraries [EPREFIX/lib]
1373  --includedir=DIR        C header files [PREFIX/include]
1374  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1375  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1376  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1377  --infodir=DIR           info documentation [DATAROOTDIR/info]
1378  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1379  --mandir=DIR            man documentation [DATAROOTDIR/man]
1380  --docdir=DIR            documentation root [DATAROOTDIR/doc/xset]
1381  --htmldir=DIR           html documentation [DOCDIR]
1382  --dvidir=DIR            dvi documentation [DOCDIR]
1383  --pdfdir=DIR            pdf documentation [DOCDIR]
1384  --psdir=DIR             ps documentation [DOCDIR]
1385_ACEOF
1386
1387  cat <<\_ACEOF
1388
1389Program names:
1390  --program-prefix=PREFIX            prepend PREFIX to installed program names
1391  --program-suffix=SUFFIX            append SUFFIX to installed program names
1392  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1393
1394System types:
1395  --build=BUILD     configure for building on BUILD [guessed]
1396  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1397_ACEOF
1398fi
1399
1400if test -n "$ac_init_help"; then
1401  case $ac_init_help in
1402     short | recursive ) echo "Configuration of xset 1.2.4:";;
1403   esac
1404  cat <<\_ACEOF
1405
1406Optional Features:
1407  --disable-option-checking  ignore unrecognized --enable/--with options
1408  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1409  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1410  --enable-dependency-tracking
1411                          do not reject slow dependency extractors
1412  --disable-dependency-tracking
1413                          speeds up one-time build
1414  --enable-silent-rules   less verbose build output (undo: "make V=1")
1415  --disable-silent-rules  verbose build output (undo: "make V=0")
1416  --disable-selective-werror
1417                          Turn off selective compiler errors. (default:
1418                          enabled)
1419  --enable-strict-compilation
1420                          Enable all warnings from compiler and make them
1421                          errors (default: disabled)
1422
1423Optional Packages:
1424  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426  --without-xf86misc      Disable xf86misc support.
1427  --without-fontcache     Disable fontcache support.
1428
1429Some influential environment variables:
1430  CC          C compiler command
1431  CFLAGS      C compiler flags
1432  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1433              nonstandard directory <lib dir>
1434  LIBS        libraries to pass to the linker, e.g. -l<library>
1435  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436              you have headers in a nonstandard directory <include dir>
1437  CPP         C preprocessor
1438  PKG_CONFIG  path to pkg-config utility
1439  PKG_CONFIG_PATH
1440              directories to add to pkg-config's search path
1441  PKG_CONFIG_LIBDIR
1442              path overriding pkg-config's built-in search path
1443  XSET_CFLAGS C compiler flags for XSET, overriding pkg-config
1444  XSET_LIBS   linker flags for XSET, overriding pkg-config
1445  SET_X11_CFLAGS
1446              C compiler flags for SET_X11, overriding pkg-config
1447  SET_X11_LIBS
1448              linker flags for SET_X11, overriding pkg-config
1449  SET_XEXT_CFLAGS
1450              C compiler flags for SET_XEXT, overriding pkg-config
1451  SET_XEXT_LIBS
1452              linker flags for SET_XEXT, overriding pkg-config
1453  SET_XKB_CFLAGS
1454              C compiler flags for SET_XKB, overriding pkg-config
1455  SET_XKB_LIBS
1456              linker flags for SET_XKB, overriding pkg-config
1457  SET_XF86MISC_CFLAGS
1458              C compiler flags for SET_XF86MISC, overriding pkg-config
1459  SET_XF86MISC_LIBS
1460              linker flags for SET_XF86MISC, overriding pkg-config
1461  SET_FONTCACHE_CFLAGS
1462              C compiler flags for SET_FONTCACHE, overriding pkg-config
1463  SET_FONTCACHE_LIBS
1464              linker flags for SET_FONTCACHE, overriding pkg-config
1465
1466Use these variables to override the choices made by `configure' or to help
1467it to find libraries and programs with nonstandard names/locations.
1468
1469Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1470_ACEOF
1471ac_status=$?
1472fi
1473
1474if test "$ac_init_help" = "recursive"; then
1475  # If there are subdirs, report their specific --help.
1476  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477    test -d "$ac_dir" ||
1478      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479      continue
1480    ac_builddir=.
1481
1482case "$ac_dir" in
1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484*)
1485  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486  # A ".." for each directory in $ac_dir_suffix.
1487  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488  case $ac_top_builddir_sub in
1489  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491  esac ;;
1492esac
1493ac_abs_top_builddir=$ac_pwd
1494ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495# for backward compatibility:
1496ac_top_builddir=$ac_top_build_prefix
1497
1498case $srcdir in
1499  .)  # We are building in place.
1500    ac_srcdir=.
1501    ac_top_srcdir=$ac_top_builddir_sub
1502    ac_abs_top_srcdir=$ac_pwd ;;
1503  [\\/]* | ?:[\\/]* )  # Absolute name.
1504    ac_srcdir=$srcdir$ac_dir_suffix;
1505    ac_top_srcdir=$srcdir
1506    ac_abs_top_srcdir=$srcdir ;;
1507  *) # Relative name.
1508    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509    ac_top_srcdir=$ac_top_build_prefix$srcdir
1510    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511esac
1512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514    cd "$ac_dir" || { ac_status=$?; continue; }
1515    # Check for guested configure.
1516    if test -f "$ac_srcdir/configure.gnu"; then
1517      echo &&
1518      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519    elif test -f "$ac_srcdir/configure"; then
1520      echo &&
1521      $SHELL "$ac_srcdir/configure" --help=recursive
1522    else
1523      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524    fi || ac_status=$?
1525    cd "$ac_pwd" || { ac_status=$?; break; }
1526  done
1527fi
1528
1529test -n "$ac_init_help" && exit $ac_status
1530if $ac_init_version; then
1531  cat <<\_ACEOF
1532xset configure 1.2.4
1533generated by GNU Autoconf 2.69
1534
1535Copyright (C) 2012 Free Software Foundation, Inc.
1536This configure script is free software; the Free Software Foundation
1537gives unlimited permission to copy, distribute and modify it.
1538_ACEOF
1539  exit
1540fi
1541
1542## ------------------------ ##
1543## Autoconf initialization. ##
1544## ------------------------ ##
1545
1546# ac_fn_c_try_compile LINENO
1547# --------------------------
1548# Try to compile conftest.$ac_ext, and return whether this succeeded.
1549ac_fn_c_try_compile ()
1550{
1551  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552  rm -f conftest.$ac_objext
1553  if { { ac_try="$ac_compile"
1554case "(($ac_try" in
1555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556  *) ac_try_echo=$ac_try;;
1557esac
1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559$as_echo "$ac_try_echo"; } >&5
1560  (eval "$ac_compile") 2>conftest.err
1561  ac_status=$?
1562  if test -s conftest.err; then
1563    grep -v '^ *+' conftest.err >conftest.er1
1564    cat conftest.er1 >&5
1565    mv -f conftest.er1 conftest.err
1566  fi
1567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568  test $ac_status = 0; } && {
1569	 test -z "$ac_c_werror_flag" ||
1570	 test ! -s conftest.err
1571       } && test -s conftest.$ac_objext; then :
1572  ac_retval=0
1573else
1574  $as_echo "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
1576
1577	ac_retval=1
1578fi
1579  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580  as_fn_set_status $ac_retval
1581
1582} # ac_fn_c_try_compile
1583
1584# ac_fn_c_try_cpp LINENO
1585# ----------------------
1586# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_cpp ()
1588{
1589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590  if { { ac_try="$ac_cpp conftest.$ac_ext"
1591case "(($ac_try" in
1592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593  *) ac_try_echo=$ac_try;;
1594esac
1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596$as_echo "$ac_try_echo"; } >&5
1597  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1598  ac_status=$?
1599  if test -s conftest.err; then
1600    grep -v '^ *+' conftest.err >conftest.er1
1601    cat conftest.er1 >&5
1602    mv -f conftest.er1 conftest.err
1603  fi
1604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605  test $ac_status = 0; } > conftest.i && {
1606	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1607	 test ! -s conftest.err
1608       }; then :
1609  ac_retval=0
1610else
1611  $as_echo "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
1613
1614    ac_retval=1
1615fi
1616  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617  as_fn_set_status $ac_retval
1618
1619} # ac_fn_c_try_cpp
1620
1621# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1622# -------------------------------------------------------
1623# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1624# the include files in INCLUDES and setting the cache variable VAR
1625# accordingly.
1626ac_fn_c_check_header_mongrel ()
1627{
1628  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629  if eval \${$3+:} false; then :
1630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631$as_echo_n "checking for $2... " >&6; }
1632if eval \${$3+:} false; then :
1633  $as_echo_n "(cached) " >&6
1634fi
1635eval ac_res=\$$3
1636	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637$as_echo "$ac_res" >&6; }
1638else
1639  # Is the header compilable?
1640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1641$as_echo_n "checking $2 usability... " >&6; }
1642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643/* end confdefs.h.  */
1644$4
1645#include <$2>
1646_ACEOF
1647if ac_fn_c_try_compile "$LINENO"; then :
1648  ac_header_compiler=yes
1649else
1650  ac_header_compiler=no
1651fi
1652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1654$as_echo "$ac_header_compiler" >&6; }
1655
1656# Is the header present?
1657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1658$as_echo_n "checking $2 presence... " >&6; }
1659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h.  */
1661#include <$2>
1662_ACEOF
1663if ac_fn_c_try_cpp "$LINENO"; then :
1664  ac_header_preproc=yes
1665else
1666  ac_header_preproc=no
1667fi
1668rm -f conftest.err conftest.i conftest.$ac_ext
1669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1670$as_echo "$ac_header_preproc" >&6; }
1671
1672# So?  What about this header?
1673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1674  yes:no: )
1675    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1676$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1677    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1678$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1679    ;;
1680  no:yes:* )
1681    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1682$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1683    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1684$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1685    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1686$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1687    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1688$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1689    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691( $as_echo "## ---------------------------------------------------------------------- ##
1692## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1693## ---------------------------------------------------------------------- ##"
1694     ) | sed "s/^/$as_me: WARNING:     /" >&2
1695    ;;
1696esac
1697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698$as_echo_n "checking for $2... " >&6; }
1699if eval \${$3+:} false; then :
1700  $as_echo_n "(cached) " >&6
1701else
1702  eval "$3=\$ac_header_compiler"
1703fi
1704eval ac_res=\$$3
1705	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706$as_echo "$ac_res" >&6; }
1707fi
1708  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709
1710} # ac_fn_c_check_header_mongrel
1711
1712# ac_fn_c_try_run LINENO
1713# ----------------------
1714# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715# that executables *can* be run.
1716ac_fn_c_try_run ()
1717{
1718  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719  if { { ac_try="$ac_link"
1720case "(($ac_try" in
1721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722  *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726  (eval "$ac_link") 2>&5
1727  ac_status=$?
1728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730  { { case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736  (eval "$ac_try") 2>&5
1737  ac_status=$?
1738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739  test $ac_status = 0; }; }; then :
1740  ac_retval=0
1741else
1742  $as_echo "$as_me: program exited with status $ac_status" >&5
1743       $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746       ac_retval=$ac_status
1747fi
1748  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750  as_fn_set_status $ac_retval
1751
1752} # ac_fn_c_try_run
1753
1754# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755# -------------------------------------------------------
1756# Tests whether HEADER exists and can be compiled using the include files in
1757# INCLUDES, setting the cache variable VAR accordingly.
1758ac_fn_c_check_header_compile ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if eval \${$3+:} false; then :
1764  $as_echo_n "(cached) " >&6
1765else
1766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h.  */
1768$4
1769#include <$2>
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772  eval "$3=yes"
1773else
1774  eval "$3=no"
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_header_compile
1784
1785# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1786# ---------------------------------------------
1787# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1788# accordingly.
1789ac_fn_c_check_decl ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  as_decl_name=`echo $2|sed 's/ *(.*//'`
1793  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1795$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1796if eval \${$3+:} false; then :
1797  $as_echo_n "(cached) " >&6
1798else
1799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h.  */
1801$4
1802int
1803main ()
1804{
1805#ifndef $as_decl_name
1806#ifdef __cplusplus
1807  (void) $as_decl_use;
1808#else
1809  (void) $as_decl_name;
1810#endif
1811#endif
1812
1813  ;
1814  return 0;
1815}
1816_ACEOF
1817if ac_fn_c_try_compile "$LINENO"; then :
1818  eval "$3=yes"
1819else
1820  eval "$3=no"
1821fi
1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823fi
1824eval ac_res=\$$3
1825	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
1827  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829} # ac_fn_c_check_decl
1830
1831# ac_fn_c_try_link LINENO
1832# -----------------------
1833# Try to link conftest.$ac_ext, and return whether this succeeded.
1834ac_fn_c_try_link ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  rm -f conftest.$ac_objext conftest$ac_exeext
1838  if { { ac_try="$ac_link"
1839case "(($ac_try" in
1840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841  *) ac_try_echo=$ac_try;;
1842esac
1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844$as_echo "$ac_try_echo"; } >&5
1845  (eval "$ac_link") 2>conftest.err
1846  ac_status=$?
1847  if test -s conftest.err; then
1848    grep -v '^ *+' conftest.err >conftest.er1
1849    cat conftest.er1 >&5
1850    mv -f conftest.er1 conftest.err
1851  fi
1852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853  test $ac_status = 0; } && {
1854	 test -z "$ac_c_werror_flag" ||
1855	 test ! -s conftest.err
1856       } && test -s conftest$ac_exeext && {
1857	 test "$cross_compiling" = yes ||
1858	 test -x conftest$ac_exeext
1859       }; then :
1860  ac_retval=0
1861else
1862  $as_echo "$as_me: failed program was:" >&5
1863sed 's/^/| /' conftest.$ac_ext >&5
1864
1865	ac_retval=1
1866fi
1867  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1868  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1869  # interfere with the next link command; also delete a directory that is
1870  # left behind by Apple's compiler.  We do this before executing the actions.
1871  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873  as_fn_set_status $ac_retval
1874
1875} # ac_fn_c_try_link
1876
1877# ac_fn_c_check_func LINENO FUNC VAR
1878# ----------------------------------
1879# Tests whether FUNC exists, setting the cache variable VAR accordingly
1880ac_fn_c_check_func ()
1881{
1882  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884$as_echo_n "checking for $2... " >&6; }
1885if eval \${$3+:} false; then :
1886  $as_echo_n "(cached) " >&6
1887else
1888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h.  */
1890/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1892#define $2 innocuous_$2
1893
1894/* System header to define __stub macros and hopefully few prototypes,
1895    which can conflict with char $2 (); below.
1896    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897    <limits.h> exists even on freestanding compilers.  */
1898
1899#ifdef __STDC__
1900# include <limits.h>
1901#else
1902# include <assert.h>
1903#endif
1904
1905#undef $2
1906
1907/* Override any GCC internal prototype to avoid an error.
1908   Use char because int might match the return type of a GCC
1909   builtin and then its argument prototype would still apply.  */
1910#ifdef __cplusplus
1911extern "C"
1912#endif
1913char $2 ();
1914/* The GNU C library defines this for functions which it implements
1915    to always fail with ENOSYS.  Some functions are actually named
1916    something starting with __ and the normal name is an alias.  */
1917#if defined __stub_$2 || defined __stub___$2
1918choke me
1919#endif
1920
1921int
1922main ()
1923{
1924return $2 ();
1925  ;
1926  return 0;
1927}
1928_ACEOF
1929if ac_fn_c_try_link "$LINENO"; then :
1930  eval "$3=yes"
1931else
1932  eval "$3=no"
1933fi
1934rm -f core conftest.err conftest.$ac_objext \
1935    conftest$ac_exeext conftest.$ac_ext
1936fi
1937eval ac_res=\$$3
1938	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939$as_echo "$ac_res" >&6; }
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942} # ac_fn_c_check_func
1943cat >config.log <<_ACEOF
1944This file contains any messages produced by compilers while
1945running configure, to aid debugging if configure makes a mistake.
1946
1947It was created by xset $as_me 1.2.4, which was
1948generated by GNU Autoconf 2.69.  Invocation command line was
1949
1950  $ $0 $@
1951
1952_ACEOF
1953exec 5>>config.log
1954{
1955cat <<_ASUNAME
1956## --------- ##
1957## Platform. ##
1958## --------- ##
1959
1960hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1961uname -m = `(uname -m) 2>/dev/null || echo unknown`
1962uname -r = `(uname -r) 2>/dev/null || echo unknown`
1963uname -s = `(uname -s) 2>/dev/null || echo unknown`
1964uname -v = `(uname -v) 2>/dev/null || echo unknown`
1965
1966/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1967/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1968
1969/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1970/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1971/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1972/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1973/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1974/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1975/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1976
1977_ASUNAME
1978
1979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980for as_dir in $PATH
1981do
1982  IFS=$as_save_IFS
1983  test -z "$as_dir" && as_dir=.
1984    $as_echo "PATH: $as_dir"
1985  done
1986IFS=$as_save_IFS
1987
1988} >&5
1989
1990cat >&5 <<_ACEOF
1991
1992
1993## ----------- ##
1994## Core tests. ##
1995## ----------- ##
1996
1997_ACEOF
1998
1999
2000# Keep a trace of the command line.
2001# Strip out --no-create and --no-recursion so they do not pile up.
2002# Strip out --silent because we don't want to record it for future runs.
2003# Also quote any args containing shell meta-characters.
2004# Make two passes to allow for proper duplicate-argument suppression.
2005ac_configure_args=
2006ac_configure_args0=
2007ac_configure_args1=
2008ac_must_keep_next=false
2009for ac_pass in 1 2
2010do
2011  for ac_arg
2012  do
2013    case $ac_arg in
2014    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2015    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2016    | -silent | --silent | --silen | --sile | --sil)
2017      continue ;;
2018    *\'*)
2019      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2020    esac
2021    case $ac_pass in
2022    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2023    2)
2024      as_fn_append ac_configure_args1 " '$ac_arg'"
2025      if test $ac_must_keep_next = true; then
2026	ac_must_keep_next=false # Got value, back to normal.
2027      else
2028	case $ac_arg in
2029	  *=* | --config-cache | -C | -disable-* | --disable-* \
2030	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2031	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2032	  | -with-* | --with-* | -without-* | --without-* | --x)
2033	    case "$ac_configure_args0 " in
2034	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2035	    esac
2036	    ;;
2037	  -* ) ac_must_keep_next=true ;;
2038	esac
2039      fi
2040      as_fn_append ac_configure_args " '$ac_arg'"
2041      ;;
2042    esac
2043  done
2044done
2045{ ac_configure_args0=; unset ac_configure_args0;}
2046{ ac_configure_args1=; unset ac_configure_args1;}
2047
2048# When interrupted or exit'd, cleanup temporary files, and complete
2049# config.log.  We remove comments because anyway the quotes in there
2050# would cause problems or look ugly.
2051# WARNING: Use '\'' to represent an apostrophe within the trap.
2052# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2053trap 'exit_status=$?
2054  # Save into config.log some information that might help in debugging.
2055  {
2056    echo
2057
2058    $as_echo "## ---------------- ##
2059## Cache variables. ##
2060## ---------------- ##"
2061    echo
2062    # The following way of writing the cache mishandles newlines in values,
2063(
2064  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2065    eval ac_val=\$$ac_var
2066    case $ac_val in #(
2067    *${as_nl}*)
2068      case $ac_var in #(
2069      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2070$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2071      esac
2072      case $ac_var in #(
2073      _ | IFS | as_nl) ;; #(
2074      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2075      *) { eval $ac_var=; unset $ac_var;} ;;
2076      esac ;;
2077    esac
2078  done
2079  (set) 2>&1 |
2080    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2081    *${as_nl}ac_space=\ *)
2082      sed -n \
2083	"s/'\''/'\''\\\\'\'''\''/g;
2084	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2085      ;; #(
2086    *)
2087      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2088      ;;
2089    esac |
2090    sort
2091)
2092    echo
2093
2094    $as_echo "## ----------------- ##
2095## Output variables. ##
2096## ----------------- ##"
2097    echo
2098    for ac_var in $ac_subst_vars
2099    do
2100      eval ac_val=\$$ac_var
2101      case $ac_val in
2102      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103      esac
2104      $as_echo "$ac_var='\''$ac_val'\''"
2105    done | sort
2106    echo
2107
2108    if test -n "$ac_subst_files"; then
2109      $as_echo "## ------------------- ##
2110## File substitutions. ##
2111## ------------------- ##"
2112      echo
2113      for ac_var in $ac_subst_files
2114      do
2115	eval ac_val=\$$ac_var
2116	case $ac_val in
2117	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118	esac
2119	$as_echo "$ac_var='\''$ac_val'\''"
2120      done | sort
2121      echo
2122    fi
2123
2124    if test -s confdefs.h; then
2125      $as_echo "## ----------- ##
2126## confdefs.h. ##
2127## ----------- ##"
2128      echo
2129      cat confdefs.h
2130      echo
2131    fi
2132    test "$ac_signal" != 0 &&
2133      $as_echo "$as_me: caught signal $ac_signal"
2134    $as_echo "$as_me: exit $exit_status"
2135  } >&5
2136  rm -f core *.core core.conftest.* &&
2137    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2138    exit $exit_status
2139' 0
2140for ac_signal in 1 2 13 15; do
2141  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2142done
2143ac_signal=0
2144
2145# confdefs.h avoids OS command line length limits that DEFS can exceed.
2146rm -f -r conftest* confdefs.h
2147
2148$as_echo "/* confdefs.h */" > confdefs.h
2149
2150# Predefined preprocessor variables.
2151
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_NAME "$PACKAGE_NAME"
2154_ACEOF
2155
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2158_ACEOF
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_VERSION "$PACKAGE_VERSION"
2162_ACEOF
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_STRING "$PACKAGE_STRING"
2166_ACEOF
2167
2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2170_ACEOF
2171
2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_URL "$PACKAGE_URL"
2174_ACEOF
2175
2176
2177# Let the site file select an alternate cache file if it wants to.
2178# Prefer an explicitly selected file to automatically selected ones.
2179ac_site_file1=NONE
2180ac_site_file2=NONE
2181if test -n "$CONFIG_SITE"; then
2182  # We do not want a PATH search for config.site.
2183  case $CONFIG_SITE in #((
2184    -*)  ac_site_file1=./$CONFIG_SITE;;
2185    */*) ac_site_file1=$CONFIG_SITE;;
2186    *)   ac_site_file1=./$CONFIG_SITE;;
2187  esac
2188elif test "x$prefix" != xNONE; then
2189  ac_site_file1=$prefix/share/config.site
2190  ac_site_file2=$prefix/etc/config.site
2191else
2192  ac_site_file1=$ac_default_prefix/share/config.site
2193  ac_site_file2=$ac_default_prefix/etc/config.site
2194fi
2195for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2196do
2197  test "x$ac_site_file" = xNONE && continue
2198  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2199    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2200$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2201    sed 's/^/| /' "$ac_site_file" >&5
2202    . "$ac_site_file" \
2203      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2205as_fn_error $? "failed to load site script $ac_site_file
2206See \`config.log' for more details" "$LINENO" 5; }
2207  fi
2208done
2209
2210if test -r "$cache_file"; then
2211  # Some versions of bash will fail to source /dev/null (special files
2212  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2213  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2214    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2215$as_echo "$as_me: loading cache $cache_file" >&6;}
2216    case $cache_file in
2217      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2218      *)                      . "./$cache_file";;
2219    esac
2220  fi
2221else
2222  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2223$as_echo "$as_me: creating cache $cache_file" >&6;}
2224  >$cache_file
2225fi
2226
2227# Check that the precious variables saved in the cache have kept the same
2228# value.
2229ac_cache_corrupted=false
2230for ac_var in $ac_precious_vars; do
2231  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2232  eval ac_new_set=\$ac_env_${ac_var}_set
2233  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2234  eval ac_new_val=\$ac_env_${ac_var}_value
2235  case $ac_old_set,$ac_new_set in
2236    set,)
2237      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2238$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2239      ac_cache_corrupted=: ;;
2240    ,set)
2241      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2242$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2243      ac_cache_corrupted=: ;;
2244    ,);;
2245    *)
2246      if test "x$ac_old_val" != "x$ac_new_val"; then
2247	# differences in whitespace do not lead to failure.
2248	ac_old_val_w=`echo x $ac_old_val`
2249	ac_new_val_w=`echo x $ac_new_val`
2250	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2251	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2252$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2253	  ac_cache_corrupted=:
2254	else
2255	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2256$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2257	  eval $ac_var=\$ac_old_val
2258	fi
2259	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2260$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2261	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2262$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2263      fi;;
2264  esac
2265  # Pass precious variables to config.status.
2266  if test "$ac_new_set" = set; then
2267    case $ac_new_val in
2268    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2269    *) ac_arg=$ac_var=$ac_new_val ;;
2270    esac
2271    case " $ac_configure_args " in
2272      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2273      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2274    esac
2275  fi
2276done
2277if $ac_cache_corrupted; then
2278  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2280  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2281$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2282  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2283fi
2284## -------------------- ##
2285## Main body of script. ##
2286## -------------------- ##
2287
2288ac_ext=c
2289ac_cpp='$CPP $CPPFLAGS'
2290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293
2294
2295
2296ac_config_headers="$ac_config_headers config.h"
2297
2298ac_aux_dir=
2299for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2300  if test -f "$ac_dir/install-sh"; then
2301    ac_aux_dir=$ac_dir
2302    ac_install_sh="$ac_aux_dir/install-sh -c"
2303    break
2304  elif test -f "$ac_dir/install.sh"; then
2305    ac_aux_dir=$ac_dir
2306    ac_install_sh="$ac_aux_dir/install.sh -c"
2307    break
2308  elif test -f "$ac_dir/shtool"; then
2309    ac_aux_dir=$ac_dir
2310    ac_install_sh="$ac_aux_dir/shtool install -c"
2311    break
2312  fi
2313done
2314if test -z "$ac_aux_dir"; then
2315  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2316fi
2317
2318# These three variables are undocumented and unsupported,
2319# and are intended to be withdrawn in a future Autoconf release.
2320# They can cause serious problems if a builder's source tree is in a directory
2321# whose full name contains unusual characters.
2322ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2323ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2324ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2325
2326
2327# Expand $ac_aux_dir to an absolute path.
2328am_aux_dir=`cd "$ac_aux_dir" && pwd`
2329
2330ac_ext=c
2331ac_cpp='$CPP $CPPFLAGS'
2332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335if test -n "$ac_tool_prefix"; then
2336  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2337set dummy ${ac_tool_prefix}gcc; ac_word=$2
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2339$as_echo_n "checking for $ac_word... " >&6; }
2340if ${ac_cv_prog_CC+:} false; then :
2341  $as_echo_n "(cached) " >&6
2342else
2343  if test -n "$CC"; then
2344  ac_cv_prog_CC="$CC" # Let the user override the test.
2345else
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349  IFS=$as_save_IFS
2350  test -z "$as_dir" && as_dir=.
2351    for ac_exec_ext in '' $ac_executable_extensions; do
2352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2355    break 2
2356  fi
2357done
2358  done
2359IFS=$as_save_IFS
2360
2361fi
2362fi
2363CC=$ac_cv_prog_CC
2364if test -n "$CC"; then
2365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2366$as_echo "$CC" >&6; }
2367else
2368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2369$as_echo "no" >&6; }
2370fi
2371
2372
2373fi
2374if test -z "$ac_cv_prog_CC"; then
2375  ac_ct_CC=$CC
2376  # Extract the first word of "gcc", so it can be a program name with args.
2377set dummy gcc; 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_ac_ct_CC+:} false; then :
2381  $as_echo_n "(cached) " >&6
2382else
2383  if test -n "$ac_ct_CC"; then
2384  ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
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
2403ac_ct_CC=$ac_cv_prog_ac_ct_CC
2404if test -n "$ac_ct_CC"; then
2405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2406$as_echo "$ac_ct_CC" >&6; }
2407else
2408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409$as_echo "no" >&6; }
2410fi
2411
2412  if test "x$ac_ct_CC" = x; then
2413    CC=""
2414  else
2415    case $cross_compiling:$ac_tool_warned in
2416yes:)
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2419ac_tool_warned=yes ;;
2420esac
2421    CC=$ac_ct_CC
2422  fi
2423else
2424  CC="$ac_cv_prog_CC"
2425fi
2426
2427if test -z "$CC"; then
2428          if test -n "$ac_tool_prefix"; then
2429    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2430set dummy ${ac_tool_prefix}cc; ac_word=$2
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432$as_echo_n "checking for $ac_word... " >&6; }
2433if ${ac_cv_prog_CC+:} false; then :
2434  $as_echo_n "(cached) " >&6
2435else
2436  if test -n "$CC"; then
2437  ac_cv_prog_CC="$CC" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442  IFS=$as_save_IFS
2443  test -z "$as_dir" && as_dir=.
2444    for ac_exec_ext in '' $ac_executable_extensions; do
2445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446    ac_cv_prog_CC="${ac_tool_prefix}cc"
2447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448    break 2
2449  fi
2450done
2451  done
2452IFS=$as_save_IFS
2453
2454fi
2455fi
2456CC=$ac_cv_prog_CC
2457if test -n "$CC"; then
2458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2459$as_echo "$CC" >&6; }
2460else
2461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462$as_echo "no" >&6; }
2463fi
2464
2465
2466  fi
2467fi
2468if test -z "$CC"; then
2469  # Extract the first word of "cc", so it can be a program name with args.
2470set dummy cc; ac_word=$2
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472$as_echo_n "checking for $ac_word... " >&6; }
2473if ${ac_cv_prog_CC+:} false; then :
2474  $as_echo_n "(cached) " >&6
2475else
2476  if test -n "$CC"; then
2477  ac_cv_prog_CC="$CC" # Let the user override the test.
2478else
2479  ac_prog_rejected=no
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483  IFS=$as_save_IFS
2484  test -z "$as_dir" && as_dir=.
2485    for ac_exec_ext in '' $ac_executable_extensions; do
2486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2488       ac_prog_rejected=yes
2489       continue
2490     fi
2491    ac_cv_prog_CC="cc"
2492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493    break 2
2494  fi
2495done
2496  done
2497IFS=$as_save_IFS
2498
2499if test $ac_prog_rejected = yes; then
2500  # We found a bogon in the path, so make sure we never use it.
2501  set dummy $ac_cv_prog_CC
2502  shift
2503  if test $# != 0; then
2504    # We chose a different compiler from the bogus one.
2505    # However, it has the same basename, so the bogon will be chosen
2506    # first if we set CC to just the basename; use the full file name.
2507    shift
2508    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2509  fi
2510fi
2511fi
2512fi
2513CC=$ac_cv_prog_CC
2514if test -n "$CC"; then
2515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2516$as_echo "$CC" >&6; }
2517else
2518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519$as_echo "no" >&6; }
2520fi
2521
2522
2523fi
2524if test -z "$CC"; then
2525  if test -n "$ac_tool_prefix"; then
2526  for ac_prog in cl.exe
2527  do
2528    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2529set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2531$as_echo_n "checking for $ac_word... " >&6; }
2532if ${ac_cv_prog_CC+:} false; then :
2533  $as_echo_n "(cached) " >&6
2534else
2535  if test -n "$CC"; then
2536  ac_cv_prog_CC="$CC" # Let the user override the test.
2537else
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541  IFS=$as_save_IFS
2542  test -z "$as_dir" && as_dir=.
2543    for ac_exec_ext in '' $ac_executable_extensions; do
2544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2545    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547    break 2
2548  fi
2549done
2550  done
2551IFS=$as_save_IFS
2552
2553fi
2554fi
2555CC=$ac_cv_prog_CC
2556if test -n "$CC"; then
2557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2558$as_echo "$CC" >&6; }
2559else
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561$as_echo "no" >&6; }
2562fi
2563
2564
2565    test -n "$CC" && break
2566  done
2567fi
2568if test -z "$CC"; then
2569  ac_ct_CC=$CC
2570  for ac_prog in cl.exe
2571do
2572  # Extract the first word of "$ac_prog", so it can be a program name with args.
2573set dummy $ac_prog; ac_word=$2
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575$as_echo_n "checking for $ac_word... " >&6; }
2576if ${ac_cv_prog_ac_ct_CC+:} false; then :
2577  $as_echo_n "(cached) " >&6
2578else
2579  if test -n "$ac_ct_CC"; then
2580  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2581else
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585  IFS=$as_save_IFS
2586  test -z "$as_dir" && as_dir=.
2587    for ac_exec_ext in '' $ac_executable_extensions; do
2588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589    ac_cv_prog_ac_ct_CC="$ac_prog"
2590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591    break 2
2592  fi
2593done
2594  done
2595IFS=$as_save_IFS
2596
2597fi
2598fi
2599ac_ct_CC=$ac_cv_prog_ac_ct_CC
2600if test -n "$ac_ct_CC"; then
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2602$as_echo "$ac_ct_CC" >&6; }
2603else
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605$as_echo "no" >&6; }
2606fi
2607
2608
2609  test -n "$ac_ct_CC" && break
2610done
2611
2612  if test "x$ac_ct_CC" = x; then
2613    CC=""
2614  else
2615    case $cross_compiling:$ac_tool_warned in
2616yes:)
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2619ac_tool_warned=yes ;;
2620esac
2621    CC=$ac_ct_CC
2622  fi
2623fi
2624
2625fi
2626
2627
2628test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630as_fn_error $? "no acceptable C compiler found in \$PATH
2631See \`config.log' for more details" "$LINENO" 5; }
2632
2633# Provide some information about the compiler.
2634$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2635set X $ac_compile
2636ac_compiler=$2
2637for ac_option in --version -v -V -qversion; do
2638  { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
2646  ac_status=$?
2647  if test -s conftest.err; then
2648    sed '10a\
2649... rest of stderr output deleted ...
2650         10q' conftest.err >conftest.er1
2651    cat conftest.er1 >&5
2652  fi
2653  rm -f conftest.er1 conftest.err
2654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2655  test $ac_status = 0; }
2656done
2657
2658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659/* end confdefs.h.  */
2660
2661int
2662main ()
2663{
2664
2665  ;
2666  return 0;
2667}
2668_ACEOF
2669ac_clean_files_save=$ac_clean_files
2670ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2671# Try to create an executable without -o first, disregard a.out.
2672# It will help us diagnose broken compilers, and finding out an intuition
2673# of exeext.
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2675$as_echo_n "checking whether the C compiler works... " >&6; }
2676ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2677
2678# The possible output files:
2679ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2680
2681ac_rmfiles=
2682for ac_file in $ac_files
2683do
2684  case $ac_file in
2685    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2686    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2687  esac
2688done
2689rm -f $ac_rmfiles
2690
2691if { { ac_try="$ac_link_default"
2692case "(($ac_try" in
2693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694  *) ac_try_echo=$ac_try;;
2695esac
2696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2697$as_echo "$ac_try_echo"; } >&5
2698  (eval "$ac_link_default") 2>&5
2699  ac_status=$?
2700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2701  test $ac_status = 0; }; then :
2702  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2703# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2704# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2705# so that the user can short-circuit this test for compilers unknown to
2706# Autoconf.
2707for ac_file in $ac_files ''
2708do
2709  test -f "$ac_file" || continue
2710  case $ac_file in
2711    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2712	;;
2713    [ab].out )
2714	# We found the default executable, but exeext='' is most
2715	# certainly right.
2716	break;;
2717    *.* )
2718	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2719	then :; else
2720	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721	fi
2722	# We set ac_cv_exeext here because the later test for it is not
2723	# safe: cross compilers may not add the suffix if given an `-o'
2724	# argument, so we may need to know it at that point already.
2725	# Even if this section looks crufty: it has the advantage of
2726	# actually working.
2727	break;;
2728    * )
2729	break;;
2730  esac
2731done
2732test "$ac_cv_exeext" = no && ac_cv_exeext=
2733
2734else
2735  ac_file=''
2736fi
2737if test -z "$ac_file"; then :
2738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739$as_echo "no" >&6; }
2740$as_echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745as_fn_error 77 "C compiler cannot create executables
2746See \`config.log' for more details" "$LINENO" 5; }
2747else
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2749$as_echo "yes" >&6; }
2750fi
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2752$as_echo_n "checking for C compiler default output file name... " >&6; }
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2754$as_echo "$ac_file" >&6; }
2755ac_exeext=$ac_cv_exeext
2756
2757rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2758ac_clean_files=$ac_clean_files_save
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2760$as_echo_n "checking for suffix of executables... " >&6; }
2761if { { ac_try="$ac_link"
2762case "(($ac_try" in
2763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764  *) ac_try_echo=$ac_try;;
2765esac
2766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767$as_echo "$ac_try_echo"; } >&5
2768  (eval "$ac_link") 2>&5
2769  ac_status=$?
2770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2771  test $ac_status = 0; }; then :
2772  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2773# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2774# work properly (i.e., refer to `conftest.exe'), while it won't with
2775# `rm'.
2776for ac_file in conftest.exe conftest conftest.*; do
2777  test -f "$ac_file" || continue
2778  case $ac_file in
2779    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2780    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2781	  break;;
2782    * ) break;;
2783  esac
2784done
2785else
2786  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2788as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2789See \`config.log' for more details" "$LINENO" 5; }
2790fi
2791rm -f conftest conftest$ac_cv_exeext
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2793$as_echo "$ac_cv_exeext" >&6; }
2794
2795rm -f conftest.$ac_ext
2796EXEEXT=$ac_cv_exeext
2797ac_exeext=$EXEEXT
2798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799/* end confdefs.h.  */
2800#include <stdio.h>
2801int
2802main ()
2803{
2804FILE *f = fopen ("conftest.out", "w");
2805 return ferror (f) || fclose (f) != 0;
2806
2807  ;
2808  return 0;
2809}
2810_ACEOF
2811ac_clean_files="$ac_clean_files conftest.out"
2812# Check that the compiler produces executables we can run.  If not, either
2813# the compiler is broken, or we cross compile.
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2815$as_echo_n "checking whether we are cross compiling... " >&6; }
2816if test "$cross_compiling" != yes; then
2817  { { ac_try="$ac_link"
2818case "(($ac_try" in
2819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820  *) ac_try_echo=$ac_try;;
2821esac
2822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823$as_echo "$ac_try_echo"; } >&5
2824  (eval "$ac_link") 2>&5
2825  ac_status=$?
2826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2827  test $ac_status = 0; }
2828  if { ac_try='./conftest$ac_cv_exeext'
2829  { { case "(($ac_try" in
2830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831  *) ac_try_echo=$ac_try;;
2832esac
2833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2834$as_echo "$ac_try_echo"; } >&5
2835  (eval "$ac_try") 2>&5
2836  ac_status=$?
2837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2838  test $ac_status = 0; }; }; then
2839    cross_compiling=no
2840  else
2841    if test "$cross_compiling" = maybe; then
2842	cross_compiling=yes
2843    else
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 run C compiled programs.
2847If you meant to cross compile, use \`--host'.
2848See \`config.log' for more details" "$LINENO" 5; }
2849    fi
2850  fi
2851fi
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2853$as_echo "$cross_compiling" >&6; }
2854
2855rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2856ac_clean_files=$ac_clean_files_save
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2858$as_echo_n "checking for suffix of object files... " >&6; }
2859if ${ac_cv_objext+:} false; then :
2860  $as_echo_n "(cached) " >&6
2861else
2862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863/* end confdefs.h.  */
2864
2865int
2866main ()
2867{
2868
2869  ;
2870  return 0;
2871}
2872_ACEOF
2873rm -f conftest.o conftest.obj
2874if { { ac_try="$ac_compile"
2875case "(($ac_try" in
2876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877  *) ac_try_echo=$ac_try;;
2878esac
2879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2880$as_echo "$ac_try_echo"; } >&5
2881  (eval "$ac_compile") 2>&5
2882  ac_status=$?
2883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2884  test $ac_status = 0; }; then :
2885  for ac_file in conftest.o conftest.obj conftest.*; do
2886  test -f "$ac_file" || continue;
2887  case $ac_file in
2888    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2889    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2890       break;;
2891  esac
2892done
2893else
2894  $as_echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2899as_fn_error $? "cannot compute suffix of object files: cannot compile
2900See \`config.log' for more details" "$LINENO" 5; }
2901fi
2902rm -f conftest.$ac_cv_objext conftest.$ac_ext
2903fi
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2905$as_echo "$ac_cv_objext" >&6; }
2906OBJEXT=$ac_cv_objext
2907ac_objext=$OBJEXT
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2909$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2910if ${ac_cv_c_compiler_gnu+:} false; then :
2911  $as_echo_n "(cached) " >&6
2912else
2913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914/* end confdefs.h.  */
2915
2916int
2917main ()
2918{
2919#ifndef __GNUC__
2920       choke me
2921#endif
2922
2923  ;
2924  return 0;
2925}
2926_ACEOF
2927if ac_fn_c_try_compile "$LINENO"; then :
2928  ac_compiler_gnu=yes
2929else
2930  ac_compiler_gnu=no
2931fi
2932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933ac_cv_c_compiler_gnu=$ac_compiler_gnu
2934
2935fi
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2937$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2938if test $ac_compiler_gnu = yes; then
2939  GCC=yes
2940else
2941  GCC=
2942fi
2943ac_test_CFLAGS=${CFLAGS+set}
2944ac_save_CFLAGS=$CFLAGS
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2946$as_echo_n "checking whether $CC accepts -g... " >&6; }
2947if ${ac_cv_prog_cc_g+:} false; then :
2948  $as_echo_n "(cached) " >&6
2949else
2950  ac_save_c_werror_flag=$ac_c_werror_flag
2951   ac_c_werror_flag=yes
2952   ac_cv_prog_cc_g=no
2953   CFLAGS="-g"
2954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955/* end confdefs.h.  */
2956
2957int
2958main ()
2959{
2960
2961  ;
2962  return 0;
2963}
2964_ACEOF
2965if ac_fn_c_try_compile "$LINENO"; then :
2966  ac_cv_prog_cc_g=yes
2967else
2968  CFLAGS=""
2969      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970/* end confdefs.h.  */
2971
2972int
2973main ()
2974{
2975
2976  ;
2977  return 0;
2978}
2979_ACEOF
2980if ac_fn_c_try_compile "$LINENO"; then :
2981
2982else
2983  ac_c_werror_flag=$ac_save_c_werror_flag
2984	 CFLAGS="-g"
2985	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986/* end confdefs.h.  */
2987
2988int
2989main ()
2990{
2991
2992  ;
2993  return 0;
2994}
2995_ACEOF
2996if ac_fn_c_try_compile "$LINENO"; then :
2997  ac_cv_prog_cc_g=yes
2998fi
2999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000fi
3001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002fi
3003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004   ac_c_werror_flag=$ac_save_c_werror_flag
3005fi
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3007$as_echo "$ac_cv_prog_cc_g" >&6; }
3008if test "$ac_test_CFLAGS" = set; then
3009  CFLAGS=$ac_save_CFLAGS
3010elif test $ac_cv_prog_cc_g = yes; then
3011  if test "$GCC" = yes; then
3012    CFLAGS="-g -O2"
3013  else
3014    CFLAGS="-g"
3015  fi
3016else
3017  if test "$GCC" = yes; then
3018    CFLAGS="-O2"
3019  else
3020    CFLAGS=
3021  fi
3022fi
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3024$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3025if ${ac_cv_prog_cc_c89+:} false; then :
3026  $as_echo_n "(cached) " >&6
3027else
3028  ac_cv_prog_cc_c89=no
3029ac_save_CC=$CC
3030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h.  */
3032#include <stdarg.h>
3033#include <stdio.h>
3034struct stat;
3035/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3036struct buf { int x; };
3037FILE * (*rcsopen) (struct buf *, struct stat *, int);
3038static char *e (p, i)
3039     char **p;
3040     int i;
3041{
3042  return p[i];
3043}
3044static char *f (char * (*g) (char **, int), char **p, ...)
3045{
3046  char *s;
3047  va_list v;
3048  va_start (v,p);
3049  s = g (p, va_arg (v,int));
3050  va_end (v);
3051  return s;
3052}
3053
3054/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3055   function prototypes and stuff, but not '\xHH' hex character constants.
3056   These don't provoke an error unfortunately, instead are silently treated
3057   as 'x'.  The following induces an error, until -std is added to get
3058   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3059   array size at least.  It's necessary to write '\x00'==0 to get something
3060   that's true only with -std.  */
3061int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3062
3063/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3064   inside strings and character constants.  */
3065#define FOO(x) 'x'
3066int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3067
3068int test (int i, double x);
3069struct s1 {int (*f) (int a);};
3070struct s2 {int (*f) (double a);};
3071int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3072int argc;
3073char **argv;
3074int
3075main ()
3076{
3077return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3078  ;
3079  return 0;
3080}
3081_ACEOF
3082for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3083	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3084do
3085  CC="$ac_save_CC $ac_arg"
3086  if ac_fn_c_try_compile "$LINENO"; then :
3087  ac_cv_prog_cc_c89=$ac_arg
3088fi
3089rm -f core conftest.err conftest.$ac_objext
3090  test "x$ac_cv_prog_cc_c89" != "xno" && break
3091done
3092rm -f conftest.$ac_ext
3093CC=$ac_save_CC
3094
3095fi
3096# AC_CACHE_VAL
3097case "x$ac_cv_prog_cc_c89" in
3098  x)
3099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3100$as_echo "none needed" >&6; } ;;
3101  xno)
3102    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3103$as_echo "unsupported" >&6; } ;;
3104  *)
3105    CC="$CC $ac_cv_prog_cc_c89"
3106    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3107$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3108esac
3109if test "x$ac_cv_prog_cc_c89" != xno; then :
3110
3111fi
3112
3113ac_ext=c
3114ac_cpp='$CPP $CPPFLAGS'
3115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118
3119ac_ext=c
3120ac_cpp='$CPP $CPPFLAGS'
3121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3125$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3126if ${am_cv_prog_cc_c_o+:} false; then :
3127  $as_echo_n "(cached) " >&6
3128else
3129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130/* end confdefs.h.  */
3131
3132int
3133main ()
3134{
3135
3136  ;
3137  return 0;
3138}
3139_ACEOF
3140  # Make sure it works both with $CC and with simple cc.
3141  # Following AC_PROG_CC_C_O, we do the test twice because some
3142  # compilers refuse to overwrite an existing .o file with -o,
3143  # though they will create one.
3144  am_cv_prog_cc_c_o=yes
3145  for am_i in 1 2; do
3146    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3147   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); } \
3151         && test -f conftest2.$ac_objext; then
3152      : OK
3153    else
3154      am_cv_prog_cc_c_o=no
3155      break
3156    fi
3157  done
3158  rm -f core conftest*
3159  unset am_i
3160fi
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3162$as_echo "$am_cv_prog_cc_c_o" >&6; }
3163if test "$am_cv_prog_cc_c_o" != yes; then
3164   # Losing compiler, so override with the script.
3165   # FIXME: It is wrong to rewrite CC.
3166   # But if we don't then we get into trouble of one sort or another.
3167   # A longer-term fix would be to have automake use am__CC in this case,
3168   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3169   CC="$am_aux_dir/compile $CC"
3170fi
3171ac_ext=c
3172ac_cpp='$CPP $CPPFLAGS'
3173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176
3177
3178
3179ac_ext=c
3180ac_cpp='$CPP $CPPFLAGS'
3181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3185$as_echo_n "checking how to run the C preprocessor... " >&6; }
3186# On Suns, sometimes $CPP names a directory.
3187if test -n "$CPP" && test -d "$CPP"; then
3188  CPP=
3189fi
3190if test -z "$CPP"; then
3191  if ${ac_cv_prog_CPP+:} false; then :
3192  $as_echo_n "(cached) " >&6
3193else
3194      # Double quotes because CPP needs to be expanded
3195    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3196    do
3197      ac_preproc_ok=false
3198for ac_c_preproc_warn_flag in '' yes
3199do
3200  # Use a header file that comes with gcc, so configuring glibc
3201  # with a fresh cross-compiler works.
3202  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3203  # <limits.h> exists even on freestanding compilers.
3204  # On the NeXT, cc -E runs the code through the compiler's parser,
3205  # not just through cpp. "Syntax error" is here to catch this case.
3206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h.  */
3208#ifdef __STDC__
3209# include <limits.h>
3210#else
3211# include <assert.h>
3212#endif
3213		     Syntax error
3214_ACEOF
3215if ac_fn_c_try_cpp "$LINENO"; then :
3216
3217else
3218  # Broken: fails on valid input.
3219continue
3220fi
3221rm -f conftest.err conftest.i conftest.$ac_ext
3222
3223  # OK, works on sane cases.  Now check whether nonexistent headers
3224  # can be detected and how.
3225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h.  */
3227#include <ac_nonexistent.h>
3228_ACEOF
3229if ac_fn_c_try_cpp "$LINENO"; then :
3230  # Broken: success on invalid input.
3231continue
3232else
3233  # Passes both tests.
3234ac_preproc_ok=:
3235break
3236fi
3237rm -f conftest.err conftest.i conftest.$ac_ext
3238
3239done
3240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3241rm -f conftest.i conftest.err conftest.$ac_ext
3242if $ac_preproc_ok; then :
3243  break
3244fi
3245
3246    done
3247    ac_cv_prog_CPP=$CPP
3248
3249fi
3250  CPP=$ac_cv_prog_CPP
3251else
3252  ac_cv_prog_CPP=$CPP
3253fi
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3255$as_echo "$CPP" >&6; }
3256ac_preproc_ok=false
3257for ac_c_preproc_warn_flag in '' yes
3258do
3259  # Use a header file that comes with gcc, so configuring glibc
3260  # with a fresh cross-compiler works.
3261  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262  # <limits.h> exists even on freestanding compilers.
3263  # On the NeXT, cc -E runs the code through the compiler's parser,
3264  # not just through cpp. "Syntax error" is here to catch this case.
3265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266/* end confdefs.h.  */
3267#ifdef __STDC__
3268# include <limits.h>
3269#else
3270# include <assert.h>
3271#endif
3272		     Syntax error
3273_ACEOF
3274if ac_fn_c_try_cpp "$LINENO"; then :
3275
3276else
3277  # Broken: fails on valid input.
3278continue
3279fi
3280rm -f conftest.err conftest.i conftest.$ac_ext
3281
3282  # OK, works on sane cases.  Now check whether nonexistent headers
3283  # can be detected and how.
3284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285/* end confdefs.h.  */
3286#include <ac_nonexistent.h>
3287_ACEOF
3288if ac_fn_c_try_cpp "$LINENO"; then :
3289  # Broken: success on invalid input.
3290continue
3291else
3292  # Passes both tests.
3293ac_preproc_ok=:
3294break
3295fi
3296rm -f conftest.err conftest.i conftest.$ac_ext
3297
3298done
3299# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3300rm -f conftest.i conftest.err conftest.$ac_ext
3301if $ac_preproc_ok; then :
3302
3303else
3304  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3307See \`config.log' for more details" "$LINENO" 5; }
3308fi
3309
3310ac_ext=c
3311ac_cpp='$CPP $CPPFLAGS'
3312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315
3316
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3318$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3319if ${ac_cv_path_GREP+:} false; then :
3320  $as_echo_n "(cached) " >&6
3321else
3322  if test -z "$GREP"; then
3323  ac_path_GREP_found=false
3324  # Loop through the user's path and test for each of PROGNAME-LIST
3325  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3327do
3328  IFS=$as_save_IFS
3329  test -z "$as_dir" && as_dir=.
3330    for ac_prog in grep ggrep; do
3331    for ac_exec_ext in '' $ac_executable_extensions; do
3332      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3333      as_fn_executable_p "$ac_path_GREP" || continue
3334# Check for GNU ac_path_GREP and select it if it is found.
3335  # Check for GNU $ac_path_GREP
3336case `"$ac_path_GREP" --version 2>&1` in
3337*GNU*)
3338  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3339*)
3340  ac_count=0
3341  $as_echo_n 0123456789 >"conftest.in"
3342  while :
3343  do
3344    cat "conftest.in" "conftest.in" >"conftest.tmp"
3345    mv "conftest.tmp" "conftest.in"
3346    cp "conftest.in" "conftest.nl"
3347    $as_echo 'GREP' >> "conftest.nl"
3348    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3349    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3350    as_fn_arith $ac_count + 1 && ac_count=$as_val
3351    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3352      # Best one so far, save it but keep looking for a better one
3353      ac_cv_path_GREP="$ac_path_GREP"
3354      ac_path_GREP_max=$ac_count
3355    fi
3356    # 10*(2^10) chars as input seems more than enough
3357    test $ac_count -gt 10 && break
3358  done
3359  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3360esac
3361
3362      $ac_path_GREP_found && break 3
3363    done
3364  done
3365  done
3366IFS=$as_save_IFS
3367  if test -z "$ac_cv_path_GREP"; then
3368    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3369  fi
3370else
3371  ac_cv_path_GREP=$GREP
3372fi
3373
3374fi
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3376$as_echo "$ac_cv_path_GREP" >&6; }
3377 GREP="$ac_cv_path_GREP"
3378
3379
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3381$as_echo_n "checking for egrep... " >&6; }
3382if ${ac_cv_path_EGREP+:} false; then :
3383  $as_echo_n "(cached) " >&6
3384else
3385  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3386   then ac_cv_path_EGREP="$GREP -E"
3387   else
3388     if test -z "$EGREP"; then
3389  ac_path_EGREP_found=false
3390  # Loop through the user's path and test for each of PROGNAME-LIST
3391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3393do
3394  IFS=$as_save_IFS
3395  test -z "$as_dir" && as_dir=.
3396    for ac_prog in egrep; do
3397    for ac_exec_ext in '' $ac_executable_extensions; do
3398      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3399      as_fn_executable_p "$ac_path_EGREP" || continue
3400# Check for GNU ac_path_EGREP and select it if it is found.
3401  # Check for GNU $ac_path_EGREP
3402case `"$ac_path_EGREP" --version 2>&1` in
3403*GNU*)
3404  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3405*)
3406  ac_count=0
3407  $as_echo_n 0123456789 >"conftest.in"
3408  while :
3409  do
3410    cat "conftest.in" "conftest.in" >"conftest.tmp"
3411    mv "conftest.tmp" "conftest.in"
3412    cp "conftest.in" "conftest.nl"
3413    $as_echo 'EGREP' >> "conftest.nl"
3414    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3415    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3416    as_fn_arith $ac_count + 1 && ac_count=$as_val
3417    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3418      # Best one so far, save it but keep looking for a better one
3419      ac_cv_path_EGREP="$ac_path_EGREP"
3420      ac_path_EGREP_max=$ac_count
3421    fi
3422    # 10*(2^10) chars as input seems more than enough
3423    test $ac_count -gt 10 && break
3424  done
3425  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3426esac
3427
3428      $ac_path_EGREP_found && break 3
3429    done
3430  done
3431  done
3432IFS=$as_save_IFS
3433  if test -z "$ac_cv_path_EGREP"; then
3434    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3435  fi
3436else
3437  ac_cv_path_EGREP=$EGREP
3438fi
3439
3440   fi
3441fi
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3443$as_echo "$ac_cv_path_EGREP" >&6; }
3444 EGREP="$ac_cv_path_EGREP"
3445
3446
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3448$as_echo_n "checking for ANSI C header files... " >&6; }
3449if ${ac_cv_header_stdc+:} false; then :
3450  $as_echo_n "(cached) " >&6
3451else
3452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h.  */
3454#include <stdlib.h>
3455#include <stdarg.h>
3456#include <string.h>
3457#include <float.h>
3458
3459int
3460main ()
3461{
3462
3463  ;
3464  return 0;
3465}
3466_ACEOF
3467if ac_fn_c_try_compile "$LINENO"; then :
3468  ac_cv_header_stdc=yes
3469else
3470  ac_cv_header_stdc=no
3471fi
3472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473
3474if test $ac_cv_header_stdc = yes; then
3475  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h.  */
3478#include <string.h>
3479
3480_ACEOF
3481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3482  $EGREP "memchr" >/dev/null 2>&1; then :
3483
3484else
3485  ac_cv_header_stdc=no
3486fi
3487rm -f conftest*
3488
3489fi
3490
3491if test $ac_cv_header_stdc = yes; then
3492  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h.  */
3495#include <stdlib.h>
3496
3497_ACEOF
3498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3499  $EGREP "free" >/dev/null 2>&1; then :
3500
3501else
3502  ac_cv_header_stdc=no
3503fi
3504rm -f conftest*
3505
3506fi
3507
3508if test $ac_cv_header_stdc = yes; then
3509  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3510  if test "$cross_compiling" = yes; then :
3511  :
3512else
3513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514/* end confdefs.h.  */
3515#include <ctype.h>
3516#include <stdlib.h>
3517#if ((' ' & 0x0FF) == 0x020)
3518# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3519# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3520#else
3521# define ISLOWER(c) \
3522		   (('a' <= (c) && (c) <= 'i') \
3523		     || ('j' <= (c) && (c) <= 'r') \
3524		     || ('s' <= (c) && (c) <= 'z'))
3525# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3526#endif
3527
3528#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3529int
3530main ()
3531{
3532  int i;
3533  for (i = 0; i < 256; i++)
3534    if (XOR (islower (i), ISLOWER (i))
3535	|| toupper (i) != TOUPPER (i))
3536      return 2;
3537  return 0;
3538}
3539_ACEOF
3540if ac_fn_c_try_run "$LINENO"; then :
3541
3542else
3543  ac_cv_header_stdc=no
3544fi
3545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3546  conftest.$ac_objext conftest.beam conftest.$ac_ext
3547fi
3548
3549fi
3550fi
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3552$as_echo "$ac_cv_header_stdc" >&6; }
3553if test $ac_cv_header_stdc = yes; then
3554
3555$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3556
3557fi
3558
3559# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3560for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3561		  inttypes.h stdint.h unistd.h
3562do :
3563  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3564ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3565"
3566if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3567  cat >>confdefs.h <<_ACEOF
3568#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3569_ACEOF
3570
3571fi
3572
3573done
3574
3575
3576
3577  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3578if test "x$ac_cv_header_minix_config_h" = xyes; then :
3579  MINIX=yes
3580else
3581  MINIX=
3582fi
3583
3584
3585  if test "$MINIX" = yes; then
3586
3587$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3588
3589
3590$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3591
3592
3593$as_echo "#define _MINIX 1" >>confdefs.h
3594
3595  fi
3596
3597
3598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3599$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3600if ${ac_cv_safe_to_define___extensions__+:} false; then :
3601  $as_echo_n "(cached) " >&6
3602else
3603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605
3606#         define __EXTENSIONS__ 1
3607          $ac_includes_default
3608int
3609main ()
3610{
3611
3612  ;
3613  return 0;
3614}
3615_ACEOF
3616if ac_fn_c_try_compile "$LINENO"; then :
3617  ac_cv_safe_to_define___extensions__=yes
3618else
3619  ac_cv_safe_to_define___extensions__=no
3620fi
3621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622fi
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3624$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3625  test $ac_cv_safe_to_define___extensions__ = yes &&
3626    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3627
3628  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3629
3630  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3631
3632  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3633
3634  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3635
3636
3637
3638# Initialize Automake
3639am__api_version='1.15'
3640
3641# Find a good install program.  We prefer a C program (faster),
3642# so one script is as good as another.  But avoid the broken or
3643# incompatible versions:
3644# SysV /etc/install, /usr/sbin/install
3645# SunOS /usr/etc/install
3646# IRIX /sbin/install
3647# AIX /bin/install
3648# AmigaOS /C/install, which installs bootblocks on floppy discs
3649# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3650# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3651# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3652# OS/2's system install, which has a completely different semantic
3653# ./install, which can be erroneously created by make from ./install.sh.
3654# Reject install programs that cannot install multiple files.
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3656$as_echo_n "checking for a BSD-compatible install... " >&6; }
3657if test -z "$INSTALL"; then
3658if ${ac_cv_path_install+:} false; then :
3659  $as_echo_n "(cached) " >&6
3660else
3661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662for as_dir in $PATH
3663do
3664  IFS=$as_save_IFS
3665  test -z "$as_dir" && as_dir=.
3666    # Account for people who put trailing slashes in PATH elements.
3667case $as_dir/ in #((
3668  ./ | .// | /[cC]/* | \
3669  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3670  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3671  /usr/ucb/* ) ;;
3672  *)
3673    # OSF1 and SCO ODT 3.0 have their own names for install.
3674    # Don't use installbsd from OSF since it installs stuff as root
3675    # by default.
3676    for ac_prog in ginstall scoinst install; do
3677      for ac_exec_ext in '' $ac_executable_extensions; do
3678	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3679	  if test $ac_prog = install &&
3680	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3681	    # AIX install.  It has an incompatible calling convention.
3682	    :
3683	  elif test $ac_prog = install &&
3684	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3685	    # program-specific install script used by HP pwplus--don't use.
3686	    :
3687	  else
3688	    rm -rf conftest.one conftest.two conftest.dir
3689	    echo one > conftest.one
3690	    echo two > conftest.two
3691	    mkdir conftest.dir
3692	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3693	      test -s conftest.one && test -s conftest.two &&
3694	      test -s conftest.dir/conftest.one &&
3695	      test -s conftest.dir/conftest.two
3696	    then
3697	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3698	      break 3
3699	    fi
3700	  fi
3701	fi
3702      done
3703    done
3704    ;;
3705esac
3706
3707  done
3708IFS=$as_save_IFS
3709
3710rm -rf conftest.one conftest.two conftest.dir
3711
3712fi
3713  if test "${ac_cv_path_install+set}" = set; then
3714    INSTALL=$ac_cv_path_install
3715  else
3716    # As a last resort, use the slow shell script.  Don't cache a
3717    # value for INSTALL within a source directory, because that will
3718    # break other packages using the cache if that directory is
3719    # removed, or if the value is a relative name.
3720    INSTALL=$ac_install_sh
3721  fi
3722fi
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3724$as_echo "$INSTALL" >&6; }
3725
3726# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3727# It thinks the first close brace ends the variable substitution.
3728test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3729
3730test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3731
3732test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3733
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3735$as_echo_n "checking whether build environment is sane... " >&6; }
3736# Reject unsafe characters in $srcdir or the absolute working directory
3737# name.  Accept space and tab only in the latter.
3738am_lf='
3739'
3740case `pwd` in
3741  *[\\\"\#\$\&\'\`$am_lf]*)
3742    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3743esac
3744case $srcdir in
3745  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3746    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3747esac
3748
3749# Do 'set' in a subshell so we don't clobber the current shell's
3750# arguments.  Must try -L first in case configure is actually a
3751# symlink; some systems play weird games with the mod time of symlinks
3752# (eg FreeBSD returns the mod time of the symlink's containing
3753# directory).
3754if (
3755   am_has_slept=no
3756   for am_try in 1 2; do
3757     echo "timestamp, slept: $am_has_slept" > conftest.file
3758     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3759     if test "$*" = "X"; then
3760	# -L didn't work.
3761	set X `ls -t "$srcdir/configure" conftest.file`
3762     fi
3763     if test "$*" != "X $srcdir/configure conftest.file" \
3764	&& test "$*" != "X conftest.file $srcdir/configure"; then
3765
3766	# If neither matched, then we have a broken ls.  This can happen
3767	# if, for instance, CONFIG_SHELL is bash and it inherits a
3768	# broken ls alias from the environment.  This has actually
3769	# happened.  Such a system could not be considered "sane".
3770	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3771  alias in your environment" "$LINENO" 5
3772     fi
3773     if test "$2" = conftest.file || test $am_try -eq 2; then
3774       break
3775     fi
3776     # Just in case.
3777     sleep 1
3778     am_has_slept=yes
3779   done
3780   test "$2" = conftest.file
3781   )
3782then
3783   # Ok.
3784   :
3785else
3786   as_fn_error $? "newly created file is older than distributed files!
3787Check your system clock" "$LINENO" 5
3788fi
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3790$as_echo "yes" >&6; }
3791# If we didn't sleep, we still need to ensure time stamps of config.status and
3792# generated files are strictly newer.
3793am_sleep_pid=
3794if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3795  ( sleep 1 ) &
3796  am_sleep_pid=$!
3797fi
3798
3799rm -f conftest.file
3800
3801test "$program_prefix" != NONE &&
3802  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3803# Use a double $ so make ignores it.
3804test "$program_suffix" != NONE &&
3805  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3806# Double any \ or $.
3807# By default was `s,x,x', remove it if useless.
3808ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3809program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3810
3811if test x"${MISSING+set}" != xset; then
3812  case $am_aux_dir in
3813  *\ * | *\	*)
3814    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3815  *)
3816    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3817  esac
3818fi
3819# Use eval to expand $SHELL
3820if eval "$MISSING --is-lightweight"; then
3821  am_missing_run="$MISSING "
3822else
3823  am_missing_run=
3824  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3825$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3826fi
3827
3828if test x"${install_sh+set}" != xset; then
3829  case $am_aux_dir in
3830  *\ * | *\	*)
3831    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3832  *)
3833    install_sh="\${SHELL} $am_aux_dir/install-sh"
3834  esac
3835fi
3836
3837# Installed binaries are usually stripped using 'strip' when the user
3838# run "make install-strip".  However 'strip' might not be the right
3839# tool to use in cross-compilation environments, therefore Automake
3840# will honor the 'STRIP' environment variable to overrule this program.
3841if test "$cross_compiling" != no; then
3842  if test -n "$ac_tool_prefix"; then
3843  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3844set dummy ${ac_tool_prefix}strip; ac_word=$2
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846$as_echo_n "checking for $ac_word... " >&6; }
3847if ${ac_cv_prog_STRIP+:} false; then :
3848  $as_echo_n "(cached) " >&6
3849else
3850  if test -n "$STRIP"; then
3851  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3852else
3853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH
3855do
3856  IFS=$as_save_IFS
3857  test -z "$as_dir" && as_dir=.
3858    for ac_exec_ext in '' $ac_executable_extensions; do
3859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862    break 2
3863  fi
3864done
3865  done
3866IFS=$as_save_IFS
3867
3868fi
3869fi
3870STRIP=$ac_cv_prog_STRIP
3871if test -n "$STRIP"; then
3872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3873$as_echo "$STRIP" >&6; }
3874else
3875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876$as_echo "no" >&6; }
3877fi
3878
3879
3880fi
3881if test -z "$ac_cv_prog_STRIP"; then
3882  ac_ct_STRIP=$STRIP
3883  # Extract the first word of "strip", so it can be a program name with args.
3884set dummy strip; ac_word=$2
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886$as_echo_n "checking for $ac_word... " >&6; }
3887if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3888  $as_echo_n "(cached) " >&6
3889else
3890  if test -n "$ac_ct_STRIP"; then
3891  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3892else
3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH
3895do
3896  IFS=$as_save_IFS
3897  test -z "$as_dir" && as_dir=.
3898    for ac_exec_ext in '' $ac_executable_extensions; do
3899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900    ac_cv_prog_ac_ct_STRIP="strip"
3901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902    break 2
3903  fi
3904done
3905  done
3906IFS=$as_save_IFS
3907
3908fi
3909fi
3910ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3911if test -n "$ac_ct_STRIP"; then
3912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3913$as_echo "$ac_ct_STRIP" >&6; }
3914else
3915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916$as_echo "no" >&6; }
3917fi
3918
3919  if test "x$ac_ct_STRIP" = x; then
3920    STRIP=":"
3921  else
3922    case $cross_compiling:$ac_tool_warned in
3923yes:)
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926ac_tool_warned=yes ;;
3927esac
3928    STRIP=$ac_ct_STRIP
3929  fi
3930else
3931  STRIP="$ac_cv_prog_STRIP"
3932fi
3933
3934fi
3935INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3936
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3938$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3939if test -z "$MKDIR_P"; then
3940  if ${ac_cv_path_mkdir+:} false; then :
3941  $as_echo_n "(cached) " >&6
3942else
3943  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3945do
3946  IFS=$as_save_IFS
3947  test -z "$as_dir" && as_dir=.
3948    for ac_prog in mkdir gmkdir; do
3949	 for ac_exec_ext in '' $ac_executable_extensions; do
3950	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3951	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3952	     'mkdir (GNU coreutils) '* | \
3953	     'mkdir (coreutils) '* | \
3954	     'mkdir (fileutils) '4.1*)
3955	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3956	       break 3;;
3957	   esac
3958	 done
3959       done
3960  done
3961IFS=$as_save_IFS
3962
3963fi
3964
3965  test -d ./--version && rmdir ./--version
3966  if test "${ac_cv_path_mkdir+set}" = set; then
3967    MKDIR_P="$ac_cv_path_mkdir -p"
3968  else
3969    # As a last resort, use the slow shell script.  Don't cache a
3970    # value for MKDIR_P within a source directory, because that will
3971    # break other packages using the cache if that directory is
3972    # removed, or if the value is a relative name.
3973    MKDIR_P="$ac_install_sh -d"
3974  fi
3975fi
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3977$as_echo "$MKDIR_P" >&6; }
3978
3979for ac_prog in gawk mawk nawk awk
3980do
3981  # Extract the first word of "$ac_prog", so it can be a program name with args.
3982set dummy $ac_prog; ac_word=$2
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984$as_echo_n "checking for $ac_word... " >&6; }
3985if ${ac_cv_prog_AWK+:} false; then :
3986  $as_echo_n "(cached) " >&6
3987else
3988  if test -n "$AWK"; then
3989  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3990else
3991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992for as_dir in $PATH
3993do
3994  IFS=$as_save_IFS
3995  test -z "$as_dir" && as_dir=.
3996    for ac_exec_ext in '' $ac_executable_extensions; do
3997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998    ac_cv_prog_AWK="$ac_prog"
3999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000    break 2
4001  fi
4002done
4003  done
4004IFS=$as_save_IFS
4005
4006fi
4007fi
4008AWK=$ac_cv_prog_AWK
4009if test -n "$AWK"; then
4010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4011$as_echo "$AWK" >&6; }
4012else
4013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014$as_echo "no" >&6; }
4015fi
4016
4017
4018  test -n "$AWK" && break
4019done
4020
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4022$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4023set x ${MAKE-make}
4024ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4025if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4026  $as_echo_n "(cached) " >&6
4027else
4028  cat >conftest.make <<\_ACEOF
4029SHELL = /bin/sh
4030all:
4031	@echo '@@@%%%=$(MAKE)=@@@%%%'
4032_ACEOF
4033# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4034case `${MAKE-make} -f conftest.make 2>/dev/null` in
4035  *@@@%%%=?*=@@@%%%*)
4036    eval ac_cv_prog_make_${ac_make}_set=yes;;
4037  *)
4038    eval ac_cv_prog_make_${ac_make}_set=no;;
4039esac
4040rm -f conftest.make
4041fi
4042if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4044$as_echo "yes" >&6; }
4045  SET_MAKE=
4046else
4047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048$as_echo "no" >&6; }
4049  SET_MAKE="MAKE=${MAKE-make}"
4050fi
4051
4052rm -rf .tst 2>/dev/null
4053mkdir .tst 2>/dev/null
4054if test -d .tst; then
4055  am__leading_dot=.
4056else
4057  am__leading_dot=_
4058fi
4059rmdir .tst 2>/dev/null
4060
4061DEPDIR="${am__leading_dot}deps"
4062
4063ac_config_commands="$ac_config_commands depfiles"
4064
4065
4066am_make=${MAKE-make}
4067cat > confinc << 'END'
4068am__doit:
4069	@echo this is the am__doit target
4070.PHONY: am__doit
4071END
4072# If we don't find an include directive, just comment out the code.
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4074$as_echo_n "checking for style of include used by $am_make... " >&6; }
4075am__include="#"
4076am__quote=
4077_am_result=none
4078# First try GNU make style include.
4079echo "include confinc" > confmf
4080# Ignore all kinds of additional output from 'make'.
4081case `$am_make -s -f confmf 2> /dev/null` in #(
4082*the\ am__doit\ target*)
4083  am__include=include
4084  am__quote=
4085  _am_result=GNU
4086  ;;
4087esac
4088# Now try BSD make style include.
4089if test "$am__include" = "#"; then
4090   echo '.include "confinc"' > confmf
4091   case `$am_make -s -f confmf 2> /dev/null` in #(
4092   *the\ am__doit\ target*)
4093     am__include=.include
4094     am__quote="\""
4095     _am_result=BSD
4096     ;;
4097   esac
4098fi
4099
4100
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4102$as_echo "$_am_result" >&6; }
4103rm -f confinc confmf
4104
4105# Check whether --enable-dependency-tracking was given.
4106if test "${enable_dependency_tracking+set}" = set; then :
4107  enableval=$enable_dependency_tracking;
4108fi
4109
4110if test "x$enable_dependency_tracking" != xno; then
4111  am_depcomp="$ac_aux_dir/depcomp"
4112  AMDEPBACKSLASH='\'
4113  am__nodep='_no'
4114fi
4115 if test "x$enable_dependency_tracking" != xno; then
4116  AMDEP_TRUE=
4117  AMDEP_FALSE='#'
4118else
4119  AMDEP_TRUE='#'
4120  AMDEP_FALSE=
4121fi
4122
4123
4124# Check whether --enable-silent-rules was given.
4125if test "${enable_silent_rules+set}" = set; then :
4126  enableval=$enable_silent_rules;
4127fi
4128
4129case $enable_silent_rules in # (((
4130  yes) AM_DEFAULT_VERBOSITY=0;;
4131   no) AM_DEFAULT_VERBOSITY=1;;
4132    *) AM_DEFAULT_VERBOSITY=1;;
4133esac
4134am_make=${MAKE-make}
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4136$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4137if ${am_cv_make_support_nested_variables+:} false; then :
4138  $as_echo_n "(cached) " >&6
4139else
4140  if $as_echo 'TRUE=$(BAR$(V))
4141BAR0=false
4142BAR1=true
4143V=1
4144am__doit:
4145	@$(TRUE)
4146.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4147  am_cv_make_support_nested_variables=yes
4148else
4149  am_cv_make_support_nested_variables=no
4150fi
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4153$as_echo "$am_cv_make_support_nested_variables" >&6; }
4154if test $am_cv_make_support_nested_variables = yes; then
4155    AM_V='$(V)'
4156  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4157else
4158  AM_V=$AM_DEFAULT_VERBOSITY
4159  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4160fi
4161AM_BACKSLASH='\'
4162
4163if test "`cd $srcdir && pwd`" != "`pwd`"; then
4164  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4165  # is not polluted with repeated "-I."
4166  am__isrc=' -I$(srcdir)'
4167  # test to see if srcdir already configured
4168  if test -f $srcdir/config.status; then
4169    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4170  fi
4171fi
4172
4173# test whether we have cygpath
4174if test -z "$CYGPATH_W"; then
4175  if (cygpath --version) >/dev/null 2>/dev/null; then
4176    CYGPATH_W='cygpath -w'
4177  else
4178    CYGPATH_W=echo
4179  fi
4180fi
4181
4182
4183# Define the identity of the package.
4184 PACKAGE='xset'
4185 VERSION='1.2.4'
4186
4187
4188cat >>confdefs.h <<_ACEOF
4189#define PACKAGE "$PACKAGE"
4190_ACEOF
4191
4192
4193cat >>confdefs.h <<_ACEOF
4194#define VERSION "$VERSION"
4195_ACEOF
4196
4197# Some tools Automake needs.
4198
4199ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4200
4201
4202AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4203
4204
4205AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4206
4207
4208AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4209
4210
4211MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4212
4213# For better backward compatibility.  To be removed once Automake 1.9.x
4214# dies out for good.  For more background, see:
4215# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4216# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4217mkdir_p='$(MKDIR_P)'
4218
4219# We need awk for the "check" target (and possibly the TAP driver).  The
4220# system "awk" is bad on some platforms.
4221# Always define AMTAR for backward compatibility.  Yes, it's still used
4222# in the wild :-(  We should find a proper way to deprecate it ...
4223AMTAR='$${TAR-tar}'
4224
4225
4226# We'll loop over all known methods to create a tar archive until one works.
4227_am_tools='gnutar  pax cpio none'
4228
4229am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4230
4231
4232
4233
4234
4235depcc="$CC"   am_compiler_list=
4236
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4238$as_echo_n "checking dependency style of $depcc... " >&6; }
4239if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4240  $as_echo_n "(cached) " >&6
4241else
4242  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4243  # We make a subdir and do the tests there.  Otherwise we can end up
4244  # making bogus files that we don't know about and never remove.  For
4245  # instance it was reported that on HP-UX the gcc test will end up
4246  # making a dummy file named 'D' -- because '-MD' means "put the output
4247  # in D".
4248  rm -rf conftest.dir
4249  mkdir conftest.dir
4250  # Copy depcomp to subdir because otherwise we won't find it if we're
4251  # using a relative directory.
4252  cp "$am_depcomp" conftest.dir
4253  cd conftest.dir
4254  # We will build objects and dependencies in a subdirectory because
4255  # it helps to detect inapplicable dependency modes.  For instance
4256  # both Tru64's cc and ICC support -MD to output dependencies as a
4257  # side effect of compilation, but ICC will put the dependencies in
4258  # the current directory while Tru64 will put them in the object
4259  # directory.
4260  mkdir sub
4261
4262  am_cv_CC_dependencies_compiler_type=none
4263  if test "$am_compiler_list" = ""; then
4264     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4265  fi
4266  am__universal=false
4267  case " $depcc " in #(
4268     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4269     esac
4270
4271  for depmode in $am_compiler_list; do
4272    # Setup a source with many dependencies, because some compilers
4273    # like to wrap large dependency lists on column 80 (with \), and
4274    # we should not choose a depcomp mode which is confused by this.
4275    #
4276    # We need to recreate these files for each test, as the compiler may
4277    # overwrite some of them when testing with obscure command lines.
4278    # This happens at least with the AIX C compiler.
4279    : > sub/conftest.c
4280    for i in 1 2 3 4 5 6; do
4281      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4282      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4283      # Solaris 10 /bin/sh.
4284      echo '/* dummy */' > sub/conftst$i.h
4285    done
4286    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4287
4288    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4289    # mode.  It turns out that the SunPro C++ compiler does not properly
4290    # handle '-M -o', and we need to detect this.  Also, some Intel
4291    # versions had trouble with output in subdirs.
4292    am__obj=sub/conftest.${OBJEXT-o}
4293    am__minus_obj="-o $am__obj"
4294    case $depmode in
4295    gcc)
4296      # This depmode causes a compiler race in universal mode.
4297      test "$am__universal" = false || continue
4298      ;;
4299    nosideeffect)
4300      # After this tag, mechanisms are not by side-effect, so they'll
4301      # only be used when explicitly requested.
4302      if test "x$enable_dependency_tracking" = xyes; then
4303	continue
4304      else
4305	break
4306      fi
4307      ;;
4308    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4309      # This compiler won't grok '-c -o', but also, the minuso test has
4310      # not run yet.  These depmodes are late enough in the game, and
4311      # so weak that their functioning should not be impacted.
4312      am__obj=conftest.${OBJEXT-o}
4313      am__minus_obj=
4314      ;;
4315    none) break ;;
4316    esac
4317    if depmode=$depmode \
4318       source=sub/conftest.c object=$am__obj \
4319       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4320       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4321         >/dev/null 2>conftest.err &&
4322       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4323       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4324       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4325       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4326      # icc doesn't choke on unknown options, it will just issue warnings
4327      # or remarks (even with -Werror).  So we grep stderr for any message
4328      # that says an option was ignored or not supported.
4329      # When given -MP, icc 7.0 and 7.1 complain thusly:
4330      #   icc: Command line warning: ignoring option '-M'; no argument required
4331      # The diagnosis changed in icc 8.0:
4332      #   icc: Command line remark: option '-MP' not supported
4333      if (grep 'ignoring option' conftest.err ||
4334          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4335        am_cv_CC_dependencies_compiler_type=$depmode
4336        break
4337      fi
4338    fi
4339  done
4340
4341  cd ..
4342  rm -rf conftest.dir
4343else
4344  am_cv_CC_dependencies_compiler_type=none
4345fi
4346
4347fi
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4349$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4350CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4351
4352 if
4353  test "x$enable_dependency_tracking" != xno \
4354  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4355  am__fastdepCC_TRUE=
4356  am__fastdepCC_FALSE='#'
4357else
4358  am__fastdepCC_TRUE='#'
4359  am__fastdepCC_FALSE=
4360fi
4361
4362
4363
4364# POSIX will say in a future version that running "rm -f" with no argument
4365# is OK; and we want to be able to make that assumption in our Makefile
4366# recipes.  So use an aggressive probe to check that the usage we want is
4367# actually supported "in the wild" to an acceptable degree.
4368# See automake bug#10828.
4369# To make any issue more visible, cause the running configure to be aborted
4370# by default if the 'rm' program in use doesn't match our expectations; the
4371# user can still override this though.
4372if rm -f && rm -fr && rm -rf; then : OK; else
4373  cat >&2 <<'END'
4374Oops!
4375
4376Your 'rm' program seems unable to run without file operands specified
4377on the command line, even when the '-f' option is present.  This is contrary
4378to the behaviour of most rm programs out there, and not conforming with
4379the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4380
4381Please tell bug-automake@gnu.org about your system, including the value
4382of your $PATH and any error possibly output before this message.  This
4383can help us improve future automake versions.
4384
4385END
4386  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4387    echo 'Configuration will proceed anyway, since you have set the' >&2
4388    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4389    echo >&2
4390  else
4391    cat >&2 <<'END'
4392Aborting the configuration process, to ensure you take notice of the issue.
4393
4394You can download and install GNU coreutils to get an 'rm' implementation
4395that behaves properly: <http://www.gnu.org/software/coreutils/>.
4396
4397If you want to complete the configuration process using your problematic
4398'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4399to "yes", and re-run configure.
4400
4401END
4402    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4403  fi
4404fi
4405
4406
4407# Require xorg-macros: XORG_MANPAGE_SECTIONS
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4420$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4421if ${ac_cv_prog_cc_c99+:} false; then :
4422  $as_echo_n "(cached) " >&6
4423else
4424  ac_cv_prog_cc_c99=no
4425ac_save_CC=$CC
4426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427/* end confdefs.h.  */
4428#include <stdarg.h>
4429#include <stdbool.h>
4430#include <stdlib.h>
4431#include <wchar.h>
4432#include <stdio.h>
4433
4434// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4435#define debug(...) fprintf (stderr, __VA_ARGS__)
4436#define showlist(...) puts (#__VA_ARGS__)
4437#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4438static void
4439test_varargs_macros (void)
4440{
4441  int x = 1234;
4442  int y = 5678;
4443  debug ("Flag");
4444  debug ("X = %d\n", x);
4445  showlist (The first, second, and third items.);
4446  report (x>y, "x is %d but y is %d", x, y);
4447}
4448
4449// Check long long types.
4450#define BIG64 18446744073709551615ull
4451#define BIG32 4294967295ul
4452#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4453#if !BIG_OK
4454  your preprocessor is broken;
4455#endif
4456#if BIG_OK
4457#else
4458  your preprocessor is broken;
4459#endif
4460static long long int bignum = -9223372036854775807LL;
4461static unsigned long long int ubignum = BIG64;
4462
4463struct incomplete_array
4464{
4465  int datasize;
4466  double data[];
4467};
4468
4469struct named_init {
4470  int number;
4471  const wchar_t *name;
4472  double average;
4473};
4474
4475typedef const char *ccp;
4476
4477static inline int
4478test_restrict (ccp restrict text)
4479{
4480  // See if C++-style comments work.
4481  // Iterate through items via the restricted pointer.
4482  // Also check for declarations in for loops.
4483  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4484    continue;
4485  return 0;
4486}
4487
4488// Check varargs and va_copy.
4489static void
4490test_varargs (const char *format, ...)
4491{
4492  va_list args;
4493  va_start (args, format);
4494  va_list args_copy;
4495  va_copy (args_copy, args);
4496
4497  const char *str;
4498  int number;
4499  float fnumber;
4500
4501  while (*format)
4502    {
4503      switch (*format++)
4504	{
4505	case 's': // string
4506	  str = va_arg (args_copy, const char *);
4507	  break;
4508	case 'd': // int
4509	  number = va_arg (args_copy, int);
4510	  break;
4511	case 'f': // float
4512	  fnumber = va_arg (args_copy, double);
4513	  break;
4514	default:
4515	  break;
4516	}
4517    }
4518  va_end (args_copy);
4519  va_end (args);
4520}
4521
4522int
4523main ()
4524{
4525
4526  // Check bool.
4527  _Bool success = false;
4528
4529  // Check restrict.
4530  if (test_restrict ("String literal") == 0)
4531    success = true;
4532  char *restrict newvar = "Another string";
4533
4534  // Check varargs.
4535  test_varargs ("s, d' f .", "string", 65, 34.234);
4536  test_varargs_macros ();
4537
4538  // Check flexible array members.
4539  struct incomplete_array *ia =
4540    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4541  ia->datasize = 10;
4542  for (int i = 0; i < ia->datasize; ++i)
4543    ia->data[i] = i * 1.234;
4544
4545  // Check named initializers.
4546  struct named_init ni = {
4547    .number = 34,
4548    .name = L"Test wide string",
4549    .average = 543.34343,
4550  };
4551
4552  ni.number = 58;
4553
4554  int dynamic_array[ni.number];
4555  dynamic_array[ni.number - 1] = 543;
4556
4557  // work around unused variable warnings
4558  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4559	  || dynamic_array[ni.number - 1] != 543);
4560
4561  ;
4562  return 0;
4563}
4564_ACEOF
4565for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4566do
4567  CC="$ac_save_CC $ac_arg"
4568  if ac_fn_c_try_compile "$LINENO"; then :
4569  ac_cv_prog_cc_c99=$ac_arg
4570fi
4571rm -f core conftest.err conftest.$ac_objext
4572  test "x$ac_cv_prog_cc_c99" != "xno" && break
4573done
4574rm -f conftest.$ac_ext
4575CC=$ac_save_CC
4576
4577fi
4578# AC_CACHE_VAL
4579case "x$ac_cv_prog_cc_c99" in
4580  x)
4581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4582$as_echo "none needed" >&6; } ;;
4583  xno)
4584    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4585$as_echo "unsupported" >&6; } ;;
4586  *)
4587    CC="$CC $ac_cv_prog_cc_c99"
4588    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4589$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4590esac
4591if test "x$ac_cv_prog_cc_c99" != xno; then :
4592
4593fi
4594
4595
4596
4597
4598
4599
4600ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4601if test "x$ac_cv_have_decl___clang__" = xyes; then :
4602  CLANGCC="yes"
4603else
4604  CLANGCC="no"
4605fi
4606
4607ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4608if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4609  INTELCC="yes"
4610else
4611  INTELCC="no"
4612fi
4613
4614ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4615if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4616  SUNCC="yes"
4617else
4618  SUNCC="no"
4619fi
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4630	if test -n "$ac_tool_prefix"; then
4631  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4632set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634$as_echo_n "checking for $ac_word... " >&6; }
4635if ${ac_cv_path_PKG_CONFIG+:} false; then :
4636  $as_echo_n "(cached) " >&6
4637else
4638  case $PKG_CONFIG in
4639  [\\/]* | ?:[\\/]*)
4640  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4641  ;;
4642  *)
4643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646  IFS=$as_save_IFS
4647  test -z "$as_dir" && as_dir=.
4648    for ac_exec_ext in '' $ac_executable_extensions; do
4649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652    break 2
4653  fi
4654done
4655  done
4656IFS=$as_save_IFS
4657
4658  ;;
4659esac
4660fi
4661PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4662if test -n "$PKG_CONFIG"; then
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4664$as_echo "$PKG_CONFIG" >&6; }
4665else
4666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667$as_echo "no" >&6; }
4668fi
4669
4670
4671fi
4672if test -z "$ac_cv_path_PKG_CONFIG"; then
4673  ac_pt_PKG_CONFIG=$PKG_CONFIG
4674  # Extract the first word of "pkg-config", so it can be a program name with args.
4675set dummy pkg-config; ac_word=$2
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677$as_echo_n "checking for $ac_word... " >&6; }
4678if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4679  $as_echo_n "(cached) " >&6
4680else
4681  case $ac_pt_PKG_CONFIG in
4682  [\\/]* | ?:[\\/]*)
4683  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4684  ;;
4685  *)
4686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689  IFS=$as_save_IFS
4690  test -z "$as_dir" && as_dir=.
4691    for ac_exec_ext in '' $ac_executable_extensions; do
4692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695    break 2
4696  fi
4697done
4698  done
4699IFS=$as_save_IFS
4700
4701  ;;
4702esac
4703fi
4704ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4705if test -n "$ac_pt_PKG_CONFIG"; then
4706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4707$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4708else
4709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710$as_echo "no" >&6; }
4711fi
4712
4713  if test "x$ac_pt_PKG_CONFIG" = x; then
4714    PKG_CONFIG=""
4715  else
4716    case $cross_compiling:$ac_tool_warned in
4717yes:)
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720ac_tool_warned=yes ;;
4721esac
4722    PKG_CONFIG=$ac_pt_PKG_CONFIG
4723  fi
4724else
4725  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4726fi
4727
4728fi
4729if test -n "$PKG_CONFIG"; then
4730	_pkg_min_version=0.9.0
4731	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4732$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4733	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4734		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4735$as_echo "yes" >&6; }
4736	else
4737		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738$as_echo "no" >&6; }
4739		PKG_CONFIG=""
4740	fi
4741fi
4742# Make sure we can run config.sub.
4743$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4744  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4745
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4747$as_echo_n "checking build system type... " >&6; }
4748if ${ac_cv_build+:} false; then :
4749  $as_echo_n "(cached) " >&6
4750else
4751  ac_build_alias=$build_alias
4752test "x$ac_build_alias" = x &&
4753  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4754test "x$ac_build_alias" = x &&
4755  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4756ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4757  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4758
4759fi
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4761$as_echo "$ac_cv_build" >&6; }
4762case $ac_cv_build in
4763*-*-*) ;;
4764*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4765esac
4766build=$ac_cv_build
4767ac_save_IFS=$IFS; IFS='-'
4768set x $ac_cv_build
4769shift
4770build_cpu=$1
4771build_vendor=$2
4772shift; shift
4773# Remember, the first character of IFS is used to create $*,
4774# except with old shells:
4775build_os=$*
4776IFS=$ac_save_IFS
4777case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4778
4779
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4781$as_echo_n "checking host system type... " >&6; }
4782if ${ac_cv_host+:} false; then :
4783  $as_echo_n "(cached) " >&6
4784else
4785  if test "x$host_alias" = x; then
4786  ac_cv_host=$ac_cv_build
4787else
4788  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4789    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4790fi
4791
4792fi
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4794$as_echo "$ac_cv_host" >&6; }
4795case $ac_cv_host in
4796*-*-*) ;;
4797*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4798esac
4799host=$ac_cv_host
4800ac_save_IFS=$IFS; IFS='-'
4801set x $ac_cv_host
4802shift
4803host_cpu=$1
4804host_vendor=$2
4805shift; shift
4806# Remember, the first character of IFS is used to create $*,
4807# except with old shells:
4808host_os=$*
4809IFS=$ac_save_IFS
4810case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4811
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4814$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4815if ${ac_cv_path_SED+:} false; then :
4816  $as_echo_n "(cached) " >&6
4817else
4818            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4819     for ac_i in 1 2 3 4 5 6 7; do
4820       ac_script="$ac_script$as_nl$ac_script"
4821     done
4822     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4823     { ac_script=; unset ac_script;}
4824     if test -z "$SED"; then
4825  ac_path_SED_found=false
4826  # Loop through the user's path and test for each of PROGNAME-LIST
4827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830  IFS=$as_save_IFS
4831  test -z "$as_dir" && as_dir=.
4832    for ac_prog in sed gsed; do
4833    for ac_exec_ext in '' $ac_executable_extensions; do
4834      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4835      as_fn_executable_p "$ac_path_SED" || continue
4836# Check for GNU ac_path_SED and select it if it is found.
4837  # Check for GNU $ac_path_SED
4838case `"$ac_path_SED" --version 2>&1` in
4839*GNU*)
4840  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4841*)
4842  ac_count=0
4843  $as_echo_n 0123456789 >"conftest.in"
4844  while :
4845  do
4846    cat "conftest.in" "conftest.in" >"conftest.tmp"
4847    mv "conftest.tmp" "conftest.in"
4848    cp "conftest.in" "conftest.nl"
4849    $as_echo '' >> "conftest.nl"
4850    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852    as_fn_arith $ac_count + 1 && ac_count=$as_val
4853    if test $ac_count -gt ${ac_path_SED_max-0}; then
4854      # Best one so far, save it but keep looking for a better one
4855      ac_cv_path_SED="$ac_path_SED"
4856      ac_path_SED_max=$ac_count
4857    fi
4858    # 10*(2^10) chars as input seems more than enough
4859    test $ac_count -gt 10 && break
4860  done
4861  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862esac
4863
4864      $ac_path_SED_found && break 3
4865    done
4866  done
4867  done
4868IFS=$as_save_IFS
4869  if test -z "$ac_cv_path_SED"; then
4870    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4871  fi
4872else
4873  ac_cv_path_SED=$SED
4874fi
4875
4876fi
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4878$as_echo "$ac_cv_path_SED" >&6; }
4879 SED="$ac_cv_path_SED"
4880  rm -f conftest.sed
4881
4882
4883
4884
4885
4886
4887# Check whether --enable-selective-werror was given.
4888if test "${enable_selective_werror+set}" = set; then :
4889  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4890else
4891  SELECTIVE_WERROR=yes
4892fi
4893
4894
4895
4896
4897
4898# -v is too short to test reliably with XORG_TESTSET_CFLAG
4899if test "x$SUNCC" = "xyes"; then
4900    BASE_CFLAGS="-v"
4901else
4902    BASE_CFLAGS=""
4903fi
4904
4905# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919xorg_testset_save_CFLAGS="$CFLAGS"
4920
4921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h.  */
4930int i;
4931_ACEOF
4932if ac_fn_c_try_compile "$LINENO"; then :
4933  xorg_cv_cc_flag_unknown_warning_option=yes
4934else
4935  xorg_cv_cc_flag_unknown_warning_option=no
4936fi
4937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938fi
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4942	CFLAGS="$xorg_testset_save_CFLAGS"
4943fi
4944
4945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4948	fi
4949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4953  $as_echo_n "(cached) " >&6
4954else
4955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956/* end confdefs.h.  */
4957int i;
4958_ACEOF
4959if ac_fn_c_try_compile "$LINENO"; then :
4960  xorg_cv_cc_flag_unused_command_line_argument=yes
4961else
4962  xorg_cv_cc_flag_unused_command_line_argument=no
4963fi
4964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4969	CFLAGS="$xorg_testset_save_CFLAGS"
4970fi
4971
4972found="no"
4973
4974	if test $found = "no" ; then
4975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4977		fi
4978
4979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4981		fi
4982
4983		CFLAGS="$CFLAGS -Wall"
4984
4985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4986$as_echo_n "checking if $CC supports -Wall... " >&6; }
4987		cacheid=xorg_cv_cc_flag__Wall
4988		if eval \${$cacheid+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993int i;
4994int
4995main ()
4996{
4997
4998  ;
4999  return 0;
5000}
5001_ACEOF
5002if ac_fn_c_try_link "$LINENO"; then :
5003  eval $cacheid=yes
5004else
5005  eval $cacheid=no
5006fi
5007rm -f core conftest.err conftest.$ac_objext \
5008    conftest$ac_exeext conftest.$ac_ext
5009fi
5010
5011
5012		CFLAGS="$xorg_testset_save_CFLAGS"
5013
5014		eval supported=\$$cacheid
5015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5016$as_echo "$supported" >&6; }
5017		if test "$supported" = "yes" ; then
5018			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5019			found="yes"
5020		fi
5021	fi
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037xorg_testset_save_CFLAGS="$CFLAGS"
5038
5039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5044  $as_echo_n "(cached) " >&6
5045else
5046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h.  */
5048int i;
5049_ACEOF
5050if ac_fn_c_try_compile "$LINENO"; then :
5051  xorg_cv_cc_flag_unknown_warning_option=yes
5052else
5053  xorg_cv_cc_flag_unknown_warning_option=no
5054fi
5055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5060	CFLAGS="$xorg_testset_save_CFLAGS"
5061fi
5062
5063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5066	fi
5067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5071  $as_echo_n "(cached) " >&6
5072else
5073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074/* end confdefs.h.  */
5075int i;
5076_ACEOF
5077if ac_fn_c_try_compile "$LINENO"; then :
5078  xorg_cv_cc_flag_unused_command_line_argument=yes
5079else
5080  xorg_cv_cc_flag_unused_command_line_argument=no
5081fi
5082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083fi
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5087	CFLAGS="$xorg_testset_save_CFLAGS"
5088fi
5089
5090found="no"
5091
5092	if test $found = "no" ; then
5093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5095		fi
5096
5097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5099		fi
5100
5101		CFLAGS="$CFLAGS -Wpointer-arith"
5102
5103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5104$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5105		cacheid=xorg_cv_cc_flag__Wpointer_arith
5106		if eval \${$cacheid+:} false; then :
5107  $as_echo_n "(cached) " >&6
5108else
5109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110/* end confdefs.h.  */
5111int i;
5112int
5113main ()
5114{
5115
5116  ;
5117  return 0;
5118}
5119_ACEOF
5120if ac_fn_c_try_link "$LINENO"; then :
5121  eval $cacheid=yes
5122else
5123  eval $cacheid=no
5124fi
5125rm -f core conftest.err conftest.$ac_objext \
5126    conftest$ac_exeext conftest.$ac_ext
5127fi
5128
5129
5130		CFLAGS="$xorg_testset_save_CFLAGS"
5131
5132		eval supported=\$$cacheid
5133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5134$as_echo "$supported" >&6; }
5135		if test "$supported" = "yes" ; then
5136			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5137			found="yes"
5138		fi
5139	fi
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155xorg_testset_save_CFLAGS="$CFLAGS"
5156
5157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5162  $as_echo_n "(cached) " >&6
5163else
5164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165/* end confdefs.h.  */
5166int i;
5167_ACEOF
5168if ac_fn_c_try_compile "$LINENO"; then :
5169  xorg_cv_cc_flag_unknown_warning_option=yes
5170else
5171  xorg_cv_cc_flag_unknown_warning_option=no
5172fi
5173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174fi
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5177	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5178	CFLAGS="$xorg_testset_save_CFLAGS"
5179fi
5180
5181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5182	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5183		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184	fi
5185	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5189  $as_echo_n "(cached) " >&6
5190else
5191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192/* end confdefs.h.  */
5193int i;
5194_ACEOF
5195if ac_fn_c_try_compile "$LINENO"; then :
5196  xorg_cv_cc_flag_unused_command_line_argument=yes
5197else
5198  xorg_cv_cc_flag_unused_command_line_argument=no
5199fi
5200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201fi
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5204	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5205	CFLAGS="$xorg_testset_save_CFLAGS"
5206fi
5207
5208found="no"
5209
5210	if test $found = "no" ; then
5211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213		fi
5214
5215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5217		fi
5218
5219		CFLAGS="$CFLAGS -Wmissing-declarations"
5220
5221		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5222$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5223		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5224		if eval \${$cacheid+:} false; then :
5225  $as_echo_n "(cached) " >&6
5226else
5227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h.  */
5229int i;
5230int
5231main ()
5232{
5233
5234  ;
5235  return 0;
5236}
5237_ACEOF
5238if ac_fn_c_try_link "$LINENO"; then :
5239  eval $cacheid=yes
5240else
5241  eval $cacheid=no
5242fi
5243rm -f core conftest.err conftest.$ac_objext \
5244    conftest$ac_exeext conftest.$ac_ext
5245fi
5246
5247
5248		CFLAGS="$xorg_testset_save_CFLAGS"
5249
5250		eval supported=\$$cacheid
5251		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5252$as_echo "$supported" >&6; }
5253		if test "$supported" = "yes" ; then
5254			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5255			found="yes"
5256		fi
5257	fi
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273xorg_testset_save_CFLAGS="$CFLAGS"
5274
5275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5280  $as_echo_n "(cached) " >&6
5281else
5282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h.  */
5284int i;
5285_ACEOF
5286if ac_fn_c_try_compile "$LINENO"; then :
5287  xorg_cv_cc_flag_unknown_warning_option=yes
5288else
5289  xorg_cv_cc_flag_unknown_warning_option=no
5290fi
5291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292fi
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5295	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5296	CFLAGS="$xorg_testset_save_CFLAGS"
5297fi
5298
5299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5300	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5301		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5302	fi
5303	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5306if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5307  $as_echo_n "(cached) " >&6
5308else
5309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h.  */
5311int i;
5312_ACEOF
5313if ac_fn_c_try_compile "$LINENO"; then :
5314  xorg_cv_cc_flag_unused_command_line_argument=yes
5315else
5316  xorg_cv_cc_flag_unused_command_line_argument=no
5317fi
5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5322	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5323	CFLAGS="$xorg_testset_save_CFLAGS"
5324fi
5325
5326found="no"
5327
5328	if test $found = "no" ; then
5329		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5331		fi
5332
5333		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5335		fi
5336
5337		CFLAGS="$CFLAGS -Wformat=2"
5338
5339		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5340$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5341		cacheid=xorg_cv_cc_flag__Wformat_2
5342		if eval \${$cacheid+:} false; then :
5343  $as_echo_n "(cached) " >&6
5344else
5345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h.  */
5347int i;
5348int
5349main ()
5350{
5351
5352  ;
5353  return 0;
5354}
5355_ACEOF
5356if ac_fn_c_try_link "$LINENO"; then :
5357  eval $cacheid=yes
5358else
5359  eval $cacheid=no
5360fi
5361rm -f core conftest.err conftest.$ac_objext \
5362    conftest$ac_exeext conftest.$ac_ext
5363fi
5364
5365
5366		CFLAGS="$xorg_testset_save_CFLAGS"
5367
5368		eval supported=\$$cacheid
5369		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5370$as_echo "$supported" >&6; }
5371		if test "$supported" = "yes" ; then
5372			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5373			found="yes"
5374		fi
5375	fi
5376
5377	if test $found = "no" ; then
5378		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5379			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5380		fi
5381
5382		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5383			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5384		fi
5385
5386		CFLAGS="$CFLAGS -Wformat"
5387
5388		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5389$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5390		cacheid=xorg_cv_cc_flag__Wformat
5391		if eval \${$cacheid+:} false; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396int i;
5397int
5398main ()
5399{
5400
5401  ;
5402  return 0;
5403}
5404_ACEOF
5405if ac_fn_c_try_link "$LINENO"; then :
5406  eval $cacheid=yes
5407else
5408  eval $cacheid=no
5409fi
5410rm -f core conftest.err conftest.$ac_objext \
5411    conftest$ac_exeext conftest.$ac_ext
5412fi
5413
5414
5415		CFLAGS="$xorg_testset_save_CFLAGS"
5416
5417		eval supported=\$$cacheid
5418		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5419$as_echo "$supported" >&6; }
5420		if test "$supported" = "yes" ; then
5421			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5422			found="yes"
5423		fi
5424	fi
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442xorg_testset_save_CFLAGS="$CFLAGS"
5443
5444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5449  $as_echo_n "(cached) " >&6
5450else
5451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h.  */
5453int i;
5454_ACEOF
5455if ac_fn_c_try_compile "$LINENO"; then :
5456  xorg_cv_cc_flag_unknown_warning_option=yes
5457else
5458  xorg_cv_cc_flag_unknown_warning_option=no
5459fi
5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461fi
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5465	CFLAGS="$xorg_testset_save_CFLAGS"
5466fi
5467
5468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5471	fi
5472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5476  $as_echo_n "(cached) " >&6
5477else
5478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h.  */
5480int i;
5481_ACEOF
5482if ac_fn_c_try_compile "$LINENO"; then :
5483  xorg_cv_cc_flag_unused_command_line_argument=yes
5484else
5485  xorg_cv_cc_flag_unused_command_line_argument=no
5486fi
5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5492	CFLAGS="$xorg_testset_save_CFLAGS"
5493fi
5494
5495found="no"
5496
5497	if test $found = "no" ; then
5498		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500		fi
5501
5502		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5504		fi
5505
5506		CFLAGS="$CFLAGS -Wstrict-prototypes"
5507
5508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5509$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5510		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5511		if eval \${$cacheid+:} false; then :
5512  $as_echo_n "(cached) " >&6
5513else
5514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h.  */
5516int i;
5517int
5518main ()
5519{
5520
5521  ;
5522  return 0;
5523}
5524_ACEOF
5525if ac_fn_c_try_link "$LINENO"; then :
5526  eval $cacheid=yes
5527else
5528  eval $cacheid=no
5529fi
5530rm -f core conftest.err conftest.$ac_objext \
5531    conftest$ac_exeext conftest.$ac_ext
5532fi
5533
5534
5535		CFLAGS="$xorg_testset_save_CFLAGS"
5536
5537		eval supported=\$$cacheid
5538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5539$as_echo "$supported" >&6; }
5540		if test "$supported" = "yes" ; then
5541			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5542			found="yes"
5543		fi
5544	fi
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560xorg_testset_save_CFLAGS="$CFLAGS"
5561
5562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5567  $as_echo_n "(cached) " >&6
5568else
5569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570/* end confdefs.h.  */
5571int i;
5572_ACEOF
5573if ac_fn_c_try_compile "$LINENO"; then :
5574  xorg_cv_cc_flag_unknown_warning_option=yes
5575else
5576  xorg_cv_cc_flag_unknown_warning_option=no
5577fi
5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579fi
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5583	CFLAGS="$xorg_testset_save_CFLAGS"
5584fi
5585
5586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589	fi
5590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5594  $as_echo_n "(cached) " >&6
5595else
5596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597/* end confdefs.h.  */
5598int i;
5599_ACEOF
5600if ac_fn_c_try_compile "$LINENO"; then :
5601  xorg_cv_cc_flag_unused_command_line_argument=yes
5602else
5603  xorg_cv_cc_flag_unused_command_line_argument=no
5604fi
5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606fi
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5610	CFLAGS="$xorg_testset_save_CFLAGS"
5611fi
5612
5613found="no"
5614
5615	if test $found = "no" ; then
5616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618		fi
5619
5620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5622		fi
5623
5624		CFLAGS="$CFLAGS -Wmissing-prototypes"
5625
5626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5627$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5628		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5629		if eval \${$cacheid+:} false; then :
5630  $as_echo_n "(cached) " >&6
5631else
5632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633/* end confdefs.h.  */
5634int i;
5635int
5636main ()
5637{
5638
5639  ;
5640  return 0;
5641}
5642_ACEOF
5643if ac_fn_c_try_link "$LINENO"; then :
5644  eval $cacheid=yes
5645else
5646  eval $cacheid=no
5647fi
5648rm -f core conftest.err conftest.$ac_objext \
5649    conftest$ac_exeext conftest.$ac_ext
5650fi
5651
5652
5653		CFLAGS="$xorg_testset_save_CFLAGS"
5654
5655		eval supported=\$$cacheid
5656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5657$as_echo "$supported" >&6; }
5658		if test "$supported" = "yes" ; then
5659			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5660			found="yes"
5661		fi
5662	fi
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678xorg_testset_save_CFLAGS="$CFLAGS"
5679
5680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h.  */
5689int i;
5690_ACEOF
5691if ac_fn_c_try_compile "$LINENO"; then :
5692  xorg_cv_cc_flag_unknown_warning_option=yes
5693else
5694  xorg_cv_cc_flag_unknown_warning_option=no
5695fi
5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697fi
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5701	CFLAGS="$xorg_testset_save_CFLAGS"
5702fi
5703
5704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707	fi
5708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5712  $as_echo_n "(cached) " >&6
5713else
5714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715/* end confdefs.h.  */
5716int i;
5717_ACEOF
5718if ac_fn_c_try_compile "$LINENO"; then :
5719  xorg_cv_cc_flag_unused_command_line_argument=yes
5720else
5721  xorg_cv_cc_flag_unused_command_line_argument=no
5722fi
5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724fi
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5728	CFLAGS="$xorg_testset_save_CFLAGS"
5729fi
5730
5731found="no"
5732
5733	if test $found = "no" ; then
5734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736		fi
5737
5738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5740		fi
5741
5742		CFLAGS="$CFLAGS -Wnested-externs"
5743
5744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5745$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5746		cacheid=xorg_cv_cc_flag__Wnested_externs
5747		if eval \${$cacheid+:} false; then :
5748  $as_echo_n "(cached) " >&6
5749else
5750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751/* end confdefs.h.  */
5752int i;
5753int
5754main ()
5755{
5756
5757  ;
5758  return 0;
5759}
5760_ACEOF
5761if ac_fn_c_try_link "$LINENO"; then :
5762  eval $cacheid=yes
5763else
5764  eval $cacheid=no
5765fi
5766rm -f core conftest.err conftest.$ac_objext \
5767    conftest$ac_exeext conftest.$ac_ext
5768fi
5769
5770
5771		CFLAGS="$xorg_testset_save_CFLAGS"
5772
5773		eval supported=\$$cacheid
5774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5775$as_echo "$supported" >&6; }
5776		if test "$supported" = "yes" ; then
5777			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5778			found="yes"
5779		fi
5780	fi
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796xorg_testset_save_CFLAGS="$CFLAGS"
5797
5798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5803  $as_echo_n "(cached) " >&6
5804else
5805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h.  */
5807int i;
5808_ACEOF
5809if ac_fn_c_try_compile "$LINENO"; then :
5810  xorg_cv_cc_flag_unknown_warning_option=yes
5811else
5812  xorg_cv_cc_flag_unknown_warning_option=no
5813fi
5814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815fi
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5818	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5819	CFLAGS="$xorg_testset_save_CFLAGS"
5820fi
5821
5822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5823	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5825	fi
5826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5830  $as_echo_n "(cached) " >&6
5831else
5832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h.  */
5834int i;
5835_ACEOF
5836if ac_fn_c_try_compile "$LINENO"; then :
5837  xorg_cv_cc_flag_unused_command_line_argument=yes
5838else
5839  xorg_cv_cc_flag_unused_command_line_argument=no
5840fi
5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842fi
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5846	CFLAGS="$xorg_testset_save_CFLAGS"
5847fi
5848
5849found="no"
5850
5851	if test $found = "no" ; then
5852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5854		fi
5855
5856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5858		fi
5859
5860		CFLAGS="$CFLAGS -Wbad-function-cast"
5861
5862		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5863$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5864		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5865		if eval \${$cacheid+:} false; then :
5866  $as_echo_n "(cached) " >&6
5867else
5868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h.  */
5870int i;
5871int
5872main ()
5873{
5874
5875  ;
5876  return 0;
5877}
5878_ACEOF
5879if ac_fn_c_try_link "$LINENO"; then :
5880  eval $cacheid=yes
5881else
5882  eval $cacheid=no
5883fi
5884rm -f core conftest.err conftest.$ac_objext \
5885    conftest$ac_exeext conftest.$ac_ext
5886fi
5887
5888
5889		CFLAGS="$xorg_testset_save_CFLAGS"
5890
5891		eval supported=\$$cacheid
5892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5893$as_echo "$supported" >&6; }
5894		if test "$supported" = "yes" ; then
5895			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5896			found="yes"
5897		fi
5898	fi
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914xorg_testset_save_CFLAGS="$CFLAGS"
5915
5916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5921  $as_echo_n "(cached) " >&6
5922else
5923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h.  */
5925int i;
5926_ACEOF
5927if ac_fn_c_try_compile "$LINENO"; then :
5928  xorg_cv_cc_flag_unknown_warning_option=yes
5929else
5930  xorg_cv_cc_flag_unknown_warning_option=no
5931fi
5932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933fi
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5937	CFLAGS="$xorg_testset_save_CFLAGS"
5938fi
5939
5940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5943	fi
5944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5948  $as_echo_n "(cached) " >&6
5949else
5950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h.  */
5952int i;
5953_ACEOF
5954if ac_fn_c_try_compile "$LINENO"; then :
5955  xorg_cv_cc_flag_unused_command_line_argument=yes
5956else
5957  xorg_cv_cc_flag_unused_command_line_argument=no
5958fi
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5964	CFLAGS="$xorg_testset_save_CFLAGS"
5965fi
5966
5967found="no"
5968
5969	if test $found = "no" ; then
5970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5972		fi
5973
5974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5976		fi
5977
5978		CFLAGS="$CFLAGS -Wold-style-definition"
5979
5980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5981$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5982		cacheid=xorg_cv_cc_flag__Wold_style_definition
5983		if eval \${$cacheid+:} false; then :
5984  $as_echo_n "(cached) " >&6
5985else
5986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h.  */
5988int i;
5989int
5990main ()
5991{
5992
5993  ;
5994  return 0;
5995}
5996_ACEOF
5997if ac_fn_c_try_link "$LINENO"; then :
5998  eval $cacheid=yes
5999else
6000  eval $cacheid=no
6001fi
6002rm -f core conftest.err conftest.$ac_objext \
6003    conftest$ac_exeext conftest.$ac_ext
6004fi
6005
6006
6007		CFLAGS="$xorg_testset_save_CFLAGS"
6008
6009		eval supported=\$$cacheid
6010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6011$as_echo "$supported" >&6; }
6012		if test "$supported" = "yes" ; then
6013			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6014			found="yes"
6015		fi
6016	fi
6017
6018	if test $found = "no" ; then
6019		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6021		fi
6022
6023		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6025		fi
6026
6027		CFLAGS="$CFLAGS -fd"
6028
6029		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6030$as_echo_n "checking if $CC supports -fd... " >&6; }
6031		cacheid=xorg_cv_cc_flag__fd
6032		if eval \${$cacheid+:} false; then :
6033  $as_echo_n "(cached) " >&6
6034else
6035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h.  */
6037int i;
6038int
6039main ()
6040{
6041
6042  ;
6043  return 0;
6044}
6045_ACEOF
6046if ac_fn_c_try_link "$LINENO"; then :
6047  eval $cacheid=yes
6048else
6049  eval $cacheid=no
6050fi
6051rm -f core conftest.err conftest.$ac_objext \
6052    conftest$ac_exeext conftest.$ac_ext
6053fi
6054
6055
6056		CFLAGS="$xorg_testset_save_CFLAGS"
6057
6058		eval supported=\$$cacheid
6059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6060$as_echo "$supported" >&6; }
6061		if test "$supported" = "yes" ; then
6062			BASE_CFLAGS="$BASE_CFLAGS -fd"
6063			found="yes"
6064		fi
6065	fi
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081xorg_testset_save_CFLAGS="$CFLAGS"
6082
6083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6088  $as_echo_n "(cached) " >&6
6089else
6090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091/* end confdefs.h.  */
6092int i;
6093_ACEOF
6094if ac_fn_c_try_compile "$LINENO"; then :
6095  xorg_cv_cc_flag_unknown_warning_option=yes
6096else
6097  xorg_cv_cc_flag_unknown_warning_option=no
6098fi
6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100fi
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6104	CFLAGS="$xorg_testset_save_CFLAGS"
6105fi
6106
6107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6110	fi
6111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6115  $as_echo_n "(cached) " >&6
6116else
6117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118/* end confdefs.h.  */
6119int i;
6120_ACEOF
6121if ac_fn_c_try_compile "$LINENO"; then :
6122  xorg_cv_cc_flag_unused_command_line_argument=yes
6123else
6124  xorg_cv_cc_flag_unused_command_line_argument=no
6125fi
6126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127fi
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6131	CFLAGS="$xorg_testset_save_CFLAGS"
6132fi
6133
6134found="no"
6135
6136	if test $found = "no" ; then
6137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6139		fi
6140
6141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6143		fi
6144
6145		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6146
6147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6148$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6149		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6150		if eval \${$cacheid+:} false; then :
6151  $as_echo_n "(cached) " >&6
6152else
6153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154/* end confdefs.h.  */
6155int i;
6156int
6157main ()
6158{
6159
6160  ;
6161  return 0;
6162}
6163_ACEOF
6164if ac_fn_c_try_link "$LINENO"; then :
6165  eval $cacheid=yes
6166else
6167  eval $cacheid=no
6168fi
6169rm -f core conftest.err conftest.$ac_objext \
6170    conftest$ac_exeext conftest.$ac_ext
6171fi
6172
6173
6174		CFLAGS="$xorg_testset_save_CFLAGS"
6175
6176		eval supported=\$$cacheid
6177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6178$as_echo "$supported" >&6; }
6179		if test "$supported" = "yes" ; then
6180			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6181			found="yes"
6182		fi
6183	fi
6184
6185
6186
6187
6188
6189# This chunk adds additional warnings that could catch undesired effects.
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203xorg_testset_save_CFLAGS="$CFLAGS"
6204
6205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6210  $as_echo_n "(cached) " >&6
6211else
6212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213/* end confdefs.h.  */
6214int i;
6215_ACEOF
6216if ac_fn_c_try_compile "$LINENO"; then :
6217  xorg_cv_cc_flag_unknown_warning_option=yes
6218else
6219  xorg_cv_cc_flag_unknown_warning_option=no
6220fi
6221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222fi
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6226	CFLAGS="$xorg_testset_save_CFLAGS"
6227fi
6228
6229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6232	fi
6233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6237  $as_echo_n "(cached) " >&6
6238else
6239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240/* end confdefs.h.  */
6241int i;
6242_ACEOF
6243if ac_fn_c_try_compile "$LINENO"; then :
6244  xorg_cv_cc_flag_unused_command_line_argument=yes
6245else
6246  xorg_cv_cc_flag_unused_command_line_argument=no
6247fi
6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249fi
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6253	CFLAGS="$xorg_testset_save_CFLAGS"
6254fi
6255
6256found="no"
6257
6258	if test $found = "no" ; then
6259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6261		fi
6262
6263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6265		fi
6266
6267		CFLAGS="$CFLAGS -Wunused"
6268
6269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6270$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6271		cacheid=xorg_cv_cc_flag__Wunused
6272		if eval \${$cacheid+:} false; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h.  */
6277int i;
6278int
6279main ()
6280{
6281
6282  ;
6283  return 0;
6284}
6285_ACEOF
6286if ac_fn_c_try_link "$LINENO"; then :
6287  eval $cacheid=yes
6288else
6289  eval $cacheid=no
6290fi
6291rm -f core conftest.err conftest.$ac_objext \
6292    conftest$ac_exeext conftest.$ac_ext
6293fi
6294
6295
6296		CFLAGS="$xorg_testset_save_CFLAGS"
6297
6298		eval supported=\$$cacheid
6299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6300$as_echo "$supported" >&6; }
6301		if test "$supported" = "yes" ; then
6302			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6303			found="yes"
6304		fi
6305	fi
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321xorg_testset_save_CFLAGS="$CFLAGS"
6322
6323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6328  $as_echo_n "(cached) " >&6
6329else
6330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331/* end confdefs.h.  */
6332int i;
6333_ACEOF
6334if ac_fn_c_try_compile "$LINENO"; then :
6335  xorg_cv_cc_flag_unknown_warning_option=yes
6336else
6337  xorg_cv_cc_flag_unknown_warning_option=no
6338fi
6339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340fi
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6344	CFLAGS="$xorg_testset_save_CFLAGS"
6345fi
6346
6347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350	fi
6351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6355  $as_echo_n "(cached) " >&6
6356else
6357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358/* end confdefs.h.  */
6359int i;
6360_ACEOF
6361if ac_fn_c_try_compile "$LINENO"; then :
6362  xorg_cv_cc_flag_unused_command_line_argument=yes
6363else
6364  xorg_cv_cc_flag_unused_command_line_argument=no
6365fi
6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367fi
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6371	CFLAGS="$xorg_testset_save_CFLAGS"
6372fi
6373
6374found="no"
6375
6376	if test $found = "no" ; then
6377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379		fi
6380
6381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6383		fi
6384
6385		CFLAGS="$CFLAGS -Wuninitialized"
6386
6387		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6388$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6389		cacheid=xorg_cv_cc_flag__Wuninitialized
6390		if eval \${$cacheid+:} false; then :
6391  $as_echo_n "(cached) " >&6
6392else
6393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394/* end confdefs.h.  */
6395int i;
6396int
6397main ()
6398{
6399
6400  ;
6401  return 0;
6402}
6403_ACEOF
6404if ac_fn_c_try_link "$LINENO"; then :
6405  eval $cacheid=yes
6406else
6407  eval $cacheid=no
6408fi
6409rm -f core conftest.err conftest.$ac_objext \
6410    conftest$ac_exeext conftest.$ac_ext
6411fi
6412
6413
6414		CFLAGS="$xorg_testset_save_CFLAGS"
6415
6416		eval supported=\$$cacheid
6417		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6418$as_echo "$supported" >&6; }
6419		if test "$supported" = "yes" ; then
6420			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6421			found="yes"
6422		fi
6423	fi
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439xorg_testset_save_CFLAGS="$CFLAGS"
6440
6441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6446  $as_echo_n "(cached) " >&6
6447else
6448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449/* end confdefs.h.  */
6450int i;
6451_ACEOF
6452if ac_fn_c_try_compile "$LINENO"; then :
6453  xorg_cv_cc_flag_unknown_warning_option=yes
6454else
6455  xorg_cv_cc_flag_unknown_warning_option=no
6456fi
6457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458fi
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6462	CFLAGS="$xorg_testset_save_CFLAGS"
6463fi
6464
6465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468	fi
6469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6473  $as_echo_n "(cached) " >&6
6474else
6475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476/* end confdefs.h.  */
6477int i;
6478_ACEOF
6479if ac_fn_c_try_compile "$LINENO"; then :
6480  xorg_cv_cc_flag_unused_command_line_argument=yes
6481else
6482  xorg_cv_cc_flag_unused_command_line_argument=no
6483fi
6484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485fi
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6489	CFLAGS="$xorg_testset_save_CFLAGS"
6490fi
6491
6492found="no"
6493
6494	if test $found = "no" ; then
6495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497		fi
6498
6499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6501		fi
6502
6503		CFLAGS="$CFLAGS -Wshadow"
6504
6505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6506$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6507		cacheid=xorg_cv_cc_flag__Wshadow
6508		if eval \${$cacheid+:} false; then :
6509  $as_echo_n "(cached) " >&6
6510else
6511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513int i;
6514int
6515main ()
6516{
6517
6518  ;
6519  return 0;
6520}
6521_ACEOF
6522if ac_fn_c_try_link "$LINENO"; then :
6523  eval $cacheid=yes
6524else
6525  eval $cacheid=no
6526fi
6527rm -f core conftest.err conftest.$ac_objext \
6528    conftest$ac_exeext conftest.$ac_ext
6529fi
6530
6531
6532		CFLAGS="$xorg_testset_save_CFLAGS"
6533
6534		eval supported=\$$cacheid
6535		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6536$as_echo "$supported" >&6; }
6537		if test "$supported" = "yes" ; then
6538			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6539			found="yes"
6540		fi
6541	fi
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557xorg_testset_save_CFLAGS="$CFLAGS"
6558
6559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6560	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6564  $as_echo_n "(cached) " >&6
6565else
6566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567/* end confdefs.h.  */
6568int i;
6569_ACEOF
6570if ac_fn_c_try_compile "$LINENO"; then :
6571  xorg_cv_cc_flag_unknown_warning_option=yes
6572else
6573  xorg_cv_cc_flag_unknown_warning_option=no
6574fi
6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576fi
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6580	CFLAGS="$xorg_testset_save_CFLAGS"
6581fi
6582
6583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586	fi
6587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6591  $as_echo_n "(cached) " >&6
6592else
6593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594/* end confdefs.h.  */
6595int i;
6596_ACEOF
6597if ac_fn_c_try_compile "$LINENO"; then :
6598  xorg_cv_cc_flag_unused_command_line_argument=yes
6599else
6600  xorg_cv_cc_flag_unused_command_line_argument=no
6601fi
6602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603fi
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6607	CFLAGS="$xorg_testset_save_CFLAGS"
6608fi
6609
6610found="no"
6611
6612	if test $found = "no" ; then
6613		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6615		fi
6616
6617		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6619		fi
6620
6621		CFLAGS="$CFLAGS -Wmissing-noreturn"
6622
6623		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6624$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6625		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6626		if eval \${$cacheid+:} false; then :
6627  $as_echo_n "(cached) " >&6
6628else
6629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631int i;
6632int
6633main ()
6634{
6635
6636  ;
6637  return 0;
6638}
6639_ACEOF
6640if ac_fn_c_try_link "$LINENO"; then :
6641  eval $cacheid=yes
6642else
6643  eval $cacheid=no
6644fi
6645rm -f core conftest.err conftest.$ac_objext \
6646    conftest$ac_exeext conftest.$ac_ext
6647fi
6648
6649
6650		CFLAGS="$xorg_testset_save_CFLAGS"
6651
6652		eval supported=\$$cacheid
6653		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6654$as_echo "$supported" >&6; }
6655		if test "$supported" = "yes" ; then
6656			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6657			found="yes"
6658		fi
6659	fi
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675xorg_testset_save_CFLAGS="$CFLAGS"
6676
6677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6678	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6682  $as_echo_n "(cached) " >&6
6683else
6684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685/* end confdefs.h.  */
6686int i;
6687_ACEOF
6688if ac_fn_c_try_compile "$LINENO"; then :
6689  xorg_cv_cc_flag_unknown_warning_option=yes
6690else
6691  xorg_cv_cc_flag_unknown_warning_option=no
6692fi
6693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694fi
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6697	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6698	CFLAGS="$xorg_testset_save_CFLAGS"
6699fi
6700
6701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6702	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6703		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704	fi
6705	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6709  $as_echo_n "(cached) " >&6
6710else
6711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712/* end confdefs.h.  */
6713int i;
6714_ACEOF
6715if ac_fn_c_try_compile "$LINENO"; then :
6716  xorg_cv_cc_flag_unused_command_line_argument=yes
6717else
6718  xorg_cv_cc_flag_unused_command_line_argument=no
6719fi
6720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721fi
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6725	CFLAGS="$xorg_testset_save_CFLAGS"
6726fi
6727
6728found="no"
6729
6730	if test $found = "no" ; then
6731		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733		fi
6734
6735		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737		fi
6738
6739		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6740
6741		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6742$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6743		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6744		if eval \${$cacheid+:} false; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748/* end confdefs.h.  */
6749int i;
6750int
6751main ()
6752{
6753
6754  ;
6755  return 0;
6756}
6757_ACEOF
6758if ac_fn_c_try_link "$LINENO"; then :
6759  eval $cacheid=yes
6760else
6761  eval $cacheid=no
6762fi
6763rm -f core conftest.err conftest.$ac_objext \
6764    conftest$ac_exeext conftest.$ac_ext
6765fi
6766
6767
6768		CFLAGS="$xorg_testset_save_CFLAGS"
6769
6770		eval supported=\$$cacheid
6771		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6772$as_echo "$supported" >&6; }
6773		if test "$supported" = "yes" ; then
6774			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6775			found="yes"
6776		fi
6777	fi
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793xorg_testset_save_CFLAGS="$CFLAGS"
6794
6795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6800  $as_echo_n "(cached) " >&6
6801else
6802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803/* end confdefs.h.  */
6804int i;
6805_ACEOF
6806if ac_fn_c_try_compile "$LINENO"; then :
6807  xorg_cv_cc_flag_unknown_warning_option=yes
6808else
6809  xorg_cv_cc_flag_unknown_warning_option=no
6810fi
6811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812fi
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6816	CFLAGS="$xorg_testset_save_CFLAGS"
6817fi
6818
6819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6822	fi
6823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830/* end confdefs.h.  */
6831int i;
6832_ACEOF
6833if ac_fn_c_try_compile "$LINENO"; then :
6834  xorg_cv_cc_flag_unused_command_line_argument=yes
6835else
6836  xorg_cv_cc_flag_unused_command_line_argument=no
6837fi
6838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839fi
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6843	CFLAGS="$xorg_testset_save_CFLAGS"
6844fi
6845
6846found="no"
6847
6848	if test $found = "no" ; then
6849		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6851		fi
6852
6853		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6855		fi
6856
6857		CFLAGS="$CFLAGS -Wredundant-decls"
6858
6859		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6860$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6861		cacheid=xorg_cv_cc_flag__Wredundant_decls
6862		if eval \${$cacheid+:} false; then :
6863  $as_echo_n "(cached) " >&6
6864else
6865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866/* end confdefs.h.  */
6867int i;
6868int
6869main ()
6870{
6871
6872  ;
6873  return 0;
6874}
6875_ACEOF
6876if ac_fn_c_try_link "$LINENO"; then :
6877  eval $cacheid=yes
6878else
6879  eval $cacheid=no
6880fi
6881rm -f core conftest.err conftest.$ac_objext \
6882    conftest$ac_exeext conftest.$ac_ext
6883fi
6884
6885
6886		CFLAGS="$xorg_testset_save_CFLAGS"
6887
6888		eval supported=\$$cacheid
6889		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6890$as_echo "$supported" >&6; }
6891		if test "$supported" = "yes" ; then
6892			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6893			found="yes"
6894		fi
6895	fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911xorg_testset_save_CFLAGS="$CFLAGS"
6912
6913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h.  */
6922int i;
6923_ACEOF
6924if ac_fn_c_try_compile "$LINENO"; then :
6925  xorg_cv_cc_flag_unknown_warning_option=yes
6926else
6927  xorg_cv_cc_flag_unknown_warning_option=no
6928fi
6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930fi
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6934	CFLAGS="$xorg_testset_save_CFLAGS"
6935fi
6936
6937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940	fi
6941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949int i;
6950_ACEOF
6951if ac_fn_c_try_compile "$LINENO"; then :
6952  xorg_cv_cc_flag_unused_command_line_argument=yes
6953else
6954  xorg_cv_cc_flag_unused_command_line_argument=no
6955fi
6956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957fi
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6961	CFLAGS="$xorg_testset_save_CFLAGS"
6962fi
6963
6964found="no"
6965
6966	if test $found = "no" ; then
6967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969		fi
6970
6971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6973		fi
6974
6975		CFLAGS="$CFLAGS -Wlogical-op"
6976
6977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6978$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6979		cacheid=xorg_cv_cc_flag__Wlogical_op
6980		if eval \${$cacheid+:} false; then :
6981  $as_echo_n "(cached) " >&6
6982else
6983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984/* end confdefs.h.  */
6985int i;
6986int
6987main ()
6988{
6989
6990  ;
6991  return 0;
6992}
6993_ACEOF
6994if ac_fn_c_try_link "$LINENO"; then :
6995  eval $cacheid=yes
6996else
6997  eval $cacheid=no
6998fi
6999rm -f core conftest.err conftest.$ac_objext \
7000    conftest$ac_exeext conftest.$ac_ext
7001fi
7002
7003
7004		CFLAGS="$xorg_testset_save_CFLAGS"
7005
7006		eval supported=\$$cacheid
7007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7008$as_echo "$supported" >&6; }
7009		if test "$supported" = "yes" ; then
7010			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7011			found="yes"
7012		fi
7013	fi
7014
7015
7016
7017# These are currently disabled because they are noisy.  They will be enabled
7018# in the future once the codebase is sufficiently modernized to silence
7019# them.  For now, I don't want them to drown out the other warnings.
7020# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7021# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7022# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7023
7024# Turn some warnings into errors, so we don't accidently get successful builds
7025# when there are problems that should be fixed.
7026
7027if test "x$SELECTIVE_WERROR" = "xyes" ; then
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041xorg_testset_save_CFLAGS="$CFLAGS"
7042
7043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7044	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7045	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052int i;
7053_ACEOF
7054if ac_fn_c_try_compile "$LINENO"; then :
7055  xorg_cv_cc_flag_unknown_warning_option=yes
7056else
7057  xorg_cv_cc_flag_unknown_warning_option=no
7058fi
7059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060fi
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7064	CFLAGS="$xorg_testset_save_CFLAGS"
7065fi
7066
7067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070	fi
7071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7075  $as_echo_n "(cached) " >&6
7076else
7077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078/* end confdefs.h.  */
7079int i;
7080_ACEOF
7081if ac_fn_c_try_compile "$LINENO"; then :
7082  xorg_cv_cc_flag_unused_command_line_argument=yes
7083else
7084  xorg_cv_cc_flag_unused_command_line_argument=no
7085fi
7086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087fi
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7090	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7091	CFLAGS="$xorg_testset_save_CFLAGS"
7092fi
7093
7094found="no"
7095
7096	if test $found = "no" ; then
7097		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099		fi
7100
7101		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7103		fi
7104
7105		CFLAGS="$CFLAGS -Werror=implicit"
7106
7107		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7108$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7109		cacheid=xorg_cv_cc_flag__Werror_implicit
7110		if eval \${$cacheid+:} false; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114/* end confdefs.h.  */
7115int i;
7116int
7117main ()
7118{
7119
7120  ;
7121  return 0;
7122}
7123_ACEOF
7124if ac_fn_c_try_link "$LINENO"; then :
7125  eval $cacheid=yes
7126else
7127  eval $cacheid=no
7128fi
7129rm -f core conftest.err conftest.$ac_objext \
7130    conftest$ac_exeext conftest.$ac_ext
7131fi
7132
7133
7134		CFLAGS="$xorg_testset_save_CFLAGS"
7135
7136		eval supported=\$$cacheid
7137		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7138$as_echo "$supported" >&6; }
7139		if test "$supported" = "yes" ; then
7140			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7141			found="yes"
7142		fi
7143	fi
7144
7145	if test $found = "no" ; then
7146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148		fi
7149
7150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152		fi
7153
7154		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7155
7156		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7157$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7158		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7159		if eval \${$cacheid+:} false; then :
7160  $as_echo_n "(cached) " >&6
7161else
7162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h.  */
7164int i;
7165int
7166main ()
7167{
7168
7169  ;
7170  return 0;
7171}
7172_ACEOF
7173if ac_fn_c_try_link "$LINENO"; then :
7174  eval $cacheid=yes
7175else
7176  eval $cacheid=no
7177fi
7178rm -f core conftest.err conftest.$ac_objext \
7179    conftest$ac_exeext conftest.$ac_ext
7180fi
7181
7182
7183		CFLAGS="$xorg_testset_save_CFLAGS"
7184
7185		eval supported=\$$cacheid
7186		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7187$as_echo "$supported" >&6; }
7188		if test "$supported" = "yes" ; then
7189			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7190			found="yes"
7191		fi
7192	fi
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208xorg_testset_save_CFLAGS="$CFLAGS"
7209
7210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7211	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218/* end confdefs.h.  */
7219int i;
7220_ACEOF
7221if ac_fn_c_try_compile "$LINENO"; then :
7222  xorg_cv_cc_flag_unknown_warning_option=yes
7223else
7224  xorg_cv_cc_flag_unknown_warning_option=no
7225fi
7226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7231	CFLAGS="$xorg_testset_save_CFLAGS"
7232fi
7233
7234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237	fi
7238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7239	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7242  $as_echo_n "(cached) " >&6
7243else
7244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245/* end confdefs.h.  */
7246int i;
7247_ACEOF
7248if ac_fn_c_try_compile "$LINENO"; then :
7249  xorg_cv_cc_flag_unused_command_line_argument=yes
7250else
7251  xorg_cv_cc_flag_unused_command_line_argument=no
7252fi
7253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254fi
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7257	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7258	CFLAGS="$xorg_testset_save_CFLAGS"
7259fi
7260
7261found="no"
7262
7263	if test $found = "no" ; then
7264		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7265			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266		fi
7267
7268		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7269			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7270		fi
7271
7272		CFLAGS="$CFLAGS -Werror=nonnull"
7273
7274		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7275$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7276		cacheid=xorg_cv_cc_flag__Werror_nonnull
7277		if eval \${$cacheid+:} false; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281/* end confdefs.h.  */
7282int i;
7283int
7284main ()
7285{
7286
7287  ;
7288  return 0;
7289}
7290_ACEOF
7291if ac_fn_c_try_link "$LINENO"; then :
7292  eval $cacheid=yes
7293else
7294  eval $cacheid=no
7295fi
7296rm -f core conftest.err conftest.$ac_objext \
7297    conftest$ac_exeext conftest.$ac_ext
7298fi
7299
7300
7301		CFLAGS="$xorg_testset_save_CFLAGS"
7302
7303		eval supported=\$$cacheid
7304		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7305$as_echo "$supported" >&6; }
7306		if test "$supported" = "yes" ; then
7307			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7308			found="yes"
7309		fi
7310	fi
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326xorg_testset_save_CFLAGS="$CFLAGS"
7327
7328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7333  $as_echo_n "(cached) " >&6
7334else
7335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336/* end confdefs.h.  */
7337int i;
7338_ACEOF
7339if ac_fn_c_try_compile "$LINENO"; then :
7340  xorg_cv_cc_flag_unknown_warning_option=yes
7341else
7342  xorg_cv_cc_flag_unknown_warning_option=no
7343fi
7344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345fi
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7349	CFLAGS="$xorg_testset_save_CFLAGS"
7350fi
7351
7352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7355	fi
7356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7357	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7360  $as_echo_n "(cached) " >&6
7361else
7362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363/* end confdefs.h.  */
7364int i;
7365_ACEOF
7366if ac_fn_c_try_compile "$LINENO"; then :
7367  xorg_cv_cc_flag_unused_command_line_argument=yes
7368else
7369  xorg_cv_cc_flag_unused_command_line_argument=no
7370fi
7371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372fi
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7376	CFLAGS="$xorg_testset_save_CFLAGS"
7377fi
7378
7379found="no"
7380
7381	if test $found = "no" ; then
7382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7384		fi
7385
7386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7388		fi
7389
7390		CFLAGS="$CFLAGS -Werror=init-self"
7391
7392		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7393$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7394		cacheid=xorg_cv_cc_flag__Werror_init_self
7395		if eval \${$cacheid+:} false; then :
7396  $as_echo_n "(cached) " >&6
7397else
7398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h.  */
7400int i;
7401int
7402main ()
7403{
7404
7405  ;
7406  return 0;
7407}
7408_ACEOF
7409if ac_fn_c_try_link "$LINENO"; then :
7410  eval $cacheid=yes
7411else
7412  eval $cacheid=no
7413fi
7414rm -f core conftest.err conftest.$ac_objext \
7415    conftest$ac_exeext conftest.$ac_ext
7416fi
7417
7418
7419		CFLAGS="$xorg_testset_save_CFLAGS"
7420
7421		eval supported=\$$cacheid
7422		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7423$as_echo "$supported" >&6; }
7424		if test "$supported" = "yes" ; then
7425			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7426			found="yes"
7427		fi
7428	fi
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444xorg_testset_save_CFLAGS="$CFLAGS"
7445
7446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7451  $as_echo_n "(cached) " >&6
7452else
7453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454/* end confdefs.h.  */
7455int i;
7456_ACEOF
7457if ac_fn_c_try_compile "$LINENO"; then :
7458  xorg_cv_cc_flag_unknown_warning_option=yes
7459else
7460  xorg_cv_cc_flag_unknown_warning_option=no
7461fi
7462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463fi
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7466	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7467	CFLAGS="$xorg_testset_save_CFLAGS"
7468fi
7469
7470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7471	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7472		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473	fi
7474	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7475	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7478  $as_echo_n "(cached) " >&6
7479else
7480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482int i;
7483_ACEOF
7484if ac_fn_c_try_compile "$LINENO"; then :
7485  xorg_cv_cc_flag_unused_command_line_argument=yes
7486else
7487  xorg_cv_cc_flag_unused_command_line_argument=no
7488fi
7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490fi
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7494	CFLAGS="$xorg_testset_save_CFLAGS"
7495fi
7496
7497found="no"
7498
7499	if test $found = "no" ; then
7500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7502		fi
7503
7504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7506		fi
7507
7508		CFLAGS="$CFLAGS -Werror=main"
7509
7510		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7511$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7512		cacheid=xorg_cv_cc_flag__Werror_main
7513		if eval \${$cacheid+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517/* end confdefs.h.  */
7518int i;
7519int
7520main ()
7521{
7522
7523  ;
7524  return 0;
7525}
7526_ACEOF
7527if ac_fn_c_try_link "$LINENO"; then :
7528  eval $cacheid=yes
7529else
7530  eval $cacheid=no
7531fi
7532rm -f core conftest.err conftest.$ac_objext \
7533    conftest$ac_exeext conftest.$ac_ext
7534fi
7535
7536
7537		CFLAGS="$xorg_testset_save_CFLAGS"
7538
7539		eval supported=\$$cacheid
7540		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7541$as_echo "$supported" >&6; }
7542		if test "$supported" = "yes" ; then
7543			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7544			found="yes"
7545		fi
7546	fi
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562xorg_testset_save_CFLAGS="$CFLAGS"
7563
7564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7569  $as_echo_n "(cached) " >&6
7570else
7571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572/* end confdefs.h.  */
7573int i;
7574_ACEOF
7575if ac_fn_c_try_compile "$LINENO"; then :
7576  xorg_cv_cc_flag_unknown_warning_option=yes
7577else
7578  xorg_cv_cc_flag_unknown_warning_option=no
7579fi
7580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581fi
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7584	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7585	CFLAGS="$xorg_testset_save_CFLAGS"
7586fi
7587
7588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7589	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7590		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591	fi
7592	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7593	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7596  $as_echo_n "(cached) " >&6
7597else
7598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h.  */
7600int i;
7601_ACEOF
7602if ac_fn_c_try_compile "$LINENO"; then :
7603  xorg_cv_cc_flag_unused_command_line_argument=yes
7604else
7605  xorg_cv_cc_flag_unused_command_line_argument=no
7606fi
7607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608fi
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7611	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7612	CFLAGS="$xorg_testset_save_CFLAGS"
7613fi
7614
7615found="no"
7616
7617	if test $found = "no" ; then
7618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620		fi
7621
7622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7624		fi
7625
7626		CFLAGS="$CFLAGS -Werror=missing-braces"
7627
7628		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7629$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7630		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7631		if eval \${$cacheid+:} false; then :
7632  $as_echo_n "(cached) " >&6
7633else
7634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h.  */
7636int i;
7637int
7638main ()
7639{
7640
7641  ;
7642  return 0;
7643}
7644_ACEOF
7645if ac_fn_c_try_link "$LINENO"; then :
7646  eval $cacheid=yes
7647else
7648  eval $cacheid=no
7649fi
7650rm -f core conftest.err conftest.$ac_objext \
7651    conftest$ac_exeext conftest.$ac_ext
7652fi
7653
7654
7655		CFLAGS="$xorg_testset_save_CFLAGS"
7656
7657		eval supported=\$$cacheid
7658		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7659$as_echo "$supported" >&6; }
7660		if test "$supported" = "yes" ; then
7661			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7662			found="yes"
7663		fi
7664	fi
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680xorg_testset_save_CFLAGS="$CFLAGS"
7681
7682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7687  $as_echo_n "(cached) " >&6
7688else
7689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690/* end confdefs.h.  */
7691int i;
7692_ACEOF
7693if ac_fn_c_try_compile "$LINENO"; then :
7694  xorg_cv_cc_flag_unknown_warning_option=yes
7695else
7696  xorg_cv_cc_flag_unknown_warning_option=no
7697fi
7698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699fi
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7703	CFLAGS="$xorg_testset_save_CFLAGS"
7704fi
7705
7706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709	fi
7710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7714  $as_echo_n "(cached) " >&6
7715else
7716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717/* end confdefs.h.  */
7718int i;
7719_ACEOF
7720if ac_fn_c_try_compile "$LINENO"; then :
7721  xorg_cv_cc_flag_unused_command_line_argument=yes
7722else
7723  xorg_cv_cc_flag_unused_command_line_argument=no
7724fi
7725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726fi
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7729	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7730	CFLAGS="$xorg_testset_save_CFLAGS"
7731fi
7732
7733found="no"
7734
7735	if test $found = "no" ; then
7736		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7737			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7738		fi
7739
7740		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7741			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7742		fi
7743
7744		CFLAGS="$CFLAGS -Werror=sequence-point"
7745
7746		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7747$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7748		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7749		if eval \${$cacheid+:} false; then :
7750  $as_echo_n "(cached) " >&6
7751else
7752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h.  */
7754int i;
7755int
7756main ()
7757{
7758
7759  ;
7760  return 0;
7761}
7762_ACEOF
7763if ac_fn_c_try_link "$LINENO"; then :
7764  eval $cacheid=yes
7765else
7766  eval $cacheid=no
7767fi
7768rm -f core conftest.err conftest.$ac_objext \
7769    conftest$ac_exeext conftest.$ac_ext
7770fi
7771
7772
7773		CFLAGS="$xorg_testset_save_CFLAGS"
7774
7775		eval supported=\$$cacheid
7776		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7777$as_echo "$supported" >&6; }
7778		if test "$supported" = "yes" ; then
7779			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7780			found="yes"
7781		fi
7782	fi
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798xorg_testset_save_CFLAGS="$CFLAGS"
7799
7800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7801	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7805  $as_echo_n "(cached) " >&6
7806else
7807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h.  */
7809int i;
7810_ACEOF
7811if ac_fn_c_try_compile "$LINENO"; then :
7812  xorg_cv_cc_flag_unknown_warning_option=yes
7813else
7814  xorg_cv_cc_flag_unknown_warning_option=no
7815fi
7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817fi
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7820	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7821	CFLAGS="$xorg_testset_save_CFLAGS"
7822fi
7823
7824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7825	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7826		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827	fi
7828	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7829	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7832  $as_echo_n "(cached) " >&6
7833else
7834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835/* end confdefs.h.  */
7836int i;
7837_ACEOF
7838if ac_fn_c_try_compile "$LINENO"; then :
7839  xorg_cv_cc_flag_unused_command_line_argument=yes
7840else
7841  xorg_cv_cc_flag_unused_command_line_argument=no
7842fi
7843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844fi
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7847	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7848	CFLAGS="$xorg_testset_save_CFLAGS"
7849fi
7850
7851found="no"
7852
7853	if test $found = "no" ; then
7854		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7855			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856		fi
7857
7858		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7859			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7860		fi
7861
7862		CFLAGS="$CFLAGS -Werror=return-type"
7863
7864		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7865$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7866		cacheid=xorg_cv_cc_flag__Werror_return_type
7867		if eval \${$cacheid+:} false; then :
7868  $as_echo_n "(cached) " >&6
7869else
7870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h.  */
7872int i;
7873int
7874main ()
7875{
7876
7877  ;
7878  return 0;
7879}
7880_ACEOF
7881if ac_fn_c_try_link "$LINENO"; then :
7882  eval $cacheid=yes
7883else
7884  eval $cacheid=no
7885fi
7886rm -f core conftest.err conftest.$ac_objext \
7887    conftest$ac_exeext conftest.$ac_ext
7888fi
7889
7890
7891		CFLAGS="$xorg_testset_save_CFLAGS"
7892
7893		eval supported=\$$cacheid
7894		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7895$as_echo "$supported" >&6; }
7896		if test "$supported" = "yes" ; then
7897			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7898			found="yes"
7899		fi
7900	fi
7901
7902	if test $found = "no" ; then
7903		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7905		fi
7906
7907		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7909		fi
7910
7911		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7912
7913		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7914$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7915		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7916		if eval \${$cacheid+:} false; then :
7917  $as_echo_n "(cached) " >&6
7918else
7919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h.  */
7921int i;
7922int
7923main ()
7924{
7925
7926  ;
7927  return 0;
7928}
7929_ACEOF
7930if ac_fn_c_try_link "$LINENO"; then :
7931  eval $cacheid=yes
7932else
7933  eval $cacheid=no
7934fi
7935rm -f core conftest.err conftest.$ac_objext \
7936    conftest$ac_exeext conftest.$ac_ext
7937fi
7938
7939
7940		CFLAGS="$xorg_testset_save_CFLAGS"
7941
7942		eval supported=\$$cacheid
7943		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7944$as_echo "$supported" >&6; }
7945		if test "$supported" = "yes" ; then
7946			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7947			found="yes"
7948		fi
7949	fi
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965xorg_testset_save_CFLAGS="$CFLAGS"
7966
7967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7972  $as_echo_n "(cached) " >&6
7973else
7974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975/* end confdefs.h.  */
7976int i;
7977_ACEOF
7978if ac_fn_c_try_compile "$LINENO"; then :
7979  xorg_cv_cc_flag_unknown_warning_option=yes
7980else
7981  xorg_cv_cc_flag_unknown_warning_option=no
7982fi
7983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7984fi
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7988	CFLAGS="$xorg_testset_save_CFLAGS"
7989fi
7990
7991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7994	fi
7995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7999  $as_echo_n "(cached) " >&6
8000else
8001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002/* end confdefs.h.  */
8003int i;
8004_ACEOF
8005if ac_fn_c_try_compile "$LINENO"; then :
8006  xorg_cv_cc_flag_unused_command_line_argument=yes
8007else
8008  xorg_cv_cc_flag_unused_command_line_argument=no
8009fi
8010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011fi
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8015	CFLAGS="$xorg_testset_save_CFLAGS"
8016fi
8017
8018found="no"
8019
8020	if test $found = "no" ; then
8021		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8023		fi
8024
8025		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8027		fi
8028
8029		CFLAGS="$CFLAGS -Werror=trigraphs"
8030
8031		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8032$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8033		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8034		if eval \${$cacheid+:} false; then :
8035  $as_echo_n "(cached) " >&6
8036else
8037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038/* end confdefs.h.  */
8039int i;
8040int
8041main ()
8042{
8043
8044  ;
8045  return 0;
8046}
8047_ACEOF
8048if ac_fn_c_try_link "$LINENO"; then :
8049  eval $cacheid=yes
8050else
8051  eval $cacheid=no
8052fi
8053rm -f core conftest.err conftest.$ac_objext \
8054    conftest$ac_exeext conftest.$ac_ext
8055fi
8056
8057
8058		CFLAGS="$xorg_testset_save_CFLAGS"
8059
8060		eval supported=\$$cacheid
8061		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8062$as_echo "$supported" >&6; }
8063		if test "$supported" = "yes" ; then
8064			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8065			found="yes"
8066		fi
8067	fi
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083xorg_testset_save_CFLAGS="$CFLAGS"
8084
8085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8090  $as_echo_n "(cached) " >&6
8091else
8092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093/* end confdefs.h.  */
8094int i;
8095_ACEOF
8096if ac_fn_c_try_compile "$LINENO"; then :
8097  xorg_cv_cc_flag_unknown_warning_option=yes
8098else
8099  xorg_cv_cc_flag_unknown_warning_option=no
8100fi
8101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102fi
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8106	CFLAGS="$xorg_testset_save_CFLAGS"
8107fi
8108
8109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8112	fi
8113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8117  $as_echo_n "(cached) " >&6
8118else
8119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120/* end confdefs.h.  */
8121int i;
8122_ACEOF
8123if ac_fn_c_try_compile "$LINENO"; then :
8124  xorg_cv_cc_flag_unused_command_line_argument=yes
8125else
8126  xorg_cv_cc_flag_unused_command_line_argument=no
8127fi
8128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129fi
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8133	CFLAGS="$xorg_testset_save_CFLAGS"
8134fi
8135
8136found="no"
8137
8138	if test $found = "no" ; then
8139		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141		fi
8142
8143		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8145		fi
8146
8147		CFLAGS="$CFLAGS -Werror=array-bounds"
8148
8149		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8150$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8151		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8152		if eval \${$cacheid+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156/* end confdefs.h.  */
8157int i;
8158int
8159main ()
8160{
8161
8162  ;
8163  return 0;
8164}
8165_ACEOF
8166if ac_fn_c_try_link "$LINENO"; then :
8167  eval $cacheid=yes
8168else
8169  eval $cacheid=no
8170fi
8171rm -f core conftest.err conftest.$ac_objext \
8172    conftest$ac_exeext conftest.$ac_ext
8173fi
8174
8175
8176		CFLAGS="$xorg_testset_save_CFLAGS"
8177
8178		eval supported=\$$cacheid
8179		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8180$as_echo "$supported" >&6; }
8181		if test "$supported" = "yes" ; then
8182			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8183			found="yes"
8184		fi
8185	fi
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201xorg_testset_save_CFLAGS="$CFLAGS"
8202
8203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8204	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8208  $as_echo_n "(cached) " >&6
8209else
8210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211/* end confdefs.h.  */
8212int i;
8213_ACEOF
8214if ac_fn_c_try_compile "$LINENO"; then :
8215  xorg_cv_cc_flag_unknown_warning_option=yes
8216else
8217  xorg_cv_cc_flag_unknown_warning_option=no
8218fi
8219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220fi
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8224	CFLAGS="$xorg_testset_save_CFLAGS"
8225fi
8226
8227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8230	fi
8231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8235  $as_echo_n "(cached) " >&6
8236else
8237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h.  */
8239int i;
8240_ACEOF
8241if ac_fn_c_try_compile "$LINENO"; then :
8242  xorg_cv_cc_flag_unused_command_line_argument=yes
8243else
8244  xorg_cv_cc_flag_unused_command_line_argument=no
8245fi
8246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247fi
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8250	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8251	CFLAGS="$xorg_testset_save_CFLAGS"
8252fi
8253
8254found="no"
8255
8256	if test $found = "no" ; then
8257		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8258			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8259		fi
8260
8261		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8262			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8263		fi
8264
8265		CFLAGS="$CFLAGS -Werror=write-strings"
8266
8267		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8268$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8269		cacheid=xorg_cv_cc_flag__Werror_write_strings
8270		if eval \${$cacheid+:} false; then :
8271  $as_echo_n "(cached) " >&6
8272else
8273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274/* end confdefs.h.  */
8275int i;
8276int
8277main ()
8278{
8279
8280  ;
8281  return 0;
8282}
8283_ACEOF
8284if ac_fn_c_try_link "$LINENO"; then :
8285  eval $cacheid=yes
8286else
8287  eval $cacheid=no
8288fi
8289rm -f core conftest.err conftest.$ac_objext \
8290    conftest$ac_exeext conftest.$ac_ext
8291fi
8292
8293
8294		CFLAGS="$xorg_testset_save_CFLAGS"
8295
8296		eval supported=\$$cacheid
8297		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8298$as_echo "$supported" >&6; }
8299		if test "$supported" = "yes" ; then
8300			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8301			found="yes"
8302		fi
8303	fi
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319xorg_testset_save_CFLAGS="$CFLAGS"
8320
8321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8326  $as_echo_n "(cached) " >&6
8327else
8328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329/* end confdefs.h.  */
8330int i;
8331_ACEOF
8332if ac_fn_c_try_compile "$LINENO"; then :
8333  xorg_cv_cc_flag_unknown_warning_option=yes
8334else
8335  xorg_cv_cc_flag_unknown_warning_option=no
8336fi
8337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338fi
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8342	CFLAGS="$xorg_testset_save_CFLAGS"
8343fi
8344
8345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8348	fi
8349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8353  $as_echo_n "(cached) " >&6
8354else
8355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356/* end confdefs.h.  */
8357int i;
8358_ACEOF
8359if ac_fn_c_try_compile "$LINENO"; then :
8360  xorg_cv_cc_flag_unused_command_line_argument=yes
8361else
8362  xorg_cv_cc_flag_unused_command_line_argument=no
8363fi
8364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365fi
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8369	CFLAGS="$xorg_testset_save_CFLAGS"
8370fi
8371
8372found="no"
8373
8374	if test $found = "no" ; then
8375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8377		fi
8378
8379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8381		fi
8382
8383		CFLAGS="$CFLAGS -Werror=address"
8384
8385		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8386$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8387		cacheid=xorg_cv_cc_flag__Werror_address
8388		if eval \${$cacheid+:} false; then :
8389  $as_echo_n "(cached) " >&6
8390else
8391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392/* end confdefs.h.  */
8393int i;
8394int
8395main ()
8396{
8397
8398  ;
8399  return 0;
8400}
8401_ACEOF
8402if ac_fn_c_try_link "$LINENO"; then :
8403  eval $cacheid=yes
8404else
8405  eval $cacheid=no
8406fi
8407rm -f core conftest.err conftest.$ac_objext \
8408    conftest$ac_exeext conftest.$ac_ext
8409fi
8410
8411
8412		CFLAGS="$xorg_testset_save_CFLAGS"
8413
8414		eval supported=\$$cacheid
8415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8416$as_echo "$supported" >&6; }
8417		if test "$supported" = "yes" ; then
8418			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8419			found="yes"
8420		fi
8421	fi
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437xorg_testset_save_CFLAGS="$CFLAGS"
8438
8439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8444  $as_echo_n "(cached) " >&6
8445else
8446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447/* end confdefs.h.  */
8448int i;
8449_ACEOF
8450if ac_fn_c_try_compile "$LINENO"; then :
8451  xorg_cv_cc_flag_unknown_warning_option=yes
8452else
8453  xorg_cv_cc_flag_unknown_warning_option=no
8454fi
8455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456fi
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8460	CFLAGS="$xorg_testset_save_CFLAGS"
8461fi
8462
8463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8466	fi
8467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8471  $as_echo_n "(cached) " >&6
8472else
8473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474/* end confdefs.h.  */
8475int i;
8476_ACEOF
8477if ac_fn_c_try_compile "$LINENO"; then :
8478  xorg_cv_cc_flag_unused_command_line_argument=yes
8479else
8480  xorg_cv_cc_flag_unused_command_line_argument=no
8481fi
8482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483fi
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8486	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8487	CFLAGS="$xorg_testset_save_CFLAGS"
8488fi
8489
8490found="no"
8491
8492	if test $found = "no" ; then
8493		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8494			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8495		fi
8496
8497		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8498			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8499		fi
8500
8501		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8502
8503		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8504$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8505		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8506		if eval \${$cacheid+:} false; then :
8507  $as_echo_n "(cached) " >&6
8508else
8509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510/* end confdefs.h.  */
8511int i;
8512int
8513main ()
8514{
8515
8516  ;
8517  return 0;
8518}
8519_ACEOF
8520if ac_fn_c_try_link "$LINENO"; then :
8521  eval $cacheid=yes
8522else
8523  eval $cacheid=no
8524fi
8525rm -f core conftest.err conftest.$ac_objext \
8526    conftest$ac_exeext conftest.$ac_ext
8527fi
8528
8529
8530		CFLAGS="$xorg_testset_save_CFLAGS"
8531
8532		eval supported=\$$cacheid
8533		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8534$as_echo "$supported" >&6; }
8535		if test "$supported" = "yes" ; then
8536			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8537			found="yes"
8538		fi
8539	fi
8540
8541	if test $found = "no" ; then
8542		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544		fi
8545
8546		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8548		fi
8549
8550		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8551
8552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8553$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8554		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8555		if eval \${$cacheid+:} false; then :
8556  $as_echo_n "(cached) " >&6
8557else
8558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h.  */
8560int i;
8561int
8562main ()
8563{
8564
8565  ;
8566  return 0;
8567}
8568_ACEOF
8569if ac_fn_c_try_link "$LINENO"; then :
8570  eval $cacheid=yes
8571else
8572  eval $cacheid=no
8573fi
8574rm -f core conftest.err conftest.$ac_objext \
8575    conftest$ac_exeext conftest.$ac_ext
8576fi
8577
8578
8579		CFLAGS="$xorg_testset_save_CFLAGS"
8580
8581		eval supported=\$$cacheid
8582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8583$as_echo "$supported" >&6; }
8584		if test "$supported" = "yes" ; then
8585			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8586			found="yes"
8587		fi
8588	fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604xorg_testset_save_CFLAGS="$CFLAGS"
8605
8606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8611  $as_echo_n "(cached) " >&6
8612else
8613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h.  */
8615int i;
8616_ACEOF
8617if ac_fn_c_try_compile "$LINENO"; then :
8618  xorg_cv_cc_flag_unknown_warning_option=yes
8619else
8620  xorg_cv_cc_flag_unknown_warning_option=no
8621fi
8622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623fi
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8627	CFLAGS="$xorg_testset_save_CFLAGS"
8628fi
8629
8630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633	fi
8634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8638  $as_echo_n "(cached) " >&6
8639else
8640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641/* end confdefs.h.  */
8642int i;
8643_ACEOF
8644if ac_fn_c_try_compile "$LINENO"; then :
8645  xorg_cv_cc_flag_unused_command_line_argument=yes
8646else
8647  xorg_cv_cc_flag_unused_command_line_argument=no
8648fi
8649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650fi
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8654	CFLAGS="$xorg_testset_save_CFLAGS"
8655fi
8656
8657found="no"
8658
8659	if test $found = "no" ; then
8660		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662		fi
8663
8664		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8666		fi
8667
8668		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8669
8670		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8671$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8672		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8673		if eval \${$cacheid+:} false; then :
8674  $as_echo_n "(cached) " >&6
8675else
8676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h.  */
8678int i;
8679int
8680main ()
8681{
8682
8683  ;
8684  return 0;
8685}
8686_ACEOF
8687if ac_fn_c_try_link "$LINENO"; then :
8688  eval $cacheid=yes
8689else
8690  eval $cacheid=no
8691fi
8692rm -f core conftest.err conftest.$ac_objext \
8693    conftest$ac_exeext conftest.$ac_ext
8694fi
8695
8696
8697		CFLAGS="$xorg_testset_save_CFLAGS"
8698
8699		eval supported=\$$cacheid
8700		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8701$as_echo "$supported" >&6; }
8702		if test "$supported" = "yes" ; then
8703			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8704			found="yes"
8705		fi
8706	fi
8707
8708 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8709else
8710{ $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
8711$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;}
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725xorg_testset_save_CFLAGS="$CFLAGS"
8726
8727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8730$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8731if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8732  $as_echo_n "(cached) " >&6
8733else
8734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735/* end confdefs.h.  */
8736int i;
8737_ACEOF
8738if ac_fn_c_try_compile "$LINENO"; then :
8739  xorg_cv_cc_flag_unknown_warning_option=yes
8740else
8741  xorg_cv_cc_flag_unknown_warning_option=no
8742fi
8743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744fi
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8746$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8747	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8748	CFLAGS="$xorg_testset_save_CFLAGS"
8749fi
8750
8751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8752	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8753		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754	fi
8755	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8757$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8758if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8759  $as_echo_n "(cached) " >&6
8760else
8761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762/* end confdefs.h.  */
8763int i;
8764_ACEOF
8765if ac_fn_c_try_compile "$LINENO"; then :
8766  xorg_cv_cc_flag_unused_command_line_argument=yes
8767else
8768  xorg_cv_cc_flag_unused_command_line_argument=no
8769fi
8770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771fi
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8773$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8774	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8775	CFLAGS="$xorg_testset_save_CFLAGS"
8776fi
8777
8778found="no"
8779
8780	if test $found = "no" ; then
8781		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8783		fi
8784
8785		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8787		fi
8788
8789		CFLAGS="$CFLAGS -Wimplicit"
8790
8791		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8792$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8793		cacheid=xorg_cv_cc_flag__Wimplicit
8794		if eval \${$cacheid+:} false; then :
8795  $as_echo_n "(cached) " >&6
8796else
8797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798/* end confdefs.h.  */
8799int i;
8800int
8801main ()
8802{
8803
8804  ;
8805  return 0;
8806}
8807_ACEOF
8808if ac_fn_c_try_link "$LINENO"; then :
8809  eval $cacheid=yes
8810else
8811  eval $cacheid=no
8812fi
8813rm -f core conftest.err conftest.$ac_objext \
8814    conftest$ac_exeext conftest.$ac_ext
8815fi
8816
8817
8818		CFLAGS="$xorg_testset_save_CFLAGS"
8819
8820		eval supported=\$$cacheid
8821		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8822$as_echo "$supported" >&6; }
8823		if test "$supported" = "yes" ; then
8824			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8825			found="yes"
8826		fi
8827	fi
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843xorg_testset_save_CFLAGS="$CFLAGS"
8844
8845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8847	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8848$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8849if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8850  $as_echo_n "(cached) " >&6
8851else
8852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853/* end confdefs.h.  */
8854int i;
8855_ACEOF
8856if ac_fn_c_try_compile "$LINENO"; then :
8857  xorg_cv_cc_flag_unknown_warning_option=yes
8858else
8859  xorg_cv_cc_flag_unknown_warning_option=no
8860fi
8861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862fi
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8864$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8866	CFLAGS="$xorg_testset_save_CFLAGS"
8867fi
8868
8869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872	fi
8873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8875$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8876if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8877  $as_echo_n "(cached) " >&6
8878else
8879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880/* end confdefs.h.  */
8881int i;
8882_ACEOF
8883if ac_fn_c_try_compile "$LINENO"; then :
8884  xorg_cv_cc_flag_unused_command_line_argument=yes
8885else
8886  xorg_cv_cc_flag_unused_command_line_argument=no
8887fi
8888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889fi
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8891$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8892	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8893	CFLAGS="$xorg_testset_save_CFLAGS"
8894fi
8895
8896found="no"
8897
8898	if test $found = "no" ; then
8899		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8900			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901		fi
8902
8903		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8904			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8905		fi
8906
8907		CFLAGS="$CFLAGS -Wnonnull"
8908
8909		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8910$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8911		cacheid=xorg_cv_cc_flag__Wnonnull
8912		if eval \${$cacheid+:} false; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h.  */
8917int i;
8918int
8919main ()
8920{
8921
8922  ;
8923  return 0;
8924}
8925_ACEOF
8926if ac_fn_c_try_link "$LINENO"; then :
8927  eval $cacheid=yes
8928else
8929  eval $cacheid=no
8930fi
8931rm -f core conftest.err conftest.$ac_objext \
8932    conftest$ac_exeext conftest.$ac_ext
8933fi
8934
8935
8936		CFLAGS="$xorg_testset_save_CFLAGS"
8937
8938		eval supported=\$$cacheid
8939		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8940$as_echo "$supported" >&6; }
8941		if test "$supported" = "yes" ; then
8942			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8943			found="yes"
8944		fi
8945	fi
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961xorg_testset_save_CFLAGS="$CFLAGS"
8962
8963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8964	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8966$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8967if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8968  $as_echo_n "(cached) " >&6
8969else
8970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971/* end confdefs.h.  */
8972int i;
8973_ACEOF
8974if ac_fn_c_try_compile "$LINENO"; then :
8975  xorg_cv_cc_flag_unknown_warning_option=yes
8976else
8977  xorg_cv_cc_flag_unknown_warning_option=no
8978fi
8979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8982$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8983	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8984	CFLAGS="$xorg_testset_save_CFLAGS"
8985fi
8986
8987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8988	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8989		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990	fi
8991	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8993$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8994if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8995  $as_echo_n "(cached) " >&6
8996else
8997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998/* end confdefs.h.  */
8999int i;
9000_ACEOF
9001if ac_fn_c_try_compile "$LINENO"; then :
9002  xorg_cv_cc_flag_unused_command_line_argument=yes
9003else
9004  xorg_cv_cc_flag_unused_command_line_argument=no
9005fi
9006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007fi
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9009$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9010	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9011	CFLAGS="$xorg_testset_save_CFLAGS"
9012fi
9013
9014found="no"
9015
9016	if test $found = "no" ; then
9017		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9019		fi
9020
9021		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023		fi
9024
9025		CFLAGS="$CFLAGS -Winit-self"
9026
9027		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9028$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9029		cacheid=xorg_cv_cc_flag__Winit_self
9030		if eval \${$cacheid+:} false; then :
9031  $as_echo_n "(cached) " >&6
9032else
9033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034/* end confdefs.h.  */
9035int i;
9036int
9037main ()
9038{
9039
9040  ;
9041  return 0;
9042}
9043_ACEOF
9044if ac_fn_c_try_link "$LINENO"; then :
9045  eval $cacheid=yes
9046else
9047  eval $cacheid=no
9048fi
9049rm -f core conftest.err conftest.$ac_objext \
9050    conftest$ac_exeext conftest.$ac_ext
9051fi
9052
9053
9054		CFLAGS="$xorg_testset_save_CFLAGS"
9055
9056		eval supported=\$$cacheid
9057		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9058$as_echo "$supported" >&6; }
9059		if test "$supported" = "yes" ; then
9060			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9061			found="yes"
9062		fi
9063	fi
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079xorg_testset_save_CFLAGS="$CFLAGS"
9080
9081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9082	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9086  $as_echo_n "(cached) " >&6
9087else
9088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089/* end confdefs.h.  */
9090int i;
9091_ACEOF
9092if ac_fn_c_try_compile "$LINENO"; then :
9093  xorg_cv_cc_flag_unknown_warning_option=yes
9094else
9095  xorg_cv_cc_flag_unknown_warning_option=no
9096fi
9097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098fi
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9101	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9102	CFLAGS="$xorg_testset_save_CFLAGS"
9103fi
9104
9105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9106	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108	fi
9109	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9113  $as_echo_n "(cached) " >&6
9114else
9115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116/* end confdefs.h.  */
9117int i;
9118_ACEOF
9119if ac_fn_c_try_compile "$LINENO"; then :
9120  xorg_cv_cc_flag_unused_command_line_argument=yes
9121else
9122  xorg_cv_cc_flag_unused_command_line_argument=no
9123fi
9124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125fi
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9128	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9129	CFLAGS="$xorg_testset_save_CFLAGS"
9130fi
9131
9132found="no"
9133
9134	if test $found = "no" ; then
9135		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9136			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137		fi
9138
9139		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9140			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141		fi
9142
9143		CFLAGS="$CFLAGS -Wmain"
9144
9145		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9146$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9147		cacheid=xorg_cv_cc_flag__Wmain
9148		if eval \${$cacheid+:} false; then :
9149  $as_echo_n "(cached) " >&6
9150else
9151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152/* end confdefs.h.  */
9153int i;
9154int
9155main ()
9156{
9157
9158  ;
9159  return 0;
9160}
9161_ACEOF
9162if ac_fn_c_try_link "$LINENO"; then :
9163  eval $cacheid=yes
9164else
9165  eval $cacheid=no
9166fi
9167rm -f core conftest.err conftest.$ac_objext \
9168    conftest$ac_exeext conftest.$ac_ext
9169fi
9170
9171
9172		CFLAGS="$xorg_testset_save_CFLAGS"
9173
9174		eval supported=\$$cacheid
9175		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9176$as_echo "$supported" >&6; }
9177		if test "$supported" = "yes" ; then
9178			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9179			found="yes"
9180		fi
9181	fi
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197xorg_testset_save_CFLAGS="$CFLAGS"
9198
9199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9200	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9204  $as_echo_n "(cached) " >&6
9205else
9206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207/* end confdefs.h.  */
9208int i;
9209_ACEOF
9210if ac_fn_c_try_compile "$LINENO"; then :
9211  xorg_cv_cc_flag_unknown_warning_option=yes
9212else
9213  xorg_cv_cc_flag_unknown_warning_option=no
9214fi
9215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216fi
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9219	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9220	CFLAGS="$xorg_testset_save_CFLAGS"
9221fi
9222
9223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9224	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226	fi
9227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9231  $as_echo_n "(cached) " >&6
9232else
9233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234/* end confdefs.h.  */
9235int i;
9236_ACEOF
9237if ac_fn_c_try_compile "$LINENO"; then :
9238  xorg_cv_cc_flag_unused_command_line_argument=yes
9239else
9240  xorg_cv_cc_flag_unused_command_line_argument=no
9241fi
9242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243fi
9244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9246	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9247	CFLAGS="$xorg_testset_save_CFLAGS"
9248fi
9249
9250found="no"
9251
9252	if test $found = "no" ; then
9253		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9255		fi
9256
9257		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9259		fi
9260
9261		CFLAGS="$CFLAGS -Wmissing-braces"
9262
9263		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9264$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9265		cacheid=xorg_cv_cc_flag__Wmissing_braces
9266		if eval \${$cacheid+:} false; then :
9267  $as_echo_n "(cached) " >&6
9268else
9269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270/* end confdefs.h.  */
9271int i;
9272int
9273main ()
9274{
9275
9276  ;
9277  return 0;
9278}
9279_ACEOF
9280if ac_fn_c_try_link "$LINENO"; then :
9281  eval $cacheid=yes
9282else
9283  eval $cacheid=no
9284fi
9285rm -f core conftest.err conftest.$ac_objext \
9286    conftest$ac_exeext conftest.$ac_ext
9287fi
9288
9289
9290		CFLAGS="$xorg_testset_save_CFLAGS"
9291
9292		eval supported=\$$cacheid
9293		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9294$as_echo "$supported" >&6; }
9295		if test "$supported" = "yes" ; then
9296			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9297			found="yes"
9298		fi
9299	fi
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315xorg_testset_save_CFLAGS="$CFLAGS"
9316
9317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9322  $as_echo_n "(cached) " >&6
9323else
9324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325/* end confdefs.h.  */
9326int i;
9327_ACEOF
9328if ac_fn_c_try_compile "$LINENO"; then :
9329  xorg_cv_cc_flag_unknown_warning_option=yes
9330else
9331  xorg_cv_cc_flag_unknown_warning_option=no
9332fi
9333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9334fi
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9338	CFLAGS="$xorg_testset_save_CFLAGS"
9339fi
9340
9341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344	fi
9345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9346	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9349  $as_echo_n "(cached) " >&6
9350else
9351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352/* end confdefs.h.  */
9353int i;
9354_ACEOF
9355if ac_fn_c_try_compile "$LINENO"; then :
9356  xorg_cv_cc_flag_unused_command_line_argument=yes
9357else
9358  xorg_cv_cc_flag_unused_command_line_argument=no
9359fi
9360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361fi
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9365	CFLAGS="$xorg_testset_save_CFLAGS"
9366fi
9367
9368found="no"
9369
9370	if test $found = "no" ; then
9371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9373		fi
9374
9375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9377		fi
9378
9379		CFLAGS="$CFLAGS -Wsequence-point"
9380
9381		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9382$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9383		cacheid=xorg_cv_cc_flag__Wsequence_point
9384		if eval \${$cacheid+:} false; then :
9385  $as_echo_n "(cached) " >&6
9386else
9387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388/* end confdefs.h.  */
9389int i;
9390int
9391main ()
9392{
9393
9394  ;
9395  return 0;
9396}
9397_ACEOF
9398if ac_fn_c_try_link "$LINENO"; then :
9399  eval $cacheid=yes
9400else
9401  eval $cacheid=no
9402fi
9403rm -f core conftest.err conftest.$ac_objext \
9404    conftest$ac_exeext conftest.$ac_ext
9405fi
9406
9407
9408		CFLAGS="$xorg_testset_save_CFLAGS"
9409
9410		eval supported=\$$cacheid
9411		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9412$as_echo "$supported" >&6; }
9413		if test "$supported" = "yes" ; then
9414			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9415			found="yes"
9416		fi
9417	fi
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433xorg_testset_save_CFLAGS="$CFLAGS"
9434
9435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9436	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9440  $as_echo_n "(cached) " >&6
9441else
9442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443/* end confdefs.h.  */
9444int i;
9445_ACEOF
9446if ac_fn_c_try_compile "$LINENO"; then :
9447  xorg_cv_cc_flag_unknown_warning_option=yes
9448else
9449  xorg_cv_cc_flag_unknown_warning_option=no
9450fi
9451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452fi
9453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9455	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9456	CFLAGS="$xorg_testset_save_CFLAGS"
9457fi
9458
9459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9460	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9461		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462	fi
9463	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9464	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9467  $as_echo_n "(cached) " >&6
9468else
9469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470/* end confdefs.h.  */
9471int i;
9472_ACEOF
9473if ac_fn_c_try_compile "$LINENO"; then :
9474  xorg_cv_cc_flag_unused_command_line_argument=yes
9475else
9476  xorg_cv_cc_flag_unused_command_line_argument=no
9477fi
9478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479fi
9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9482	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9483	CFLAGS="$xorg_testset_save_CFLAGS"
9484fi
9485
9486found="no"
9487
9488	if test $found = "no" ; then
9489		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9491		fi
9492
9493		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9495		fi
9496
9497		CFLAGS="$CFLAGS -Wreturn-type"
9498
9499		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9500$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9501		cacheid=xorg_cv_cc_flag__Wreturn_type
9502		if eval \${$cacheid+:} false; then :
9503  $as_echo_n "(cached) " >&6
9504else
9505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506/* end confdefs.h.  */
9507int i;
9508int
9509main ()
9510{
9511
9512  ;
9513  return 0;
9514}
9515_ACEOF
9516if ac_fn_c_try_link "$LINENO"; then :
9517  eval $cacheid=yes
9518else
9519  eval $cacheid=no
9520fi
9521rm -f core conftest.err conftest.$ac_objext \
9522    conftest$ac_exeext conftest.$ac_ext
9523fi
9524
9525
9526		CFLAGS="$xorg_testset_save_CFLAGS"
9527
9528		eval supported=\$$cacheid
9529		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9530$as_echo "$supported" >&6; }
9531		if test "$supported" = "yes" ; then
9532			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9533			found="yes"
9534		fi
9535	fi
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551xorg_testset_save_CFLAGS="$CFLAGS"
9552
9553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9554	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9558  $as_echo_n "(cached) " >&6
9559else
9560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561/* end confdefs.h.  */
9562int i;
9563_ACEOF
9564if ac_fn_c_try_compile "$LINENO"; then :
9565  xorg_cv_cc_flag_unknown_warning_option=yes
9566else
9567  xorg_cv_cc_flag_unknown_warning_option=no
9568fi
9569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9570fi
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9573	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9574	CFLAGS="$xorg_testset_save_CFLAGS"
9575fi
9576
9577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9578	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9579		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580	fi
9581	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9585  $as_echo_n "(cached) " >&6
9586else
9587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588/* end confdefs.h.  */
9589int i;
9590_ACEOF
9591if ac_fn_c_try_compile "$LINENO"; then :
9592  xorg_cv_cc_flag_unused_command_line_argument=yes
9593else
9594  xorg_cv_cc_flag_unused_command_line_argument=no
9595fi
9596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597fi
9598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9600	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9601	CFLAGS="$xorg_testset_save_CFLAGS"
9602fi
9603
9604found="no"
9605
9606	if test $found = "no" ; then
9607		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9608			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9609		fi
9610
9611		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9612			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9613		fi
9614
9615		CFLAGS="$CFLAGS -Wtrigraphs"
9616
9617		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9618$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9619		cacheid=xorg_cv_cc_flag__Wtrigraphs
9620		if eval \${$cacheid+:} false; then :
9621  $as_echo_n "(cached) " >&6
9622else
9623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624/* end confdefs.h.  */
9625int i;
9626int
9627main ()
9628{
9629
9630  ;
9631  return 0;
9632}
9633_ACEOF
9634if ac_fn_c_try_link "$LINENO"; then :
9635  eval $cacheid=yes
9636else
9637  eval $cacheid=no
9638fi
9639rm -f core conftest.err conftest.$ac_objext \
9640    conftest$ac_exeext conftest.$ac_ext
9641fi
9642
9643
9644		CFLAGS="$xorg_testset_save_CFLAGS"
9645
9646		eval supported=\$$cacheid
9647		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9648$as_echo "$supported" >&6; }
9649		if test "$supported" = "yes" ; then
9650			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9651			found="yes"
9652		fi
9653	fi
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669xorg_testset_save_CFLAGS="$CFLAGS"
9670
9671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9672	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9676  $as_echo_n "(cached) " >&6
9677else
9678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679/* end confdefs.h.  */
9680int i;
9681_ACEOF
9682if ac_fn_c_try_compile "$LINENO"; then :
9683  xorg_cv_cc_flag_unknown_warning_option=yes
9684else
9685  xorg_cv_cc_flag_unknown_warning_option=no
9686fi
9687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688fi
9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9691	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9692	CFLAGS="$xorg_testset_save_CFLAGS"
9693fi
9694
9695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9696	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9697		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9698	fi
9699	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9700	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9703  $as_echo_n "(cached) " >&6
9704else
9705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706/* end confdefs.h.  */
9707int i;
9708_ACEOF
9709if ac_fn_c_try_compile "$LINENO"; then :
9710  xorg_cv_cc_flag_unused_command_line_argument=yes
9711else
9712  xorg_cv_cc_flag_unused_command_line_argument=no
9713fi
9714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715fi
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9718	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9719	CFLAGS="$xorg_testset_save_CFLAGS"
9720fi
9721
9722found="no"
9723
9724	if test $found = "no" ; then
9725		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9726			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9727		fi
9728
9729		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9730			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9731		fi
9732
9733		CFLAGS="$CFLAGS -Warray-bounds"
9734
9735		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9736$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9737		cacheid=xorg_cv_cc_flag__Warray_bounds
9738		if eval \${$cacheid+:} false; then :
9739  $as_echo_n "(cached) " >&6
9740else
9741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h.  */
9743int i;
9744int
9745main ()
9746{
9747
9748  ;
9749  return 0;
9750}
9751_ACEOF
9752if ac_fn_c_try_link "$LINENO"; then :
9753  eval $cacheid=yes
9754else
9755  eval $cacheid=no
9756fi
9757rm -f core conftest.err conftest.$ac_objext \
9758    conftest$ac_exeext conftest.$ac_ext
9759fi
9760
9761
9762		CFLAGS="$xorg_testset_save_CFLAGS"
9763
9764		eval supported=\$$cacheid
9765		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9766$as_echo "$supported" >&6; }
9767		if test "$supported" = "yes" ; then
9768			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9769			found="yes"
9770		fi
9771	fi
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787xorg_testset_save_CFLAGS="$CFLAGS"
9788
9789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9794  $as_echo_n "(cached) " >&6
9795else
9796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797/* end confdefs.h.  */
9798int i;
9799_ACEOF
9800if ac_fn_c_try_compile "$LINENO"; then :
9801  xorg_cv_cc_flag_unknown_warning_option=yes
9802else
9803  xorg_cv_cc_flag_unknown_warning_option=no
9804fi
9805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806fi
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9809	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9810	CFLAGS="$xorg_testset_save_CFLAGS"
9811fi
9812
9813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9814	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9815		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9816	fi
9817	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9821  $as_echo_n "(cached) " >&6
9822else
9823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824/* end confdefs.h.  */
9825int i;
9826_ACEOF
9827if ac_fn_c_try_compile "$LINENO"; then :
9828  xorg_cv_cc_flag_unused_command_line_argument=yes
9829else
9830  xorg_cv_cc_flag_unused_command_line_argument=no
9831fi
9832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833fi
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9836	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9837	CFLAGS="$xorg_testset_save_CFLAGS"
9838fi
9839
9840found="no"
9841
9842	if test $found = "no" ; then
9843		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9845		fi
9846
9847		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9849		fi
9850
9851		CFLAGS="$CFLAGS -Wwrite-strings"
9852
9853		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9854$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9855		cacheid=xorg_cv_cc_flag__Wwrite_strings
9856		if eval \${$cacheid+:} false; then :
9857  $as_echo_n "(cached) " >&6
9858else
9859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860/* end confdefs.h.  */
9861int i;
9862int
9863main ()
9864{
9865
9866  ;
9867  return 0;
9868}
9869_ACEOF
9870if ac_fn_c_try_link "$LINENO"; then :
9871  eval $cacheid=yes
9872else
9873  eval $cacheid=no
9874fi
9875rm -f core conftest.err conftest.$ac_objext \
9876    conftest$ac_exeext conftest.$ac_ext
9877fi
9878
9879
9880		CFLAGS="$xorg_testset_save_CFLAGS"
9881
9882		eval supported=\$$cacheid
9883		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9884$as_echo "$supported" >&6; }
9885		if test "$supported" = "yes" ; then
9886			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9887			found="yes"
9888		fi
9889	fi
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905xorg_testset_save_CFLAGS="$CFLAGS"
9906
9907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9908	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9909	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9912  $as_echo_n "(cached) " >&6
9913else
9914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915/* end confdefs.h.  */
9916int i;
9917_ACEOF
9918if ac_fn_c_try_compile "$LINENO"; then :
9919  xorg_cv_cc_flag_unknown_warning_option=yes
9920else
9921  xorg_cv_cc_flag_unknown_warning_option=no
9922fi
9923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924fi
9925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9927	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9928	CFLAGS="$xorg_testset_save_CFLAGS"
9929fi
9930
9931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9932	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9933		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9934	fi
9935	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9939  $as_echo_n "(cached) " >&6
9940else
9941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942/* end confdefs.h.  */
9943int i;
9944_ACEOF
9945if ac_fn_c_try_compile "$LINENO"; then :
9946  xorg_cv_cc_flag_unused_command_line_argument=yes
9947else
9948  xorg_cv_cc_flag_unused_command_line_argument=no
9949fi
9950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951fi
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9954	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9955	CFLAGS="$xorg_testset_save_CFLAGS"
9956fi
9957
9958found="no"
9959
9960	if test $found = "no" ; then
9961		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9962			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9963		fi
9964
9965		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9966			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9967		fi
9968
9969		CFLAGS="$CFLAGS -Waddress"
9970
9971		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9972$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9973		cacheid=xorg_cv_cc_flag__Waddress
9974		if eval \${$cacheid+:} false; then :
9975  $as_echo_n "(cached) " >&6
9976else
9977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h.  */
9979int i;
9980int
9981main ()
9982{
9983
9984  ;
9985  return 0;
9986}
9987_ACEOF
9988if ac_fn_c_try_link "$LINENO"; then :
9989  eval $cacheid=yes
9990else
9991  eval $cacheid=no
9992fi
9993rm -f core conftest.err conftest.$ac_objext \
9994    conftest$ac_exeext conftest.$ac_ext
9995fi
9996
9997
9998		CFLAGS="$xorg_testset_save_CFLAGS"
9999
10000		eval supported=\$$cacheid
10001		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10002$as_echo "$supported" >&6; }
10003		if test "$supported" = "yes" ; then
10004			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10005			found="yes"
10006		fi
10007	fi
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023xorg_testset_save_CFLAGS="$CFLAGS"
10024
10025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10030  $as_echo_n "(cached) " >&6
10031else
10032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033/* end confdefs.h.  */
10034int i;
10035_ACEOF
10036if ac_fn_c_try_compile "$LINENO"; then :
10037  xorg_cv_cc_flag_unknown_warning_option=yes
10038else
10039  xorg_cv_cc_flag_unknown_warning_option=no
10040fi
10041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10042fi
10043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10046	CFLAGS="$xorg_testset_save_CFLAGS"
10047fi
10048
10049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052	fi
10053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10057  $as_echo_n "(cached) " >&6
10058else
10059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060/* end confdefs.h.  */
10061int i;
10062_ACEOF
10063if ac_fn_c_try_compile "$LINENO"; then :
10064  xorg_cv_cc_flag_unused_command_line_argument=yes
10065else
10066  xorg_cv_cc_flag_unused_command_line_argument=no
10067fi
10068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069fi
10070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10073	CFLAGS="$xorg_testset_save_CFLAGS"
10074fi
10075
10076found="no"
10077
10078	if test $found = "no" ; then
10079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10081		fi
10082
10083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10085		fi
10086
10087		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10088
10089		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10090$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10091		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10092		if eval \${$cacheid+:} false; then :
10093  $as_echo_n "(cached) " >&6
10094else
10095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096/* end confdefs.h.  */
10097int i;
10098int
10099main ()
10100{
10101
10102  ;
10103  return 0;
10104}
10105_ACEOF
10106if ac_fn_c_try_link "$LINENO"; then :
10107  eval $cacheid=yes
10108else
10109  eval $cacheid=no
10110fi
10111rm -f core conftest.err conftest.$ac_objext \
10112    conftest$ac_exeext conftest.$ac_ext
10113fi
10114
10115
10116		CFLAGS="$xorg_testset_save_CFLAGS"
10117
10118		eval supported=\$$cacheid
10119		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10120$as_echo "$supported" >&6; }
10121		if test "$supported" = "yes" ; then
10122			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10123			found="yes"
10124		fi
10125	fi
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141xorg_testset_save_CFLAGS="$CFLAGS"
10142
10143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10148  $as_echo_n "(cached) " >&6
10149else
10150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151/* end confdefs.h.  */
10152int i;
10153_ACEOF
10154if ac_fn_c_try_compile "$LINENO"; then :
10155  xorg_cv_cc_flag_unknown_warning_option=yes
10156else
10157  xorg_cv_cc_flag_unknown_warning_option=no
10158fi
10159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160fi
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10164	CFLAGS="$xorg_testset_save_CFLAGS"
10165fi
10166
10167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170	fi
10171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10175  $as_echo_n "(cached) " >&6
10176else
10177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178/* end confdefs.h.  */
10179int i;
10180_ACEOF
10181if ac_fn_c_try_compile "$LINENO"; then :
10182  xorg_cv_cc_flag_unused_command_line_argument=yes
10183else
10184  xorg_cv_cc_flag_unused_command_line_argument=no
10185fi
10186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10187fi
10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10191	CFLAGS="$xorg_testset_save_CFLAGS"
10192fi
10193
10194found="no"
10195
10196	if test $found = "no" ; then
10197		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10199		fi
10200
10201		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10203		fi
10204
10205		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10206
10207		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10208$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10209		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10210		if eval \${$cacheid+:} false; then :
10211  $as_echo_n "(cached) " >&6
10212else
10213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214/* end confdefs.h.  */
10215int i;
10216int
10217main ()
10218{
10219
10220  ;
10221  return 0;
10222}
10223_ACEOF
10224if ac_fn_c_try_link "$LINENO"; then :
10225  eval $cacheid=yes
10226else
10227  eval $cacheid=no
10228fi
10229rm -f core conftest.err conftest.$ac_objext \
10230    conftest$ac_exeext conftest.$ac_ext
10231fi
10232
10233
10234		CFLAGS="$xorg_testset_save_CFLAGS"
10235
10236		eval supported=\$$cacheid
10237		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10238$as_echo "$supported" >&6; }
10239		if test "$supported" = "yes" ; then
10240			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10241			found="yes"
10242		fi
10243	fi
10244
10245
10246fi
10247
10248
10249
10250
10251
10252
10253
10254		CWARNFLAGS="$BASE_CFLAGS"
10255		if  test "x$GCC" = xyes ; then
10256		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10257		fi
10258
10259
10260
10261
10262
10263
10264
10265
10266# Check whether --enable-strict-compilation was given.
10267if test "${enable_strict_compilation+set}" = set; then :
10268  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10269else
10270  STRICT_COMPILE=no
10271fi
10272
10273
10274
10275
10276
10277
10278STRICT_CFLAGS=""
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292xorg_testset_save_CFLAGS="$CFLAGS"
10293
10294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10299  $as_echo_n "(cached) " >&6
10300else
10301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302/* end confdefs.h.  */
10303int i;
10304_ACEOF
10305if ac_fn_c_try_compile "$LINENO"; then :
10306  xorg_cv_cc_flag_unknown_warning_option=yes
10307else
10308  xorg_cv_cc_flag_unknown_warning_option=no
10309fi
10310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311fi
10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10315	CFLAGS="$xorg_testset_save_CFLAGS"
10316fi
10317
10318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10321	fi
10322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10326  $as_echo_n "(cached) " >&6
10327else
10328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329/* end confdefs.h.  */
10330int i;
10331_ACEOF
10332if ac_fn_c_try_compile "$LINENO"; then :
10333  xorg_cv_cc_flag_unused_command_line_argument=yes
10334else
10335  xorg_cv_cc_flag_unused_command_line_argument=no
10336fi
10337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10338fi
10339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10342	CFLAGS="$xorg_testset_save_CFLAGS"
10343fi
10344
10345found="no"
10346
10347	if test $found = "no" ; then
10348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10350		fi
10351
10352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10354		fi
10355
10356		CFLAGS="$CFLAGS -pedantic"
10357
10358		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10359$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10360		cacheid=xorg_cv_cc_flag__pedantic
10361		if eval \${$cacheid+:} false; then :
10362  $as_echo_n "(cached) " >&6
10363else
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366int i;
10367int
10368main ()
10369{
10370
10371  ;
10372  return 0;
10373}
10374_ACEOF
10375if ac_fn_c_try_link "$LINENO"; then :
10376  eval $cacheid=yes
10377else
10378  eval $cacheid=no
10379fi
10380rm -f core conftest.err conftest.$ac_objext \
10381    conftest$ac_exeext conftest.$ac_ext
10382fi
10383
10384
10385		CFLAGS="$xorg_testset_save_CFLAGS"
10386
10387		eval supported=\$$cacheid
10388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10389$as_echo "$supported" >&6; }
10390		if test "$supported" = "yes" ; then
10391			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10392			found="yes"
10393		fi
10394	fi
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410xorg_testset_save_CFLAGS="$CFLAGS"
10411
10412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10417  $as_echo_n "(cached) " >&6
10418else
10419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421int i;
10422_ACEOF
10423if ac_fn_c_try_compile "$LINENO"; then :
10424  xorg_cv_cc_flag_unknown_warning_option=yes
10425else
10426  xorg_cv_cc_flag_unknown_warning_option=no
10427fi
10428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429fi
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10432	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10433	CFLAGS="$xorg_testset_save_CFLAGS"
10434fi
10435
10436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10437	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10438		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10439	fi
10440	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10444  $as_echo_n "(cached) " >&6
10445else
10446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447/* end confdefs.h.  */
10448int i;
10449_ACEOF
10450if ac_fn_c_try_compile "$LINENO"; then :
10451  xorg_cv_cc_flag_unused_command_line_argument=yes
10452else
10453  xorg_cv_cc_flag_unused_command_line_argument=no
10454fi
10455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10456fi
10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10460	CFLAGS="$xorg_testset_save_CFLAGS"
10461fi
10462
10463found="no"
10464
10465	if test $found = "no" ; then
10466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468		fi
10469
10470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472		fi
10473
10474		CFLAGS="$CFLAGS -Werror"
10475
10476		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10477$as_echo_n "checking if $CC supports -Werror... " >&6; }
10478		cacheid=xorg_cv_cc_flag__Werror
10479		if eval \${$cacheid+:} false; then :
10480  $as_echo_n "(cached) " >&6
10481else
10482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483/* end confdefs.h.  */
10484int i;
10485int
10486main ()
10487{
10488
10489  ;
10490  return 0;
10491}
10492_ACEOF
10493if ac_fn_c_try_link "$LINENO"; then :
10494  eval $cacheid=yes
10495else
10496  eval $cacheid=no
10497fi
10498rm -f core conftest.err conftest.$ac_objext \
10499    conftest$ac_exeext conftest.$ac_ext
10500fi
10501
10502
10503		CFLAGS="$xorg_testset_save_CFLAGS"
10504
10505		eval supported=\$$cacheid
10506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10507$as_echo "$supported" >&6; }
10508		if test "$supported" = "yes" ; then
10509			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10510			found="yes"
10511		fi
10512	fi
10513
10514	if test $found = "no" ; then
10515		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10517		fi
10518
10519		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10521		fi
10522
10523		CFLAGS="$CFLAGS -errwarn"
10524
10525		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10526$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10527		cacheid=xorg_cv_cc_flag__errwarn
10528		if eval \${$cacheid+:} false; then :
10529  $as_echo_n "(cached) " >&6
10530else
10531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532/* end confdefs.h.  */
10533int i;
10534int
10535main ()
10536{
10537
10538  ;
10539  return 0;
10540}
10541_ACEOF
10542if ac_fn_c_try_link "$LINENO"; then :
10543  eval $cacheid=yes
10544else
10545  eval $cacheid=no
10546fi
10547rm -f core conftest.err conftest.$ac_objext \
10548    conftest$ac_exeext conftest.$ac_ext
10549fi
10550
10551
10552		CFLAGS="$xorg_testset_save_CFLAGS"
10553
10554		eval supported=\$$cacheid
10555		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10556$as_echo "$supported" >&6; }
10557		if test "$supported" = "yes" ; then
10558			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10559			found="yes"
10560		fi
10561	fi
10562
10563
10564
10565# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10566# activate it with -Werror, so we add it here explicitly.
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580xorg_testset_save_CFLAGS="$CFLAGS"
10581
10582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10583	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10584	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10585$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10586if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10587  $as_echo_n "(cached) " >&6
10588else
10589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590/* end confdefs.h.  */
10591int i;
10592_ACEOF
10593if ac_fn_c_try_compile "$LINENO"; then :
10594  xorg_cv_cc_flag_unknown_warning_option=yes
10595else
10596  xorg_cv_cc_flag_unknown_warning_option=no
10597fi
10598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10599fi
10600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10601$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10602	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10603	CFLAGS="$xorg_testset_save_CFLAGS"
10604fi
10605
10606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10607	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10608		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10609	fi
10610	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10612$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10613if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10614  $as_echo_n "(cached) " >&6
10615else
10616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617/* end confdefs.h.  */
10618int i;
10619_ACEOF
10620if ac_fn_c_try_compile "$LINENO"; then :
10621  xorg_cv_cc_flag_unused_command_line_argument=yes
10622else
10623  xorg_cv_cc_flag_unused_command_line_argument=no
10624fi
10625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626fi
10627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10628$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10629	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10630	CFLAGS="$xorg_testset_save_CFLAGS"
10631fi
10632
10633found="no"
10634
10635	if test $found = "no" ; then
10636		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10637			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10638		fi
10639
10640		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10641			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10642		fi
10643
10644		CFLAGS="$CFLAGS -Werror=attributes"
10645
10646		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10647$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10648		cacheid=xorg_cv_cc_flag__Werror_attributes
10649		if eval \${$cacheid+:} false; then :
10650  $as_echo_n "(cached) " >&6
10651else
10652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653/* end confdefs.h.  */
10654int i;
10655int
10656main ()
10657{
10658
10659  ;
10660  return 0;
10661}
10662_ACEOF
10663if ac_fn_c_try_link "$LINENO"; then :
10664  eval $cacheid=yes
10665else
10666  eval $cacheid=no
10667fi
10668rm -f core conftest.err conftest.$ac_objext \
10669    conftest$ac_exeext conftest.$ac_ext
10670fi
10671
10672
10673		CFLAGS="$xorg_testset_save_CFLAGS"
10674
10675		eval supported=\$$cacheid
10676		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10677$as_echo "$supported" >&6; }
10678		if test "$supported" = "yes" ; then
10679			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10680			found="yes"
10681		fi
10682	fi
10683
10684
10685
10686if test "x$STRICT_COMPILE" = "xyes"; then
10687    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10688    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10689fi
10690
10691
10692
10693
10694
10695
10696cat >>confdefs.h <<_ACEOF
10697#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10698_ACEOF
10699
10700	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10701	if test "x$PVM" = "x"; then
10702		PVM="0"
10703	fi
10704
10705cat >>confdefs.h <<_ACEOF
10706#define PACKAGE_VERSION_MINOR $PVM
10707_ACEOF
10708
10709	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10710	if test "x$PVP" = "x"; then
10711		PVP="0"
10712	fi
10713
10714cat >>confdefs.h <<_ACEOF
10715#define PACKAGE_VERSION_PATCHLEVEL $PVP
10716_ACEOF
10717
10718
10719
10720CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10721mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10722|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10723echo 'git directory not found: installing possibly empty changelog.' >&2)"
10724
10725
10726
10727
10728macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10729INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10730mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10731|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10732echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10733
10734
10735
10736
10737
10738
10739if test x$APP_MAN_SUFFIX = x    ; then
10740    APP_MAN_SUFFIX=1
10741fi
10742if test x$APP_MAN_DIR = x    ; then
10743    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10744fi
10745
10746if test x$LIB_MAN_SUFFIX = x    ; then
10747    LIB_MAN_SUFFIX=3
10748fi
10749if test x$LIB_MAN_DIR = x    ; then
10750    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10751fi
10752
10753if test x$FILE_MAN_SUFFIX = x    ; then
10754    case $host_os in
10755	# Solaris 2.0 - 11 use SysV man page sections
10756	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10757	*)				FILE_MAN_SUFFIX=5  ;;
10758    esac
10759fi
10760if test x$FILE_MAN_DIR = x    ; then
10761    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10762fi
10763
10764if test x$MISC_MAN_SUFFIX = x    ; then
10765    case $host_os in
10766	# Solaris 2.0 - 11 use SysV man page sections
10767	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10768	*)				MISC_MAN_SUFFIX=7  ;;
10769    esac
10770fi
10771if test x$MISC_MAN_DIR = x    ; then
10772    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10773fi
10774
10775if test x$DRIVER_MAN_SUFFIX = x    ; then
10776    case $host_os in
10777	# Solaris 2.0 - 11 use SysV man page sections
10778	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10779	*)				DRIVER_MAN_SUFFIX=4  ;;
10780    esac
10781fi
10782if test x$DRIVER_MAN_DIR = x    ; then
10783    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10784fi
10785
10786if test x$ADMIN_MAN_SUFFIX = x    ; then
10787    case $host_os in
10788	# Solaris 2.0 - 11 use SysV man page sections
10789	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10790	*)				ADMIN_MAN_SUFFIX=8  ;;
10791    esac
10792fi
10793if test x$ADMIN_MAN_DIR = x    ; then
10794    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10795fi
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811XORG_MAN_PAGE="X Version 11"
10812
10813MAN_SUBSTS="\
10814	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10815	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10816	-e 's|__xservername__|Xorg|g' \
10817	-e 's|__xconfigfile__|xorg.conf|g' \
10818	-e 's|__projectroot__|\$(prefix)|g' \
10819	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10820	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10821	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10822	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10823	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10824	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10825	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10826
10827
10828
10829# Check whether --enable-silent-rules was given.
10830if test "${enable_silent_rules+set}" = set; then :
10831  enableval=$enable_silent_rules;
10832fi
10833
10834case $enable_silent_rules in # (((
10835  yes) AM_DEFAULT_VERBOSITY=0;;
10836   no) AM_DEFAULT_VERBOSITY=1;;
10837    *) AM_DEFAULT_VERBOSITY=0;;
10838esac
10839am_make=${MAKE-make}
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10841$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10842if ${am_cv_make_support_nested_variables+:} false; then :
10843  $as_echo_n "(cached) " >&6
10844else
10845  if $as_echo 'TRUE=$(BAR$(V))
10846BAR0=false
10847BAR1=true
10848V=1
10849am__doit:
10850	@$(TRUE)
10851.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10852  am_cv_make_support_nested_variables=yes
10853else
10854  am_cv_make_support_nested_variables=no
10855fi
10856fi
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10858$as_echo "$am_cv_make_support_nested_variables" >&6; }
10859if test $am_cv_make_support_nested_variables = yes; then
10860    AM_V='$(V)'
10861  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10862else
10863  AM_V=$AM_DEFAULT_VERBOSITY
10864  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10865fi
10866AM_BACKSLASH='\'
10867
10868
10869
10870# Checks for system functions
10871for ac_func in usleep
10872do :
10873  ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
10874if test "x$ac_cv_func_usleep" = xyes; then :
10875  cat >>confdefs.h <<_ACEOF
10876#define HAVE_USLEEP 1
10877_ACEOF
10878
10879fi
10880done
10881
10882
10883# Checks for pkg-config packages
10884
10885pkg_failed=no
10886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5
10887$as_echo_n "checking for XSET... " >&6; }
10888
10889if test -n "$XSET_CFLAGS"; then
10890    pkg_cv_XSET_CFLAGS="$XSET_CFLAGS"
10891 elif test -n "$PKG_CONFIG"; then
10892    if test -n "$PKG_CONFIG" && \
10893    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
10894  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
10895  ac_status=$?
10896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10897  test $ac_status = 0; }; then
10898  pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xmuu" 2>/dev/null`
10899		      test "x$?" != "x0" && pkg_failed=yes
10900else
10901  pkg_failed=yes
10902fi
10903 else
10904    pkg_failed=untried
10905fi
10906if test -n "$XSET_LIBS"; then
10907    pkg_cv_XSET_LIBS="$XSET_LIBS"
10908 elif test -n "$PKG_CONFIG"; then
10909    if test -n "$PKG_CONFIG" && \
10910    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
10911  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
10912  ac_status=$?
10913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10914  test $ac_status = 0; }; then
10915  pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xmuu" 2>/dev/null`
10916		      test "x$?" != "x0" && pkg_failed=yes
10917else
10918  pkg_failed=yes
10919fi
10920 else
10921    pkg_failed=untried
10922fi
10923
10924
10925
10926if test $pkg_failed = yes; then
10927   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928$as_echo "no" >&6; }
10929
10930if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10931        _pkg_short_errors_supported=yes
10932else
10933        _pkg_short_errors_supported=no
10934fi
10935        if test $_pkg_short_errors_supported = yes; then
10936	        XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1`
10937        else
10938	        XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1`
10939        fi
10940	# Put the nasty error message in config.log where it belongs
10941	echo "$XSET_PKG_ERRORS" >&5
10942
10943	as_fn_error $? "Package requirements (xproto >= 7.0.17 xmuu) were not met:
10944
10945$XSET_PKG_ERRORS
10946
10947Consider adjusting the PKG_CONFIG_PATH environment variable if you
10948installed software in a non-standard prefix.
10949
10950Alternatively, you may set the environment variables XSET_CFLAGS
10951and XSET_LIBS to avoid the need to call pkg-config.
10952See the pkg-config man page for more details." "$LINENO" 5
10953elif test $pkg_failed = untried; then
10954     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955$as_echo "no" >&6; }
10956	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10958as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10959is in your PATH or set the PKG_CONFIG environment variable to the full
10960path to pkg-config.
10961
10962Alternatively, you may set the environment variables XSET_CFLAGS
10963and XSET_LIBS to avoid the need to call pkg-config.
10964See the pkg-config man page for more details.
10965
10966To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10967See \`config.log' for more details" "$LINENO" 5; }
10968else
10969	XSET_CFLAGS=$pkg_cv_XSET_CFLAGS
10970	XSET_LIBS=$pkg_cv_XSET_LIBS
10971        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10972$as_echo "yes" >&6; }
10973
10974fi
10975
10976# This is used below to allow <X11/Xlib.h> to be found
10977
10978pkg_failed=no
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5
10980$as_echo_n "checking for SET_X11... " >&6; }
10981
10982if test -n "$SET_X11_CFLAGS"; then
10983    pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS"
10984 elif test -n "$PKG_CONFIG"; then
10985    if test -n "$PKG_CONFIG" && \
10986    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
10987  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
10988  ac_status=$?
10989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10990  test $ac_status = 0; }; then
10991  pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
10992		      test "x$?" != "x0" && pkg_failed=yes
10993else
10994  pkg_failed=yes
10995fi
10996 else
10997    pkg_failed=untried
10998fi
10999if test -n "$SET_X11_LIBS"; then
11000    pkg_cv_SET_X11_LIBS="$SET_X11_LIBS"
11001 elif test -n "$PKG_CONFIG"; then
11002    if test -n "$PKG_CONFIG" && \
11003    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11004  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11005  ac_status=$?
11006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11007  test $ac_status = 0; }; then
11008  pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11009		      test "x$?" != "x0" && pkg_failed=yes
11010else
11011  pkg_failed=yes
11012fi
11013 else
11014    pkg_failed=untried
11015fi
11016
11017
11018
11019if test $pkg_failed = yes; then
11020   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021$as_echo "no" >&6; }
11022
11023if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11024        _pkg_short_errors_supported=yes
11025else
11026        _pkg_short_errors_supported=no
11027fi
11028        if test $_pkg_short_errors_supported = yes; then
11029	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11030        else
11031	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11032        fi
11033	# Put the nasty error message in config.log where it belongs
11034	echo "$SET_X11_PKG_ERRORS" >&5
11035
11036	as_fn_error $? "Package requirements (x11) were not met:
11037
11038$SET_X11_PKG_ERRORS
11039
11040Consider adjusting the PKG_CONFIG_PATH environment variable if you
11041installed software in a non-standard prefix.
11042
11043Alternatively, you may set the environment variables SET_X11_CFLAGS
11044and SET_X11_LIBS to avoid the need to call pkg-config.
11045See the pkg-config man page for more details." "$LINENO" 5
11046elif test $pkg_failed = untried; then
11047     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048$as_echo "no" >&6; }
11049	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11051as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11052is in your PATH or set the PKG_CONFIG environment variable to the full
11053path to pkg-config.
11054
11055Alternatively, you may set the environment variables SET_X11_CFLAGS
11056and SET_X11_LIBS to avoid the need to call pkg-config.
11057See the pkg-config man page for more details.
11058
11059To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11060See \`config.log' for more details" "$LINENO" 5; }
11061else
11062	SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS
11063	SET_X11_LIBS=$pkg_cv_SET_X11_LIBS
11064        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11065$as_echo "yes" >&6; }
11066
11067fi
11068
11069
11070pkg_failed=no
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5
11072$as_echo_n "checking for SET_XEXT... " >&6; }
11073
11074if test -n "$SET_XEXT_CFLAGS"; then
11075    pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS"
11076 elif test -n "$PKG_CONFIG"; then
11077    if test -n "$PKG_CONFIG" && \
11078    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11079  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11080  ac_status=$?
11081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082  test $ac_status = 0; }; then
11083  pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
11084		      test "x$?" != "x0" && pkg_failed=yes
11085else
11086  pkg_failed=yes
11087fi
11088 else
11089    pkg_failed=untried
11090fi
11091if test -n "$SET_XEXT_LIBS"; then
11092    pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS"
11093 elif test -n "$PKG_CONFIG"; then
11094    if test -n "$PKG_CONFIG" && \
11095    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11096  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11097  ac_status=$?
11098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11099  test $ac_status = 0; }; then
11100  pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
11101		      test "x$?" != "x0" && pkg_failed=yes
11102else
11103  pkg_failed=yes
11104fi
11105 else
11106    pkg_failed=untried
11107fi
11108
11109
11110
11111if test $pkg_failed = yes; then
11112   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113$as_echo "no" >&6; }
11114
11115if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11116        _pkg_short_errors_supported=yes
11117else
11118        _pkg_short_errors_supported=no
11119fi
11120        if test $_pkg_short_errors_supported = yes; then
11121	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
11122        else
11123	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
11124        fi
11125	# Put the nasty error message in config.log where it belongs
11126	echo "$SET_XEXT_PKG_ERRORS" >&5
11127
11128	echo "not found"
11129elif test $pkg_failed = untried; then
11130     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131$as_echo "no" >&6; }
11132	echo "not found"
11133else
11134	SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS
11135	SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS
11136        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11137$as_echo "yes" >&6; }
11138	SAVE_CPPFLAGS="$CPPFLAGS"
11139	CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS"
11140	for ac_header in X11/extensions/dpms.h X11/extensions/MITMisc.h
11141do :
11142  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11143ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11144"
11145if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11146  cat >>confdefs.h <<_ACEOF
11147#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11148_ACEOF
11149
11150fi
11151
11152done
11153
11154	CPPFLAGS="$SAVE_CPPFLAGS"
11155fi
11156
11157
11158pkg_failed=no
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5
11160$as_echo_n "checking for SET_XKB... " >&6; }
11161
11162if test -n "$SET_XKB_CFLAGS"; then
11163    pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS"
11164 elif test -n "$PKG_CONFIG"; then
11165    if test -n "$PKG_CONFIG" && \
11166    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11167  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11168  ac_status=$?
11169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11170  test $ac_status = 0; }; then
11171  pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11172		      test "x$?" != "x0" && pkg_failed=yes
11173else
11174  pkg_failed=yes
11175fi
11176 else
11177    pkg_failed=untried
11178fi
11179if test -n "$SET_XKB_LIBS"; then
11180    pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS"
11181 elif test -n "$PKG_CONFIG"; then
11182    if test -n "$PKG_CONFIG" && \
11183    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11184  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11185  ac_status=$?
11186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187  test $ac_status = 0; }; then
11188  pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11189		      test "x$?" != "x0" && pkg_failed=yes
11190else
11191  pkg_failed=yes
11192fi
11193 else
11194    pkg_failed=untried
11195fi
11196
11197
11198
11199if test $pkg_failed = yes; then
11200   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201$as_echo "no" >&6; }
11202
11203if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11204        _pkg_short_errors_supported=yes
11205else
11206        _pkg_short_errors_supported=no
11207fi
11208        if test $_pkg_short_errors_supported = yes; then
11209	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11210        else
11211	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11212        fi
11213	# Put the nasty error message in config.log where it belongs
11214	echo "$SET_XKB_PKG_ERRORS" >&5
11215
11216	echo "not found"
11217elif test $pkg_failed = untried; then
11218     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219$as_echo "no" >&6; }
11220	echo "not found"
11221else
11222	SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS
11223	SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS
11224        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11225$as_echo "yes" >&6; }
11226	SAVE_CPPFLAGS="$CPPFLAGS"
11227	CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
11228	for ac_header in X11/XKBlib.h
11229do :
11230  ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
11231"
11232if test "x$ac_cv_header_X11_XKBlib_h" = xyes; then :
11233  cat >>confdefs.h <<_ACEOF
11234#define HAVE_X11_XKBLIB_H 1
11235_ACEOF
11236
11237fi
11238
11239done
11240
11241	CPPFLAGS="$SAVE_CPPFLAGS"
11242fi
11243
11244
11245# Check whether --with-xf86misc was given.
11246if test "${with_xf86misc+set}" = set; then :
11247  withval=$with_xf86misc; USE_XF86MISC="$withval"
11248else
11249  USE_XF86MISC="yes"
11250fi
11251
11252if test "x$USE_XF86MISC" != "xno" ; then
11253
11254pkg_failed=no
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5
11256$as_echo_n "checking for SET_XF86MISC... " >&6; }
11257
11258if test -n "$SET_XF86MISC_CFLAGS"; then
11259    pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS"
11260 elif test -n "$PKG_CONFIG"; then
11261    if test -n "$PKG_CONFIG" && \
11262    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11263  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11264  ac_status=$?
11265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11266  test $ac_status = 0; }; then
11267  pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
11268		      test "x$?" != "x0" && pkg_failed=yes
11269else
11270  pkg_failed=yes
11271fi
11272 else
11273    pkg_failed=untried
11274fi
11275if test -n "$SET_XF86MISC_LIBS"; then
11276    pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS"
11277 elif test -n "$PKG_CONFIG"; then
11278    if test -n "$PKG_CONFIG" && \
11279    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11280  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11281  ac_status=$?
11282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11283  test $ac_status = 0; }; then
11284  pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
11285		      test "x$?" != "x0" && pkg_failed=yes
11286else
11287  pkg_failed=yes
11288fi
11289 else
11290    pkg_failed=untried
11291fi
11292
11293
11294
11295if test $pkg_failed = yes; then
11296   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297$as_echo "no" >&6; }
11298
11299if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11300        _pkg_short_errors_supported=yes
11301else
11302        _pkg_short_errors_supported=no
11303fi
11304        if test $_pkg_short_errors_supported = yes; then
11305	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86misc" 2>&1`
11306        else
11307	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86misc" 2>&1`
11308        fi
11309	# Put the nasty error message in config.log where it belongs
11310	echo "$SET_XF86MISC_PKG_ERRORS" >&5
11311
11312	echo "not found"
11313elif test $pkg_failed = untried; then
11314     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315$as_echo "no" >&6; }
11316	echo "not found"
11317else
11318	SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS
11319	SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS
11320        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11321$as_echo "yes" >&6; }
11322	SAVE_CPPFLAGS="$CPPFLAGS"
11323		CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS"
11324		for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h
11325do :
11326  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11327ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11328#include <X11/Xproto.h>
11329"
11330if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11331  cat >>confdefs.h <<_ACEOF
11332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11333_ACEOF
11334
11335fi
11336
11337done
11338
11339		CPPFLAGS="$SAVE_CPPFLAGS"
11340fi
11341else
11342        echo "without xf86misc"
11343fi
11344
11345
11346# Check whether --with-fontcache was given.
11347if test "${with_fontcache+set}" = set; then :
11348  withval=$with_fontcache; USE_XFONTCACHE="$withval"
11349else
11350  USE_XFONTCACHE="yes"
11351fi
11352
11353if test "x$USE_XFONTCACHE" != "xno" ; then
11354
11355pkg_failed=no
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5
11357$as_echo_n "checking for SET_FONTCACHE... " >&6; }
11358
11359if test -n "$SET_FONTCACHE_CFLAGS"; then
11360    pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS"
11361 elif test -n "$PKG_CONFIG"; then
11362    if test -n "$PKG_CONFIG" && \
11363    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11364  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11365  ac_status=$?
11366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11367  test $ac_status = 0; }; then
11368  pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null`
11369		      test "x$?" != "x0" && pkg_failed=yes
11370else
11371  pkg_failed=yes
11372fi
11373 else
11374    pkg_failed=untried
11375fi
11376if test -n "$SET_FONTCACHE_LIBS"; then
11377    pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS"
11378 elif test -n "$PKG_CONFIG"; then
11379    if test -n "$PKG_CONFIG" && \
11380    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11381  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11382  ac_status=$?
11383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11384  test $ac_status = 0; }; then
11385  pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null`
11386		      test "x$?" != "x0" && pkg_failed=yes
11387else
11388  pkg_failed=yes
11389fi
11390 else
11391    pkg_failed=untried
11392fi
11393
11394
11395
11396if test $pkg_failed = yes; then
11397   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398$as_echo "no" >&6; }
11399
11400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11401        _pkg_short_errors_supported=yes
11402else
11403        _pkg_short_errors_supported=no
11404fi
11405        if test $_pkg_short_errors_supported = yes; then
11406	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfontcache" 2>&1`
11407        else
11408	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfontcache" 2>&1`
11409        fi
11410	# Put the nasty error message in config.log where it belongs
11411	echo "$SET_FONTCACHE_PKG_ERRORS" >&5
11412
11413	echo "not found"
11414elif test $pkg_failed = untried; then
11415     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416$as_echo "no" >&6; }
11417	echo "not found"
11418else
11419	SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS
11420	SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS
11421        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11422$as_echo "yes" >&6; }
11423	SAVE_CPPFLAGS="$CPPFLAGS"
11424		CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS"
11425		for ac_header in X11/extensions/fontcache.h X11/extensions/fontcacheP.h
11426do :
11427  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11429"
11430if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11431  cat >>confdefs.h <<_ACEOF
11432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11433_ACEOF
11434
11435fi
11436
11437done
11438
11439		CPPFLAGS="$SAVE_CPPFLAGS"
11440fi
11441else
11442	echo "without fontcache"
11443fi
11444
11445XSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS"
11446XSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS"
11447
11448
11449ac_config_files="$ac_config_files Makefile man/Makefile"
11450
11451cat >confcache <<\_ACEOF
11452# This file is a shell script that caches the results of configure
11453# tests run on this system so they can be shared between configure
11454# scripts and configure runs, see configure's option --config-cache.
11455# It is not useful on other systems.  If it contains results you don't
11456# want to keep, you may remove or edit it.
11457#
11458# config.status only pays attention to the cache file if you give it
11459# the --recheck option to rerun configure.
11460#
11461# `ac_cv_env_foo' variables (set or unset) will be overridden when
11462# loading this file, other *unset* `ac_cv_foo' will be assigned the
11463# following values.
11464
11465_ACEOF
11466
11467# The following way of writing the cache mishandles newlines in values,
11468# but we know of no workaround that is simple, portable, and efficient.
11469# So, we kill variables containing newlines.
11470# Ultrix sh set writes to stderr and can't be redirected directly,
11471# and sets the high bit in the cache file unless we assign to the vars.
11472(
11473  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11474    eval ac_val=\$$ac_var
11475    case $ac_val in #(
11476    *${as_nl}*)
11477      case $ac_var in #(
11478      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11479$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11480      esac
11481      case $ac_var in #(
11482      _ | IFS | as_nl) ;; #(
11483      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11484      *) { eval $ac_var=; unset $ac_var;} ;;
11485      esac ;;
11486    esac
11487  done
11488
11489  (set) 2>&1 |
11490    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11491    *${as_nl}ac_space=\ *)
11492      # `set' does not quote correctly, so add quotes: double-quote
11493      # substitution turns \\\\ into \\, and sed turns \\ into \.
11494      sed -n \
11495	"s/'/'\\\\''/g;
11496	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11497      ;; #(
11498    *)
11499      # `set' quotes correctly as required by POSIX, so do not add quotes.
11500      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11501      ;;
11502    esac |
11503    sort
11504) |
11505  sed '
11506     /^ac_cv_env_/b end
11507     t clear
11508     :clear
11509     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11510     t end
11511     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11512     :end' >>confcache
11513if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11514  if test -w "$cache_file"; then
11515    if test "x$cache_file" != "x/dev/null"; then
11516      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11517$as_echo "$as_me: updating cache $cache_file" >&6;}
11518      if test ! -f "$cache_file" || test -h "$cache_file"; then
11519	cat confcache >"$cache_file"
11520      else
11521        case $cache_file in #(
11522        */* | ?:*)
11523	  mv -f confcache "$cache_file"$$ &&
11524	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11525        *)
11526	  mv -f confcache "$cache_file" ;;
11527	esac
11528      fi
11529    fi
11530  else
11531    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11532$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11533  fi
11534fi
11535rm -f confcache
11536
11537test "x$prefix" = xNONE && prefix=$ac_default_prefix
11538# Let make expand exec_prefix.
11539test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11540
11541DEFS=-DHAVE_CONFIG_H
11542
11543ac_libobjs=
11544ac_ltlibobjs=
11545U=
11546for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11547  # 1. Remove the extension, and $U if already installed.
11548  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11549  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11550  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11551  #    will be set to the directory where LIBOBJS objects are built.
11552  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11553  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11554done
11555LIBOBJS=$ac_libobjs
11556
11557LTLIBOBJS=$ac_ltlibobjs
11558
11559
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11561$as_echo_n "checking that generated files are newer than configure... " >&6; }
11562   if test -n "$am_sleep_pid"; then
11563     # Hide warnings about reused PIDs.
11564     wait $am_sleep_pid 2>/dev/null
11565   fi
11566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11567$as_echo "done" >&6; }
11568if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11569  as_fn_error $? "conditional \"AMDEP\" was never defined.
11570Usually this means the macro was only invoked conditionally." "$LINENO" 5
11571fi
11572if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11573  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11574Usually this means the macro was only invoked conditionally." "$LINENO" 5
11575fi
11576 if test -n "$EXEEXT"; then
11577  am__EXEEXT_TRUE=
11578  am__EXEEXT_FALSE='#'
11579else
11580  am__EXEEXT_TRUE='#'
11581  am__EXEEXT_FALSE=
11582fi
11583
11584
11585: "${CONFIG_STATUS=./config.status}"
11586ac_write_fail=0
11587ac_clean_files_save=$ac_clean_files
11588ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11590$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11591as_write_fail=0
11592cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11593#! $SHELL
11594# Generated by $as_me.
11595# Run this file to recreate the current configuration.
11596# Compiler output produced by configure, useful for debugging
11597# configure, is in config.log if it exists.
11598
11599debug=false
11600ac_cs_recheck=false
11601ac_cs_silent=false
11602
11603SHELL=\${CONFIG_SHELL-$SHELL}
11604export SHELL
11605_ASEOF
11606cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11607## -------------------- ##
11608## M4sh Initialization. ##
11609## -------------------- ##
11610
11611# Be more Bourne compatible
11612DUALCASE=1; export DUALCASE # for MKS sh
11613if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11614  emulate sh
11615  NULLCMD=:
11616  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11617  # is contrary to our usage.  Disable this feature.
11618  alias -g '${1+"$@"}'='"$@"'
11619  setopt NO_GLOB_SUBST
11620else
11621  case `(set -o) 2>/dev/null` in #(
11622  *posix*) :
11623    set -o posix ;; #(
11624  *) :
11625     ;;
11626esac
11627fi
11628
11629
11630as_nl='
11631'
11632export as_nl
11633# Printing a long string crashes Solaris 7 /usr/bin/printf.
11634as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11635as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11636as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11637# Prefer a ksh shell builtin over an external printf program on Solaris,
11638# but without wasting forks for bash or zsh.
11639if test -z "$BASH_VERSION$ZSH_VERSION" \
11640    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11641  as_echo='print -r --'
11642  as_echo_n='print -rn --'
11643elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11644  as_echo='printf %s\n'
11645  as_echo_n='printf %s'
11646else
11647  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11648    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11649    as_echo_n='/usr/ucb/echo -n'
11650  else
11651    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11652    as_echo_n_body='eval
11653      arg=$1;
11654      case $arg in #(
11655      *"$as_nl"*)
11656	expr "X$arg" : "X\\(.*\\)$as_nl";
11657	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11658      esac;
11659      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11660    '
11661    export as_echo_n_body
11662    as_echo_n='sh -c $as_echo_n_body as_echo'
11663  fi
11664  export as_echo_body
11665  as_echo='sh -c $as_echo_body as_echo'
11666fi
11667
11668# The user is always right.
11669if test "${PATH_SEPARATOR+set}" != set; then
11670  PATH_SEPARATOR=:
11671  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11672    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11673      PATH_SEPARATOR=';'
11674  }
11675fi
11676
11677
11678# IFS
11679# We need space, tab and new line, in precisely that order.  Quoting is
11680# there to prevent editors from complaining about space-tab.
11681# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11682# splitting by setting IFS to empty value.)
11683IFS=" ""	$as_nl"
11684
11685# Find who we are.  Look in the path if we contain no directory separator.
11686as_myself=
11687case $0 in #((
11688  *[\\/]* ) as_myself=$0 ;;
11689  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690for as_dir in $PATH
11691do
11692  IFS=$as_save_IFS
11693  test -z "$as_dir" && as_dir=.
11694    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11695  done
11696IFS=$as_save_IFS
11697
11698     ;;
11699esac
11700# We did not find ourselves, most probably we were run as `sh COMMAND'
11701# in which case we are not to be found in the path.
11702if test "x$as_myself" = x; then
11703  as_myself=$0
11704fi
11705if test ! -f "$as_myself"; then
11706  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11707  exit 1
11708fi
11709
11710# Unset variables that we do not need and which cause bugs (e.g. in
11711# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11712# suppresses any "Segmentation fault" message there.  '((' could
11713# trigger a bug in pdksh 5.2.14.
11714for as_var in BASH_ENV ENV MAIL MAILPATH
11715do eval test x\${$as_var+set} = xset \
11716  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11717done
11718PS1='$ '
11719PS2='> '
11720PS4='+ '
11721
11722# NLS nuisances.
11723LC_ALL=C
11724export LC_ALL
11725LANGUAGE=C
11726export LANGUAGE
11727
11728# CDPATH.
11729(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11730
11731
11732# as_fn_error STATUS ERROR [LINENO LOG_FD]
11733# ----------------------------------------
11734# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11735# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11736# script with STATUS, using 1 if that was 0.
11737as_fn_error ()
11738{
11739  as_status=$1; test $as_status -eq 0 && as_status=1
11740  if test "$4"; then
11741    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11742    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11743  fi
11744  $as_echo "$as_me: error: $2" >&2
11745  as_fn_exit $as_status
11746} # as_fn_error
11747
11748
11749# as_fn_set_status STATUS
11750# -----------------------
11751# Set $? to STATUS, without forking.
11752as_fn_set_status ()
11753{
11754  return $1
11755} # as_fn_set_status
11756
11757# as_fn_exit STATUS
11758# -----------------
11759# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11760as_fn_exit ()
11761{
11762  set +e
11763  as_fn_set_status $1
11764  exit $1
11765} # as_fn_exit
11766
11767# as_fn_unset VAR
11768# ---------------
11769# Portably unset VAR.
11770as_fn_unset ()
11771{
11772  { eval $1=; unset $1;}
11773}
11774as_unset=as_fn_unset
11775# as_fn_append VAR VALUE
11776# ----------------------
11777# Append the text in VALUE to the end of the definition contained in VAR. Take
11778# advantage of any shell optimizations that allow amortized linear growth over
11779# repeated appends, instead of the typical quadratic growth present in naive
11780# implementations.
11781if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11782  eval 'as_fn_append ()
11783  {
11784    eval $1+=\$2
11785  }'
11786else
11787  as_fn_append ()
11788  {
11789    eval $1=\$$1\$2
11790  }
11791fi # as_fn_append
11792
11793# as_fn_arith ARG...
11794# ------------------
11795# Perform arithmetic evaluation on the ARGs, and store the result in the
11796# global $as_val. Take advantage of shells that can avoid forks. The arguments
11797# must be portable across $(()) and expr.
11798if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11799  eval 'as_fn_arith ()
11800  {
11801    as_val=$(( $* ))
11802  }'
11803else
11804  as_fn_arith ()
11805  {
11806    as_val=`expr "$@" || test $? -eq 1`
11807  }
11808fi # as_fn_arith
11809
11810
11811if expr a : '\(a\)' >/dev/null 2>&1 &&
11812   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11813  as_expr=expr
11814else
11815  as_expr=false
11816fi
11817
11818if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11819  as_basename=basename
11820else
11821  as_basename=false
11822fi
11823
11824if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11825  as_dirname=dirname
11826else
11827  as_dirname=false
11828fi
11829
11830as_me=`$as_basename -- "$0" ||
11831$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11832	 X"$0" : 'X\(//\)$' \| \
11833	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11834$as_echo X/"$0" |
11835    sed '/^.*\/\([^/][^/]*\)\/*$/{
11836	    s//\1/
11837	    q
11838	  }
11839	  /^X\/\(\/\/\)$/{
11840	    s//\1/
11841	    q
11842	  }
11843	  /^X\/\(\/\).*/{
11844	    s//\1/
11845	    q
11846	  }
11847	  s/.*/./; q'`
11848
11849# Avoid depending upon Character Ranges.
11850as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11851as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11852as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11853as_cr_digits='0123456789'
11854as_cr_alnum=$as_cr_Letters$as_cr_digits
11855
11856ECHO_C= ECHO_N= ECHO_T=
11857case `echo -n x` in #(((((
11858-n*)
11859  case `echo 'xy\c'` in
11860  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11861  xy)  ECHO_C='\c';;
11862  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11863       ECHO_T='	';;
11864  esac;;
11865*)
11866  ECHO_N='-n';;
11867esac
11868
11869rm -f conf$$ conf$$.exe conf$$.file
11870if test -d conf$$.dir; then
11871  rm -f conf$$.dir/conf$$.file
11872else
11873  rm -f conf$$.dir
11874  mkdir conf$$.dir 2>/dev/null
11875fi
11876if (echo >conf$$.file) 2>/dev/null; then
11877  if ln -s conf$$.file conf$$ 2>/dev/null; then
11878    as_ln_s='ln -s'
11879    # ... but there are two gotchas:
11880    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11881    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11882    # In both cases, we have to default to `cp -pR'.
11883    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11884      as_ln_s='cp -pR'
11885  elif ln conf$$.file conf$$ 2>/dev/null; then
11886    as_ln_s=ln
11887  else
11888    as_ln_s='cp -pR'
11889  fi
11890else
11891  as_ln_s='cp -pR'
11892fi
11893rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11894rmdir conf$$.dir 2>/dev/null
11895
11896
11897# as_fn_mkdir_p
11898# -------------
11899# Create "$as_dir" as a directory, including parents if necessary.
11900as_fn_mkdir_p ()
11901{
11902
11903  case $as_dir in #(
11904  -*) as_dir=./$as_dir;;
11905  esac
11906  test -d "$as_dir" || eval $as_mkdir_p || {
11907    as_dirs=
11908    while :; do
11909      case $as_dir in #(
11910      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11911      *) as_qdir=$as_dir;;
11912      esac
11913      as_dirs="'$as_qdir' $as_dirs"
11914      as_dir=`$as_dirname -- "$as_dir" ||
11915$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11916	 X"$as_dir" : 'X\(//\)[^/]' \| \
11917	 X"$as_dir" : 'X\(//\)$' \| \
11918	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11919$as_echo X"$as_dir" |
11920    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11921	    s//\1/
11922	    q
11923	  }
11924	  /^X\(\/\/\)[^/].*/{
11925	    s//\1/
11926	    q
11927	  }
11928	  /^X\(\/\/\)$/{
11929	    s//\1/
11930	    q
11931	  }
11932	  /^X\(\/\).*/{
11933	    s//\1/
11934	    q
11935	  }
11936	  s/.*/./; q'`
11937      test -d "$as_dir" && break
11938    done
11939    test -z "$as_dirs" || eval "mkdir $as_dirs"
11940  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11941
11942
11943} # as_fn_mkdir_p
11944if mkdir -p . 2>/dev/null; then
11945  as_mkdir_p='mkdir -p "$as_dir"'
11946else
11947  test -d ./-p && rmdir ./-p
11948  as_mkdir_p=false
11949fi
11950
11951
11952# as_fn_executable_p FILE
11953# -----------------------
11954# Test if FILE is an executable regular file.
11955as_fn_executable_p ()
11956{
11957  test -f "$1" && test -x "$1"
11958} # as_fn_executable_p
11959as_test_x='test -x'
11960as_executable_p=as_fn_executable_p
11961
11962# Sed expression to map a string onto a valid CPP name.
11963as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11964
11965# Sed expression to map a string onto a valid variable name.
11966as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11967
11968
11969exec 6>&1
11970## ----------------------------------- ##
11971## Main body of $CONFIG_STATUS script. ##
11972## ----------------------------------- ##
11973_ASEOF
11974test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11975
11976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11977# Save the log message, to keep $0 and so on meaningful, and to
11978# report actual input values of CONFIG_FILES etc. instead of their
11979# values after options handling.
11980ac_log="
11981This file was extended by xset $as_me 1.2.4, which was
11982generated by GNU Autoconf 2.69.  Invocation command line was
11983
11984  CONFIG_FILES    = $CONFIG_FILES
11985  CONFIG_HEADERS  = $CONFIG_HEADERS
11986  CONFIG_LINKS    = $CONFIG_LINKS
11987  CONFIG_COMMANDS = $CONFIG_COMMANDS
11988  $ $0 $@
11989
11990on `(hostname || uname -n) 2>/dev/null | sed 1q`
11991"
11992
11993_ACEOF
11994
11995case $ac_config_files in *"
11996"*) set x $ac_config_files; shift; ac_config_files=$*;;
11997esac
11998
11999case $ac_config_headers in *"
12000"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12001esac
12002
12003
12004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12005# Files that config.status was made for.
12006config_files="$ac_config_files"
12007config_headers="$ac_config_headers"
12008config_commands="$ac_config_commands"
12009
12010_ACEOF
12011
12012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12013ac_cs_usage="\
12014\`$as_me' instantiates files and other configuration actions
12015from templates according to the current configuration.  Unless the files
12016and actions are specified as TAGs, all are instantiated by default.
12017
12018Usage: $0 [OPTION]... [TAG]...
12019
12020  -h, --help       print this help, then exit
12021  -V, --version    print version number and configuration settings, then exit
12022      --config     print configuration, then exit
12023  -q, --quiet, --silent
12024                   do not print progress messages
12025  -d, --debug      don't remove temporary files
12026      --recheck    update $as_me by reconfiguring in the same conditions
12027      --file=FILE[:TEMPLATE]
12028                   instantiate the configuration file FILE
12029      --header=FILE[:TEMPLATE]
12030                   instantiate the configuration header FILE
12031
12032Configuration files:
12033$config_files
12034
12035Configuration headers:
12036$config_headers
12037
12038Configuration commands:
12039$config_commands
12040
12041Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12042
12043_ACEOF
12044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12045ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12046ac_cs_version="\\
12047xset config.status 1.2.4
12048configured by $0, generated by GNU Autoconf 2.69,
12049  with options \\"\$ac_cs_config\\"
12050
12051Copyright (C) 2012 Free Software Foundation, Inc.
12052This config.status script is free software; the Free Software Foundation
12053gives unlimited permission to copy, distribute and modify it."
12054
12055ac_pwd='$ac_pwd'
12056srcdir='$srcdir'
12057INSTALL='$INSTALL'
12058MKDIR_P='$MKDIR_P'
12059AWK='$AWK'
12060test -n "\$AWK" || AWK=awk
12061_ACEOF
12062
12063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12064# The default lists apply if the user does not specify any file.
12065ac_need_defaults=:
12066while test $# != 0
12067do
12068  case $1 in
12069  --*=?*)
12070    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12071    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12072    ac_shift=:
12073    ;;
12074  --*=)
12075    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12076    ac_optarg=
12077    ac_shift=:
12078    ;;
12079  *)
12080    ac_option=$1
12081    ac_optarg=$2
12082    ac_shift=shift
12083    ;;
12084  esac
12085
12086  case $ac_option in
12087  # Handling of the options.
12088  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12089    ac_cs_recheck=: ;;
12090  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12091    $as_echo "$ac_cs_version"; exit ;;
12092  --config | --confi | --conf | --con | --co | --c )
12093    $as_echo "$ac_cs_config"; exit ;;
12094  --debug | --debu | --deb | --de | --d | -d )
12095    debug=: ;;
12096  --file | --fil | --fi | --f )
12097    $ac_shift
12098    case $ac_optarg in
12099    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12100    '') as_fn_error $? "missing file argument" ;;
12101    esac
12102    as_fn_append CONFIG_FILES " '$ac_optarg'"
12103    ac_need_defaults=false;;
12104  --header | --heade | --head | --hea )
12105    $ac_shift
12106    case $ac_optarg in
12107    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12108    esac
12109    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12110    ac_need_defaults=false;;
12111  --he | --h)
12112    # Conflict between --help and --header
12113    as_fn_error $? "ambiguous option: \`$1'
12114Try \`$0 --help' for more information.";;
12115  --help | --hel | -h )
12116    $as_echo "$ac_cs_usage"; exit ;;
12117  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12118  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12119    ac_cs_silent=: ;;
12120
12121  # This is an error.
12122  -*) as_fn_error $? "unrecognized option: \`$1'
12123Try \`$0 --help' for more information." ;;
12124
12125  *) as_fn_append ac_config_targets " $1"
12126     ac_need_defaults=false ;;
12127
12128  esac
12129  shift
12130done
12131
12132ac_configure_extra_args=
12133
12134if $ac_cs_silent; then
12135  exec 6>/dev/null
12136  ac_configure_extra_args="$ac_configure_extra_args --silent"
12137fi
12138
12139_ACEOF
12140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12141if \$ac_cs_recheck; then
12142  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12143  shift
12144  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12145  CONFIG_SHELL='$SHELL'
12146  export CONFIG_SHELL
12147  exec "\$@"
12148fi
12149
12150_ACEOF
12151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12152exec 5>>config.log
12153{
12154  echo
12155  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12156## Running $as_me. ##
12157_ASBOX
12158  $as_echo "$ac_log"
12159} >&5
12160
12161_ACEOF
12162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12163#
12164# INIT-COMMANDS
12165#
12166AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12167
12168_ACEOF
12169
12170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12171
12172# Handling of arguments.
12173for ac_config_target in $ac_config_targets
12174do
12175  case $ac_config_target in
12176    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12177    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12178    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12179    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12180
12181  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12182  esac
12183done
12184
12185
12186# If the user did not use the arguments to specify the items to instantiate,
12187# then the envvar interface is used.  Set only those that are not.
12188# We use the long form for the default assignment because of an extremely
12189# bizarre bug on SunOS 4.1.3.
12190if $ac_need_defaults; then
12191  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12192  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12193  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12194fi
12195
12196# Have a temporary directory for convenience.  Make it in the build tree
12197# simply because there is no reason against having it here, and in addition,
12198# creating and moving files from /tmp can sometimes cause problems.
12199# Hook for its removal unless debugging.
12200# Note that there is a small window in which the directory will not be cleaned:
12201# after its creation but before its name has been assigned to `$tmp'.
12202$debug ||
12203{
12204  tmp= ac_tmp=
12205  trap 'exit_status=$?
12206  : "${ac_tmp:=$tmp}"
12207  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12208' 0
12209  trap 'as_fn_exit 1' 1 2 13 15
12210}
12211# Create a (secure) tmp directory for tmp files.
12212
12213{
12214  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12215  test -d "$tmp"
12216}  ||
12217{
12218  tmp=./conf$$-$RANDOM
12219  (umask 077 && mkdir "$tmp")
12220} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12221ac_tmp=$tmp
12222
12223# Set up the scripts for CONFIG_FILES section.
12224# No need to generate them if there are no CONFIG_FILES.
12225# This happens for instance with `./config.status config.h'.
12226if test -n "$CONFIG_FILES"; then
12227
12228
12229ac_cr=`echo X | tr X '\015'`
12230# On cygwin, bash can eat \r inside `` if the user requested igncr.
12231# But we know of no other shell where ac_cr would be empty at this
12232# point, so we can use a bashism as a fallback.
12233if test "x$ac_cr" = x; then
12234  eval ac_cr=\$\'\\r\'
12235fi
12236ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12237if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12238  ac_cs_awk_cr='\\r'
12239else
12240  ac_cs_awk_cr=$ac_cr
12241fi
12242
12243echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12244_ACEOF
12245
12246
12247{
12248  echo "cat >conf$$subs.awk <<_ACEOF" &&
12249  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12250  echo "_ACEOF"
12251} >conf$$subs.sh ||
12252  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12253ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12254ac_delim='%!_!# '
12255for ac_last_try in false false false false false :; do
12256  . ./conf$$subs.sh ||
12257    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12258
12259  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12260  if test $ac_delim_n = $ac_delim_num; then
12261    break
12262  elif $ac_last_try; then
12263    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12264  else
12265    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12266  fi
12267done
12268rm -f conf$$subs.sh
12269
12270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12271cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12272_ACEOF
12273sed -n '
12274h
12275s/^/S["/; s/!.*/"]=/
12276p
12277g
12278s/^[^!]*!//
12279:repl
12280t repl
12281s/'"$ac_delim"'$//
12282t delim
12283:nl
12284h
12285s/\(.\{148\}\)..*/\1/
12286t more1
12287s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12288p
12289n
12290b repl
12291:more1
12292s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12293p
12294g
12295s/.\{148\}//
12296t nl
12297:delim
12298h
12299s/\(.\{148\}\)..*/\1/
12300t more2
12301s/["\\]/\\&/g; s/^/"/; s/$/"/
12302p
12303b
12304:more2
12305s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12306p
12307g
12308s/.\{148\}//
12309t delim
12310' <conf$$subs.awk | sed '
12311/^[^""]/{
12312  N
12313  s/\n//
12314}
12315' >>$CONFIG_STATUS || ac_write_fail=1
12316rm -f conf$$subs.awk
12317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12318_ACAWK
12319cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12320  for (key in S) S_is_set[key] = 1
12321  FS = ""
12322
12323}
12324{
12325  line = $ 0
12326  nfields = split(line, field, "@")
12327  substed = 0
12328  len = length(field[1])
12329  for (i = 2; i < nfields; i++) {
12330    key = field[i]
12331    keylen = length(key)
12332    if (S_is_set[key]) {
12333      value = S[key]
12334      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12335      len += length(value) + length(field[++i])
12336      substed = 1
12337    } else
12338      len += 1 + keylen
12339  }
12340
12341  print line
12342}
12343
12344_ACAWK
12345_ACEOF
12346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12347if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12348  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12349else
12350  cat
12351fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12352  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12353_ACEOF
12354
12355# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12356# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12357# trailing colons and then remove the whole line if VPATH becomes empty
12358# (actually we leave an empty line to preserve line numbers).
12359if test "x$srcdir" = x.; then
12360  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12361h
12362s///
12363s/^/:/
12364s/[	 ]*$/:/
12365s/:\$(srcdir):/:/g
12366s/:\${srcdir}:/:/g
12367s/:@srcdir@:/:/g
12368s/^:*//
12369s/:*$//
12370x
12371s/\(=[	 ]*\).*/\1/
12372G
12373s/\n//
12374s/^[^=]*=[	 ]*$//
12375}'
12376fi
12377
12378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12379fi # test -n "$CONFIG_FILES"
12380
12381# Set up the scripts for CONFIG_HEADERS section.
12382# No need to generate them if there are no CONFIG_HEADERS.
12383# This happens for instance with `./config.status Makefile'.
12384if test -n "$CONFIG_HEADERS"; then
12385cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12386BEGIN {
12387_ACEOF
12388
12389# Transform confdefs.h into an awk script `defines.awk', embedded as
12390# here-document in config.status, that substitutes the proper values into
12391# config.h.in to produce config.h.
12392
12393# Create a delimiter string that does not exist in confdefs.h, to ease
12394# handling of long lines.
12395ac_delim='%!_!# '
12396for ac_last_try in false false :; do
12397  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12398  if test -z "$ac_tt"; then
12399    break
12400  elif $ac_last_try; then
12401    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12402  else
12403    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12404  fi
12405done
12406
12407# For the awk script, D is an array of macro values keyed by name,
12408# likewise P contains macro parameters if any.  Preserve backslash
12409# newline sequences.
12410
12411ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12412sed -n '
12413s/.\{148\}/&'"$ac_delim"'/g
12414t rset
12415:rset
12416s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12417t def
12418d
12419:def
12420s/\\$//
12421t bsnl
12422s/["\\]/\\&/g
12423s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12424D["\1"]=" \3"/p
12425s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12426d
12427:bsnl
12428s/["\\]/\\&/g
12429s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12430D["\1"]=" \3\\\\\\n"\\/p
12431t cont
12432s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12433t cont
12434d
12435:cont
12436n
12437s/.\{148\}/&'"$ac_delim"'/g
12438t clear
12439:clear
12440s/\\$//
12441t bsnlc
12442s/["\\]/\\&/g; s/^/"/; s/$/"/p
12443d
12444:bsnlc
12445s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12446b cont
12447' <confdefs.h | sed '
12448s/'"$ac_delim"'/"\\\
12449"/g' >>$CONFIG_STATUS || ac_write_fail=1
12450
12451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12452  for (key in D) D_is_set[key] = 1
12453  FS = ""
12454}
12455/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12456  line = \$ 0
12457  split(line, arg, " ")
12458  if (arg[1] == "#") {
12459    defundef = arg[2]
12460    mac1 = arg[3]
12461  } else {
12462    defundef = substr(arg[1], 2)
12463    mac1 = arg[2]
12464  }
12465  split(mac1, mac2, "(") #)
12466  macro = mac2[1]
12467  prefix = substr(line, 1, index(line, defundef) - 1)
12468  if (D_is_set[macro]) {
12469    # Preserve the white space surrounding the "#".
12470    print prefix "define", macro P[macro] D[macro]
12471    next
12472  } else {
12473    # Replace #undef with comments.  This is necessary, for example,
12474    # in the case of _POSIX_SOURCE, which is predefined and required
12475    # on some systems where configure will not decide to define it.
12476    if (defundef == "undef") {
12477      print "/*", prefix defundef, macro, "*/"
12478      next
12479    }
12480  }
12481}
12482{ print }
12483_ACAWK
12484_ACEOF
12485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12486  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12487fi # test -n "$CONFIG_HEADERS"
12488
12489
12490eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12491shift
12492for ac_tag
12493do
12494  case $ac_tag in
12495  :[FHLC]) ac_mode=$ac_tag; continue;;
12496  esac
12497  case $ac_mode$ac_tag in
12498  :[FHL]*:*);;
12499  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12500  :[FH]-) ac_tag=-:-;;
12501  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12502  esac
12503  ac_save_IFS=$IFS
12504  IFS=:
12505  set x $ac_tag
12506  IFS=$ac_save_IFS
12507  shift
12508  ac_file=$1
12509  shift
12510
12511  case $ac_mode in
12512  :L) ac_source=$1;;
12513  :[FH])
12514    ac_file_inputs=
12515    for ac_f
12516    do
12517      case $ac_f in
12518      -) ac_f="$ac_tmp/stdin";;
12519      *) # Look for the file first in the build tree, then in the source tree
12520	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12521	 # because $ac_f cannot contain `:'.
12522	 test -f "$ac_f" ||
12523	   case $ac_f in
12524	   [\\/$]*) false;;
12525	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12526	   esac ||
12527	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12528      esac
12529      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12530      as_fn_append ac_file_inputs " '$ac_f'"
12531    done
12532
12533    # Let's still pretend it is `configure' which instantiates (i.e., don't
12534    # use $as_me), people would be surprised to read:
12535    #    /* config.h.  Generated by config.status.  */
12536    configure_input='Generated from '`
12537	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12538	`' by configure.'
12539    if test x"$ac_file" != x-; then
12540      configure_input="$ac_file.  $configure_input"
12541      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12542$as_echo "$as_me: creating $ac_file" >&6;}
12543    fi
12544    # Neutralize special characters interpreted by sed in replacement strings.
12545    case $configure_input in #(
12546    *\&* | *\|* | *\\* )
12547       ac_sed_conf_input=`$as_echo "$configure_input" |
12548       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12549    *) ac_sed_conf_input=$configure_input;;
12550    esac
12551
12552    case $ac_tag in
12553    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12554      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12555    esac
12556    ;;
12557  esac
12558
12559  ac_dir=`$as_dirname -- "$ac_file" ||
12560$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12561	 X"$ac_file" : 'X\(//\)[^/]' \| \
12562	 X"$ac_file" : 'X\(//\)$' \| \
12563	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12564$as_echo X"$ac_file" |
12565    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12566	    s//\1/
12567	    q
12568	  }
12569	  /^X\(\/\/\)[^/].*/{
12570	    s//\1/
12571	    q
12572	  }
12573	  /^X\(\/\/\)$/{
12574	    s//\1/
12575	    q
12576	  }
12577	  /^X\(\/\).*/{
12578	    s//\1/
12579	    q
12580	  }
12581	  s/.*/./; q'`
12582  as_dir="$ac_dir"; as_fn_mkdir_p
12583  ac_builddir=.
12584
12585case "$ac_dir" in
12586.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12587*)
12588  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12589  # A ".." for each directory in $ac_dir_suffix.
12590  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12591  case $ac_top_builddir_sub in
12592  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12593  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12594  esac ;;
12595esac
12596ac_abs_top_builddir=$ac_pwd
12597ac_abs_builddir=$ac_pwd$ac_dir_suffix
12598# for backward compatibility:
12599ac_top_builddir=$ac_top_build_prefix
12600
12601case $srcdir in
12602  .)  # We are building in place.
12603    ac_srcdir=.
12604    ac_top_srcdir=$ac_top_builddir_sub
12605    ac_abs_top_srcdir=$ac_pwd ;;
12606  [\\/]* | ?:[\\/]* )  # Absolute name.
12607    ac_srcdir=$srcdir$ac_dir_suffix;
12608    ac_top_srcdir=$srcdir
12609    ac_abs_top_srcdir=$srcdir ;;
12610  *) # Relative name.
12611    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12612    ac_top_srcdir=$ac_top_build_prefix$srcdir
12613    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12614esac
12615ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12616
12617
12618  case $ac_mode in
12619  :F)
12620  #
12621  # CONFIG_FILE
12622  #
12623
12624  case $INSTALL in
12625  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12626  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12627  esac
12628  ac_MKDIR_P=$MKDIR_P
12629  case $MKDIR_P in
12630  [\\/$]* | ?:[\\/]* ) ;;
12631  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12632  esac
12633_ACEOF
12634
12635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12636# If the template does not know about datarootdir, expand it.
12637# FIXME: This hack should be removed a few years after 2.60.
12638ac_datarootdir_hack=; ac_datarootdir_seen=
12639ac_sed_dataroot='
12640/datarootdir/ {
12641  p
12642  q
12643}
12644/@datadir@/p
12645/@docdir@/p
12646/@infodir@/p
12647/@localedir@/p
12648/@mandir@/p'
12649case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12650*datarootdir*) ac_datarootdir_seen=yes;;
12651*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12652  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12653$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12654_ACEOF
12655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12656  ac_datarootdir_hack='
12657  s&@datadir@&$datadir&g
12658  s&@docdir@&$docdir&g
12659  s&@infodir@&$infodir&g
12660  s&@localedir@&$localedir&g
12661  s&@mandir@&$mandir&g
12662  s&\\\${datarootdir}&$datarootdir&g' ;;
12663esac
12664_ACEOF
12665
12666# Neutralize VPATH when `$srcdir' = `.'.
12667# Shell code in configure.ac might set extrasub.
12668# FIXME: do we really want to maintain this feature?
12669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12670ac_sed_extra="$ac_vpsub
12671$extrasub
12672_ACEOF
12673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12674:t
12675/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12676s|@configure_input@|$ac_sed_conf_input|;t t
12677s&@top_builddir@&$ac_top_builddir_sub&;t t
12678s&@top_build_prefix@&$ac_top_build_prefix&;t t
12679s&@srcdir@&$ac_srcdir&;t t
12680s&@abs_srcdir@&$ac_abs_srcdir&;t t
12681s&@top_srcdir@&$ac_top_srcdir&;t t
12682s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12683s&@builddir@&$ac_builddir&;t t
12684s&@abs_builddir@&$ac_abs_builddir&;t t
12685s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12686s&@INSTALL@&$ac_INSTALL&;t t
12687s&@MKDIR_P@&$ac_MKDIR_P&;t t
12688$ac_datarootdir_hack
12689"
12690eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12691  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12692
12693test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12694  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12695  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12696      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12697  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12698which seems to be undefined.  Please make sure it is defined" >&5
12699$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12700which seems to be undefined.  Please make sure it is defined" >&2;}
12701
12702  rm -f "$ac_tmp/stdin"
12703  case $ac_file in
12704  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12705  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12706  esac \
12707  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12708 ;;
12709  :H)
12710  #
12711  # CONFIG_HEADER
12712  #
12713  if test x"$ac_file" != x-; then
12714    {
12715      $as_echo "/* $configure_input  */" \
12716      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12717    } >"$ac_tmp/config.h" \
12718      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12719    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12720      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12721$as_echo "$as_me: $ac_file is unchanged" >&6;}
12722    else
12723      rm -f "$ac_file"
12724      mv "$ac_tmp/config.h" "$ac_file" \
12725	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12726    fi
12727  else
12728    $as_echo "/* $configure_input  */" \
12729      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12730      || as_fn_error $? "could not create -" "$LINENO" 5
12731  fi
12732# Compute "$ac_file"'s index in $config_headers.
12733_am_arg="$ac_file"
12734_am_stamp_count=1
12735for _am_header in $config_headers :; do
12736  case $_am_header in
12737    $_am_arg | $_am_arg:* )
12738      break ;;
12739    * )
12740      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12741  esac
12742done
12743echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12744$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12745	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12746	 X"$_am_arg" : 'X\(//\)$' \| \
12747	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12748$as_echo X"$_am_arg" |
12749    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12750	    s//\1/
12751	    q
12752	  }
12753	  /^X\(\/\/\)[^/].*/{
12754	    s//\1/
12755	    q
12756	  }
12757	  /^X\(\/\/\)$/{
12758	    s//\1/
12759	    q
12760	  }
12761	  /^X\(\/\).*/{
12762	    s//\1/
12763	    q
12764	  }
12765	  s/.*/./; q'`/stamp-h$_am_stamp_count
12766 ;;
12767
12768  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12769$as_echo "$as_me: executing $ac_file commands" >&6;}
12770 ;;
12771  esac
12772
12773
12774  case $ac_file$ac_mode in
12775    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12776  # Older Autoconf quotes --file arguments for eval, but not when files
12777  # are listed without --file.  Let's play safe and only enable the eval
12778  # if we detect the quoting.
12779  case $CONFIG_FILES in
12780  *\'*) eval set x "$CONFIG_FILES" ;;
12781  *)   set x $CONFIG_FILES ;;
12782  esac
12783  shift
12784  for mf
12785  do
12786    # Strip MF so we end up with the name of the file.
12787    mf=`echo "$mf" | sed -e 's/:.*$//'`
12788    # Check whether this is an Automake generated Makefile or not.
12789    # We used to match only the files named 'Makefile.in', but
12790    # some people rename them; so instead we look at the file content.
12791    # Grep'ing the first line is not enough: some people post-process
12792    # each Makefile.in and add a new line on top of each file to say so.
12793    # Grep'ing the whole file is not good either: AIX grep has a line
12794    # limit of 2048, but all sed's we know have understand at least 4000.
12795    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12796      dirpart=`$as_dirname -- "$mf" ||
12797$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12798	 X"$mf" : 'X\(//\)[^/]' \| \
12799	 X"$mf" : 'X\(//\)$' \| \
12800	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12801$as_echo X"$mf" |
12802    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12803	    s//\1/
12804	    q
12805	  }
12806	  /^X\(\/\/\)[^/].*/{
12807	    s//\1/
12808	    q
12809	  }
12810	  /^X\(\/\/\)$/{
12811	    s//\1/
12812	    q
12813	  }
12814	  /^X\(\/\).*/{
12815	    s//\1/
12816	    q
12817	  }
12818	  s/.*/./; q'`
12819    else
12820      continue
12821    fi
12822    # Extract the definition of DEPDIR, am__include, and am__quote
12823    # from the Makefile without running 'make'.
12824    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12825    test -z "$DEPDIR" && continue
12826    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12827    test -z "$am__include" && continue
12828    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12829    # Find all dependency output files, they are included files with
12830    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12831    # simplest approach to changing $(DEPDIR) to its actual value in the
12832    # expansion.
12833    for file in `sed -n "
12834      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12835	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12836      # Make sure the directory exists.
12837      test -f "$dirpart/$file" && continue
12838      fdir=`$as_dirname -- "$file" ||
12839$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12840	 X"$file" : 'X\(//\)[^/]' \| \
12841	 X"$file" : 'X\(//\)$' \| \
12842	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12843$as_echo X"$file" |
12844    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12845	    s//\1/
12846	    q
12847	  }
12848	  /^X\(\/\/\)[^/].*/{
12849	    s//\1/
12850	    q
12851	  }
12852	  /^X\(\/\/\)$/{
12853	    s//\1/
12854	    q
12855	  }
12856	  /^X\(\/\).*/{
12857	    s//\1/
12858	    q
12859	  }
12860	  s/.*/./; q'`
12861      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12862      # echo "creating $dirpart/$file"
12863      echo '# dummy' > "$dirpart/$file"
12864    done
12865  done
12866}
12867 ;;
12868
12869  esac
12870done # for ac_tag
12871
12872
12873as_fn_exit 0
12874_ACEOF
12875ac_clean_files=$ac_clean_files_save
12876
12877test $ac_write_fail = 0 ||
12878  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12879
12880
12881# configure is writing to config.log, and then calls config.status.
12882# config.status does its own redirection, appending to config.log.
12883# Unfortunately, on DOS this fails, as config.log is still kept open
12884# by configure, so config.status won't be able to write to it; its
12885# output is simply discarded.  So we exec the FD to /dev/null,
12886# effectively closing config.log, so it can be properly (re)opened and
12887# appended to by config.status.  When coming back to configure, we
12888# need to make the FD available again.
12889if test "$no_create" != yes; then
12890  ac_cs_success=:
12891  ac_config_status_args=
12892  test "$silent" = yes &&
12893    ac_config_status_args="$ac_config_status_args --quiet"
12894  exec 5>/dev/null
12895  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12896  exec 5>>config.log
12897  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12898  # would make configure fail if this is the last instruction.
12899  $ac_cs_success || as_fn_exit 1
12900fi
12901if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12902  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12903$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12904fi
12905
12906