configure revision ff143803
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xrefresh 1.0.6.
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='xrefresh'
583PACKAGE_TARNAME='xrefresh'
584PACKAGE_VERSION='1.0.6'
585PACKAGE_STRING='xrefresh 1.0.6'
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
630XREFRESH_LIBS
631XREFRESH_CFLAGS
632MAN_SUBSTS
633XORG_MAN_PAGE
634ADMIN_MAN_DIR
635DRIVER_MAN_DIR
636MISC_MAN_DIR
637FILE_MAN_DIR
638LIB_MAN_DIR
639APP_MAN_DIR
640ADMIN_MAN_SUFFIX
641DRIVER_MAN_SUFFIX
642MISC_MAN_SUFFIX
643FILE_MAN_SUFFIX
644LIB_MAN_SUFFIX
645APP_MAN_SUFFIX
646SED
647host_os
648host_vendor
649host_cpu
650host
651build_os
652build_vendor
653build_cpu
654build
655INSTALL_CMD
656PKG_CONFIG_LIBDIR
657PKG_CONFIG_PATH
658PKG_CONFIG
659CHANGELOG_CMD
660STRICT_CFLAGS
661CWARNFLAGS
662BASE_CFLAGS
663AM_BACKSLASH
664AM_DEFAULT_VERBOSITY
665AM_DEFAULT_V
666AM_V
667am__fastdepCC_FALSE
668am__fastdepCC_TRUE
669CCDEPMODE
670am__nodep
671AMDEPBACKSLASH
672AMDEP_FALSE
673AMDEP_TRUE
674am__quote
675am__include
676DEPDIR
677am__untar
678am__tar
679AMTAR
680am__leading_dot
681SET_MAKE
682AWK
683mkdir_p
684MKDIR_P
685INSTALL_STRIP_PROGRAM
686STRIP
687install_sh
688MAKEINFO
689AUTOHEADER
690AUTOMAKE
691AUTOCONF
692ACLOCAL
693VERSION
694PACKAGE
695CYGPATH_W
696am__isrc
697INSTALL_DATA
698INSTALL_SCRIPT
699INSTALL_PROGRAM
700EGREP
701GREP
702CPP
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710target_alias
711host_alias
712build_alias
713LIBS
714ECHO_T
715ECHO_N
716ECHO_C
717DEFS
718mandir
719localedir
720libdir
721psdir
722pdfdir
723dvidir
724htmldir
725infodir
726docdir
727oldincludedir
728includedir
729localstatedir
730sharedstatedir
731sysconfdir
732datadir
733datarootdir
734libexecdir
735sbindir
736bindir
737program_transform_name
738prefix
739exec_prefix
740PACKAGE_URL
741PACKAGE_BUGREPORT
742PACKAGE_STRING
743PACKAGE_VERSION
744PACKAGE_TARNAME
745PACKAGE_NAME
746PATH_SEPARATOR
747SHELL'
748ac_subst_files=''
749ac_user_opts='
750enable_option_checking
751enable_dependency_tracking
752enable_silent_rules
753enable_selective_werror
754enable_strict_compilation
755'
756      ac_precious_vars='build_alias
757host_alias
758target_alias
759CC
760CFLAGS
761LDFLAGS
762LIBS
763CPPFLAGS
764CPP
765PKG_CONFIG
766PKG_CONFIG_PATH
767PKG_CONFIG_LIBDIR
768XREFRESH_CFLAGS
769XREFRESH_LIBS'
770
771
772# Initialize some variables set by options.
773ac_init_help=
774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
777# The variables have the same names as the options, with
778# dashes changed to underlines.
779cache_file=/dev/null
780exec_prefix=NONE
781no_create=
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
790verbose=
791x_includes=NONE
792x_libraries=NONE
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
819
820ac_prev=
821ac_dashdash=
822for ac_option
823do
824  # If the previous option needs an argument, assign it.
825  if test -n "$ac_prev"; then
826    eval $ac_prev=\$ac_option
827    ac_prev=
828    continue
829  fi
830
831  case $ac_option in
832  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833  *=)   ac_optarg= ;;
834  *)    ac_optarg=yes ;;
835  esac
836
837  # Accept the important Cygnus configure options, so we can diagnose typos.
838
839  case $ac_dashdash$ac_option in
840  --)
841    ac_dashdash=yes ;;
842
843  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844    ac_prev=bindir ;;
845  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846    bindir=$ac_optarg ;;
847
848  -build | --build | --buil | --bui | --bu)
849    ac_prev=build_alias ;;
850  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851    build_alias=$ac_optarg ;;
852
853  -cache-file | --cache-file | --cache-fil | --cache-fi \
854  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855    ac_prev=cache_file ;;
856  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858    cache_file=$ac_optarg ;;
859
860  --config-cache | -C)
861    cache_file=config.cache ;;
862
863  -datadir | --datadir | --datadi | --datad)
864    ac_prev=datadir ;;
865  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866    datadir=$ac_optarg ;;
867
868  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869  | --dataroo | --dataro | --datar)
870    ac_prev=datarootdir ;;
871  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873    datarootdir=$ac_optarg ;;
874
875  -disable-* | --disable-*)
876    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877    # Reject names that are not valid shell variable names.
878    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879      as_fn_error $? "invalid feature name: $ac_useropt"
880    ac_useropt_orig=$ac_useropt
881    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882    case $ac_user_opts in
883      *"
884"enable_$ac_useropt"
885"*) ;;
886      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887	 ac_unrecognized_sep=', ';;
888    esac
889    eval enable_$ac_useropt=no ;;
890
891  -docdir | --docdir | --docdi | --doc | --do)
892    ac_prev=docdir ;;
893  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894    docdir=$ac_optarg ;;
895
896  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897    ac_prev=dvidir ;;
898  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899    dvidir=$ac_optarg ;;
900
901  -enable-* | --enable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=\$ac_optarg ;;
916
917  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919  | --exec | --exe | --ex)
920    ac_prev=exec_prefix ;;
921  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923  | --exec=* | --exe=* | --ex=*)
924    exec_prefix=$ac_optarg ;;
925
926  -gas | --gas | --ga | --g)
927    # Obsolete; use --with-gas.
928    with_gas=yes ;;
929
930  -help | --help | --hel | --he | -h)
931    ac_init_help=long ;;
932  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933    ac_init_help=recursive ;;
934  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935    ac_init_help=short ;;
936
937  -host | --host | --hos | --ho)
938    ac_prev=host_alias ;;
939  -host=* | --host=* | --hos=* | --ho=*)
940    host_alias=$ac_optarg ;;
941
942  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943    ac_prev=htmldir ;;
944  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945  | --ht=*)
946    htmldir=$ac_optarg ;;
947
948  -includedir | --includedir | --includedi | --included | --include \
949  | --includ | --inclu | --incl | --inc)
950    ac_prev=includedir ;;
951  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952  | --includ=* | --inclu=* | --incl=* | --inc=*)
953    includedir=$ac_optarg ;;
954
955  -infodir | --infodir | --infodi | --infod | --info | --inf)
956    ac_prev=infodir ;;
957  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958    infodir=$ac_optarg ;;
959
960  -libdir | --libdir | --libdi | --libd)
961    ac_prev=libdir ;;
962  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963    libdir=$ac_optarg ;;
964
965  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966  | --libexe | --libex | --libe)
967    ac_prev=libexecdir ;;
968  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969  | --libexe=* | --libex=* | --libe=*)
970    libexecdir=$ac_optarg ;;
971
972  -localedir | --localedir | --localedi | --localed | --locale)
973    ac_prev=localedir ;;
974  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975    localedir=$ac_optarg ;;
976
977  -localstatedir | --localstatedir | --localstatedi | --localstated \
978  | --localstate | --localstat | --localsta | --localst | --locals)
979    ac_prev=localstatedir ;;
980  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982    localstatedir=$ac_optarg ;;
983
984  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985    ac_prev=mandir ;;
986  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987    mandir=$ac_optarg ;;
988
989  -nfp | --nfp | --nf)
990    # Obsolete; use --without-fp.
991    with_fp=no ;;
992
993  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994  | --no-cr | --no-c | -n)
995    no_create=yes ;;
996
997  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999    no_recursion=yes ;;
1000
1001  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003  | --oldin | --oldi | --old | --ol | --o)
1004    ac_prev=oldincludedir ;;
1005  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008    oldincludedir=$ac_optarg ;;
1009
1010  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011    ac_prev=prefix ;;
1012  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013    prefix=$ac_optarg ;;
1014
1015  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016  | --program-pre | --program-pr | --program-p)
1017    ac_prev=program_prefix ;;
1018  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020    program_prefix=$ac_optarg ;;
1021
1022  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023  | --program-suf | --program-su | --program-s)
1024    ac_prev=program_suffix ;;
1025  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027    program_suffix=$ac_optarg ;;
1028
1029  -program-transform-name | --program-transform-name \
1030  | --program-transform-nam | --program-transform-na \
1031  | --program-transform-n | --program-transform- \
1032  | --program-transform | --program-transfor \
1033  | --program-transfo | --program-transf \
1034  | --program-trans | --program-tran \
1035  | --progr-tra | --program-tr | --program-t)
1036    ac_prev=program_transform_name ;;
1037  -program-transform-name=* | --program-transform-name=* \
1038  | --program-transform-nam=* | --program-transform-na=* \
1039  | --program-transform-n=* | --program-transform-=* \
1040  | --program-transform=* | --program-transfor=* \
1041  | --program-transfo=* | --program-transf=* \
1042  | --program-trans=* | --program-tran=* \
1043  | --progr-tra=* | --program-tr=* | --program-t=*)
1044    program_transform_name=$ac_optarg ;;
1045
1046  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047    ac_prev=pdfdir ;;
1048  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049    pdfdir=$ac_optarg ;;
1050
1051  -psdir | --psdir | --psdi | --psd | --ps)
1052    ac_prev=psdir ;;
1053  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054    psdir=$ac_optarg ;;
1055
1056  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057  | -silent | --silent | --silen | --sile | --sil)
1058    silent=yes ;;
1059
1060  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061    ac_prev=sbindir ;;
1062  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063  | --sbi=* | --sb=*)
1064    sbindir=$ac_optarg ;;
1065
1066  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068  | --sharedst | --shareds | --shared | --share | --shar \
1069  | --sha | --sh)
1070    ac_prev=sharedstatedir ;;
1071  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074  | --sha=* | --sh=*)
1075    sharedstatedir=$ac_optarg ;;
1076
1077  -site | --site | --sit)
1078    ac_prev=site ;;
1079  -site=* | --site=* | --sit=*)
1080    site=$ac_optarg ;;
1081
1082  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083    ac_prev=srcdir ;;
1084  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085    srcdir=$ac_optarg ;;
1086
1087  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088  | --syscon | --sysco | --sysc | --sys | --sy)
1089    ac_prev=sysconfdir ;;
1090  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092    sysconfdir=$ac_optarg ;;
1093
1094  -target | --target | --targe | --targ | --tar | --ta | --t)
1095    ac_prev=target_alias ;;
1096  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097    target_alias=$ac_optarg ;;
1098
1099  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100    verbose=yes ;;
1101
1102  -version | --version | --versio | --versi | --vers | -V)
1103    ac_init_version=: ;;
1104
1105  -with-* | --with-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=\$ac_optarg ;;
1120
1121  -without-* | --without-*)
1122    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123    # Reject names that are not valid shell variable names.
1124    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125      as_fn_error $? "invalid package name: $ac_useropt"
1126    ac_useropt_orig=$ac_useropt
1127    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128    case $ac_user_opts in
1129      *"
1130"with_$ac_useropt"
1131"*) ;;
1132      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133	 ac_unrecognized_sep=', ';;
1134    esac
1135    eval with_$ac_useropt=no ;;
1136
1137  --x)
1138    # Obsolete; use --with-x.
1139    with_x=yes ;;
1140
1141  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142  | --x-incl | --x-inc | --x-in | --x-i)
1143    ac_prev=x_includes ;;
1144  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146    x_includes=$ac_optarg ;;
1147
1148  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150    ac_prev=x_libraries ;;
1151  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153    x_libraries=$ac_optarg ;;
1154
1155  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156Try \`$0 --help' for more information"
1157    ;;
1158
1159  *=*)
1160    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161    # Reject names that are not valid shell variable names.
1162    case $ac_envvar in #(
1163      '' | [0-9]* | *[!_$as_cr_alnum]* )
1164      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165    esac
1166    eval $ac_envvar=\$ac_optarg
1167    export $ac_envvar ;;
1168
1169  *)
1170    # FIXME: should be removed in autoconf 3.0.
1171    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175    ;;
1176
1177  esac
1178done
1179
1180if test -n "$ac_prev"; then
1181  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182  as_fn_error $? "missing argument to $ac_option"
1183fi
1184
1185if test -n "$ac_unrecognized_opts"; then
1186  case $enable_option_checking in
1187    no) ;;
1188    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190  esac
1191fi
1192
1193# Check all directory arguments for consistency.
1194for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195		datadir sysconfdir sharedstatedir localstatedir includedir \
1196		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197		libdir localedir mandir
1198do
1199  eval ac_val=\$$ac_var
1200  # Remove trailing slashes.
1201  case $ac_val in
1202    */ )
1203      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204      eval $ac_var=\$ac_val;;
1205  esac
1206  # Be sure to have absolute directory names.
1207  case $ac_val in
1208    [\\/$]* | ?:[\\/]* )  continue;;
1209    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210  esac
1211  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223  if test "x$build_alias" = x; then
1224    cross_compiling=maybe
1225  elif test "x$build_alias" != "x$host_alias"; then
1226    cross_compiling=yes
1227  fi
1228fi
1229
1230ac_tool_prefix=
1231test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233test "$silent" = yes && exec 6>/dev/null
1234
1235
1236ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237ac_ls_di=`ls -di .` &&
1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239  as_fn_error $? "working directory cannot be determined"
1240test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241  as_fn_error $? "pwd does not report name of working directory"
1242
1243
1244# Find the source files, if location was not specified.
1245if test -z "$srcdir"; then
1246  ac_srcdir_defaulted=yes
1247  # Try the directory containing this script, then the parent directory.
1248  ac_confdir=`$as_dirname -- "$as_myself" ||
1249$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250	 X"$as_myself" : 'X\(//\)[^/]' \| \
1251	 X"$as_myself" : 'X\(//\)$' \| \
1252	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253$as_echo X"$as_myself" |
1254    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255	    s//\1/
1256	    q
1257	  }
1258	  /^X\(\/\/\)[^/].*/{
1259	    s//\1/
1260	    q
1261	  }
1262	  /^X\(\/\/\)$/{
1263	    s//\1/
1264	    q
1265	  }
1266	  /^X\(\/\).*/{
1267	    s//\1/
1268	    q
1269	  }
1270	  s/.*/./; q'`
1271  srcdir=$ac_confdir
1272  if test ! -r "$srcdir/$ac_unique_file"; then
1273    srcdir=..
1274  fi
1275else
1276  ac_srcdir_defaulted=no
1277fi
1278if test ! -r "$srcdir/$ac_unique_file"; then
1279  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281fi
1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283ac_abs_confdir=`(
1284	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285	pwd)`
1286# When building in place, set srcdir=.
1287if test "$ac_abs_confdir" = "$ac_pwd"; then
1288  srcdir=.
1289fi
1290# Remove unnecessary trailing slashes from srcdir.
1291# Double slashes in file names in object file debugging info
1292# mess up M-x gdb in Emacs.
1293case $srcdir in
1294*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295esac
1296for ac_var in $ac_precious_vars; do
1297  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298  eval ac_env_${ac_var}_value=\$${ac_var}
1299  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301done
1302
1303#
1304# Report the --help message.
1305#
1306if test "$ac_init_help" = "long"; then
1307  # Omit some internal or obsolete options to make the list less imposing.
1308  # This message is too long to be a string in the A/UX 3.1 sh.
1309  cat <<_ACEOF
1310\`configure' configures xrefresh 1.0.6 to adapt to many kinds of systems.
1311
1312Usage: $0 [OPTION]... [VAR=VALUE]...
1313
1314To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315VAR=VALUE.  See below for descriptions of some of the useful variables.
1316
1317Defaults for the options are specified in brackets.
1318
1319Configuration:
1320  -h, --help              display this help and exit
1321      --help=short        display options specific to this package
1322      --help=recursive    display the short help of all the included packages
1323  -V, --version           display version information and exit
1324  -q, --quiet, --silent   do not print \`checking ...' messages
1325      --cache-file=FILE   cache test results in FILE [disabled]
1326  -C, --config-cache      alias for \`--cache-file=config.cache'
1327  -n, --no-create         do not create output files
1328      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1329
1330Installation directories:
1331  --prefix=PREFIX         install architecture-independent files in PREFIX
1332                          [$ac_default_prefix]
1333  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1334                          [PREFIX]
1335
1336By default, \`make install' will install all the files in
1337\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1338an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339for instance \`--prefix=\$HOME'.
1340
1341For better control, use the options below.
1342
1343Fine tuning of the installation directories:
1344  --bindir=DIR            user executables [EPREFIX/bin]
1345  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1346  --libexecdir=DIR        program executables [EPREFIX/libexec]
1347  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1348  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1349  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1350  --libdir=DIR            object code libraries [EPREFIX/lib]
1351  --includedir=DIR        C header files [PREFIX/include]
1352  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1353  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1354  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1355  --infodir=DIR           info documentation [DATAROOTDIR/info]
1356  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1357  --mandir=DIR            man documentation [DATAROOTDIR/man]
1358  --docdir=DIR            documentation root [DATAROOTDIR/doc/xrefresh]
1359  --htmldir=DIR           html documentation [DOCDIR]
1360  --dvidir=DIR            dvi documentation [DOCDIR]
1361  --pdfdir=DIR            pdf documentation [DOCDIR]
1362  --psdir=DIR             ps documentation [DOCDIR]
1363_ACEOF
1364
1365  cat <<\_ACEOF
1366
1367Program names:
1368  --program-prefix=PREFIX            prepend PREFIX to installed program names
1369  --program-suffix=SUFFIX            append SUFFIX to installed program names
1370  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1371
1372System types:
1373  --build=BUILD     configure for building on BUILD [guessed]
1374  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1375_ACEOF
1376fi
1377
1378if test -n "$ac_init_help"; then
1379  case $ac_init_help in
1380     short | recursive ) echo "Configuration of xrefresh 1.0.6:";;
1381   esac
1382  cat <<\_ACEOF
1383
1384Optional Features:
1385  --disable-option-checking  ignore unrecognized --enable/--with options
1386  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1387  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1388  --enable-dependency-tracking
1389                          do not reject slow dependency extractors
1390  --disable-dependency-tracking
1391                          speeds up one-time build
1392  --enable-silent-rules   less verbose build output (undo: "make V=1")
1393  --disable-silent-rules  verbose build output (undo: "make V=0")
1394  --disable-selective-werror
1395                          Turn off selective compiler errors. (default:
1396                          enabled)
1397  --enable-strict-compilation
1398                          Enable all warnings from compiler and make them
1399                          errors (default: disabled)
1400
1401Some influential environment variables:
1402  CC          C compiler command
1403  CFLAGS      C compiler flags
1404  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405              nonstandard directory <lib dir>
1406  LIBS        libraries to pass to the linker, e.g. -l<library>
1407  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408              you have headers in a nonstandard directory <include dir>
1409  CPP         C preprocessor
1410  PKG_CONFIG  path to pkg-config utility
1411  PKG_CONFIG_PATH
1412              directories to add to pkg-config's search path
1413  PKG_CONFIG_LIBDIR
1414              path overriding pkg-config's built-in search path
1415  XREFRESH_CFLAGS
1416              C compiler flags for XREFRESH, overriding pkg-config
1417  XREFRESH_LIBS
1418              linker flags for XREFRESH, overriding pkg-config
1419
1420Use these variables to override the choices made by `configure' or to help
1421it to find libraries and programs with nonstandard names/locations.
1422
1423Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1424_ACEOF
1425ac_status=$?
1426fi
1427
1428if test "$ac_init_help" = "recursive"; then
1429  # If there are subdirs, report their specific --help.
1430  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431    test -d "$ac_dir" ||
1432      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433      continue
1434    ac_builddir=.
1435
1436case "$ac_dir" in
1437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438*)
1439  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440  # A ".." for each directory in $ac_dir_suffix.
1441  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442  case $ac_top_builddir_sub in
1443  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445  esac ;;
1446esac
1447ac_abs_top_builddir=$ac_pwd
1448ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449# for backward compatibility:
1450ac_top_builddir=$ac_top_build_prefix
1451
1452case $srcdir in
1453  .)  # We are building in place.
1454    ac_srcdir=.
1455    ac_top_srcdir=$ac_top_builddir_sub
1456    ac_abs_top_srcdir=$ac_pwd ;;
1457  [\\/]* | ?:[\\/]* )  # Absolute name.
1458    ac_srcdir=$srcdir$ac_dir_suffix;
1459    ac_top_srcdir=$srcdir
1460    ac_abs_top_srcdir=$srcdir ;;
1461  *) # Relative name.
1462    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463    ac_top_srcdir=$ac_top_build_prefix$srcdir
1464    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465esac
1466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468    cd "$ac_dir" || { ac_status=$?; continue; }
1469    # Check for guested configure.
1470    if test -f "$ac_srcdir/configure.gnu"; then
1471      echo &&
1472      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473    elif test -f "$ac_srcdir/configure"; then
1474      echo &&
1475      $SHELL "$ac_srcdir/configure" --help=recursive
1476    else
1477      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478    fi || ac_status=$?
1479    cd "$ac_pwd" || { ac_status=$?; break; }
1480  done
1481fi
1482
1483test -n "$ac_init_help" && exit $ac_status
1484if $ac_init_version; then
1485  cat <<\_ACEOF
1486xrefresh configure 1.0.6
1487generated by GNU Autoconf 2.69
1488
1489Copyright (C) 2012 Free Software Foundation, Inc.
1490This configure script is free software; the Free Software Foundation
1491gives unlimited permission to copy, distribute and modify it.
1492_ACEOF
1493  exit
1494fi
1495
1496## ------------------------ ##
1497## Autoconf initialization. ##
1498## ------------------------ ##
1499
1500# ac_fn_c_try_compile LINENO
1501# --------------------------
1502# Try to compile conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_compile ()
1504{
1505  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506  rm -f conftest.$ac_objext
1507  if { { ac_try="$ac_compile"
1508case "(($ac_try" in
1509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510  *) ac_try_echo=$ac_try;;
1511esac
1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513$as_echo "$ac_try_echo"; } >&5
1514  (eval "$ac_compile") 2>conftest.err
1515  ac_status=$?
1516  if test -s conftest.err; then
1517    grep -v '^ *+' conftest.err >conftest.er1
1518    cat conftest.er1 >&5
1519    mv -f conftest.er1 conftest.err
1520  fi
1521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522  test $ac_status = 0; } && {
1523	 test -z "$ac_c_werror_flag" ||
1524	 test ! -s conftest.err
1525       } && test -s conftest.$ac_objext; then :
1526  ac_retval=0
1527else
1528  $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531	ac_retval=1
1532fi
1533  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534  as_fn_set_status $ac_retval
1535
1536} # ac_fn_c_try_compile
1537
1538# ac_fn_c_try_cpp LINENO
1539# ----------------------
1540# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1541ac_fn_c_try_cpp ()
1542{
1543  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544  if { { ac_try="$ac_cpp conftest.$ac_ext"
1545case "(($ac_try" in
1546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547  *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1552  ac_status=$?
1553  if test -s conftest.err; then
1554    grep -v '^ *+' conftest.err >conftest.er1
1555    cat conftest.er1 >&5
1556    mv -f conftest.er1 conftest.err
1557  fi
1558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559  test $ac_status = 0; } > conftest.i && {
1560	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1561	 test ! -s conftest.err
1562       }; then :
1563  ac_retval=0
1564else
1565  $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
1567
1568    ac_retval=1
1569fi
1570  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571  as_fn_set_status $ac_retval
1572
1573} # ac_fn_c_try_cpp
1574
1575# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1576# -------------------------------------------------------
1577# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1578# the include files in INCLUDES and setting the cache variable VAR
1579# accordingly.
1580ac_fn_c_check_header_mongrel ()
1581{
1582  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583  if eval \${$3+:} false; then :
1584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585$as_echo_n "checking for $2... " >&6; }
1586if eval \${$3+:} false; then :
1587  $as_echo_n "(cached) " >&6
1588fi
1589eval ac_res=\$$3
1590	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591$as_echo "$ac_res" >&6; }
1592else
1593  # Is the header compilable?
1594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1595$as_echo_n "checking $2 usability... " >&6; }
1596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597/* end confdefs.h.  */
1598$4
1599#include <$2>
1600_ACEOF
1601if ac_fn_c_try_compile "$LINENO"; then :
1602  ac_header_compiler=yes
1603else
1604  ac_header_compiler=no
1605fi
1606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1608$as_echo "$ac_header_compiler" >&6; }
1609
1610# Is the header present?
1611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1612$as_echo_n "checking $2 presence... " >&6; }
1613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h.  */
1615#include <$2>
1616_ACEOF
1617if ac_fn_c_try_cpp "$LINENO"; then :
1618  ac_header_preproc=yes
1619else
1620  ac_header_preproc=no
1621fi
1622rm -f conftest.err conftest.i conftest.$ac_ext
1623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1624$as_echo "$ac_header_preproc" >&6; }
1625
1626# So?  What about this header?
1627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1628  yes:no: )
1629    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1630$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1631    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1633    ;;
1634  no:yes:* )
1635    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1636$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1637    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1638$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1639    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1640$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1641    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1642$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1643    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1645( $as_echo "## ---------------------------------------------------------------------- ##
1646## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1647## ---------------------------------------------------------------------- ##"
1648     ) | sed "s/^/$as_me: WARNING:     /" >&2
1649    ;;
1650esac
1651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652$as_echo_n "checking for $2... " >&6; }
1653if eval \${$3+:} false; then :
1654  $as_echo_n "(cached) " >&6
1655else
1656  eval "$3=\$ac_header_compiler"
1657fi
1658eval ac_res=\$$3
1659	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
1661fi
1662  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
1664} # ac_fn_c_check_header_mongrel
1665
1666# ac_fn_c_try_run LINENO
1667# ----------------------
1668# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669# that executables *can* be run.
1670ac_fn_c_try_run ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  if { { ac_try="$ac_link"
1674case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_link") 2>&5
1681  ac_status=$?
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684  { { case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_try") 2>&5
1691  ac_status=$?
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; }; }; then :
1694  ac_retval=0
1695else
1696  $as_echo "$as_me: program exited with status $ac_status" >&5
1697       $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700       ac_retval=$ac_status
1701fi
1702  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704  as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_run
1707
1708# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709# -------------------------------------------------------
1710# Tests whether HEADER exists and can be compiled using the include files in
1711# INCLUDES, setting the cache variable VAR accordingly.
1712ac_fn_c_check_header_compile ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716$as_echo_n "checking for $2... " >&6; }
1717if eval \${$3+:} false; then :
1718  $as_echo_n "(cached) " >&6
1719else
1720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h.  */
1722$4
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_compile "$LINENO"; then :
1726  eval "$3=yes"
1727else
1728  eval "$3=no"
1729fi
1730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731fi
1732eval ac_res=\$$3
1733	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734$as_echo "$ac_res" >&6; }
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737} # ac_fn_c_check_header_compile
1738
1739# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1740# ---------------------------------------------
1741# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1742# accordingly.
1743ac_fn_c_check_decl ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  as_decl_name=`echo $2|sed 's/ *(.*//'`
1747  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1749$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1750if eval \${$3+:} false; then :
1751  $as_echo_n "(cached) " >&6
1752else
1753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755$4
1756int
1757main ()
1758{
1759#ifndef $as_decl_name
1760#ifdef __cplusplus
1761  (void) $as_decl_use;
1762#else
1763  (void) $as_decl_name;
1764#endif
1765#endif
1766
1767  ;
1768  return 0;
1769}
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_decl
1784
1785# ac_fn_c_try_link LINENO
1786# -----------------------
1787# Try to link conftest.$ac_ext, and return whether this succeeded.
1788ac_fn_c_try_link ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  rm -f conftest.$ac_objext conftest$ac_exeext
1792  if { { ac_try="$ac_link"
1793case "(($ac_try" in
1794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795  *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799  (eval "$ac_link") 2>conftest.err
1800  ac_status=$?
1801  if test -s conftest.err; then
1802    grep -v '^ *+' conftest.err >conftest.er1
1803    cat conftest.er1 >&5
1804    mv -f conftest.er1 conftest.err
1805  fi
1806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807  test $ac_status = 0; } && {
1808	 test -z "$ac_c_werror_flag" ||
1809	 test ! -s conftest.err
1810       } && test -s conftest$ac_exeext && {
1811	 test "$cross_compiling" = yes ||
1812	 test -x conftest$ac_exeext
1813       }; then :
1814  ac_retval=0
1815else
1816  $as_echo "$as_me: failed program was:" >&5
1817sed 's/^/| /' conftest.$ac_ext >&5
1818
1819	ac_retval=1
1820fi
1821  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823  # interfere with the next link command; also delete a directory that is
1824  # left behind by Apple's compiler.  We do this before executing the actions.
1825  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827  as_fn_set_status $ac_retval
1828
1829} # ac_fn_c_try_link
1830
1831# ac_fn_c_check_func LINENO FUNC VAR
1832# ----------------------------------
1833# Tests whether FUNC exists, setting the cache variable VAR accordingly
1834ac_fn_c_check_func ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838$as_echo_n "checking for $2... " >&6; }
1839if eval \${$3+:} false; then :
1840  $as_echo_n "(cached) " >&6
1841else
1842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1846#define $2 innocuous_$2
1847
1848/* System header to define __stub macros and hopefully few prototypes,
1849    which can conflict with char $2 (); below.
1850    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851    <limits.h> exists even on freestanding compilers.  */
1852
1853#ifdef __STDC__
1854# include <limits.h>
1855#else
1856# include <assert.h>
1857#endif
1858
1859#undef $2
1860
1861/* Override any GCC internal prototype to avoid an error.
1862   Use char because int might match the return type of a GCC
1863   builtin and then its argument prototype would still apply.  */
1864#ifdef __cplusplus
1865extern "C"
1866#endif
1867char $2 ();
1868/* The GNU C library defines this for functions which it implements
1869    to always fail with ENOSYS.  Some functions are actually named
1870    something starting with __ and the normal name is an alias.  */
1871#if defined __stub_$2 || defined __stub___$2
1872choke me
1873#endif
1874
1875int
1876main ()
1877{
1878return $2 ();
1879  ;
1880  return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_link "$LINENO"; then :
1884  eval "$3=yes"
1885else
1886  eval "$3=no"
1887fi
1888rm -f core conftest.err conftest.$ac_objext \
1889    conftest$ac_exeext conftest.$ac_ext
1890fi
1891eval ac_res=\$$3
1892	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896} # ac_fn_c_check_func
1897cat >config.log <<_ACEOF
1898This file contains any messages produced by compilers while
1899running configure, to aid debugging if configure makes a mistake.
1900
1901It was created by xrefresh $as_me 1.0.6, which was
1902generated by GNU Autoconf 2.69.  Invocation command line was
1903
1904  $ $0 $@
1905
1906_ACEOF
1907exec 5>>config.log
1908{
1909cat <<_ASUNAME
1910## --------- ##
1911## Platform. ##
1912## --------- ##
1913
1914hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1922
1923/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1924/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1925/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1927/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1928/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1929/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1930
1931_ASUNAME
1932
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938    $as_echo "PATH: $as_dir"
1939  done
1940IFS=$as_save_IFS
1941
1942} >&5
1943
1944cat >&5 <<_ACEOF
1945
1946
1947## ----------- ##
1948## Core tests. ##
1949## ----------- ##
1950
1951_ACEOF
1952
1953
1954# Keep a trace of the command line.
1955# Strip out --no-create and --no-recursion so they do not pile up.
1956# Strip out --silent because we don't want to record it for future runs.
1957# Also quote any args containing shell meta-characters.
1958# Make two passes to allow for proper duplicate-argument suppression.
1959ac_configure_args=
1960ac_configure_args0=
1961ac_configure_args1=
1962ac_must_keep_next=false
1963for ac_pass in 1 2
1964do
1965  for ac_arg
1966  do
1967    case $ac_arg in
1968    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970    | -silent | --silent | --silen | --sile | --sil)
1971      continue ;;
1972    *\'*)
1973      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1974    esac
1975    case $ac_pass in
1976    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1977    2)
1978      as_fn_append ac_configure_args1 " '$ac_arg'"
1979      if test $ac_must_keep_next = true; then
1980	ac_must_keep_next=false # Got value, back to normal.
1981      else
1982	case $ac_arg in
1983	  *=* | --config-cache | -C | -disable-* | --disable-* \
1984	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986	  | -with-* | --with-* | -without-* | --without-* | --x)
1987	    case "$ac_configure_args0 " in
1988	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1989	    esac
1990	    ;;
1991	  -* ) ac_must_keep_next=true ;;
1992	esac
1993      fi
1994      as_fn_append ac_configure_args " '$ac_arg'"
1995      ;;
1996    esac
1997  done
1998done
1999{ ac_configure_args0=; unset ac_configure_args0;}
2000{ ac_configure_args1=; unset ac_configure_args1;}
2001
2002# When interrupted or exit'd, cleanup temporary files, and complete
2003# config.log.  We remove comments because anyway the quotes in there
2004# would cause problems or look ugly.
2005# WARNING: Use '\'' to represent an apostrophe within the trap.
2006# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2007trap 'exit_status=$?
2008  # Save into config.log some information that might help in debugging.
2009  {
2010    echo
2011
2012    $as_echo "## ---------------- ##
2013## Cache variables. ##
2014## ---------------- ##"
2015    echo
2016    # The following way of writing the cache mishandles newlines in values,
2017(
2018  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2019    eval ac_val=\$$ac_var
2020    case $ac_val in #(
2021    *${as_nl}*)
2022      case $ac_var in #(
2023      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2024$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2025      esac
2026      case $ac_var in #(
2027      _ | IFS | as_nl) ;; #(
2028      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2029      *) { eval $ac_var=; unset $ac_var;} ;;
2030      esac ;;
2031    esac
2032  done
2033  (set) 2>&1 |
2034    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2035    *${as_nl}ac_space=\ *)
2036      sed -n \
2037	"s/'\''/'\''\\\\'\'''\''/g;
2038	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2039      ;; #(
2040    *)
2041      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2042      ;;
2043    esac |
2044    sort
2045)
2046    echo
2047
2048    $as_echo "## ----------------- ##
2049## Output variables. ##
2050## ----------------- ##"
2051    echo
2052    for ac_var in $ac_subst_vars
2053    do
2054      eval ac_val=\$$ac_var
2055      case $ac_val in
2056      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057      esac
2058      $as_echo "$ac_var='\''$ac_val'\''"
2059    done | sort
2060    echo
2061
2062    if test -n "$ac_subst_files"; then
2063      $as_echo "## ------------------- ##
2064## File substitutions. ##
2065## ------------------- ##"
2066      echo
2067      for ac_var in $ac_subst_files
2068      do
2069	eval ac_val=\$$ac_var
2070	case $ac_val in
2071	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072	esac
2073	$as_echo "$ac_var='\''$ac_val'\''"
2074      done | sort
2075      echo
2076    fi
2077
2078    if test -s confdefs.h; then
2079      $as_echo "## ----------- ##
2080## confdefs.h. ##
2081## ----------- ##"
2082      echo
2083      cat confdefs.h
2084      echo
2085    fi
2086    test "$ac_signal" != 0 &&
2087      $as_echo "$as_me: caught signal $ac_signal"
2088    $as_echo "$as_me: exit $exit_status"
2089  } >&5
2090  rm -f core *.core core.conftest.* &&
2091    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092    exit $exit_status
2093' 0
2094for ac_signal in 1 2 13 15; do
2095  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096done
2097ac_signal=0
2098
2099# confdefs.h avoids OS command line length limits that DEFS can exceed.
2100rm -f -r conftest* confdefs.h
2101
2102$as_echo "/* confdefs.h */" > confdefs.h
2103
2104# Predefined preprocessor variables.
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_NAME "$PACKAGE_NAME"
2108_ACEOF
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_VERSION "$PACKAGE_VERSION"
2116_ACEOF
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_STRING "$PACKAGE_STRING"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_URL "$PACKAGE_URL"
2128_ACEOF
2129
2130
2131# Let the site file select an alternate cache file if it wants to.
2132# Prefer an explicitly selected file to automatically selected ones.
2133ac_site_file1=NONE
2134ac_site_file2=NONE
2135if test -n "$CONFIG_SITE"; then
2136  # We do not want a PATH search for config.site.
2137  case $CONFIG_SITE in #((
2138    -*)  ac_site_file1=./$CONFIG_SITE;;
2139    */*) ac_site_file1=$CONFIG_SITE;;
2140    *)   ac_site_file1=./$CONFIG_SITE;;
2141  esac
2142elif test "x$prefix" != xNONE; then
2143  ac_site_file1=$prefix/share/config.site
2144  ac_site_file2=$prefix/etc/config.site
2145else
2146  ac_site_file1=$ac_default_prefix/share/config.site
2147  ac_site_file2=$ac_default_prefix/etc/config.site
2148fi
2149for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2150do
2151  test "x$ac_site_file" = xNONE && continue
2152  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2153    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2154$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2155    sed 's/^/| /' "$ac_site_file" >&5
2156    . "$ac_site_file" \
2157      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159as_fn_error $? "failed to load site script $ac_site_file
2160See \`config.log' for more details" "$LINENO" 5; }
2161  fi
2162done
2163
2164if test -r "$cache_file"; then
2165  # Some versions of bash will fail to source /dev/null (special files
2166  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2167  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2168    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169$as_echo "$as_me: loading cache $cache_file" >&6;}
2170    case $cache_file in
2171      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172      *)                      . "./$cache_file";;
2173    esac
2174  fi
2175else
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177$as_echo "$as_me: creating cache $cache_file" >&6;}
2178  >$cache_file
2179fi
2180
2181# Check that the precious variables saved in the cache have kept the same
2182# value.
2183ac_cache_corrupted=false
2184for ac_var in $ac_precious_vars; do
2185  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2186  eval ac_new_set=\$ac_env_${ac_var}_set
2187  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2188  eval ac_new_val=\$ac_env_${ac_var}_value
2189  case $ac_old_set,$ac_new_set in
2190    set,)
2191      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2192$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2193      ac_cache_corrupted=: ;;
2194    ,set)
2195      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2196$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2197      ac_cache_corrupted=: ;;
2198    ,);;
2199    *)
2200      if test "x$ac_old_val" != "x$ac_new_val"; then
2201	# differences in whitespace do not lead to failure.
2202	ac_old_val_w=`echo x $ac_old_val`
2203	ac_new_val_w=`echo x $ac_new_val`
2204	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2205	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2206$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2207	  ac_cache_corrupted=:
2208	else
2209	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2210$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2211	  eval $ac_var=\$ac_old_val
2212	fi
2213	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2214$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2215	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2216$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2217      fi;;
2218  esac
2219  # Pass precious variables to config.status.
2220  if test "$ac_new_set" = set; then
2221    case $ac_new_val in
2222    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2223    *) ac_arg=$ac_var=$ac_new_val ;;
2224    esac
2225    case " $ac_configure_args " in
2226      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2227      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2228    esac
2229  fi
2230done
2231if $ac_cache_corrupted; then
2232  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2235$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2236  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2237fi
2238## -------------------- ##
2239## Main body of script. ##
2240## -------------------- ##
2241
2242ac_ext=c
2243ac_cpp='$CPP $CPPFLAGS'
2244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248
2249
2250ac_config_headers="$ac_config_headers config.h"
2251
2252ac_aux_dir=
2253for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2254  if test -f "$ac_dir/install-sh"; then
2255    ac_aux_dir=$ac_dir
2256    ac_install_sh="$ac_aux_dir/install-sh -c"
2257    break
2258  elif test -f "$ac_dir/install.sh"; then
2259    ac_aux_dir=$ac_dir
2260    ac_install_sh="$ac_aux_dir/install.sh -c"
2261    break
2262  elif test -f "$ac_dir/shtool"; then
2263    ac_aux_dir=$ac_dir
2264    ac_install_sh="$ac_aux_dir/shtool install -c"
2265    break
2266  fi
2267done
2268if test -z "$ac_aux_dir"; then
2269  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2270fi
2271
2272# These three variables are undocumented and unsupported,
2273# and are intended to be withdrawn in a future Autoconf release.
2274# They can cause serious problems if a builder's source tree is in a directory
2275# whose full name contains unusual characters.
2276ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2277ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2278ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2279
2280
2281# Expand $ac_aux_dir to an absolute path.
2282am_aux_dir=`cd "$ac_aux_dir" && pwd`
2283
2284ac_ext=c
2285ac_cpp='$CPP $CPPFLAGS'
2286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289if test -n "$ac_tool_prefix"; then
2290  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2291set dummy ${ac_tool_prefix}gcc; ac_word=$2
2292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2293$as_echo_n "checking for $ac_word... " >&6; }
2294if ${ac_cv_prog_CC+:} false; then :
2295  $as_echo_n "(cached) " >&6
2296else
2297  if test -n "$CC"; then
2298  ac_cv_prog_CC="$CC" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303  IFS=$as_save_IFS
2304  test -z "$as_dir" && as_dir=.
2305    for ac_exec_ext in '' $ac_executable_extensions; do
2306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2309    break 2
2310  fi
2311done
2312  done
2313IFS=$as_save_IFS
2314
2315fi
2316fi
2317CC=$ac_cv_prog_CC
2318if test -n "$CC"; then
2319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2320$as_echo "$CC" >&6; }
2321else
2322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2323$as_echo "no" >&6; }
2324fi
2325
2326
2327fi
2328if test -z "$ac_cv_prog_CC"; then
2329  ac_ct_CC=$CC
2330  # Extract the first word of "gcc", so it can be a program name with args.
2331set dummy gcc; ac_word=$2
2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2333$as_echo_n "checking for $ac_word... " >&6; }
2334if ${ac_cv_prog_ac_ct_CC+:} false; then :
2335  $as_echo_n "(cached) " >&6
2336else
2337  if test -n "$ac_ct_CC"; then
2338  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2339else
2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343  IFS=$as_save_IFS
2344  test -z "$as_dir" && as_dir=.
2345    for ac_exec_ext in '' $ac_executable_extensions; do
2346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347    ac_cv_prog_ac_ct_CC="gcc"
2348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2349    break 2
2350  fi
2351done
2352  done
2353IFS=$as_save_IFS
2354
2355fi
2356fi
2357ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358if test -n "$ac_ct_CC"; then
2359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2360$as_echo "$ac_ct_CC" >&6; }
2361else
2362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2363$as_echo "no" >&6; }
2364fi
2365
2366  if test "x$ac_ct_CC" = x; then
2367    CC=""
2368  else
2369    case $cross_compiling:$ac_tool_warned in
2370yes:)
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2373ac_tool_warned=yes ;;
2374esac
2375    CC=$ac_ct_CC
2376  fi
2377else
2378  CC="$ac_cv_prog_CC"
2379fi
2380
2381if test -z "$CC"; then
2382          if test -n "$ac_tool_prefix"; then
2383    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2384set dummy ${ac_tool_prefix}cc; ac_word=$2
2385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2386$as_echo_n "checking for $ac_word... " >&6; }
2387if ${ac_cv_prog_CC+:} false; then :
2388  $as_echo_n "(cached) " >&6
2389else
2390  if test -n "$CC"; then
2391  ac_cv_prog_CC="$CC" # Let the user override the test.
2392else
2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394for as_dir in $PATH
2395do
2396  IFS=$as_save_IFS
2397  test -z "$as_dir" && as_dir=.
2398    for ac_exec_ext in '' $ac_executable_extensions; do
2399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400    ac_cv_prog_CC="${ac_tool_prefix}cc"
2401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2402    break 2
2403  fi
2404done
2405  done
2406IFS=$as_save_IFS
2407
2408fi
2409fi
2410CC=$ac_cv_prog_CC
2411if test -n "$CC"; then
2412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2413$as_echo "$CC" >&6; }
2414else
2415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2416$as_echo "no" >&6; }
2417fi
2418
2419
2420  fi
2421fi
2422if test -z "$CC"; then
2423  # Extract the first word of "cc", so it can be a program name with args.
2424set dummy cc; ac_word=$2
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426$as_echo_n "checking for $ac_word... " >&6; }
2427if ${ac_cv_prog_CC+:} false; then :
2428  $as_echo_n "(cached) " >&6
2429else
2430  if test -n "$CC"; then
2431  ac_cv_prog_CC="$CC" # Let the user override the test.
2432else
2433  ac_prog_rejected=no
2434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437  IFS=$as_save_IFS
2438  test -z "$as_dir" && as_dir=.
2439    for ac_exec_ext in '' $ac_executable_extensions; do
2440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2441    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2442       ac_prog_rejected=yes
2443       continue
2444     fi
2445    ac_cv_prog_CC="cc"
2446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2447    break 2
2448  fi
2449done
2450  done
2451IFS=$as_save_IFS
2452
2453if test $ac_prog_rejected = yes; then
2454  # We found a bogon in the path, so make sure we never use it.
2455  set dummy $ac_cv_prog_CC
2456  shift
2457  if test $# != 0; then
2458    # We chose a different compiler from the bogus one.
2459    # However, it has the same basename, so the bogon will be chosen
2460    # first if we set CC to just the basename; use the full file name.
2461    shift
2462    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2463  fi
2464fi
2465fi
2466fi
2467CC=$ac_cv_prog_CC
2468if test -n "$CC"; then
2469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2470$as_echo "$CC" >&6; }
2471else
2472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2473$as_echo "no" >&6; }
2474fi
2475
2476
2477fi
2478if test -z "$CC"; then
2479  if test -n "$ac_tool_prefix"; then
2480  for ac_prog in cl.exe
2481  do
2482    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485$as_echo_n "checking for $ac_word... " >&6; }
2486if ${ac_cv_prog_CC+:} false; then :
2487  $as_echo_n "(cached) " >&6
2488else
2489  if test -n "$CC"; then
2490  ac_cv_prog_CC="$CC" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497    for ac_exec_ext in '' $ac_executable_extensions; do
2498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501    break 2
2502  fi
2503done
2504  done
2505IFS=$as_save_IFS
2506
2507fi
2508fi
2509CC=$ac_cv_prog_CC
2510if test -n "$CC"; then
2511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2512$as_echo "$CC" >&6; }
2513else
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515$as_echo "no" >&6; }
2516fi
2517
2518
2519    test -n "$CC" && break
2520  done
2521fi
2522if test -z "$CC"; then
2523  ac_ct_CC=$CC
2524  for ac_prog in cl.exe
2525do
2526  # Extract the first word of "$ac_prog", so it can be a program name with args.
2527set dummy $ac_prog; ac_word=$2
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529$as_echo_n "checking for $ac_word... " >&6; }
2530if ${ac_cv_prog_ac_ct_CC+:} false; then :
2531  $as_echo_n "(cached) " >&6
2532else
2533  if test -n "$ac_ct_CC"; then
2534  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539  IFS=$as_save_IFS
2540  test -z "$as_dir" && as_dir=.
2541    for ac_exec_ext in '' $ac_executable_extensions; do
2542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543    ac_cv_prog_ac_ct_CC="$ac_prog"
2544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545    break 2
2546  fi
2547done
2548  done
2549IFS=$as_save_IFS
2550
2551fi
2552fi
2553ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554if test -n "$ac_ct_CC"; then
2555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2556$as_echo "$ac_ct_CC" >&6; }
2557else
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559$as_echo "no" >&6; }
2560fi
2561
2562
2563  test -n "$ac_ct_CC" && break
2564done
2565
2566  if test "x$ac_ct_CC" = x; then
2567    CC=""
2568  else
2569    case $cross_compiling:$ac_tool_warned in
2570yes:)
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2573ac_tool_warned=yes ;;
2574esac
2575    CC=$ac_ct_CC
2576  fi
2577fi
2578
2579fi
2580
2581
2582test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584as_fn_error $? "no acceptable C compiler found in \$PATH
2585See \`config.log' for more details" "$LINENO" 5; }
2586
2587# Provide some information about the compiler.
2588$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2589set X $ac_compile
2590ac_compiler=$2
2591for ac_option in --version -v -V -qversion; do
2592  { { ac_try="$ac_compiler $ac_option >&5"
2593case "(($ac_try" in
2594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595  *) ac_try_echo=$ac_try;;
2596esac
2597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2598$as_echo "$ac_try_echo"; } >&5
2599  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2600  ac_status=$?
2601  if test -s conftest.err; then
2602    sed '10a\
2603... rest of stderr output deleted ...
2604         10q' conftest.err >conftest.er1
2605    cat conftest.er1 >&5
2606  fi
2607  rm -f conftest.er1 conftest.err
2608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2609  test $ac_status = 0; }
2610done
2611
2612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h.  */
2614
2615int
2616main ()
2617{
2618
2619  ;
2620  return 0;
2621}
2622_ACEOF
2623ac_clean_files_save=$ac_clean_files
2624ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2625# Try to create an executable without -o first, disregard a.out.
2626# It will help us diagnose broken compilers, and finding out an intuition
2627# of exeext.
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2629$as_echo_n "checking whether the C compiler works... " >&6; }
2630ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2631
2632# The possible output files:
2633ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2634
2635ac_rmfiles=
2636for ac_file in $ac_files
2637do
2638  case $ac_file in
2639    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2640    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2641  esac
2642done
2643rm -f $ac_rmfiles
2644
2645if { { ac_try="$ac_link_default"
2646case "(($ac_try" in
2647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648  *) ac_try_echo=$ac_try;;
2649esac
2650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2651$as_echo "$ac_try_echo"; } >&5
2652  (eval "$ac_link_default") 2>&5
2653  ac_status=$?
2654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2655  test $ac_status = 0; }; then :
2656  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2657# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2658# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2659# so that the user can short-circuit this test for compilers unknown to
2660# Autoconf.
2661for ac_file in $ac_files ''
2662do
2663  test -f "$ac_file" || continue
2664  case $ac_file in
2665    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2666	;;
2667    [ab].out )
2668	# We found the default executable, but exeext='' is most
2669	# certainly right.
2670	break;;
2671    *.* )
2672	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2673	then :; else
2674	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2675	fi
2676	# We set ac_cv_exeext here because the later test for it is not
2677	# safe: cross compilers may not add the suffix if given an `-o'
2678	# argument, so we may need to know it at that point already.
2679	# Even if this section looks crufty: it has the advantage of
2680	# actually working.
2681	break;;
2682    * )
2683	break;;
2684  esac
2685done
2686test "$ac_cv_exeext" = no && ac_cv_exeext=
2687
2688else
2689  ac_file=''
2690fi
2691if test -z "$ac_file"; then :
2692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693$as_echo "no" >&6; }
2694$as_echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
2696
2697{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699as_fn_error 77 "C compiler cannot create executables
2700See \`config.log' for more details" "$LINENO" 5; }
2701else
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2703$as_echo "yes" >&6; }
2704fi
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2706$as_echo_n "checking for C compiler default output file name... " >&6; }
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2708$as_echo "$ac_file" >&6; }
2709ac_exeext=$ac_cv_exeext
2710
2711rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2712ac_clean_files=$ac_clean_files_save
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2714$as_echo_n "checking for suffix of executables... " >&6; }
2715if { { ac_try="$ac_link"
2716case "(($ac_try" in
2717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718  *) ac_try_echo=$ac_try;;
2719esac
2720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2721$as_echo "$ac_try_echo"; } >&5
2722  (eval "$ac_link") 2>&5
2723  ac_status=$?
2724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2725  test $ac_status = 0; }; then :
2726  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2727# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2728# work properly (i.e., refer to `conftest.exe'), while it won't with
2729# `rm'.
2730for ac_file in conftest.exe conftest conftest.*; do
2731  test -f "$ac_file" || continue
2732  case $ac_file in
2733    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2734    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2735	  break;;
2736    * ) break;;
2737  esac
2738done
2739else
2740  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2743See \`config.log' for more details" "$LINENO" 5; }
2744fi
2745rm -f conftest conftest$ac_cv_exeext
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2747$as_echo "$ac_cv_exeext" >&6; }
2748
2749rm -f conftest.$ac_ext
2750EXEEXT=$ac_cv_exeext
2751ac_exeext=$EXEEXT
2752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753/* end confdefs.h.  */
2754#include <stdio.h>
2755int
2756main ()
2757{
2758FILE *f = fopen ("conftest.out", "w");
2759 return ferror (f) || fclose (f) != 0;
2760
2761  ;
2762  return 0;
2763}
2764_ACEOF
2765ac_clean_files="$ac_clean_files conftest.out"
2766# Check that the compiler produces executables we can run.  If not, either
2767# the compiler is broken, or we cross compile.
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2769$as_echo_n "checking whether we are cross compiling... " >&6; }
2770if test "$cross_compiling" != yes; then
2771  { { ac_try="$ac_link"
2772case "(($ac_try" in
2773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774  *) ac_try_echo=$ac_try;;
2775esac
2776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2777$as_echo "$ac_try_echo"; } >&5
2778  (eval "$ac_link") 2>&5
2779  ac_status=$?
2780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2781  test $ac_status = 0; }
2782  if { ac_try='./conftest$ac_cv_exeext'
2783  { { case "(($ac_try" in
2784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785  *) ac_try_echo=$ac_try;;
2786esac
2787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788$as_echo "$ac_try_echo"; } >&5
2789  (eval "$ac_try") 2>&5
2790  ac_status=$?
2791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792  test $ac_status = 0; }; }; then
2793    cross_compiling=no
2794  else
2795    if test "$cross_compiling" = maybe; then
2796	cross_compiling=yes
2797    else
2798	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2800as_fn_error $? "cannot run C compiled programs.
2801If you meant to cross compile, use \`--host'.
2802See \`config.log' for more details" "$LINENO" 5; }
2803    fi
2804  fi
2805fi
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2807$as_echo "$cross_compiling" >&6; }
2808
2809rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2810ac_clean_files=$ac_clean_files_save
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2812$as_echo_n "checking for suffix of object files... " >&6; }
2813if ${ac_cv_objext+:} false; then :
2814  $as_echo_n "(cached) " >&6
2815else
2816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817/* end confdefs.h.  */
2818
2819int
2820main ()
2821{
2822
2823  ;
2824  return 0;
2825}
2826_ACEOF
2827rm -f conftest.o conftest.obj
2828if { { ac_try="$ac_compile"
2829case "(($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_compile") 2>&5
2836  ac_status=$?
2837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2838  test $ac_status = 0; }; then :
2839  for ac_file in conftest.o conftest.obj conftest.*; do
2840  test -f "$ac_file" || continue;
2841  case $ac_file in
2842    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2843    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2844       break;;
2845  esac
2846done
2847else
2848  $as_echo "$as_me: failed program was:" >&5
2849sed 's/^/| /' conftest.$ac_ext >&5
2850
2851{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853as_fn_error $? "cannot compute suffix of object files: cannot compile
2854See \`config.log' for more details" "$LINENO" 5; }
2855fi
2856rm -f conftest.$ac_cv_objext conftest.$ac_ext
2857fi
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2859$as_echo "$ac_cv_objext" >&6; }
2860OBJEXT=$ac_cv_objext
2861ac_objext=$OBJEXT
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2863$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2864if ${ac_cv_c_compiler_gnu+:} false; then :
2865  $as_echo_n "(cached) " >&6
2866else
2867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868/* end confdefs.h.  */
2869
2870int
2871main ()
2872{
2873#ifndef __GNUC__
2874       choke me
2875#endif
2876
2877  ;
2878  return 0;
2879}
2880_ACEOF
2881if ac_fn_c_try_compile "$LINENO"; then :
2882  ac_compiler_gnu=yes
2883else
2884  ac_compiler_gnu=no
2885fi
2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887ac_cv_c_compiler_gnu=$ac_compiler_gnu
2888
2889fi
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2891$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2892if test $ac_compiler_gnu = yes; then
2893  GCC=yes
2894else
2895  GCC=
2896fi
2897ac_test_CFLAGS=${CFLAGS+set}
2898ac_save_CFLAGS=$CFLAGS
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2900$as_echo_n "checking whether $CC accepts -g... " >&6; }
2901if ${ac_cv_prog_cc_g+:} false; then :
2902  $as_echo_n "(cached) " >&6
2903else
2904  ac_save_c_werror_flag=$ac_c_werror_flag
2905   ac_c_werror_flag=yes
2906   ac_cv_prog_cc_g=no
2907   CFLAGS="-g"
2908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909/* end confdefs.h.  */
2910
2911int
2912main ()
2913{
2914
2915  ;
2916  return 0;
2917}
2918_ACEOF
2919if ac_fn_c_try_compile "$LINENO"; then :
2920  ac_cv_prog_cc_g=yes
2921else
2922  CFLAGS=""
2923      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924/* end confdefs.h.  */
2925
2926int
2927main ()
2928{
2929
2930  ;
2931  return 0;
2932}
2933_ACEOF
2934if ac_fn_c_try_compile "$LINENO"; then :
2935
2936else
2937  ac_c_werror_flag=$ac_save_c_werror_flag
2938	 CFLAGS="-g"
2939	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940/* end confdefs.h.  */
2941
2942int
2943main ()
2944{
2945
2946  ;
2947  return 0;
2948}
2949_ACEOF
2950if ac_fn_c_try_compile "$LINENO"; then :
2951  ac_cv_prog_cc_g=yes
2952fi
2953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954fi
2955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956fi
2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958   ac_c_werror_flag=$ac_save_c_werror_flag
2959fi
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2961$as_echo "$ac_cv_prog_cc_g" >&6; }
2962if test "$ac_test_CFLAGS" = set; then
2963  CFLAGS=$ac_save_CFLAGS
2964elif test $ac_cv_prog_cc_g = yes; then
2965  if test "$GCC" = yes; then
2966    CFLAGS="-g -O2"
2967  else
2968    CFLAGS="-g"
2969  fi
2970else
2971  if test "$GCC" = yes; then
2972    CFLAGS="-O2"
2973  else
2974    CFLAGS=
2975  fi
2976fi
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2978$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2979if ${ac_cv_prog_cc_c89+:} false; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  ac_cv_prog_cc_c89=no
2983ac_save_CC=$CC
2984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985/* end confdefs.h.  */
2986#include <stdarg.h>
2987#include <stdio.h>
2988struct stat;
2989/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2990struct buf { int x; };
2991FILE * (*rcsopen) (struct buf *, struct stat *, int);
2992static char *e (p, i)
2993     char **p;
2994     int i;
2995{
2996  return p[i];
2997}
2998static char *f (char * (*g) (char **, int), char **p, ...)
2999{
3000  char *s;
3001  va_list v;
3002  va_start (v,p);
3003  s = g (p, va_arg (v,int));
3004  va_end (v);
3005  return s;
3006}
3007
3008/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3009   function prototypes and stuff, but not '\xHH' hex character constants.
3010   These don't provoke an error unfortunately, instead are silently treated
3011   as 'x'.  The following induces an error, until -std is added to get
3012   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3013   array size at least.  It's necessary to write '\x00'==0 to get something
3014   that's true only with -std.  */
3015int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3016
3017/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3018   inside strings and character constants.  */
3019#define FOO(x) 'x'
3020int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3021
3022int test (int i, double x);
3023struct s1 {int (*f) (int a);};
3024struct s2 {int (*f) (double a);};
3025int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3026int argc;
3027char **argv;
3028int
3029main ()
3030{
3031return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3032  ;
3033  return 0;
3034}
3035_ACEOF
3036for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3037	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3038do
3039  CC="$ac_save_CC $ac_arg"
3040  if ac_fn_c_try_compile "$LINENO"; then :
3041  ac_cv_prog_cc_c89=$ac_arg
3042fi
3043rm -f core conftest.err conftest.$ac_objext
3044  test "x$ac_cv_prog_cc_c89" != "xno" && break
3045done
3046rm -f conftest.$ac_ext
3047CC=$ac_save_CC
3048
3049fi
3050# AC_CACHE_VAL
3051case "x$ac_cv_prog_cc_c89" in
3052  x)
3053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3054$as_echo "none needed" >&6; } ;;
3055  xno)
3056    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3057$as_echo "unsupported" >&6; } ;;
3058  *)
3059    CC="$CC $ac_cv_prog_cc_c89"
3060    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3061$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3062esac
3063if test "x$ac_cv_prog_cc_c89" != xno; then :
3064
3065fi
3066
3067ac_ext=c
3068ac_cpp='$CPP $CPPFLAGS'
3069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071ac_compiler_gnu=$ac_cv_c_compiler_gnu
3072
3073ac_ext=c
3074ac_cpp='$CPP $CPPFLAGS'
3075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3079$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3080if ${am_cv_prog_cc_c_o+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084/* end confdefs.h.  */
3085
3086int
3087main ()
3088{
3089
3090  ;
3091  return 0;
3092}
3093_ACEOF
3094  # Make sure it works both with $CC and with simple cc.
3095  # Following AC_PROG_CC_C_O, we do the test twice because some
3096  # compilers refuse to overwrite an existing .o file with -o,
3097  # though they will create one.
3098  am_cv_prog_cc_c_o=yes
3099  for am_i in 1 2; do
3100    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3101   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); } \
3105         && test -f conftest2.$ac_objext; then
3106      : OK
3107    else
3108      am_cv_prog_cc_c_o=no
3109      break
3110    fi
3111  done
3112  rm -f core conftest*
3113  unset am_i
3114fi
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3116$as_echo "$am_cv_prog_cc_c_o" >&6; }
3117if test "$am_cv_prog_cc_c_o" != yes; then
3118   # Losing compiler, so override with the script.
3119   # FIXME: It is wrong to rewrite CC.
3120   # But if we don't then we get into trouble of one sort or another.
3121   # A longer-term fix would be to have automake use am__CC in this case,
3122   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3123   CC="$am_aux_dir/compile $CC"
3124fi
3125ac_ext=c
3126ac_cpp='$CPP $CPPFLAGS'
3127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130
3131
3132
3133ac_ext=c
3134ac_cpp='$CPP $CPPFLAGS'
3135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3139$as_echo_n "checking how to run the C preprocessor... " >&6; }
3140# On Suns, sometimes $CPP names a directory.
3141if test -n "$CPP" && test -d "$CPP"; then
3142  CPP=
3143fi
3144if test -z "$CPP"; then
3145  if ${ac_cv_prog_CPP+:} false; then :
3146  $as_echo_n "(cached) " >&6
3147else
3148      # Double quotes because CPP needs to be expanded
3149    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3150    do
3151      ac_preproc_ok=false
3152for ac_c_preproc_warn_flag in '' yes
3153do
3154  # Use a header file that comes with gcc, so configuring glibc
3155  # with a fresh cross-compiler works.
3156  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157  # <limits.h> exists even on freestanding compilers.
3158  # On the NeXT, cc -E runs the code through the compiler's parser,
3159  # not just through cpp. "Syntax error" is here to catch this case.
3160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161/* end confdefs.h.  */
3162#ifdef __STDC__
3163# include <limits.h>
3164#else
3165# include <assert.h>
3166#endif
3167		     Syntax error
3168_ACEOF
3169if ac_fn_c_try_cpp "$LINENO"; then :
3170
3171else
3172  # Broken: fails on valid input.
3173continue
3174fi
3175rm -f conftest.err conftest.i conftest.$ac_ext
3176
3177  # OK, works on sane cases.  Now check whether nonexistent headers
3178  # can be detected and how.
3179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180/* end confdefs.h.  */
3181#include <ac_nonexistent.h>
3182_ACEOF
3183if ac_fn_c_try_cpp "$LINENO"; then :
3184  # Broken: success on invalid input.
3185continue
3186else
3187  # Passes both tests.
3188ac_preproc_ok=:
3189break
3190fi
3191rm -f conftest.err conftest.i conftest.$ac_ext
3192
3193done
3194# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3195rm -f conftest.i conftest.err conftest.$ac_ext
3196if $ac_preproc_ok; then :
3197  break
3198fi
3199
3200    done
3201    ac_cv_prog_CPP=$CPP
3202
3203fi
3204  CPP=$ac_cv_prog_CPP
3205else
3206  ac_cv_prog_CPP=$CPP
3207fi
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3209$as_echo "$CPP" >&6; }
3210ac_preproc_ok=false
3211for ac_c_preproc_warn_flag in '' yes
3212do
3213  # Use a header file that comes with gcc, so configuring glibc
3214  # with a fresh cross-compiler works.
3215  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3216  # <limits.h> exists even on freestanding compilers.
3217  # On the NeXT, cc -E runs the code through the compiler's parser,
3218  # not just through cpp. "Syntax error" is here to catch this case.
3219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220/* end confdefs.h.  */
3221#ifdef __STDC__
3222# include <limits.h>
3223#else
3224# include <assert.h>
3225#endif
3226		     Syntax error
3227_ACEOF
3228if ac_fn_c_try_cpp "$LINENO"; then :
3229
3230else
3231  # Broken: fails on valid input.
3232continue
3233fi
3234rm -f conftest.err conftest.i conftest.$ac_ext
3235
3236  # OK, works on sane cases.  Now check whether nonexistent headers
3237  # can be detected and how.
3238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239/* end confdefs.h.  */
3240#include <ac_nonexistent.h>
3241_ACEOF
3242if ac_fn_c_try_cpp "$LINENO"; then :
3243  # Broken: success on invalid input.
3244continue
3245else
3246  # Passes both tests.
3247ac_preproc_ok=:
3248break
3249fi
3250rm -f conftest.err conftest.i conftest.$ac_ext
3251
3252done
3253# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3254rm -f conftest.i conftest.err conftest.$ac_ext
3255if $ac_preproc_ok; then :
3256
3257else
3258  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3261See \`config.log' for more details" "$LINENO" 5; }
3262fi
3263
3264ac_ext=c
3265ac_cpp='$CPP $CPPFLAGS'
3266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269
3270
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3272$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3273if ${ac_cv_path_GREP+:} false; then :
3274  $as_echo_n "(cached) " >&6
3275else
3276  if test -z "$GREP"; then
3277  ac_path_GREP_found=false
3278  # Loop through the user's path and test for each of PROGNAME-LIST
3279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3281do
3282  IFS=$as_save_IFS
3283  test -z "$as_dir" && as_dir=.
3284    for ac_prog in grep ggrep; do
3285    for ac_exec_ext in '' $ac_executable_extensions; do
3286      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3287      as_fn_executable_p "$ac_path_GREP" || continue
3288# Check for GNU ac_path_GREP and select it if it is found.
3289  # Check for GNU $ac_path_GREP
3290case `"$ac_path_GREP" --version 2>&1` in
3291*GNU*)
3292  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3293*)
3294  ac_count=0
3295  $as_echo_n 0123456789 >"conftest.in"
3296  while :
3297  do
3298    cat "conftest.in" "conftest.in" >"conftest.tmp"
3299    mv "conftest.tmp" "conftest.in"
3300    cp "conftest.in" "conftest.nl"
3301    $as_echo 'GREP' >> "conftest.nl"
3302    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3303    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3304    as_fn_arith $ac_count + 1 && ac_count=$as_val
3305    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3306      # Best one so far, save it but keep looking for a better one
3307      ac_cv_path_GREP="$ac_path_GREP"
3308      ac_path_GREP_max=$ac_count
3309    fi
3310    # 10*(2^10) chars as input seems more than enough
3311    test $ac_count -gt 10 && break
3312  done
3313  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3314esac
3315
3316      $ac_path_GREP_found && break 3
3317    done
3318  done
3319  done
3320IFS=$as_save_IFS
3321  if test -z "$ac_cv_path_GREP"; then
3322    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3323  fi
3324else
3325  ac_cv_path_GREP=$GREP
3326fi
3327
3328fi
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3330$as_echo "$ac_cv_path_GREP" >&6; }
3331 GREP="$ac_cv_path_GREP"
3332
3333
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3335$as_echo_n "checking for egrep... " >&6; }
3336if ${ac_cv_path_EGREP+:} false; then :
3337  $as_echo_n "(cached) " >&6
3338else
3339  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3340   then ac_cv_path_EGREP="$GREP -E"
3341   else
3342     if test -z "$EGREP"; then
3343  ac_path_EGREP_found=false
3344  # Loop through the user's path and test for each of PROGNAME-LIST
3345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3347do
3348  IFS=$as_save_IFS
3349  test -z "$as_dir" && as_dir=.
3350    for ac_prog in egrep; do
3351    for ac_exec_ext in '' $ac_executable_extensions; do
3352      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3353      as_fn_executable_p "$ac_path_EGREP" || continue
3354# Check for GNU ac_path_EGREP and select it if it is found.
3355  # Check for GNU $ac_path_EGREP
3356case `"$ac_path_EGREP" --version 2>&1` in
3357*GNU*)
3358  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3359*)
3360  ac_count=0
3361  $as_echo_n 0123456789 >"conftest.in"
3362  while :
3363  do
3364    cat "conftest.in" "conftest.in" >"conftest.tmp"
3365    mv "conftest.tmp" "conftest.in"
3366    cp "conftest.in" "conftest.nl"
3367    $as_echo 'EGREP' >> "conftest.nl"
3368    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3369    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3370    as_fn_arith $ac_count + 1 && ac_count=$as_val
3371    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3372      # Best one so far, save it but keep looking for a better one
3373      ac_cv_path_EGREP="$ac_path_EGREP"
3374      ac_path_EGREP_max=$ac_count
3375    fi
3376    # 10*(2^10) chars as input seems more than enough
3377    test $ac_count -gt 10 && break
3378  done
3379  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3380esac
3381
3382      $ac_path_EGREP_found && break 3
3383    done
3384  done
3385  done
3386IFS=$as_save_IFS
3387  if test -z "$ac_cv_path_EGREP"; then
3388    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3389  fi
3390else
3391  ac_cv_path_EGREP=$EGREP
3392fi
3393
3394   fi
3395fi
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3397$as_echo "$ac_cv_path_EGREP" >&6; }
3398 EGREP="$ac_cv_path_EGREP"
3399
3400
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3402$as_echo_n "checking for ANSI C header files... " >&6; }
3403if ${ac_cv_header_stdc+:} false; then :
3404  $as_echo_n "(cached) " >&6
3405else
3406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407/* end confdefs.h.  */
3408#include <stdlib.h>
3409#include <stdarg.h>
3410#include <string.h>
3411#include <float.h>
3412
3413int
3414main ()
3415{
3416
3417  ;
3418  return 0;
3419}
3420_ACEOF
3421if ac_fn_c_try_compile "$LINENO"; then :
3422  ac_cv_header_stdc=yes
3423else
3424  ac_cv_header_stdc=no
3425fi
3426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427
3428if test $ac_cv_header_stdc = yes; then
3429  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h.  */
3432#include <string.h>
3433
3434_ACEOF
3435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3436  $EGREP "memchr" >/dev/null 2>&1; then :
3437
3438else
3439  ac_cv_header_stdc=no
3440fi
3441rm -f conftest*
3442
3443fi
3444
3445if test $ac_cv_header_stdc = yes; then
3446  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448/* end confdefs.h.  */
3449#include <stdlib.h>
3450
3451_ACEOF
3452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3453  $EGREP "free" >/dev/null 2>&1; then :
3454
3455else
3456  ac_cv_header_stdc=no
3457fi
3458rm -f conftest*
3459
3460fi
3461
3462if test $ac_cv_header_stdc = yes; then
3463  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3464  if test "$cross_compiling" = yes; then :
3465  :
3466else
3467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469#include <ctype.h>
3470#include <stdlib.h>
3471#if ((' ' & 0x0FF) == 0x020)
3472# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3473# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3474#else
3475# define ISLOWER(c) \
3476		   (('a' <= (c) && (c) <= 'i') \
3477		     || ('j' <= (c) && (c) <= 'r') \
3478		     || ('s' <= (c) && (c) <= 'z'))
3479# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3480#endif
3481
3482#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3483int
3484main ()
3485{
3486  int i;
3487  for (i = 0; i < 256; i++)
3488    if (XOR (islower (i), ISLOWER (i))
3489	|| toupper (i) != TOUPPER (i))
3490      return 2;
3491  return 0;
3492}
3493_ACEOF
3494if ac_fn_c_try_run "$LINENO"; then :
3495
3496else
3497  ac_cv_header_stdc=no
3498fi
3499rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3500  conftest.$ac_objext conftest.beam conftest.$ac_ext
3501fi
3502
3503fi
3504fi
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3506$as_echo "$ac_cv_header_stdc" >&6; }
3507if test $ac_cv_header_stdc = yes; then
3508
3509$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3510
3511fi
3512
3513# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3514for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3515		  inttypes.h stdint.h unistd.h
3516do :
3517  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3518ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3519"
3520if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3521  cat >>confdefs.h <<_ACEOF
3522#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3523_ACEOF
3524
3525fi
3526
3527done
3528
3529
3530
3531  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3532if test "x$ac_cv_header_minix_config_h" = xyes; then :
3533  MINIX=yes
3534else
3535  MINIX=
3536fi
3537
3538
3539  if test "$MINIX" = yes; then
3540
3541$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3542
3543
3544$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3545
3546
3547$as_echo "#define _MINIX 1" >>confdefs.h
3548
3549  fi
3550
3551
3552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3553$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3554if ${ac_cv_safe_to_define___extensions__+:} false; then :
3555  $as_echo_n "(cached) " >&6
3556else
3557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559
3560#         define __EXTENSIONS__ 1
3561          $ac_includes_default
3562int
3563main ()
3564{
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570if ac_fn_c_try_compile "$LINENO"; then :
3571  ac_cv_safe_to_define___extensions__=yes
3572else
3573  ac_cv_safe_to_define___extensions__=no
3574fi
3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576fi
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3578$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3579  test $ac_cv_safe_to_define___extensions__ = yes &&
3580    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3581
3582  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3583
3584  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3585
3586  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3587
3588  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3589
3590
3591
3592# Initialize Automake
3593am__api_version='1.15'
3594
3595# Find a good install program.  We prefer a C program (faster),
3596# so one script is as good as another.  But avoid the broken or
3597# incompatible versions:
3598# SysV /etc/install, /usr/sbin/install
3599# SunOS /usr/etc/install
3600# IRIX /sbin/install
3601# AIX /bin/install
3602# AmigaOS /C/install, which installs bootblocks on floppy discs
3603# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3604# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3605# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3606# OS/2's system install, which has a completely different semantic
3607# ./install, which can be erroneously created by make from ./install.sh.
3608# Reject install programs that cannot install multiple files.
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3610$as_echo_n "checking for a BSD-compatible install... " >&6; }
3611if test -z "$INSTALL"; then
3612if ${ac_cv_path_install+:} false; then :
3613  $as_echo_n "(cached) " >&6
3614else
3615  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616for as_dir in $PATH
3617do
3618  IFS=$as_save_IFS
3619  test -z "$as_dir" && as_dir=.
3620    # Account for people who put trailing slashes in PATH elements.
3621case $as_dir/ in #((
3622  ./ | .// | /[cC]/* | \
3623  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3624  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3625  /usr/ucb/* ) ;;
3626  *)
3627    # OSF1 and SCO ODT 3.0 have their own names for install.
3628    # Don't use installbsd from OSF since it installs stuff as root
3629    # by default.
3630    for ac_prog in ginstall scoinst install; do
3631      for ac_exec_ext in '' $ac_executable_extensions; do
3632	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3633	  if test $ac_prog = install &&
3634	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3635	    # AIX install.  It has an incompatible calling convention.
3636	    :
3637	  elif test $ac_prog = install &&
3638	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3639	    # program-specific install script used by HP pwplus--don't use.
3640	    :
3641	  else
3642	    rm -rf conftest.one conftest.two conftest.dir
3643	    echo one > conftest.one
3644	    echo two > conftest.two
3645	    mkdir conftest.dir
3646	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3647	      test -s conftest.one && test -s conftest.two &&
3648	      test -s conftest.dir/conftest.one &&
3649	      test -s conftest.dir/conftest.two
3650	    then
3651	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3652	      break 3
3653	    fi
3654	  fi
3655	fi
3656      done
3657    done
3658    ;;
3659esac
3660
3661  done
3662IFS=$as_save_IFS
3663
3664rm -rf conftest.one conftest.two conftest.dir
3665
3666fi
3667  if test "${ac_cv_path_install+set}" = set; then
3668    INSTALL=$ac_cv_path_install
3669  else
3670    # As a last resort, use the slow shell script.  Don't cache a
3671    # value for INSTALL within a source directory, because that will
3672    # break other packages using the cache if that directory is
3673    # removed, or if the value is a relative name.
3674    INSTALL=$ac_install_sh
3675  fi
3676fi
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3678$as_echo "$INSTALL" >&6; }
3679
3680# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3681# It thinks the first close brace ends the variable substitution.
3682test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3683
3684test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3685
3686test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3687
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3689$as_echo_n "checking whether build environment is sane... " >&6; }
3690# Reject unsafe characters in $srcdir or the absolute working directory
3691# name.  Accept space and tab only in the latter.
3692am_lf='
3693'
3694case `pwd` in
3695  *[\\\"\#\$\&\'\`$am_lf]*)
3696    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3697esac
3698case $srcdir in
3699  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3700    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3701esac
3702
3703# Do 'set' in a subshell so we don't clobber the current shell's
3704# arguments.  Must try -L first in case configure is actually a
3705# symlink; some systems play weird games with the mod time of symlinks
3706# (eg FreeBSD returns the mod time of the symlink's containing
3707# directory).
3708if (
3709   am_has_slept=no
3710   for am_try in 1 2; do
3711     echo "timestamp, slept: $am_has_slept" > conftest.file
3712     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3713     if test "$*" = "X"; then
3714	# -L didn't work.
3715	set X `ls -t "$srcdir/configure" conftest.file`
3716     fi
3717     if test "$*" != "X $srcdir/configure conftest.file" \
3718	&& test "$*" != "X conftest.file $srcdir/configure"; then
3719
3720	# If neither matched, then we have a broken ls.  This can happen
3721	# if, for instance, CONFIG_SHELL is bash and it inherits a
3722	# broken ls alias from the environment.  This has actually
3723	# happened.  Such a system could not be considered "sane".
3724	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3725  alias in your environment" "$LINENO" 5
3726     fi
3727     if test "$2" = conftest.file || test $am_try -eq 2; then
3728       break
3729     fi
3730     # Just in case.
3731     sleep 1
3732     am_has_slept=yes
3733   done
3734   test "$2" = conftest.file
3735   )
3736then
3737   # Ok.
3738   :
3739else
3740   as_fn_error $? "newly created file is older than distributed files!
3741Check your system clock" "$LINENO" 5
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3744$as_echo "yes" >&6; }
3745# If we didn't sleep, we still need to ensure time stamps of config.status and
3746# generated files are strictly newer.
3747am_sleep_pid=
3748if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3749  ( sleep 1 ) &
3750  am_sleep_pid=$!
3751fi
3752
3753rm -f conftest.file
3754
3755test "$program_prefix" != NONE &&
3756  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3757# Use a double $ so make ignores it.
3758test "$program_suffix" != NONE &&
3759  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3760# Double any \ or $.
3761# By default was `s,x,x', remove it if useless.
3762ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3763program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3764
3765if test x"${MISSING+set}" != xset; then
3766  case $am_aux_dir in
3767  *\ * | *\	*)
3768    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3769  *)
3770    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3771  esac
3772fi
3773# Use eval to expand $SHELL
3774if eval "$MISSING --is-lightweight"; then
3775  am_missing_run="$MISSING "
3776else
3777  am_missing_run=
3778  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3779$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3780fi
3781
3782if test x"${install_sh+set}" != xset; then
3783  case $am_aux_dir in
3784  *\ * | *\	*)
3785    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3786  *)
3787    install_sh="\${SHELL} $am_aux_dir/install-sh"
3788  esac
3789fi
3790
3791# Installed binaries are usually stripped using 'strip' when the user
3792# run "make install-strip".  However 'strip' might not be the right
3793# tool to use in cross-compilation environments, therefore Automake
3794# will honor the 'STRIP' environment variable to overrule this program.
3795if test "$cross_compiling" != no; then
3796  if test -n "$ac_tool_prefix"; then
3797  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3798set dummy ${ac_tool_prefix}strip; ac_word=$2
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800$as_echo_n "checking for $ac_word... " >&6; }
3801if ${ac_cv_prog_STRIP+:} false; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804  if test -n "$STRIP"; then
3805  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3806else
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810  IFS=$as_save_IFS
3811  test -z "$as_dir" && as_dir=.
3812    for ac_exec_ext in '' $ac_executable_extensions; do
3813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816    break 2
3817  fi
3818done
3819  done
3820IFS=$as_save_IFS
3821
3822fi
3823fi
3824STRIP=$ac_cv_prog_STRIP
3825if test -n "$STRIP"; then
3826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3827$as_echo "$STRIP" >&6; }
3828else
3829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830$as_echo "no" >&6; }
3831fi
3832
3833
3834fi
3835if test -z "$ac_cv_prog_STRIP"; then
3836  ac_ct_STRIP=$STRIP
3837  # Extract the first word of "strip", so it can be a program name with args.
3838set dummy strip; ac_word=$2
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840$as_echo_n "checking for $ac_word... " >&6; }
3841if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3842  $as_echo_n "(cached) " >&6
3843else
3844  if test -n "$ac_ct_STRIP"; then
3845  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3846else
3847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848for as_dir in $PATH
3849do
3850  IFS=$as_save_IFS
3851  test -z "$as_dir" && as_dir=.
3852    for ac_exec_ext in '' $ac_executable_extensions; do
3853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854    ac_cv_prog_ac_ct_STRIP="strip"
3855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856    break 2
3857  fi
3858done
3859  done
3860IFS=$as_save_IFS
3861
3862fi
3863fi
3864ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3865if test -n "$ac_ct_STRIP"; then
3866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3867$as_echo "$ac_ct_STRIP" >&6; }
3868else
3869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870$as_echo "no" >&6; }
3871fi
3872
3873  if test "x$ac_ct_STRIP" = x; then
3874    STRIP=":"
3875  else
3876    case $cross_compiling:$ac_tool_warned in
3877yes:)
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3880ac_tool_warned=yes ;;
3881esac
3882    STRIP=$ac_ct_STRIP
3883  fi
3884else
3885  STRIP="$ac_cv_prog_STRIP"
3886fi
3887
3888fi
3889INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3890
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3892$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3893if test -z "$MKDIR_P"; then
3894  if ${ac_cv_path_mkdir+:} false; then :
3895  $as_echo_n "(cached) " >&6
3896else
3897  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3899do
3900  IFS=$as_save_IFS
3901  test -z "$as_dir" && as_dir=.
3902    for ac_prog in mkdir gmkdir; do
3903	 for ac_exec_ext in '' $ac_executable_extensions; do
3904	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3905	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3906	     'mkdir (GNU coreutils) '* | \
3907	     'mkdir (coreutils) '* | \
3908	     'mkdir (fileutils) '4.1*)
3909	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3910	       break 3;;
3911	   esac
3912	 done
3913       done
3914  done
3915IFS=$as_save_IFS
3916
3917fi
3918
3919  test -d ./--version && rmdir ./--version
3920  if test "${ac_cv_path_mkdir+set}" = set; then
3921    MKDIR_P="$ac_cv_path_mkdir -p"
3922  else
3923    # As a last resort, use the slow shell script.  Don't cache a
3924    # value for MKDIR_P within a source directory, because that will
3925    # break other packages using the cache if that directory is
3926    # removed, or if the value is a relative name.
3927    MKDIR_P="$ac_install_sh -d"
3928  fi
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3931$as_echo "$MKDIR_P" >&6; }
3932
3933for ac_prog in gawk mawk nawk awk
3934do
3935  # Extract the first word of "$ac_prog", so it can be a program name with args.
3936set dummy $ac_prog; ac_word=$2
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938$as_echo_n "checking for $ac_word... " >&6; }
3939if ${ac_cv_prog_AWK+:} false; then :
3940  $as_echo_n "(cached) " >&6
3941else
3942  if test -n "$AWK"; then
3943  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3944else
3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH
3947do
3948  IFS=$as_save_IFS
3949  test -z "$as_dir" && as_dir=.
3950    for ac_exec_ext in '' $ac_executable_extensions; do
3951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952    ac_cv_prog_AWK="$ac_prog"
3953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954    break 2
3955  fi
3956done
3957  done
3958IFS=$as_save_IFS
3959
3960fi
3961fi
3962AWK=$ac_cv_prog_AWK
3963if test -n "$AWK"; then
3964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3965$as_echo "$AWK" >&6; }
3966else
3967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968$as_echo "no" >&6; }
3969fi
3970
3971
3972  test -n "$AWK" && break
3973done
3974
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3976$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3977set x ${MAKE-make}
3978ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3979if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3980  $as_echo_n "(cached) " >&6
3981else
3982  cat >conftest.make <<\_ACEOF
3983SHELL = /bin/sh
3984all:
3985	@echo '@@@%%%=$(MAKE)=@@@%%%'
3986_ACEOF
3987# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3988case `${MAKE-make} -f conftest.make 2>/dev/null` in
3989  *@@@%%%=?*=@@@%%%*)
3990    eval ac_cv_prog_make_${ac_make}_set=yes;;
3991  *)
3992    eval ac_cv_prog_make_${ac_make}_set=no;;
3993esac
3994rm -f conftest.make
3995fi
3996if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3998$as_echo "yes" >&6; }
3999  SET_MAKE=
4000else
4001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002$as_echo "no" >&6; }
4003  SET_MAKE="MAKE=${MAKE-make}"
4004fi
4005
4006rm -rf .tst 2>/dev/null
4007mkdir .tst 2>/dev/null
4008if test -d .tst; then
4009  am__leading_dot=.
4010else
4011  am__leading_dot=_
4012fi
4013rmdir .tst 2>/dev/null
4014
4015DEPDIR="${am__leading_dot}deps"
4016
4017ac_config_commands="$ac_config_commands depfiles"
4018
4019
4020am_make=${MAKE-make}
4021cat > confinc << 'END'
4022am__doit:
4023	@echo this is the am__doit target
4024.PHONY: am__doit
4025END
4026# If we don't find an include directive, just comment out the code.
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4028$as_echo_n "checking for style of include used by $am_make... " >&6; }
4029am__include="#"
4030am__quote=
4031_am_result=none
4032# First try GNU make style include.
4033echo "include confinc" > confmf
4034# Ignore all kinds of additional output from 'make'.
4035case `$am_make -s -f confmf 2> /dev/null` in #(
4036*the\ am__doit\ target*)
4037  am__include=include
4038  am__quote=
4039  _am_result=GNU
4040  ;;
4041esac
4042# Now try BSD make style include.
4043if test "$am__include" = "#"; then
4044   echo '.include "confinc"' > confmf
4045   case `$am_make -s -f confmf 2> /dev/null` in #(
4046   *the\ am__doit\ target*)
4047     am__include=.include
4048     am__quote="\""
4049     _am_result=BSD
4050     ;;
4051   esac
4052fi
4053
4054
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4056$as_echo "$_am_result" >&6; }
4057rm -f confinc confmf
4058
4059# Check whether --enable-dependency-tracking was given.
4060if test "${enable_dependency_tracking+set}" = set; then :
4061  enableval=$enable_dependency_tracking;
4062fi
4063
4064if test "x$enable_dependency_tracking" != xno; then
4065  am_depcomp="$ac_aux_dir/depcomp"
4066  AMDEPBACKSLASH='\'
4067  am__nodep='_no'
4068fi
4069 if test "x$enable_dependency_tracking" != xno; then
4070  AMDEP_TRUE=
4071  AMDEP_FALSE='#'
4072else
4073  AMDEP_TRUE='#'
4074  AMDEP_FALSE=
4075fi
4076
4077
4078# Check whether --enable-silent-rules was given.
4079if test "${enable_silent_rules+set}" = set; then :
4080  enableval=$enable_silent_rules;
4081fi
4082
4083case $enable_silent_rules in # (((
4084  yes) AM_DEFAULT_VERBOSITY=0;;
4085   no) AM_DEFAULT_VERBOSITY=1;;
4086    *) AM_DEFAULT_VERBOSITY=1;;
4087esac
4088am_make=${MAKE-make}
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4090$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4091if ${am_cv_make_support_nested_variables+:} false; then :
4092  $as_echo_n "(cached) " >&6
4093else
4094  if $as_echo 'TRUE=$(BAR$(V))
4095BAR0=false
4096BAR1=true
4097V=1
4098am__doit:
4099	@$(TRUE)
4100.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4101  am_cv_make_support_nested_variables=yes
4102else
4103  am_cv_make_support_nested_variables=no
4104fi
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4107$as_echo "$am_cv_make_support_nested_variables" >&6; }
4108if test $am_cv_make_support_nested_variables = yes; then
4109    AM_V='$(V)'
4110  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4111else
4112  AM_V=$AM_DEFAULT_VERBOSITY
4113  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4114fi
4115AM_BACKSLASH='\'
4116
4117if test "`cd $srcdir && pwd`" != "`pwd`"; then
4118  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4119  # is not polluted with repeated "-I."
4120  am__isrc=' -I$(srcdir)'
4121  # test to see if srcdir already configured
4122  if test -f $srcdir/config.status; then
4123    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4124  fi
4125fi
4126
4127# test whether we have cygpath
4128if test -z "$CYGPATH_W"; then
4129  if (cygpath --version) >/dev/null 2>/dev/null; then
4130    CYGPATH_W='cygpath -w'
4131  else
4132    CYGPATH_W=echo
4133  fi
4134fi
4135
4136
4137# Define the identity of the package.
4138 PACKAGE='xrefresh'
4139 VERSION='1.0.6'
4140
4141
4142cat >>confdefs.h <<_ACEOF
4143#define PACKAGE "$PACKAGE"
4144_ACEOF
4145
4146
4147cat >>confdefs.h <<_ACEOF
4148#define VERSION "$VERSION"
4149_ACEOF
4150
4151# Some tools Automake needs.
4152
4153ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4154
4155
4156AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4157
4158
4159AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4160
4161
4162AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4163
4164
4165MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4166
4167# For better backward compatibility.  To be removed once Automake 1.9.x
4168# dies out for good.  For more background, see:
4169# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4170# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4171mkdir_p='$(MKDIR_P)'
4172
4173# We need awk for the "check" target (and possibly the TAP driver).  The
4174# system "awk" is bad on some platforms.
4175# Always define AMTAR for backward compatibility.  Yes, it's still used
4176# in the wild :-(  We should find a proper way to deprecate it ...
4177AMTAR='$${TAR-tar}'
4178
4179
4180# We'll loop over all known methods to create a tar archive until one works.
4181_am_tools='gnutar  pax cpio none'
4182
4183am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4184
4185
4186
4187
4188
4189depcc="$CC"   am_compiler_list=
4190
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4192$as_echo_n "checking dependency style of $depcc... " >&6; }
4193if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4194  $as_echo_n "(cached) " >&6
4195else
4196  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4197  # We make a subdir and do the tests there.  Otherwise we can end up
4198  # making bogus files that we don't know about and never remove.  For
4199  # instance it was reported that on HP-UX the gcc test will end up
4200  # making a dummy file named 'D' -- because '-MD' means "put the output
4201  # in D".
4202  rm -rf conftest.dir
4203  mkdir conftest.dir
4204  # Copy depcomp to subdir because otherwise we won't find it if we're
4205  # using a relative directory.
4206  cp "$am_depcomp" conftest.dir
4207  cd conftest.dir
4208  # We will build objects and dependencies in a subdirectory because
4209  # it helps to detect inapplicable dependency modes.  For instance
4210  # both Tru64's cc and ICC support -MD to output dependencies as a
4211  # side effect of compilation, but ICC will put the dependencies in
4212  # the current directory while Tru64 will put them in the object
4213  # directory.
4214  mkdir sub
4215
4216  am_cv_CC_dependencies_compiler_type=none
4217  if test "$am_compiler_list" = ""; then
4218     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4219  fi
4220  am__universal=false
4221  case " $depcc " in #(
4222     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4223     esac
4224
4225  for depmode in $am_compiler_list; do
4226    # Setup a source with many dependencies, because some compilers
4227    # like to wrap large dependency lists on column 80 (with \), and
4228    # we should not choose a depcomp mode which is confused by this.
4229    #
4230    # We need to recreate these files for each test, as the compiler may
4231    # overwrite some of them when testing with obscure command lines.
4232    # This happens at least with the AIX C compiler.
4233    : > sub/conftest.c
4234    for i in 1 2 3 4 5 6; do
4235      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4236      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4237      # Solaris 10 /bin/sh.
4238      echo '/* dummy */' > sub/conftst$i.h
4239    done
4240    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4241
4242    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4243    # mode.  It turns out that the SunPro C++ compiler does not properly
4244    # handle '-M -o', and we need to detect this.  Also, some Intel
4245    # versions had trouble with output in subdirs.
4246    am__obj=sub/conftest.${OBJEXT-o}
4247    am__minus_obj="-o $am__obj"
4248    case $depmode in
4249    gcc)
4250      # This depmode causes a compiler race in universal mode.
4251      test "$am__universal" = false || continue
4252      ;;
4253    nosideeffect)
4254      # After this tag, mechanisms are not by side-effect, so they'll
4255      # only be used when explicitly requested.
4256      if test "x$enable_dependency_tracking" = xyes; then
4257	continue
4258      else
4259	break
4260      fi
4261      ;;
4262    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4263      # This compiler won't grok '-c -o', but also, the minuso test has
4264      # not run yet.  These depmodes are late enough in the game, and
4265      # so weak that their functioning should not be impacted.
4266      am__obj=conftest.${OBJEXT-o}
4267      am__minus_obj=
4268      ;;
4269    none) break ;;
4270    esac
4271    if depmode=$depmode \
4272       source=sub/conftest.c object=$am__obj \
4273       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4274       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4275         >/dev/null 2>conftest.err &&
4276       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4277       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4278       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4279       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4280      # icc doesn't choke on unknown options, it will just issue warnings
4281      # or remarks (even with -Werror).  So we grep stderr for any message
4282      # that says an option was ignored or not supported.
4283      # When given -MP, icc 7.0 and 7.1 complain thusly:
4284      #   icc: Command line warning: ignoring option '-M'; no argument required
4285      # The diagnosis changed in icc 8.0:
4286      #   icc: Command line remark: option '-MP' not supported
4287      if (grep 'ignoring option' conftest.err ||
4288          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4289        am_cv_CC_dependencies_compiler_type=$depmode
4290        break
4291      fi
4292    fi
4293  done
4294
4295  cd ..
4296  rm -rf conftest.dir
4297else
4298  am_cv_CC_dependencies_compiler_type=none
4299fi
4300
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4303$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4304CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4305
4306 if
4307  test "x$enable_dependency_tracking" != xno \
4308  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4309  am__fastdepCC_TRUE=
4310  am__fastdepCC_FALSE='#'
4311else
4312  am__fastdepCC_TRUE='#'
4313  am__fastdepCC_FALSE=
4314fi
4315
4316
4317
4318# POSIX will say in a future version that running "rm -f" with no argument
4319# is OK; and we want to be able to make that assumption in our Makefile
4320# recipes.  So use an aggressive probe to check that the usage we want is
4321# actually supported "in the wild" to an acceptable degree.
4322# See automake bug#10828.
4323# To make any issue more visible, cause the running configure to be aborted
4324# by default if the 'rm' program in use doesn't match our expectations; the
4325# user can still override this though.
4326if rm -f && rm -fr && rm -rf; then : OK; else
4327  cat >&2 <<'END'
4328Oops!
4329
4330Your 'rm' program seems unable to run without file operands specified
4331on the command line, even when the '-f' option is present.  This is contrary
4332to the behaviour of most rm programs out there, and not conforming with
4333the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4334
4335Please tell bug-automake@gnu.org about your system, including the value
4336of your $PATH and any error possibly output before this message.  This
4337can help us improve future automake versions.
4338
4339END
4340  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4341    echo 'Configuration will proceed anyway, since you have set the' >&2
4342    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4343    echo >&2
4344  else
4345    cat >&2 <<'END'
4346Aborting the configuration process, to ensure you take notice of the issue.
4347
4348You can download and install GNU coreutils to get an 'rm' implementation
4349that behaves properly: <http://www.gnu.org/software/coreutils/>.
4350
4351If you want to complete the configuration process using your problematic
4352'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4353to "yes", and re-run configure.
4354
4355END
4356    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4357  fi
4358fi
4359
4360
4361# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4374$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4375if ${ac_cv_prog_cc_c99+:} false; then :
4376  $as_echo_n "(cached) " >&6
4377else
4378  ac_cv_prog_cc_c99=no
4379ac_save_CC=$CC
4380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h.  */
4382#include <stdarg.h>
4383#include <stdbool.h>
4384#include <stdlib.h>
4385#include <wchar.h>
4386#include <stdio.h>
4387
4388// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4389#define debug(...) fprintf (stderr, __VA_ARGS__)
4390#define showlist(...) puts (#__VA_ARGS__)
4391#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4392static void
4393test_varargs_macros (void)
4394{
4395  int x = 1234;
4396  int y = 5678;
4397  debug ("Flag");
4398  debug ("X = %d\n", x);
4399  showlist (The first, second, and third items.);
4400  report (x>y, "x is %d but y is %d", x, y);
4401}
4402
4403// Check long long types.
4404#define BIG64 18446744073709551615ull
4405#define BIG32 4294967295ul
4406#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4407#if !BIG_OK
4408  your preprocessor is broken;
4409#endif
4410#if BIG_OK
4411#else
4412  your preprocessor is broken;
4413#endif
4414static long long int bignum = -9223372036854775807LL;
4415static unsigned long long int ubignum = BIG64;
4416
4417struct incomplete_array
4418{
4419  int datasize;
4420  double data[];
4421};
4422
4423struct named_init {
4424  int number;
4425  const wchar_t *name;
4426  double average;
4427};
4428
4429typedef const char *ccp;
4430
4431static inline int
4432test_restrict (ccp restrict text)
4433{
4434  // See if C++-style comments work.
4435  // Iterate through items via the restricted pointer.
4436  // Also check for declarations in for loops.
4437  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4438    continue;
4439  return 0;
4440}
4441
4442// Check varargs and va_copy.
4443static void
4444test_varargs (const char *format, ...)
4445{
4446  va_list args;
4447  va_start (args, format);
4448  va_list args_copy;
4449  va_copy (args_copy, args);
4450
4451  const char *str;
4452  int number;
4453  float fnumber;
4454
4455  while (*format)
4456    {
4457      switch (*format++)
4458	{
4459	case 's': // string
4460	  str = va_arg (args_copy, const char *);
4461	  break;
4462	case 'd': // int
4463	  number = va_arg (args_copy, int);
4464	  break;
4465	case 'f': // float
4466	  fnumber = va_arg (args_copy, double);
4467	  break;
4468	default:
4469	  break;
4470	}
4471    }
4472  va_end (args_copy);
4473  va_end (args);
4474}
4475
4476int
4477main ()
4478{
4479
4480  // Check bool.
4481  _Bool success = false;
4482
4483  // Check restrict.
4484  if (test_restrict ("String literal") == 0)
4485    success = true;
4486  char *restrict newvar = "Another string";
4487
4488  // Check varargs.
4489  test_varargs ("s, d' f .", "string", 65, 34.234);
4490  test_varargs_macros ();
4491
4492  // Check flexible array members.
4493  struct incomplete_array *ia =
4494    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4495  ia->datasize = 10;
4496  for (int i = 0; i < ia->datasize; ++i)
4497    ia->data[i] = i * 1.234;
4498
4499  // Check named initializers.
4500  struct named_init ni = {
4501    .number = 34,
4502    .name = L"Test wide string",
4503    .average = 543.34343,
4504  };
4505
4506  ni.number = 58;
4507
4508  int dynamic_array[ni.number];
4509  dynamic_array[ni.number - 1] = 543;
4510
4511  // work around unused variable warnings
4512  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4513	  || dynamic_array[ni.number - 1] != 543);
4514
4515  ;
4516  return 0;
4517}
4518_ACEOF
4519for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4520do
4521  CC="$ac_save_CC $ac_arg"
4522  if ac_fn_c_try_compile "$LINENO"; then :
4523  ac_cv_prog_cc_c99=$ac_arg
4524fi
4525rm -f core conftest.err conftest.$ac_objext
4526  test "x$ac_cv_prog_cc_c99" != "xno" && break
4527done
4528rm -f conftest.$ac_ext
4529CC=$ac_save_CC
4530
4531fi
4532# AC_CACHE_VAL
4533case "x$ac_cv_prog_cc_c99" in
4534  x)
4535    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4536$as_echo "none needed" >&6; } ;;
4537  xno)
4538    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4539$as_echo "unsupported" >&6; } ;;
4540  *)
4541    CC="$CC $ac_cv_prog_cc_c99"
4542    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4543$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4544esac
4545if test "x$ac_cv_prog_cc_c99" != xno; then :
4546
4547fi
4548
4549
4550
4551
4552
4553
4554ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4555if test "x$ac_cv_have_decl___clang__" = xyes; then :
4556  CLANGCC="yes"
4557else
4558  CLANGCC="no"
4559fi
4560
4561ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4562if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4563  INTELCC="yes"
4564else
4565  INTELCC="no"
4566fi
4567
4568ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4569if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4570  SUNCC="yes"
4571else
4572  SUNCC="no"
4573fi
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4584	if test -n "$ac_tool_prefix"; then
4585  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4586set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588$as_echo_n "checking for $ac_word... " >&6; }
4589if ${ac_cv_path_PKG_CONFIG+:} false; then :
4590  $as_echo_n "(cached) " >&6
4591else
4592  case $PKG_CONFIG in
4593  [\\/]* | ?:[\\/]*)
4594  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4595  ;;
4596  *)
4597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600  IFS=$as_save_IFS
4601  test -z "$as_dir" && as_dir=.
4602    for ac_exec_ext in '' $ac_executable_extensions; do
4603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606    break 2
4607  fi
4608done
4609  done
4610IFS=$as_save_IFS
4611
4612  ;;
4613esac
4614fi
4615PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4616if test -n "$PKG_CONFIG"; then
4617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4618$as_echo "$PKG_CONFIG" >&6; }
4619else
4620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621$as_echo "no" >&6; }
4622fi
4623
4624
4625fi
4626if test -z "$ac_cv_path_PKG_CONFIG"; then
4627  ac_pt_PKG_CONFIG=$PKG_CONFIG
4628  # Extract the first word of "pkg-config", so it can be a program name with args.
4629set dummy pkg-config; ac_word=$2
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631$as_echo_n "checking for $ac_word... " >&6; }
4632if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635  case $ac_pt_PKG_CONFIG in
4636  [\\/]* | ?:[\\/]*)
4637  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4638  ;;
4639  *)
4640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH
4642do
4643  IFS=$as_save_IFS
4644  test -z "$as_dir" && as_dir=.
4645    for ac_exec_ext in '' $ac_executable_extensions; do
4646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649    break 2
4650  fi
4651done
4652  done
4653IFS=$as_save_IFS
4654
4655  ;;
4656esac
4657fi
4658ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4659if test -n "$ac_pt_PKG_CONFIG"; then
4660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4661$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4662else
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664$as_echo "no" >&6; }
4665fi
4666
4667  if test "x$ac_pt_PKG_CONFIG" = x; then
4668    PKG_CONFIG=""
4669  else
4670    case $cross_compiling:$ac_tool_warned in
4671yes:)
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4674ac_tool_warned=yes ;;
4675esac
4676    PKG_CONFIG=$ac_pt_PKG_CONFIG
4677  fi
4678else
4679  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4680fi
4681
4682fi
4683if test -n "$PKG_CONFIG"; then
4684	_pkg_min_version=0.9.0
4685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4686$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4687	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4688		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4689$as_echo "yes" >&6; }
4690	else
4691		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692$as_echo "no" >&6; }
4693		PKG_CONFIG=""
4694	fi
4695fi
4696# Make sure we can run config.sub.
4697$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4698  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4701$as_echo_n "checking build system type... " >&6; }
4702if ${ac_cv_build+:} false; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  ac_build_alias=$build_alias
4706test "x$ac_build_alias" = x &&
4707  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4708test "x$ac_build_alias" = x &&
4709  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4710ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4711  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4712
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4715$as_echo "$ac_cv_build" >&6; }
4716case $ac_cv_build in
4717*-*-*) ;;
4718*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4719esac
4720build=$ac_cv_build
4721ac_save_IFS=$IFS; IFS='-'
4722set x $ac_cv_build
4723shift
4724build_cpu=$1
4725build_vendor=$2
4726shift; shift
4727# Remember, the first character of IFS is used to create $*,
4728# except with old shells:
4729build_os=$*
4730IFS=$ac_save_IFS
4731case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4732
4733
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4735$as_echo_n "checking host system type... " >&6; }
4736if ${ac_cv_host+:} false; then :
4737  $as_echo_n "(cached) " >&6
4738else
4739  if test "x$host_alias" = x; then
4740  ac_cv_host=$ac_cv_build
4741else
4742  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4743    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4744fi
4745
4746fi
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4748$as_echo "$ac_cv_host" >&6; }
4749case $ac_cv_host in
4750*-*-*) ;;
4751*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4752esac
4753host=$ac_cv_host
4754ac_save_IFS=$IFS; IFS='-'
4755set x $ac_cv_host
4756shift
4757host_cpu=$1
4758host_vendor=$2
4759shift; shift
4760# Remember, the first character of IFS is used to create $*,
4761# except with old shells:
4762host_os=$*
4763IFS=$ac_save_IFS
4764case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4765
4766
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4768$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4769if ${ac_cv_path_SED+:} false; then :
4770  $as_echo_n "(cached) " >&6
4771else
4772            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4773     for ac_i in 1 2 3 4 5 6 7; do
4774       ac_script="$ac_script$as_nl$ac_script"
4775     done
4776     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4777     { ac_script=; unset ac_script;}
4778     if test -z "$SED"; then
4779  ac_path_SED_found=false
4780  # Loop through the user's path and test for each of PROGNAME-LIST
4781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786    for ac_prog in sed gsed; do
4787    for ac_exec_ext in '' $ac_executable_extensions; do
4788      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4789      as_fn_executable_p "$ac_path_SED" || continue
4790# Check for GNU ac_path_SED and select it if it is found.
4791  # Check for GNU $ac_path_SED
4792case `"$ac_path_SED" --version 2>&1` in
4793*GNU*)
4794  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4795*)
4796  ac_count=0
4797  $as_echo_n 0123456789 >"conftest.in"
4798  while :
4799  do
4800    cat "conftest.in" "conftest.in" >"conftest.tmp"
4801    mv "conftest.tmp" "conftest.in"
4802    cp "conftest.in" "conftest.nl"
4803    $as_echo '' >> "conftest.nl"
4804    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4805    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4806    as_fn_arith $ac_count + 1 && ac_count=$as_val
4807    if test $ac_count -gt ${ac_path_SED_max-0}; then
4808      # Best one so far, save it but keep looking for a better one
4809      ac_cv_path_SED="$ac_path_SED"
4810      ac_path_SED_max=$ac_count
4811    fi
4812    # 10*(2^10) chars as input seems more than enough
4813    test $ac_count -gt 10 && break
4814  done
4815  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4816esac
4817
4818      $ac_path_SED_found && break 3
4819    done
4820  done
4821  done
4822IFS=$as_save_IFS
4823  if test -z "$ac_cv_path_SED"; then
4824    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4825  fi
4826else
4827  ac_cv_path_SED=$SED
4828fi
4829
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4832$as_echo "$ac_cv_path_SED" >&6; }
4833 SED="$ac_cv_path_SED"
4834  rm -f conftest.sed
4835
4836
4837
4838
4839
4840
4841# Check whether --enable-selective-werror was given.
4842if test "${enable_selective_werror+set}" = set; then :
4843  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4844else
4845  SELECTIVE_WERROR=yes
4846fi
4847
4848
4849
4850
4851
4852# -v is too short to test reliably with XORG_TESTSET_CFLAG
4853if test "x$SUNCC" = "xyes"; then
4854    BASE_CFLAGS="-v"
4855else
4856    BASE_CFLAGS=""
4857fi
4858
4859# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873xorg_testset_save_CFLAGS="$CFLAGS"
4874
4875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4878$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4879if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4880  $as_echo_n "(cached) " >&6
4881else
4882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883/* end confdefs.h.  */
4884int i;
4885_ACEOF
4886if ac_fn_c_try_compile "$LINENO"; then :
4887  xorg_cv_cc_flag_unknown_warning_option=yes
4888else
4889  xorg_cv_cc_flag_unknown_warning_option=no
4890fi
4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892fi
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4894$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4895	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4896	CFLAGS="$xorg_testset_save_CFLAGS"
4897fi
4898
4899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4900	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4901		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4902	fi
4903	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4905$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4906if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910/* end confdefs.h.  */
4911int i;
4912_ACEOF
4913if ac_fn_c_try_compile "$LINENO"; then :
4914  xorg_cv_cc_flag_unused_command_line_argument=yes
4915else
4916  xorg_cv_cc_flag_unused_command_line_argument=no
4917fi
4918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919fi
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4921$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4922	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4923	CFLAGS="$xorg_testset_save_CFLAGS"
4924fi
4925
4926found="no"
4927
4928	if test $found = "no" ; then
4929		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4930			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4931		fi
4932
4933		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4934			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4935		fi
4936
4937		CFLAGS="$CFLAGS -Wall"
4938
4939		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4940$as_echo_n "checking if $CC supports -Wall... " >&6; }
4941		cacheid=xorg_cv_cc_flag__Wall
4942		if eval \${$cacheid+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946/* end confdefs.h.  */
4947int i;
4948int
4949main ()
4950{
4951
4952  ;
4953  return 0;
4954}
4955_ACEOF
4956if ac_fn_c_try_link "$LINENO"; then :
4957  eval $cacheid=yes
4958else
4959  eval $cacheid=no
4960fi
4961rm -f core conftest.err conftest.$ac_objext \
4962    conftest$ac_exeext conftest.$ac_ext
4963fi
4964
4965
4966		CFLAGS="$xorg_testset_save_CFLAGS"
4967
4968		eval supported=\$$cacheid
4969		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4970$as_echo "$supported" >&6; }
4971		if test "$supported" = "yes" ; then
4972			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4973			found="yes"
4974		fi
4975	fi
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991xorg_testset_save_CFLAGS="$CFLAGS"
4992
4993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4994	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001/* end confdefs.h.  */
5002int i;
5003_ACEOF
5004if ac_fn_c_try_compile "$LINENO"; then :
5005  xorg_cv_cc_flag_unknown_warning_option=yes
5006else
5007  xorg_cv_cc_flag_unknown_warning_option=no
5008fi
5009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010fi
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5013	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5014	CFLAGS="$xorg_testset_save_CFLAGS"
5015fi
5016
5017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5018	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5019		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5020	fi
5021	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028/* end confdefs.h.  */
5029int i;
5030_ACEOF
5031if ac_fn_c_try_compile "$LINENO"; then :
5032  xorg_cv_cc_flag_unused_command_line_argument=yes
5033else
5034  xorg_cv_cc_flag_unused_command_line_argument=no
5035fi
5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037fi
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5040	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5041	CFLAGS="$xorg_testset_save_CFLAGS"
5042fi
5043
5044found="no"
5045
5046	if test $found = "no" ; then
5047		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5049		fi
5050
5051		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5053		fi
5054
5055		CFLAGS="$CFLAGS -Wpointer-arith"
5056
5057		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5058$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5059		cacheid=xorg_cv_cc_flag__Wpointer_arith
5060		if eval \${$cacheid+:} false; then :
5061  $as_echo_n "(cached) " >&6
5062else
5063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065int i;
5066int
5067main ()
5068{
5069
5070  ;
5071  return 0;
5072}
5073_ACEOF
5074if ac_fn_c_try_link "$LINENO"; then :
5075  eval $cacheid=yes
5076else
5077  eval $cacheid=no
5078fi
5079rm -f core conftest.err conftest.$ac_objext \
5080    conftest$ac_exeext conftest.$ac_ext
5081fi
5082
5083
5084		CFLAGS="$xorg_testset_save_CFLAGS"
5085
5086		eval supported=\$$cacheid
5087		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5088$as_echo "$supported" >&6; }
5089		if test "$supported" = "yes" ; then
5090			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5091			found="yes"
5092		fi
5093	fi
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109xorg_testset_save_CFLAGS="$CFLAGS"
5110
5111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5112	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5114$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5115if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5116  $as_echo_n "(cached) " >&6
5117else
5118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119/* end confdefs.h.  */
5120int i;
5121_ACEOF
5122if ac_fn_c_try_compile "$LINENO"; then :
5123  xorg_cv_cc_flag_unknown_warning_option=yes
5124else
5125  xorg_cv_cc_flag_unknown_warning_option=no
5126fi
5127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128fi
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5130$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5131	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5132	CFLAGS="$xorg_testset_save_CFLAGS"
5133fi
5134
5135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5136	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5137		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5138	fi
5139	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5141$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5142if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5143  $as_echo_n "(cached) " >&6
5144else
5145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h.  */
5147int i;
5148_ACEOF
5149if ac_fn_c_try_compile "$LINENO"; then :
5150  xorg_cv_cc_flag_unused_command_line_argument=yes
5151else
5152  xorg_cv_cc_flag_unused_command_line_argument=no
5153fi
5154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155fi
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5157$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5159	CFLAGS="$xorg_testset_save_CFLAGS"
5160fi
5161
5162found="no"
5163
5164	if test $found = "no" ; then
5165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5167		fi
5168
5169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5171		fi
5172
5173		CFLAGS="$CFLAGS -Wmissing-declarations"
5174
5175		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5176$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5177		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5178		if eval \${$cacheid+:} false; then :
5179  $as_echo_n "(cached) " >&6
5180else
5181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182/* end confdefs.h.  */
5183int i;
5184int
5185main ()
5186{
5187
5188  ;
5189  return 0;
5190}
5191_ACEOF
5192if ac_fn_c_try_link "$LINENO"; then :
5193  eval $cacheid=yes
5194else
5195  eval $cacheid=no
5196fi
5197rm -f core conftest.err conftest.$ac_objext \
5198    conftest$ac_exeext conftest.$ac_ext
5199fi
5200
5201
5202		CFLAGS="$xorg_testset_save_CFLAGS"
5203
5204		eval supported=\$$cacheid
5205		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5206$as_echo "$supported" >&6; }
5207		if test "$supported" = "yes" ; then
5208			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5209			found="yes"
5210		fi
5211	fi
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227xorg_testset_save_CFLAGS="$CFLAGS"
5228
5229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5232$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5233if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5234  $as_echo_n "(cached) " >&6
5235else
5236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237/* end confdefs.h.  */
5238int i;
5239_ACEOF
5240if ac_fn_c_try_compile "$LINENO"; then :
5241  xorg_cv_cc_flag_unknown_warning_option=yes
5242else
5243  xorg_cv_cc_flag_unknown_warning_option=no
5244fi
5245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246fi
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5248$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5250	CFLAGS="$xorg_testset_save_CFLAGS"
5251fi
5252
5253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256	fi
5257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5259$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5260if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264/* end confdefs.h.  */
5265int i;
5266_ACEOF
5267if ac_fn_c_try_compile "$LINENO"; then :
5268  xorg_cv_cc_flag_unused_command_line_argument=yes
5269else
5270  xorg_cv_cc_flag_unused_command_line_argument=no
5271fi
5272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273fi
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5275$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5276	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5277	CFLAGS="$xorg_testset_save_CFLAGS"
5278fi
5279
5280found="no"
5281
5282	if test $found = "no" ; then
5283		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5284			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5285		fi
5286
5287		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5288			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5289		fi
5290
5291		CFLAGS="$CFLAGS -Wformat=2"
5292
5293		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5294$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5295		cacheid=xorg_cv_cc_flag__Wformat_2
5296		if eval \${$cacheid+:} false; then :
5297  $as_echo_n "(cached) " >&6
5298else
5299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h.  */
5301int i;
5302int
5303main ()
5304{
5305
5306  ;
5307  return 0;
5308}
5309_ACEOF
5310if ac_fn_c_try_link "$LINENO"; then :
5311  eval $cacheid=yes
5312else
5313  eval $cacheid=no
5314fi
5315rm -f core conftest.err conftest.$ac_objext \
5316    conftest$ac_exeext conftest.$ac_ext
5317fi
5318
5319
5320		CFLAGS="$xorg_testset_save_CFLAGS"
5321
5322		eval supported=\$$cacheid
5323		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5324$as_echo "$supported" >&6; }
5325		if test "$supported" = "yes" ; then
5326			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5327			found="yes"
5328		fi
5329	fi
5330
5331	if test $found = "no" ; then
5332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334		fi
5335
5336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5338		fi
5339
5340		CFLAGS="$CFLAGS -Wformat"
5341
5342		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5343$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5344		cacheid=xorg_cv_cc_flag__Wformat
5345		if eval \${$cacheid+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350int i;
5351int
5352main ()
5353{
5354
5355  ;
5356  return 0;
5357}
5358_ACEOF
5359if ac_fn_c_try_link "$LINENO"; then :
5360  eval $cacheid=yes
5361else
5362  eval $cacheid=no
5363fi
5364rm -f core conftest.err conftest.$ac_objext \
5365    conftest$ac_exeext conftest.$ac_ext
5366fi
5367
5368
5369		CFLAGS="$xorg_testset_save_CFLAGS"
5370
5371		eval supported=\$$cacheid
5372		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5373$as_echo "$supported" >&6; }
5374		if test "$supported" = "yes" ; then
5375			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5376			found="yes"
5377		fi
5378	fi
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396xorg_testset_save_CFLAGS="$CFLAGS"
5397
5398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5400	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5401$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5402if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h.  */
5407int i;
5408_ACEOF
5409if ac_fn_c_try_compile "$LINENO"; then :
5410  xorg_cv_cc_flag_unknown_warning_option=yes
5411else
5412  xorg_cv_cc_flag_unknown_warning_option=no
5413fi
5414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5417$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5419	CFLAGS="$xorg_testset_save_CFLAGS"
5420fi
5421
5422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5425	fi
5426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5429if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h.  */
5434int i;
5435_ACEOF
5436if ac_fn_c_try_compile "$LINENO"; then :
5437  xorg_cv_cc_flag_unused_command_line_argument=yes
5438else
5439  xorg_cv_cc_flag_unused_command_line_argument=no
5440fi
5441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442fi
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5444$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5446	CFLAGS="$xorg_testset_save_CFLAGS"
5447fi
5448
5449found="no"
5450
5451	if test $found = "no" ; then
5452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454		fi
5455
5456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5458		fi
5459
5460		CFLAGS="$CFLAGS -Wstrict-prototypes"
5461
5462		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5463$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5464		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5465		if eval \${$cacheid+:} false; then :
5466  $as_echo_n "(cached) " >&6
5467else
5468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470int i;
5471int
5472main ()
5473{
5474
5475  ;
5476  return 0;
5477}
5478_ACEOF
5479if ac_fn_c_try_link "$LINENO"; then :
5480  eval $cacheid=yes
5481else
5482  eval $cacheid=no
5483fi
5484rm -f core conftest.err conftest.$ac_objext \
5485    conftest$ac_exeext conftest.$ac_ext
5486fi
5487
5488
5489		CFLAGS="$xorg_testset_save_CFLAGS"
5490
5491		eval supported=\$$cacheid
5492		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5493$as_echo "$supported" >&6; }
5494		if test "$supported" = "yes" ; then
5495			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5496			found="yes"
5497		fi
5498	fi
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514xorg_testset_save_CFLAGS="$CFLAGS"
5515
5516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5517	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5519$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5520if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5521  $as_echo_n "(cached) " >&6
5522else
5523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h.  */
5525int i;
5526_ACEOF
5527if ac_fn_c_try_compile "$LINENO"; then :
5528  xorg_cv_cc_flag_unknown_warning_option=yes
5529else
5530  xorg_cv_cc_flag_unknown_warning_option=no
5531fi
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533fi
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5535$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5536	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5537	CFLAGS="$xorg_testset_save_CFLAGS"
5538fi
5539
5540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5541	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5542		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5543	fi
5544	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5547if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551/* end confdefs.h.  */
5552int i;
5553_ACEOF
5554if ac_fn_c_try_compile "$LINENO"; then :
5555  xorg_cv_cc_flag_unused_command_line_argument=yes
5556else
5557  xorg_cv_cc_flag_unused_command_line_argument=no
5558fi
5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560fi
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5562$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5564	CFLAGS="$xorg_testset_save_CFLAGS"
5565fi
5566
5567found="no"
5568
5569	if test $found = "no" ; then
5570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572		fi
5573
5574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576		fi
5577
5578		CFLAGS="$CFLAGS -Wmissing-prototypes"
5579
5580		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5581$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5582		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5583		if eval \${$cacheid+:} false; then :
5584  $as_echo_n "(cached) " >&6
5585else
5586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h.  */
5588int i;
5589int
5590main ()
5591{
5592
5593  ;
5594  return 0;
5595}
5596_ACEOF
5597if ac_fn_c_try_link "$LINENO"; then :
5598  eval $cacheid=yes
5599else
5600  eval $cacheid=no
5601fi
5602rm -f core conftest.err conftest.$ac_objext \
5603    conftest$ac_exeext conftest.$ac_ext
5604fi
5605
5606
5607		CFLAGS="$xorg_testset_save_CFLAGS"
5608
5609		eval supported=\$$cacheid
5610		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5611$as_echo "$supported" >&6; }
5612		if test "$supported" = "yes" ; then
5613			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5614			found="yes"
5615		fi
5616	fi
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632xorg_testset_save_CFLAGS="$CFLAGS"
5633
5634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5635	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5637$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5638if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5639  $as_echo_n "(cached) " >&6
5640else
5641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642/* end confdefs.h.  */
5643int i;
5644_ACEOF
5645if ac_fn_c_try_compile "$LINENO"; then :
5646  xorg_cv_cc_flag_unknown_warning_option=yes
5647else
5648  xorg_cv_cc_flag_unknown_warning_option=no
5649fi
5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651fi
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5653$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5654	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5655	CFLAGS="$xorg_testset_save_CFLAGS"
5656fi
5657
5658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5659	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5660		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661	fi
5662	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5664$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5665if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5666  $as_echo_n "(cached) " >&6
5667else
5668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669/* end confdefs.h.  */
5670int i;
5671_ACEOF
5672if ac_fn_c_try_compile "$LINENO"; then :
5673  xorg_cv_cc_flag_unused_command_line_argument=yes
5674else
5675  xorg_cv_cc_flag_unused_command_line_argument=no
5676fi
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678fi
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5680$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5681	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5682	CFLAGS="$xorg_testset_save_CFLAGS"
5683fi
5684
5685found="no"
5686
5687	if test $found = "no" ; then
5688		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5689			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690		fi
5691
5692		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5693			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5694		fi
5695
5696		CFLAGS="$CFLAGS -Wnested-externs"
5697
5698		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5699$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5700		cacheid=xorg_cv_cc_flag__Wnested_externs
5701		if eval \${$cacheid+:} false; then :
5702  $as_echo_n "(cached) " >&6
5703else
5704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h.  */
5706int i;
5707int
5708main ()
5709{
5710
5711  ;
5712  return 0;
5713}
5714_ACEOF
5715if ac_fn_c_try_link "$LINENO"; then :
5716  eval $cacheid=yes
5717else
5718  eval $cacheid=no
5719fi
5720rm -f core conftest.err conftest.$ac_objext \
5721    conftest$ac_exeext conftest.$ac_ext
5722fi
5723
5724
5725		CFLAGS="$xorg_testset_save_CFLAGS"
5726
5727		eval supported=\$$cacheid
5728		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5729$as_echo "$supported" >&6; }
5730		if test "$supported" = "yes" ; then
5731			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5732			found="yes"
5733		fi
5734	fi
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750xorg_testset_save_CFLAGS="$CFLAGS"
5751
5752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5753	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5755$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5756if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761int i;
5762_ACEOF
5763if ac_fn_c_try_compile "$LINENO"; then :
5764  xorg_cv_cc_flag_unknown_warning_option=yes
5765else
5766  xorg_cv_cc_flag_unknown_warning_option=no
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769fi
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5771$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5772	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5773	CFLAGS="$xorg_testset_save_CFLAGS"
5774fi
5775
5776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5777	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5778		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779	fi
5780	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5782$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5783if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5784  $as_echo_n "(cached) " >&6
5785else
5786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h.  */
5788int i;
5789_ACEOF
5790if ac_fn_c_try_compile "$LINENO"; then :
5791  xorg_cv_cc_flag_unused_command_line_argument=yes
5792else
5793  xorg_cv_cc_flag_unused_command_line_argument=no
5794fi
5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796fi
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5798$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5800	CFLAGS="$xorg_testset_save_CFLAGS"
5801fi
5802
5803found="no"
5804
5805	if test $found = "no" ; then
5806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808		fi
5809
5810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5812		fi
5813
5814		CFLAGS="$CFLAGS -Wbad-function-cast"
5815
5816		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5817$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5818		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5819		if eval \${$cacheid+:} false; then :
5820  $as_echo_n "(cached) " >&6
5821else
5822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h.  */
5824int i;
5825int
5826main ()
5827{
5828
5829  ;
5830  return 0;
5831}
5832_ACEOF
5833if ac_fn_c_try_link "$LINENO"; then :
5834  eval $cacheid=yes
5835else
5836  eval $cacheid=no
5837fi
5838rm -f core conftest.err conftest.$ac_objext \
5839    conftest$ac_exeext conftest.$ac_ext
5840fi
5841
5842
5843		CFLAGS="$xorg_testset_save_CFLAGS"
5844
5845		eval supported=\$$cacheid
5846		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5847$as_echo "$supported" >&6; }
5848		if test "$supported" = "yes" ; then
5849			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5850			found="yes"
5851		fi
5852	fi
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868xorg_testset_save_CFLAGS="$CFLAGS"
5869
5870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5875  $as_echo_n "(cached) " >&6
5876else
5877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h.  */
5879int i;
5880_ACEOF
5881if ac_fn_c_try_compile "$LINENO"; then :
5882  xorg_cv_cc_flag_unknown_warning_option=yes
5883else
5884  xorg_cv_cc_flag_unknown_warning_option=no
5885fi
5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887fi
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5890	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5891	CFLAGS="$xorg_testset_save_CFLAGS"
5892fi
5893
5894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5895	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5896		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897	fi
5898	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5901if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h.  */
5906int i;
5907_ACEOF
5908if ac_fn_c_try_compile "$LINENO"; then :
5909  xorg_cv_cc_flag_unused_command_line_argument=yes
5910else
5911  xorg_cv_cc_flag_unused_command_line_argument=no
5912fi
5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5918	CFLAGS="$xorg_testset_save_CFLAGS"
5919fi
5920
5921found="no"
5922
5923	if test $found = "no" ; then
5924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5926		fi
5927
5928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5930		fi
5931
5932		CFLAGS="$CFLAGS -Wold-style-definition"
5933
5934		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5935$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5936		cacheid=xorg_cv_cc_flag__Wold_style_definition
5937		if eval \${$cacheid+:} false; then :
5938  $as_echo_n "(cached) " >&6
5939else
5940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h.  */
5942int i;
5943int
5944main ()
5945{
5946
5947  ;
5948  return 0;
5949}
5950_ACEOF
5951if ac_fn_c_try_link "$LINENO"; then :
5952  eval $cacheid=yes
5953else
5954  eval $cacheid=no
5955fi
5956rm -f core conftest.err conftest.$ac_objext \
5957    conftest$ac_exeext conftest.$ac_ext
5958fi
5959
5960
5961		CFLAGS="$xorg_testset_save_CFLAGS"
5962
5963		eval supported=\$$cacheid
5964		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5965$as_echo "$supported" >&6; }
5966		if test "$supported" = "yes" ; then
5967			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5968			found="yes"
5969		fi
5970	fi
5971
5972	if test $found = "no" ; then
5973		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975		fi
5976
5977		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5979		fi
5980
5981		CFLAGS="$CFLAGS -fd"
5982
5983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5984$as_echo_n "checking if $CC supports -fd... " >&6; }
5985		cacheid=xorg_cv_cc_flag__fd
5986		if eval \${$cacheid+:} false; then :
5987  $as_echo_n "(cached) " >&6
5988else
5989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990/* end confdefs.h.  */
5991int i;
5992int
5993main ()
5994{
5995
5996  ;
5997  return 0;
5998}
5999_ACEOF
6000if ac_fn_c_try_link "$LINENO"; then :
6001  eval $cacheid=yes
6002else
6003  eval $cacheid=no
6004fi
6005rm -f core conftest.err conftest.$ac_objext \
6006    conftest$ac_exeext conftest.$ac_ext
6007fi
6008
6009
6010		CFLAGS="$xorg_testset_save_CFLAGS"
6011
6012		eval supported=\$$cacheid
6013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6014$as_echo "$supported" >&6; }
6015		if test "$supported" = "yes" ; then
6016			BASE_CFLAGS="$BASE_CFLAGS -fd"
6017			found="yes"
6018		fi
6019	fi
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035xorg_testset_save_CFLAGS="$CFLAGS"
6036
6037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6042  $as_echo_n "(cached) " >&6
6043else
6044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h.  */
6046int i;
6047_ACEOF
6048if ac_fn_c_try_compile "$LINENO"; then :
6049  xorg_cv_cc_flag_unknown_warning_option=yes
6050else
6051  xorg_cv_cc_flag_unknown_warning_option=no
6052fi
6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054fi
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6058	CFLAGS="$xorg_testset_save_CFLAGS"
6059fi
6060
6061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6064	fi
6065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h.  */
6073int i;
6074_ACEOF
6075if ac_fn_c_try_compile "$LINENO"; then :
6076  xorg_cv_cc_flag_unused_command_line_argument=yes
6077else
6078  xorg_cv_cc_flag_unused_command_line_argument=no
6079fi
6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081fi
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6085	CFLAGS="$xorg_testset_save_CFLAGS"
6086fi
6087
6088found="no"
6089
6090	if test $found = "no" ; then
6091		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093		fi
6094
6095		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6097		fi
6098
6099		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6100
6101		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6102$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6103		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6104		if eval \${$cacheid+:} false; then :
6105  $as_echo_n "(cached) " >&6
6106else
6107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109int i;
6110int
6111main ()
6112{
6113
6114  ;
6115  return 0;
6116}
6117_ACEOF
6118if ac_fn_c_try_link "$LINENO"; then :
6119  eval $cacheid=yes
6120else
6121  eval $cacheid=no
6122fi
6123rm -f core conftest.err conftest.$ac_objext \
6124    conftest$ac_exeext conftest.$ac_ext
6125fi
6126
6127
6128		CFLAGS="$xorg_testset_save_CFLAGS"
6129
6130		eval supported=\$$cacheid
6131		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6132$as_echo "$supported" >&6; }
6133		if test "$supported" = "yes" ; then
6134			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6135			found="yes"
6136		fi
6137	fi
6138
6139
6140
6141
6142
6143# This chunk adds additional warnings that could catch undesired effects.
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157xorg_testset_save_CFLAGS="$CFLAGS"
6158
6159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6164  $as_echo_n "(cached) " >&6
6165else
6166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167/* end confdefs.h.  */
6168int i;
6169_ACEOF
6170if ac_fn_c_try_compile "$LINENO"; then :
6171  xorg_cv_cc_flag_unknown_warning_option=yes
6172else
6173  xorg_cv_cc_flag_unknown_warning_option=no
6174fi
6175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176fi
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6180	CFLAGS="$xorg_testset_save_CFLAGS"
6181fi
6182
6183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186	fi
6187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194/* end confdefs.h.  */
6195int i;
6196_ACEOF
6197if ac_fn_c_try_compile "$LINENO"; then :
6198  xorg_cv_cc_flag_unused_command_line_argument=yes
6199else
6200  xorg_cv_cc_flag_unused_command_line_argument=no
6201fi
6202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6207	CFLAGS="$xorg_testset_save_CFLAGS"
6208fi
6209
6210found="no"
6211
6212	if test $found = "no" ; then
6213		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215		fi
6216
6217		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6219		fi
6220
6221		CFLAGS="$CFLAGS -Wunused"
6222
6223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6224$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6225		cacheid=xorg_cv_cc_flag__Wunused
6226		if eval \${$cacheid+:} false; then :
6227  $as_echo_n "(cached) " >&6
6228else
6229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230/* end confdefs.h.  */
6231int i;
6232int
6233main ()
6234{
6235
6236  ;
6237  return 0;
6238}
6239_ACEOF
6240if ac_fn_c_try_link "$LINENO"; then :
6241  eval $cacheid=yes
6242else
6243  eval $cacheid=no
6244fi
6245rm -f core conftest.err conftest.$ac_objext \
6246    conftest$ac_exeext conftest.$ac_ext
6247fi
6248
6249
6250		CFLAGS="$xorg_testset_save_CFLAGS"
6251
6252		eval supported=\$$cacheid
6253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6254$as_echo "$supported" >&6; }
6255		if test "$supported" = "yes" ; then
6256			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6257			found="yes"
6258		fi
6259	fi
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275xorg_testset_save_CFLAGS="$CFLAGS"
6276
6277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285/* end confdefs.h.  */
6286int i;
6287_ACEOF
6288if ac_fn_c_try_compile "$LINENO"; then :
6289  xorg_cv_cc_flag_unknown_warning_option=yes
6290else
6291  xorg_cv_cc_flag_unknown_warning_option=no
6292fi
6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294fi
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6298	CFLAGS="$xorg_testset_save_CFLAGS"
6299fi
6300
6301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304	fi
6305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6309  $as_echo_n "(cached) " >&6
6310else
6311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312/* end confdefs.h.  */
6313int i;
6314_ACEOF
6315if ac_fn_c_try_compile "$LINENO"; then :
6316  xorg_cv_cc_flag_unused_command_line_argument=yes
6317else
6318  xorg_cv_cc_flag_unused_command_line_argument=no
6319fi
6320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6325	CFLAGS="$xorg_testset_save_CFLAGS"
6326fi
6327
6328found="no"
6329
6330	if test $found = "no" ; then
6331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333		fi
6334
6335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337		fi
6338
6339		CFLAGS="$CFLAGS -Wuninitialized"
6340
6341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6342$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6343		cacheid=xorg_cv_cc_flag__Wuninitialized
6344		if eval \${$cacheid+:} false; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348/* end confdefs.h.  */
6349int i;
6350int
6351main ()
6352{
6353
6354  ;
6355  return 0;
6356}
6357_ACEOF
6358if ac_fn_c_try_link "$LINENO"; then :
6359  eval $cacheid=yes
6360else
6361  eval $cacheid=no
6362fi
6363rm -f core conftest.err conftest.$ac_objext \
6364    conftest$ac_exeext conftest.$ac_ext
6365fi
6366
6367
6368		CFLAGS="$xorg_testset_save_CFLAGS"
6369
6370		eval supported=\$$cacheid
6371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6372$as_echo "$supported" >&6; }
6373		if test "$supported" = "yes" ; then
6374			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6375			found="yes"
6376		fi
6377	fi
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393xorg_testset_save_CFLAGS="$CFLAGS"
6394
6395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6400  $as_echo_n "(cached) " >&6
6401else
6402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403/* end confdefs.h.  */
6404int i;
6405_ACEOF
6406if ac_fn_c_try_compile "$LINENO"; then :
6407  xorg_cv_cc_flag_unknown_warning_option=yes
6408else
6409  xorg_cv_cc_flag_unknown_warning_option=no
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412fi
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6416	CFLAGS="$xorg_testset_save_CFLAGS"
6417fi
6418
6419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6422	fi
6423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431int i;
6432_ACEOF
6433if ac_fn_c_try_compile "$LINENO"; then :
6434  xorg_cv_cc_flag_unused_command_line_argument=yes
6435else
6436  xorg_cv_cc_flag_unused_command_line_argument=no
6437fi
6438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439fi
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6443	CFLAGS="$xorg_testset_save_CFLAGS"
6444fi
6445
6446found="no"
6447
6448	if test $found = "no" ; then
6449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451		fi
6452
6453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6455		fi
6456
6457		CFLAGS="$CFLAGS -Wshadow"
6458
6459		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6460$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6461		cacheid=xorg_cv_cc_flag__Wshadow
6462		if eval \${$cacheid+:} false; then :
6463  $as_echo_n "(cached) " >&6
6464else
6465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466/* end confdefs.h.  */
6467int i;
6468int
6469main ()
6470{
6471
6472  ;
6473  return 0;
6474}
6475_ACEOF
6476if ac_fn_c_try_link "$LINENO"; then :
6477  eval $cacheid=yes
6478else
6479  eval $cacheid=no
6480fi
6481rm -f core conftest.err conftest.$ac_objext \
6482    conftest$ac_exeext conftest.$ac_ext
6483fi
6484
6485
6486		CFLAGS="$xorg_testset_save_CFLAGS"
6487
6488		eval supported=\$$cacheid
6489		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6490$as_echo "$supported" >&6; }
6491		if test "$supported" = "yes" ; then
6492			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6493			found="yes"
6494		fi
6495	fi
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511xorg_testset_save_CFLAGS="$CFLAGS"
6512
6513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6518  $as_echo_n "(cached) " >&6
6519else
6520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521/* end confdefs.h.  */
6522int i;
6523_ACEOF
6524if ac_fn_c_try_compile "$LINENO"; then :
6525  xorg_cv_cc_flag_unknown_warning_option=yes
6526else
6527  xorg_cv_cc_flag_unknown_warning_option=no
6528fi
6529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530fi
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6534	CFLAGS="$xorg_testset_save_CFLAGS"
6535fi
6536
6537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540	fi
6541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6545  $as_echo_n "(cached) " >&6
6546else
6547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549int i;
6550_ACEOF
6551if ac_fn_c_try_compile "$LINENO"; then :
6552  xorg_cv_cc_flag_unused_command_line_argument=yes
6553else
6554  xorg_cv_cc_flag_unused_command_line_argument=no
6555fi
6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557fi
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6561	CFLAGS="$xorg_testset_save_CFLAGS"
6562fi
6563
6564found="no"
6565
6566	if test $found = "no" ; then
6567		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569		fi
6570
6571		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6573		fi
6574
6575		CFLAGS="$CFLAGS -Wmissing-noreturn"
6576
6577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6578$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6579		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6580		if eval \${$cacheid+:} false; then :
6581  $as_echo_n "(cached) " >&6
6582else
6583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584/* end confdefs.h.  */
6585int i;
6586int
6587main ()
6588{
6589
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594if ac_fn_c_try_link "$LINENO"; then :
6595  eval $cacheid=yes
6596else
6597  eval $cacheid=no
6598fi
6599rm -f core conftest.err conftest.$ac_objext \
6600    conftest$ac_exeext conftest.$ac_ext
6601fi
6602
6603
6604		CFLAGS="$xorg_testset_save_CFLAGS"
6605
6606		eval supported=\$$cacheid
6607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6608$as_echo "$supported" >&6; }
6609		if test "$supported" = "yes" ; then
6610			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6611			found="yes"
6612		fi
6613	fi
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629xorg_testset_save_CFLAGS="$CFLAGS"
6630
6631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6636  $as_echo_n "(cached) " >&6
6637else
6638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h.  */
6640int i;
6641_ACEOF
6642if ac_fn_c_try_compile "$LINENO"; then :
6643  xorg_cv_cc_flag_unknown_warning_option=yes
6644else
6645  xorg_cv_cc_flag_unknown_warning_option=no
6646fi
6647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648fi
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6652	CFLAGS="$xorg_testset_save_CFLAGS"
6653fi
6654
6655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6658	fi
6659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6663  $as_echo_n "(cached) " >&6
6664else
6665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h.  */
6667int i;
6668_ACEOF
6669if ac_fn_c_try_compile "$LINENO"; then :
6670  xorg_cv_cc_flag_unused_command_line_argument=yes
6671else
6672  xorg_cv_cc_flag_unused_command_line_argument=no
6673fi
6674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675fi
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6679	CFLAGS="$xorg_testset_save_CFLAGS"
6680fi
6681
6682found="no"
6683
6684	if test $found = "no" ; then
6685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687		fi
6688
6689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6691		fi
6692
6693		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6694
6695		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6696$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6697		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6698		if eval \${$cacheid+:} false; then :
6699  $as_echo_n "(cached) " >&6
6700else
6701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h.  */
6703int i;
6704int
6705main ()
6706{
6707
6708  ;
6709  return 0;
6710}
6711_ACEOF
6712if ac_fn_c_try_link "$LINENO"; then :
6713  eval $cacheid=yes
6714else
6715  eval $cacheid=no
6716fi
6717rm -f core conftest.err conftest.$ac_objext \
6718    conftest$ac_exeext conftest.$ac_ext
6719fi
6720
6721
6722		CFLAGS="$xorg_testset_save_CFLAGS"
6723
6724		eval supported=\$$cacheid
6725		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6726$as_echo "$supported" >&6; }
6727		if test "$supported" = "yes" ; then
6728			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6729			found="yes"
6730		fi
6731	fi
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747xorg_testset_save_CFLAGS="$CFLAGS"
6748
6749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6754  $as_echo_n "(cached) " >&6
6755else
6756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757/* end confdefs.h.  */
6758int i;
6759_ACEOF
6760if ac_fn_c_try_compile "$LINENO"; then :
6761  xorg_cv_cc_flag_unknown_warning_option=yes
6762else
6763  xorg_cv_cc_flag_unknown_warning_option=no
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766fi
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6770	CFLAGS="$xorg_testset_save_CFLAGS"
6771fi
6772
6773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776	fi
6777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6781  $as_echo_n "(cached) " >&6
6782else
6783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784/* end confdefs.h.  */
6785int i;
6786_ACEOF
6787if ac_fn_c_try_compile "$LINENO"; then :
6788  xorg_cv_cc_flag_unused_command_line_argument=yes
6789else
6790  xorg_cv_cc_flag_unused_command_line_argument=no
6791fi
6792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793fi
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6797	CFLAGS="$xorg_testset_save_CFLAGS"
6798fi
6799
6800found="no"
6801
6802	if test $found = "no" ; then
6803		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805		fi
6806
6807		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6809		fi
6810
6811		CFLAGS="$CFLAGS -Wredundant-decls"
6812
6813		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6814$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6815		cacheid=xorg_cv_cc_flag__Wredundant_decls
6816		if eval \${$cacheid+:} false; then :
6817  $as_echo_n "(cached) " >&6
6818else
6819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820/* end confdefs.h.  */
6821int i;
6822int
6823main ()
6824{
6825
6826  ;
6827  return 0;
6828}
6829_ACEOF
6830if ac_fn_c_try_link "$LINENO"; then :
6831  eval $cacheid=yes
6832else
6833  eval $cacheid=no
6834fi
6835rm -f core conftest.err conftest.$ac_objext \
6836    conftest$ac_exeext conftest.$ac_ext
6837fi
6838
6839
6840		CFLAGS="$xorg_testset_save_CFLAGS"
6841
6842		eval supported=\$$cacheid
6843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6844$as_echo "$supported" >&6; }
6845		if test "$supported" = "yes" ; then
6846			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6847			found="yes"
6848		fi
6849	fi
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865xorg_testset_save_CFLAGS="$CFLAGS"
6866
6867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6872  $as_echo_n "(cached) " >&6
6873else
6874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h.  */
6876int i;
6877_ACEOF
6878if ac_fn_c_try_compile "$LINENO"; then :
6879  xorg_cv_cc_flag_unknown_warning_option=yes
6880else
6881  xorg_cv_cc_flag_unknown_warning_option=no
6882fi
6883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884fi
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6888	CFLAGS="$xorg_testset_save_CFLAGS"
6889fi
6890
6891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6894	fi
6895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6899  $as_echo_n "(cached) " >&6
6900else
6901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902/* end confdefs.h.  */
6903int i;
6904_ACEOF
6905if ac_fn_c_try_compile "$LINENO"; then :
6906  xorg_cv_cc_flag_unused_command_line_argument=yes
6907else
6908  xorg_cv_cc_flag_unused_command_line_argument=no
6909fi
6910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911fi
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6915	CFLAGS="$xorg_testset_save_CFLAGS"
6916fi
6917
6918found="no"
6919
6920	if test $found = "no" ; then
6921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923		fi
6924
6925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6927		fi
6928
6929		CFLAGS="$CFLAGS -Wlogical-op"
6930
6931		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6932$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6933		cacheid=xorg_cv_cc_flag__Wlogical_op
6934		if eval \${$cacheid+:} false; then :
6935  $as_echo_n "(cached) " >&6
6936else
6937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938/* end confdefs.h.  */
6939int i;
6940int
6941main ()
6942{
6943
6944  ;
6945  return 0;
6946}
6947_ACEOF
6948if ac_fn_c_try_link "$LINENO"; then :
6949  eval $cacheid=yes
6950else
6951  eval $cacheid=no
6952fi
6953rm -f core conftest.err conftest.$ac_objext \
6954    conftest$ac_exeext conftest.$ac_ext
6955fi
6956
6957
6958		CFLAGS="$xorg_testset_save_CFLAGS"
6959
6960		eval supported=\$$cacheid
6961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6962$as_echo "$supported" >&6; }
6963		if test "$supported" = "yes" ; then
6964			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6965			found="yes"
6966		fi
6967	fi
6968
6969
6970
6971# These are currently disabled because they are noisy.  They will be enabled
6972# in the future once the codebase is sufficiently modernized to silence
6973# them.  For now, I don't want them to drown out the other warnings.
6974# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6975# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6976# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6977
6978# Turn some warnings into errors, so we don't accidently get successful builds
6979# when there are problems that should be fixed.
6980
6981if test "x$SELECTIVE_WERROR" = "xyes" ; then
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995xorg_testset_save_CFLAGS="$CFLAGS"
6996
6997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7002  $as_echo_n "(cached) " >&6
7003else
7004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005/* end confdefs.h.  */
7006int i;
7007_ACEOF
7008if ac_fn_c_try_compile "$LINENO"; then :
7009  xorg_cv_cc_flag_unknown_warning_option=yes
7010else
7011  xorg_cv_cc_flag_unknown_warning_option=no
7012fi
7013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014fi
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7018	CFLAGS="$xorg_testset_save_CFLAGS"
7019fi
7020
7021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024	fi
7025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7029  $as_echo_n "(cached) " >&6
7030else
7031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032/* end confdefs.h.  */
7033int i;
7034_ACEOF
7035if ac_fn_c_try_compile "$LINENO"; then :
7036  xorg_cv_cc_flag_unused_command_line_argument=yes
7037else
7038  xorg_cv_cc_flag_unused_command_line_argument=no
7039fi
7040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041fi
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7045	CFLAGS="$xorg_testset_save_CFLAGS"
7046fi
7047
7048found="no"
7049
7050	if test $found = "no" ; then
7051		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7053		fi
7054
7055		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7057		fi
7058
7059		CFLAGS="$CFLAGS -Werror=implicit"
7060
7061		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7062$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7063		cacheid=xorg_cv_cc_flag__Werror_implicit
7064		if eval \${$cacheid+:} false; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069int i;
7070int
7071main ()
7072{
7073
7074  ;
7075  return 0;
7076}
7077_ACEOF
7078if ac_fn_c_try_link "$LINENO"; then :
7079  eval $cacheid=yes
7080else
7081  eval $cacheid=no
7082fi
7083rm -f core conftest.err conftest.$ac_objext \
7084    conftest$ac_exeext conftest.$ac_ext
7085fi
7086
7087
7088		CFLAGS="$xorg_testset_save_CFLAGS"
7089
7090		eval supported=\$$cacheid
7091		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7092$as_echo "$supported" >&6; }
7093		if test "$supported" = "yes" ; then
7094			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7095			found="yes"
7096		fi
7097	fi
7098
7099	if test $found = "no" ; then
7100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102		fi
7103
7104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7106		fi
7107
7108		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7109
7110		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7111$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7112		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7113		if eval \${$cacheid+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117/* end confdefs.h.  */
7118int i;
7119int
7120main ()
7121{
7122
7123  ;
7124  return 0;
7125}
7126_ACEOF
7127if ac_fn_c_try_link "$LINENO"; then :
7128  eval $cacheid=yes
7129else
7130  eval $cacheid=no
7131fi
7132rm -f core conftest.err conftest.$ac_objext \
7133    conftest$ac_exeext conftest.$ac_ext
7134fi
7135
7136
7137		CFLAGS="$xorg_testset_save_CFLAGS"
7138
7139		eval supported=\$$cacheid
7140		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7141$as_echo "$supported" >&6; }
7142		if test "$supported" = "yes" ; then
7143			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7144			found="yes"
7145		fi
7146	fi
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162xorg_testset_save_CFLAGS="$CFLAGS"
7163
7164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7165	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172/* end confdefs.h.  */
7173int i;
7174_ACEOF
7175if ac_fn_c_try_compile "$LINENO"; then :
7176  xorg_cv_cc_flag_unknown_warning_option=yes
7177else
7178  xorg_cv_cc_flag_unknown_warning_option=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181fi
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7184	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7185	CFLAGS="$xorg_testset_save_CFLAGS"
7186fi
7187
7188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7189	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7190		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7191	fi
7192	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200int i;
7201_ACEOF
7202if ac_fn_c_try_compile "$LINENO"; then :
7203  xorg_cv_cc_flag_unused_command_line_argument=yes
7204else
7205  xorg_cv_cc_flag_unused_command_line_argument=no
7206fi
7207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208fi
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7211	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7212	CFLAGS="$xorg_testset_save_CFLAGS"
7213fi
7214
7215found="no"
7216
7217	if test $found = "no" ; then
7218		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7220		fi
7221
7222		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7224		fi
7225
7226		CFLAGS="$CFLAGS -Werror=nonnull"
7227
7228		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7229$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7230		cacheid=xorg_cv_cc_flag__Werror_nonnull
7231		if eval \${$cacheid+:} false; then :
7232  $as_echo_n "(cached) " >&6
7233else
7234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h.  */
7236int i;
7237int
7238main ()
7239{
7240
7241  ;
7242  return 0;
7243}
7244_ACEOF
7245if ac_fn_c_try_link "$LINENO"; then :
7246  eval $cacheid=yes
7247else
7248  eval $cacheid=no
7249fi
7250rm -f core conftest.err conftest.$ac_objext \
7251    conftest$ac_exeext conftest.$ac_ext
7252fi
7253
7254
7255		CFLAGS="$xorg_testset_save_CFLAGS"
7256
7257		eval supported=\$$cacheid
7258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7259$as_echo "$supported" >&6; }
7260		if test "$supported" = "yes" ; then
7261			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7262			found="yes"
7263		fi
7264	fi
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280xorg_testset_save_CFLAGS="$CFLAGS"
7281
7282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7286if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290/* end confdefs.h.  */
7291int i;
7292_ACEOF
7293if ac_fn_c_try_compile "$LINENO"; then :
7294  xorg_cv_cc_flag_unknown_warning_option=yes
7295else
7296  xorg_cv_cc_flag_unknown_warning_option=no
7297fi
7298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7301$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7302	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7303	CFLAGS="$xorg_testset_save_CFLAGS"
7304fi
7305
7306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7307	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7308		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309	fi
7310	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7312$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7313if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h.  */
7318int i;
7319_ACEOF
7320if ac_fn_c_try_compile "$LINENO"; then :
7321  xorg_cv_cc_flag_unused_command_line_argument=yes
7322else
7323  xorg_cv_cc_flag_unused_command_line_argument=no
7324fi
7325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326fi
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7328$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7329	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7330	CFLAGS="$xorg_testset_save_CFLAGS"
7331fi
7332
7333found="no"
7334
7335	if test $found = "no" ; then
7336		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7337			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338		fi
7339
7340		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7341			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7342		fi
7343
7344		CFLAGS="$CFLAGS -Werror=init-self"
7345
7346		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7347$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7348		cacheid=xorg_cv_cc_flag__Werror_init_self
7349		if eval \${$cacheid+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353/* end confdefs.h.  */
7354int i;
7355int
7356main ()
7357{
7358
7359  ;
7360  return 0;
7361}
7362_ACEOF
7363if ac_fn_c_try_link "$LINENO"; then :
7364  eval $cacheid=yes
7365else
7366  eval $cacheid=no
7367fi
7368rm -f core conftest.err conftest.$ac_objext \
7369    conftest$ac_exeext conftest.$ac_ext
7370fi
7371
7372
7373		CFLAGS="$xorg_testset_save_CFLAGS"
7374
7375		eval supported=\$$cacheid
7376		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7377$as_echo "$supported" >&6; }
7378		if test "$supported" = "yes" ; then
7379			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7380			found="yes"
7381		fi
7382	fi
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398xorg_testset_save_CFLAGS="$CFLAGS"
7399
7400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7403$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7404if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7405  $as_echo_n "(cached) " >&6
7406else
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409int i;
7410_ACEOF
7411if ac_fn_c_try_compile "$LINENO"; then :
7412  xorg_cv_cc_flag_unknown_warning_option=yes
7413else
7414  xorg_cv_cc_flag_unknown_warning_option=no
7415fi
7416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417fi
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7419$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7421	CFLAGS="$xorg_testset_save_CFLAGS"
7422fi
7423
7424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427	fi
7428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7430$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7431if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h.  */
7436int i;
7437_ACEOF
7438if ac_fn_c_try_compile "$LINENO"; then :
7439  xorg_cv_cc_flag_unused_command_line_argument=yes
7440else
7441  xorg_cv_cc_flag_unused_command_line_argument=no
7442fi
7443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444fi
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7446$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7448	CFLAGS="$xorg_testset_save_CFLAGS"
7449fi
7450
7451found="no"
7452
7453	if test $found = "no" ; then
7454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456		fi
7457
7458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7460		fi
7461
7462		CFLAGS="$CFLAGS -Werror=main"
7463
7464		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7465$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7466		cacheid=xorg_cv_cc_flag__Werror_main
7467		if eval \${$cacheid+:} false; then :
7468  $as_echo_n "(cached) " >&6
7469else
7470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h.  */
7472int i;
7473int
7474main ()
7475{
7476
7477  ;
7478  return 0;
7479}
7480_ACEOF
7481if ac_fn_c_try_link "$LINENO"; then :
7482  eval $cacheid=yes
7483else
7484  eval $cacheid=no
7485fi
7486rm -f core conftest.err conftest.$ac_objext \
7487    conftest$ac_exeext conftest.$ac_ext
7488fi
7489
7490
7491		CFLAGS="$xorg_testset_save_CFLAGS"
7492
7493		eval supported=\$$cacheid
7494		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7495$as_echo "$supported" >&6; }
7496		if test "$supported" = "yes" ; then
7497			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7498			found="yes"
7499		fi
7500	fi
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516xorg_testset_save_CFLAGS="$CFLAGS"
7517
7518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7519	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7521$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7522if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7523  $as_echo_n "(cached) " >&6
7524else
7525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526/* end confdefs.h.  */
7527int i;
7528_ACEOF
7529if ac_fn_c_try_compile "$LINENO"; then :
7530  xorg_cv_cc_flag_unknown_warning_option=yes
7531else
7532  xorg_cv_cc_flag_unknown_warning_option=no
7533fi
7534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535fi
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7537$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7538	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7539	CFLAGS="$xorg_testset_save_CFLAGS"
7540fi
7541
7542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7543	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7544		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545	fi
7546	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7548$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7549if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7550  $as_echo_n "(cached) " >&6
7551else
7552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h.  */
7554int i;
7555_ACEOF
7556if ac_fn_c_try_compile "$LINENO"; then :
7557  xorg_cv_cc_flag_unused_command_line_argument=yes
7558else
7559  xorg_cv_cc_flag_unused_command_line_argument=no
7560fi
7561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7564$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7565	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7566	CFLAGS="$xorg_testset_save_CFLAGS"
7567fi
7568
7569found="no"
7570
7571	if test $found = "no" ; then
7572		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7573			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7574		fi
7575
7576		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7577			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7578		fi
7579
7580		CFLAGS="$CFLAGS -Werror=missing-braces"
7581
7582		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7583$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7584		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7585		if eval \${$cacheid+:} false; then :
7586  $as_echo_n "(cached) " >&6
7587else
7588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589/* end confdefs.h.  */
7590int i;
7591int
7592main ()
7593{
7594
7595  ;
7596  return 0;
7597}
7598_ACEOF
7599if ac_fn_c_try_link "$LINENO"; then :
7600  eval $cacheid=yes
7601else
7602  eval $cacheid=no
7603fi
7604rm -f core conftest.err conftest.$ac_objext \
7605    conftest$ac_exeext conftest.$ac_ext
7606fi
7607
7608
7609		CFLAGS="$xorg_testset_save_CFLAGS"
7610
7611		eval supported=\$$cacheid
7612		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7613$as_echo "$supported" >&6; }
7614		if test "$supported" = "yes" ; then
7615			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7616			found="yes"
7617		fi
7618	fi
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634xorg_testset_save_CFLAGS="$CFLAGS"
7635
7636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7637	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7639$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7640if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7641  $as_echo_n "(cached) " >&6
7642else
7643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644/* end confdefs.h.  */
7645int i;
7646_ACEOF
7647if ac_fn_c_try_compile "$LINENO"; then :
7648  xorg_cv_cc_flag_unknown_warning_option=yes
7649else
7650  xorg_cv_cc_flag_unknown_warning_option=no
7651fi
7652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653fi
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7655$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7656	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7657	CFLAGS="$xorg_testset_save_CFLAGS"
7658fi
7659
7660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7661	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7662		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7663	fi
7664	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7666$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7667if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h.  */
7672int i;
7673_ACEOF
7674if ac_fn_c_try_compile "$LINENO"; then :
7675  xorg_cv_cc_flag_unused_command_line_argument=yes
7676else
7677  xorg_cv_cc_flag_unused_command_line_argument=no
7678fi
7679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680fi
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7682$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7683	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7684	CFLAGS="$xorg_testset_save_CFLAGS"
7685fi
7686
7687found="no"
7688
7689	if test $found = "no" ; then
7690		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7691			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7692		fi
7693
7694		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7695			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7696		fi
7697
7698		CFLAGS="$CFLAGS -Werror=sequence-point"
7699
7700		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7701$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7702		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7703		if eval \${$cacheid+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707/* end confdefs.h.  */
7708int i;
7709int
7710main ()
7711{
7712
7713  ;
7714  return 0;
7715}
7716_ACEOF
7717if ac_fn_c_try_link "$LINENO"; then :
7718  eval $cacheid=yes
7719else
7720  eval $cacheid=no
7721fi
7722rm -f core conftest.err conftest.$ac_objext \
7723    conftest$ac_exeext conftest.$ac_ext
7724fi
7725
7726
7727		CFLAGS="$xorg_testset_save_CFLAGS"
7728
7729		eval supported=\$$cacheid
7730		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7731$as_echo "$supported" >&6; }
7732		if test "$supported" = "yes" ; then
7733			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7734			found="yes"
7735		fi
7736	fi
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752xorg_testset_save_CFLAGS="$CFLAGS"
7753
7754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7755	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7757$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7758if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7759  $as_echo_n "(cached) " >&6
7760else
7761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762/* end confdefs.h.  */
7763int i;
7764_ACEOF
7765if ac_fn_c_try_compile "$LINENO"; then :
7766  xorg_cv_cc_flag_unknown_warning_option=yes
7767else
7768  xorg_cv_cc_flag_unknown_warning_option=no
7769fi
7770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771fi
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7773$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7774	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7775	CFLAGS="$xorg_testset_save_CFLAGS"
7776fi
7777
7778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7779	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7780		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7781	fi
7782	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7784$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7785if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7786  $as_echo_n "(cached) " >&6
7787else
7788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h.  */
7790int i;
7791_ACEOF
7792if ac_fn_c_try_compile "$LINENO"; then :
7793  xorg_cv_cc_flag_unused_command_line_argument=yes
7794else
7795  xorg_cv_cc_flag_unused_command_line_argument=no
7796fi
7797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798fi
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7800$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7801	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7802	CFLAGS="$xorg_testset_save_CFLAGS"
7803fi
7804
7805found="no"
7806
7807	if test $found = "no" ; then
7808		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7810		fi
7811
7812		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7814		fi
7815
7816		CFLAGS="$CFLAGS -Werror=return-type"
7817
7818		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7819$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7820		cacheid=xorg_cv_cc_flag__Werror_return_type
7821		if eval \${$cacheid+:} false; then :
7822  $as_echo_n "(cached) " >&6
7823else
7824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h.  */
7826int i;
7827int
7828main ()
7829{
7830
7831  ;
7832  return 0;
7833}
7834_ACEOF
7835if ac_fn_c_try_link "$LINENO"; then :
7836  eval $cacheid=yes
7837else
7838  eval $cacheid=no
7839fi
7840rm -f core conftest.err conftest.$ac_objext \
7841    conftest$ac_exeext conftest.$ac_ext
7842fi
7843
7844
7845		CFLAGS="$xorg_testset_save_CFLAGS"
7846
7847		eval supported=\$$cacheid
7848		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7849$as_echo "$supported" >&6; }
7850		if test "$supported" = "yes" ; then
7851			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7852			found="yes"
7853		fi
7854	fi
7855
7856	if test $found = "no" ; then
7857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7859		fi
7860
7861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7863		fi
7864
7865		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7866
7867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7868$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7869		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7870		if eval \${$cacheid+:} false; then :
7871  $as_echo_n "(cached) " >&6
7872else
7873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874/* end confdefs.h.  */
7875int i;
7876int
7877main ()
7878{
7879
7880  ;
7881  return 0;
7882}
7883_ACEOF
7884if ac_fn_c_try_link "$LINENO"; then :
7885  eval $cacheid=yes
7886else
7887  eval $cacheid=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext \
7890    conftest$ac_exeext conftest.$ac_ext
7891fi
7892
7893
7894		CFLAGS="$xorg_testset_save_CFLAGS"
7895
7896		eval supported=\$$cacheid
7897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7898$as_echo "$supported" >&6; }
7899		if test "$supported" = "yes" ; then
7900			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7901			found="yes"
7902		fi
7903	fi
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919xorg_testset_save_CFLAGS="$CFLAGS"
7920
7921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7926  $as_echo_n "(cached) " >&6
7927else
7928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929/* end confdefs.h.  */
7930int i;
7931_ACEOF
7932if ac_fn_c_try_compile "$LINENO"; then :
7933  xorg_cv_cc_flag_unknown_warning_option=yes
7934else
7935  xorg_cv_cc_flag_unknown_warning_option=no
7936fi
7937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938fi
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7942	CFLAGS="$xorg_testset_save_CFLAGS"
7943fi
7944
7945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948	fi
7949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7953  $as_echo_n "(cached) " >&6
7954else
7955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956/* end confdefs.h.  */
7957int i;
7958_ACEOF
7959if ac_fn_c_try_compile "$LINENO"; then :
7960  xorg_cv_cc_flag_unused_command_line_argument=yes
7961else
7962  xorg_cv_cc_flag_unused_command_line_argument=no
7963fi
7964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7969	CFLAGS="$xorg_testset_save_CFLAGS"
7970fi
7971
7972found="no"
7973
7974	if test $found = "no" ; then
7975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7977		fi
7978
7979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7981		fi
7982
7983		CFLAGS="$CFLAGS -Werror=trigraphs"
7984
7985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7986$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7987		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7988		if eval \${$cacheid+:} false; then :
7989  $as_echo_n "(cached) " >&6
7990else
7991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h.  */
7993int i;
7994int
7995main ()
7996{
7997
7998  ;
7999  return 0;
8000}
8001_ACEOF
8002if ac_fn_c_try_link "$LINENO"; then :
8003  eval $cacheid=yes
8004else
8005  eval $cacheid=no
8006fi
8007rm -f core conftest.err conftest.$ac_objext \
8008    conftest$ac_exeext conftest.$ac_ext
8009fi
8010
8011
8012		CFLAGS="$xorg_testset_save_CFLAGS"
8013
8014		eval supported=\$$cacheid
8015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8016$as_echo "$supported" >&6; }
8017		if test "$supported" = "yes" ; then
8018			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8019			found="yes"
8020		fi
8021	fi
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037xorg_testset_save_CFLAGS="$CFLAGS"
8038
8039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8044  $as_echo_n "(cached) " >&6
8045else
8046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h.  */
8048int i;
8049_ACEOF
8050if ac_fn_c_try_compile "$LINENO"; then :
8051  xorg_cv_cc_flag_unknown_warning_option=yes
8052else
8053  xorg_cv_cc_flag_unknown_warning_option=no
8054fi
8055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056fi
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8060	CFLAGS="$xorg_testset_save_CFLAGS"
8061fi
8062
8063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066	fi
8067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8071  $as_echo_n "(cached) " >&6
8072else
8073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074/* end confdefs.h.  */
8075int i;
8076_ACEOF
8077if ac_fn_c_try_compile "$LINENO"; then :
8078  xorg_cv_cc_flag_unused_command_line_argument=yes
8079else
8080  xorg_cv_cc_flag_unused_command_line_argument=no
8081fi
8082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083fi
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8087	CFLAGS="$xorg_testset_save_CFLAGS"
8088fi
8089
8090found="no"
8091
8092	if test $found = "no" ; then
8093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095		fi
8096
8097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8099		fi
8100
8101		CFLAGS="$CFLAGS -Werror=array-bounds"
8102
8103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8104$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8105		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8106		if eval \${$cacheid+:} false; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h.  */
8111int i;
8112int
8113main ()
8114{
8115
8116  ;
8117  return 0;
8118}
8119_ACEOF
8120if ac_fn_c_try_link "$LINENO"; then :
8121  eval $cacheid=yes
8122else
8123  eval $cacheid=no
8124fi
8125rm -f core conftest.err conftest.$ac_objext \
8126    conftest$ac_exeext conftest.$ac_ext
8127fi
8128
8129
8130		CFLAGS="$xorg_testset_save_CFLAGS"
8131
8132		eval supported=\$$cacheid
8133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8134$as_echo "$supported" >&6; }
8135		if test "$supported" = "yes" ; then
8136			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8137			found="yes"
8138		fi
8139	fi
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155xorg_testset_save_CFLAGS="$CFLAGS"
8156
8157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8162  $as_echo_n "(cached) " >&6
8163else
8164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h.  */
8166int i;
8167_ACEOF
8168if ac_fn_c_try_compile "$LINENO"; then :
8169  xorg_cv_cc_flag_unknown_warning_option=yes
8170else
8171  xorg_cv_cc_flag_unknown_warning_option=no
8172fi
8173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174fi
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8177	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8178	CFLAGS="$xorg_testset_save_CFLAGS"
8179fi
8180
8181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8182	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8183		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184	fi
8185	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8189  $as_echo_n "(cached) " >&6
8190else
8191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192/* end confdefs.h.  */
8193int i;
8194_ACEOF
8195if ac_fn_c_try_compile "$LINENO"; then :
8196  xorg_cv_cc_flag_unused_command_line_argument=yes
8197else
8198  xorg_cv_cc_flag_unused_command_line_argument=no
8199fi
8200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201fi
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8204	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8205	CFLAGS="$xorg_testset_save_CFLAGS"
8206fi
8207
8208found="no"
8209
8210	if test $found = "no" ; then
8211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213		fi
8214
8215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8217		fi
8218
8219		CFLAGS="$CFLAGS -Werror=write-strings"
8220
8221		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8222$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8223		cacheid=xorg_cv_cc_flag__Werror_write_strings
8224		if eval \${$cacheid+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h.  */
8229int i;
8230int
8231main ()
8232{
8233
8234  ;
8235  return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_link "$LINENO"; then :
8239  eval $cacheid=yes
8240else
8241  eval $cacheid=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext \
8244    conftest$ac_exeext conftest.$ac_ext
8245fi
8246
8247
8248		CFLAGS="$xorg_testset_save_CFLAGS"
8249
8250		eval supported=\$$cacheid
8251		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8252$as_echo "$supported" >&6; }
8253		if test "$supported" = "yes" ; then
8254			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8255			found="yes"
8256		fi
8257	fi
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273xorg_testset_save_CFLAGS="$CFLAGS"
8274
8275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8280  $as_echo_n "(cached) " >&6
8281else
8282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283/* end confdefs.h.  */
8284int i;
8285_ACEOF
8286if ac_fn_c_try_compile "$LINENO"; then :
8287  xorg_cv_cc_flag_unknown_warning_option=yes
8288else
8289  xorg_cv_cc_flag_unknown_warning_option=no
8290fi
8291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292fi
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8295	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8296	CFLAGS="$xorg_testset_save_CFLAGS"
8297fi
8298
8299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8300	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8301		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8302	fi
8303	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8306if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8307  $as_echo_n "(cached) " >&6
8308else
8309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310/* end confdefs.h.  */
8311int i;
8312_ACEOF
8313if ac_fn_c_try_compile "$LINENO"; then :
8314  xorg_cv_cc_flag_unused_command_line_argument=yes
8315else
8316  xorg_cv_cc_flag_unused_command_line_argument=no
8317fi
8318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319fi
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8322	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8323	CFLAGS="$xorg_testset_save_CFLAGS"
8324fi
8325
8326found="no"
8327
8328	if test $found = "no" ; then
8329		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8331		fi
8332
8333		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8335		fi
8336
8337		CFLAGS="$CFLAGS -Werror=address"
8338
8339		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8340$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8341		cacheid=xorg_cv_cc_flag__Werror_address
8342		if eval \${$cacheid+:} false; then :
8343  $as_echo_n "(cached) " >&6
8344else
8345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346/* end confdefs.h.  */
8347int i;
8348int
8349main ()
8350{
8351
8352  ;
8353  return 0;
8354}
8355_ACEOF
8356if ac_fn_c_try_link "$LINENO"; then :
8357  eval $cacheid=yes
8358else
8359  eval $cacheid=no
8360fi
8361rm -f core conftest.err conftest.$ac_objext \
8362    conftest$ac_exeext conftest.$ac_ext
8363fi
8364
8365
8366		CFLAGS="$xorg_testset_save_CFLAGS"
8367
8368		eval supported=\$$cacheid
8369		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8370$as_echo "$supported" >&6; }
8371		if test "$supported" = "yes" ; then
8372			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8373			found="yes"
8374		fi
8375	fi
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391xorg_testset_save_CFLAGS="$CFLAGS"
8392
8393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8394	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8398  $as_echo_n "(cached) " >&6
8399else
8400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h.  */
8402int i;
8403_ACEOF
8404if ac_fn_c_try_compile "$LINENO"; then :
8405  xorg_cv_cc_flag_unknown_warning_option=yes
8406else
8407  xorg_cv_cc_flag_unknown_warning_option=no
8408fi
8409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410fi
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8414	CFLAGS="$xorg_testset_save_CFLAGS"
8415fi
8416
8417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420	fi
8421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8424if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8425  $as_echo_n "(cached) " >&6
8426else
8427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428/* end confdefs.h.  */
8429int i;
8430_ACEOF
8431if ac_fn_c_try_compile "$LINENO"; then :
8432  xorg_cv_cc_flag_unused_command_line_argument=yes
8433else
8434  xorg_cv_cc_flag_unused_command_line_argument=no
8435fi
8436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437fi
8438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8440	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8441	CFLAGS="$xorg_testset_save_CFLAGS"
8442fi
8443
8444found="no"
8445
8446	if test $found = "no" ; then
8447		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8448			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8449		fi
8450
8451		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8452			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8453		fi
8454
8455		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8456
8457		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8458$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8459		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8460		if eval \${$cacheid+:} false; then :
8461  $as_echo_n "(cached) " >&6
8462else
8463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464/* end confdefs.h.  */
8465int i;
8466int
8467main ()
8468{
8469
8470  ;
8471  return 0;
8472}
8473_ACEOF
8474if ac_fn_c_try_link "$LINENO"; then :
8475  eval $cacheid=yes
8476else
8477  eval $cacheid=no
8478fi
8479rm -f core conftest.err conftest.$ac_objext \
8480    conftest$ac_exeext conftest.$ac_ext
8481fi
8482
8483
8484		CFLAGS="$xorg_testset_save_CFLAGS"
8485
8486		eval supported=\$$cacheid
8487		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8488$as_echo "$supported" >&6; }
8489		if test "$supported" = "yes" ; then
8490			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8491			found="yes"
8492		fi
8493	fi
8494
8495	if test $found = "no" ; then
8496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498		fi
8499
8500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8502		fi
8503
8504		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8505
8506		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8507$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8508		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8509		if eval \${$cacheid+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h.  */
8514int i;
8515int
8516main ()
8517{
8518
8519  ;
8520  return 0;
8521}
8522_ACEOF
8523if ac_fn_c_try_link "$LINENO"; then :
8524  eval $cacheid=yes
8525else
8526  eval $cacheid=no
8527fi
8528rm -f core conftest.err conftest.$ac_objext \
8529    conftest$ac_exeext conftest.$ac_ext
8530fi
8531
8532
8533		CFLAGS="$xorg_testset_save_CFLAGS"
8534
8535		eval supported=\$$cacheid
8536		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8537$as_echo "$supported" >&6; }
8538		if test "$supported" = "yes" ; then
8539			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8540			found="yes"
8541		fi
8542	fi
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558xorg_testset_save_CFLAGS="$CFLAGS"
8559
8560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8561	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8564if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8565  $as_echo_n "(cached) " >&6
8566else
8567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568/* end confdefs.h.  */
8569int i;
8570_ACEOF
8571if ac_fn_c_try_compile "$LINENO"; then :
8572  xorg_cv_cc_flag_unknown_warning_option=yes
8573else
8574  xorg_cv_cc_flag_unknown_warning_option=no
8575fi
8576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577fi
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8579$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8580	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8581	CFLAGS="$xorg_testset_save_CFLAGS"
8582fi
8583
8584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8585	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8586		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587	fi
8588	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8590$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8591if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8592  $as_echo_n "(cached) " >&6
8593else
8594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595/* end confdefs.h.  */
8596int i;
8597_ACEOF
8598if ac_fn_c_try_compile "$LINENO"; then :
8599  xorg_cv_cc_flag_unused_command_line_argument=yes
8600else
8601  xorg_cv_cc_flag_unused_command_line_argument=no
8602fi
8603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604fi
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8606$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8607	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8608	CFLAGS="$xorg_testset_save_CFLAGS"
8609fi
8610
8611found="no"
8612
8613	if test $found = "no" ; then
8614		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616		fi
8617
8618		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8620		fi
8621
8622		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8623
8624		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8625$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8626		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8627		if eval \${$cacheid+:} false; then :
8628  $as_echo_n "(cached) " >&6
8629else
8630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631/* end confdefs.h.  */
8632int i;
8633int
8634main ()
8635{
8636
8637  ;
8638  return 0;
8639}
8640_ACEOF
8641if ac_fn_c_try_link "$LINENO"; then :
8642  eval $cacheid=yes
8643else
8644  eval $cacheid=no
8645fi
8646rm -f core conftest.err conftest.$ac_objext \
8647    conftest$ac_exeext conftest.$ac_ext
8648fi
8649
8650
8651		CFLAGS="$xorg_testset_save_CFLAGS"
8652
8653		eval supported=\$$cacheid
8654		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8655$as_echo "$supported" >&6; }
8656		if test "$supported" = "yes" ; then
8657			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8658			found="yes"
8659		fi
8660	fi
8661
8662 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8663else
8664{ $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
8665$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;}
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679xorg_testset_save_CFLAGS="$CFLAGS"
8680
8681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8682	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8686  $as_echo_n "(cached) " >&6
8687else
8688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690int i;
8691_ACEOF
8692if ac_fn_c_try_compile "$LINENO"; then :
8693  xorg_cv_cc_flag_unknown_warning_option=yes
8694else
8695  xorg_cv_cc_flag_unknown_warning_option=no
8696fi
8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8702	CFLAGS="$xorg_testset_save_CFLAGS"
8703fi
8704
8705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708	fi
8709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8713  $as_echo_n "(cached) " >&6
8714else
8715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716/* end confdefs.h.  */
8717int i;
8718_ACEOF
8719if ac_fn_c_try_compile "$LINENO"; then :
8720  xorg_cv_cc_flag_unused_command_line_argument=yes
8721else
8722  xorg_cv_cc_flag_unused_command_line_argument=no
8723fi
8724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725fi
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8728	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8729	CFLAGS="$xorg_testset_save_CFLAGS"
8730fi
8731
8732found="no"
8733
8734	if test $found = "no" ; then
8735		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8736			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737		fi
8738
8739		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8740			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8741		fi
8742
8743		CFLAGS="$CFLAGS -Wimplicit"
8744
8745		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8746$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8747		cacheid=xorg_cv_cc_flag__Wimplicit
8748		if eval \${$cacheid+:} false; then :
8749  $as_echo_n "(cached) " >&6
8750else
8751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752/* end confdefs.h.  */
8753int i;
8754int
8755main ()
8756{
8757
8758  ;
8759  return 0;
8760}
8761_ACEOF
8762if ac_fn_c_try_link "$LINENO"; then :
8763  eval $cacheid=yes
8764else
8765  eval $cacheid=no
8766fi
8767rm -f core conftest.err conftest.$ac_objext \
8768    conftest$ac_exeext conftest.$ac_ext
8769fi
8770
8771
8772		CFLAGS="$xorg_testset_save_CFLAGS"
8773
8774		eval supported=\$$cacheid
8775		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8776$as_echo "$supported" >&6; }
8777		if test "$supported" = "yes" ; then
8778			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8779			found="yes"
8780		fi
8781	fi
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797xorg_testset_save_CFLAGS="$CFLAGS"
8798
8799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8800	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8802$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8803if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8804  $as_echo_n "(cached) " >&6
8805else
8806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h.  */
8808int i;
8809_ACEOF
8810if ac_fn_c_try_compile "$LINENO"; then :
8811  xorg_cv_cc_flag_unknown_warning_option=yes
8812else
8813  xorg_cv_cc_flag_unknown_warning_option=no
8814fi
8815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816fi
8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8818$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8819	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8820	CFLAGS="$xorg_testset_save_CFLAGS"
8821fi
8822
8823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8824	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826	fi
8827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8829$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8830if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8831  $as_echo_n "(cached) " >&6
8832else
8833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834/* end confdefs.h.  */
8835int i;
8836_ACEOF
8837if ac_fn_c_try_compile "$LINENO"; then :
8838  xorg_cv_cc_flag_unused_command_line_argument=yes
8839else
8840  xorg_cv_cc_flag_unused_command_line_argument=no
8841fi
8842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843fi
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8845$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8846	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8847	CFLAGS="$xorg_testset_save_CFLAGS"
8848fi
8849
8850found="no"
8851
8852	if test $found = "no" ; then
8853		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855		fi
8856
8857		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8859		fi
8860
8861		CFLAGS="$CFLAGS -Wnonnull"
8862
8863		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8864$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8865		cacheid=xorg_cv_cc_flag__Wnonnull
8866		if eval \${$cacheid+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870/* end confdefs.h.  */
8871int i;
8872int
8873main ()
8874{
8875
8876  ;
8877  return 0;
8878}
8879_ACEOF
8880if ac_fn_c_try_link "$LINENO"; then :
8881  eval $cacheid=yes
8882else
8883  eval $cacheid=no
8884fi
8885rm -f core conftest.err conftest.$ac_objext \
8886    conftest$ac_exeext conftest.$ac_ext
8887fi
8888
8889
8890		CFLAGS="$xorg_testset_save_CFLAGS"
8891
8892		eval supported=\$$cacheid
8893		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8894$as_echo "$supported" >&6; }
8895		if test "$supported" = "yes" ; then
8896			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8897			found="yes"
8898		fi
8899	fi
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915xorg_testset_save_CFLAGS="$CFLAGS"
8916
8917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925/* end confdefs.h.  */
8926int i;
8927_ACEOF
8928if ac_fn_c_try_compile "$LINENO"; then :
8929  xorg_cv_cc_flag_unknown_warning_option=yes
8930else
8931  xorg_cv_cc_flag_unknown_warning_option=no
8932fi
8933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934fi
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8937	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8938	CFLAGS="$xorg_testset_save_CFLAGS"
8939fi
8940
8941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8942	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8943		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944	fi
8945	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8949  $as_echo_n "(cached) " >&6
8950else
8951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952/* end confdefs.h.  */
8953int i;
8954_ACEOF
8955if ac_fn_c_try_compile "$LINENO"; then :
8956  xorg_cv_cc_flag_unused_command_line_argument=yes
8957else
8958  xorg_cv_cc_flag_unused_command_line_argument=no
8959fi
8960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961fi
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8964	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8965	CFLAGS="$xorg_testset_save_CFLAGS"
8966fi
8967
8968found="no"
8969
8970	if test $found = "no" ; then
8971		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8972			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973		fi
8974
8975		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8976			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8977		fi
8978
8979		CFLAGS="$CFLAGS -Winit-self"
8980
8981		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8982$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8983		cacheid=xorg_cv_cc_flag__Winit_self
8984		if eval \${$cacheid+:} false; then :
8985  $as_echo_n "(cached) " >&6
8986else
8987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988/* end confdefs.h.  */
8989int i;
8990int
8991main ()
8992{
8993
8994  ;
8995  return 0;
8996}
8997_ACEOF
8998if ac_fn_c_try_link "$LINENO"; then :
8999  eval $cacheid=yes
9000else
9001  eval $cacheid=no
9002fi
9003rm -f core conftest.err conftest.$ac_objext \
9004    conftest$ac_exeext conftest.$ac_ext
9005fi
9006
9007
9008		CFLAGS="$xorg_testset_save_CFLAGS"
9009
9010		eval supported=\$$cacheid
9011		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9012$as_echo "$supported" >&6; }
9013		if test "$supported" = "yes" ; then
9014			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9015			found="yes"
9016		fi
9017	fi
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033xorg_testset_save_CFLAGS="$CFLAGS"
9034
9035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9036	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9040  $as_echo_n "(cached) " >&6
9041else
9042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h.  */
9044int i;
9045_ACEOF
9046if ac_fn_c_try_compile "$LINENO"; then :
9047  xorg_cv_cc_flag_unknown_warning_option=yes
9048else
9049  xorg_cv_cc_flag_unknown_warning_option=no
9050fi
9051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9055	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9056	CFLAGS="$xorg_testset_save_CFLAGS"
9057fi
9058
9059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9060	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9061		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062	fi
9063	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9064	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9067  $as_echo_n "(cached) " >&6
9068else
9069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070/* end confdefs.h.  */
9071int i;
9072_ACEOF
9073if ac_fn_c_try_compile "$LINENO"; then :
9074  xorg_cv_cc_flag_unused_command_line_argument=yes
9075else
9076  xorg_cv_cc_flag_unused_command_line_argument=no
9077fi
9078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079fi
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9082	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9083	CFLAGS="$xorg_testset_save_CFLAGS"
9084fi
9085
9086found="no"
9087
9088	if test $found = "no" ; then
9089		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9090			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091		fi
9092
9093		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9094			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9095		fi
9096
9097		CFLAGS="$CFLAGS -Wmain"
9098
9099		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9100$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9101		cacheid=xorg_cv_cc_flag__Wmain
9102		if eval \${$cacheid+:} false; then :
9103  $as_echo_n "(cached) " >&6
9104else
9105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106/* end confdefs.h.  */
9107int i;
9108int
9109main ()
9110{
9111
9112  ;
9113  return 0;
9114}
9115_ACEOF
9116if ac_fn_c_try_link "$LINENO"; then :
9117  eval $cacheid=yes
9118else
9119  eval $cacheid=no
9120fi
9121rm -f core conftest.err conftest.$ac_objext \
9122    conftest$ac_exeext conftest.$ac_ext
9123fi
9124
9125
9126		CFLAGS="$xorg_testset_save_CFLAGS"
9127
9128		eval supported=\$$cacheid
9129		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9130$as_echo "$supported" >&6; }
9131		if test "$supported" = "yes" ; then
9132			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9133			found="yes"
9134		fi
9135	fi
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151xorg_testset_save_CFLAGS="$CFLAGS"
9152
9153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9154	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9158  $as_echo_n "(cached) " >&6
9159else
9160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162int i;
9163_ACEOF
9164if ac_fn_c_try_compile "$LINENO"; then :
9165  xorg_cv_cc_flag_unknown_warning_option=yes
9166else
9167  xorg_cv_cc_flag_unknown_warning_option=no
9168fi
9169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170fi
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9173	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9174	CFLAGS="$xorg_testset_save_CFLAGS"
9175fi
9176
9177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9178	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9179		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180	fi
9181	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9185  $as_echo_n "(cached) " >&6
9186else
9187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188/* end confdefs.h.  */
9189int i;
9190_ACEOF
9191if ac_fn_c_try_compile "$LINENO"; then :
9192  xorg_cv_cc_flag_unused_command_line_argument=yes
9193else
9194  xorg_cv_cc_flag_unused_command_line_argument=no
9195fi
9196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9200	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9201	CFLAGS="$xorg_testset_save_CFLAGS"
9202fi
9203
9204found="no"
9205
9206	if test $found = "no" ; then
9207		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209		fi
9210
9211		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213		fi
9214
9215		CFLAGS="$CFLAGS -Wmissing-braces"
9216
9217		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9218$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9219		cacheid=xorg_cv_cc_flag__Wmissing_braces
9220		if eval \${$cacheid+:} false; then :
9221  $as_echo_n "(cached) " >&6
9222else
9223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224/* end confdefs.h.  */
9225int i;
9226int
9227main ()
9228{
9229
9230  ;
9231  return 0;
9232}
9233_ACEOF
9234if ac_fn_c_try_link "$LINENO"; then :
9235  eval $cacheid=yes
9236else
9237  eval $cacheid=no
9238fi
9239rm -f core conftest.err conftest.$ac_objext \
9240    conftest$ac_exeext conftest.$ac_ext
9241fi
9242
9243
9244		CFLAGS="$xorg_testset_save_CFLAGS"
9245
9246		eval supported=\$$cacheid
9247		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9248$as_echo "$supported" >&6; }
9249		if test "$supported" = "yes" ; then
9250			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9251			found="yes"
9252		fi
9253	fi
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269xorg_testset_save_CFLAGS="$CFLAGS"
9270
9271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9272	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9276  $as_echo_n "(cached) " >&6
9277else
9278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h.  */
9280int i;
9281_ACEOF
9282if ac_fn_c_try_compile "$LINENO"; then :
9283  xorg_cv_cc_flag_unknown_warning_option=yes
9284else
9285  xorg_cv_cc_flag_unknown_warning_option=no
9286fi
9287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9288fi
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9291	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9292	CFLAGS="$xorg_testset_save_CFLAGS"
9293fi
9294
9295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9296	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9297		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298	fi
9299	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9303  $as_echo_n "(cached) " >&6
9304else
9305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306/* end confdefs.h.  */
9307int i;
9308_ACEOF
9309if ac_fn_c_try_compile "$LINENO"; then :
9310  xorg_cv_cc_flag_unused_command_line_argument=yes
9311else
9312  xorg_cv_cc_flag_unused_command_line_argument=no
9313fi
9314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315fi
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9319	CFLAGS="$xorg_testset_save_CFLAGS"
9320fi
9321
9322found="no"
9323
9324	if test $found = "no" ; then
9325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327		fi
9328
9329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9331		fi
9332
9333		CFLAGS="$CFLAGS -Wsequence-point"
9334
9335		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9336$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9337		cacheid=xorg_cv_cc_flag__Wsequence_point
9338		if eval \${$cacheid+:} false; then :
9339  $as_echo_n "(cached) " >&6
9340else
9341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342/* end confdefs.h.  */
9343int i;
9344int
9345main ()
9346{
9347
9348  ;
9349  return 0;
9350}
9351_ACEOF
9352if ac_fn_c_try_link "$LINENO"; then :
9353  eval $cacheid=yes
9354else
9355  eval $cacheid=no
9356fi
9357rm -f core conftest.err conftest.$ac_objext \
9358    conftest$ac_exeext conftest.$ac_ext
9359fi
9360
9361
9362		CFLAGS="$xorg_testset_save_CFLAGS"
9363
9364		eval supported=\$$cacheid
9365		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9366$as_echo "$supported" >&6; }
9367		if test "$supported" = "yes" ; then
9368			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9369			found="yes"
9370		fi
9371	fi
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387xorg_testset_save_CFLAGS="$CFLAGS"
9388
9389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9394  $as_echo_n "(cached) " >&6
9395else
9396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h.  */
9398int i;
9399_ACEOF
9400if ac_fn_c_try_compile "$LINENO"; then :
9401  xorg_cv_cc_flag_unknown_warning_option=yes
9402else
9403  xorg_cv_cc_flag_unknown_warning_option=no
9404fi
9405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406fi
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9409	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9410	CFLAGS="$xorg_testset_save_CFLAGS"
9411fi
9412
9413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9414	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416	fi
9417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9421  $as_echo_n "(cached) " >&6
9422else
9423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h.  */
9425int i;
9426_ACEOF
9427if ac_fn_c_try_compile "$LINENO"; then :
9428  xorg_cv_cc_flag_unused_command_line_argument=yes
9429else
9430  xorg_cv_cc_flag_unused_command_line_argument=no
9431fi
9432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433fi
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9436	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9437	CFLAGS="$xorg_testset_save_CFLAGS"
9438fi
9439
9440found="no"
9441
9442	if test $found = "no" ; then
9443		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9444			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445		fi
9446
9447		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9448			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9449		fi
9450
9451		CFLAGS="$CFLAGS -Wreturn-type"
9452
9453		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9454$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9455		cacheid=xorg_cv_cc_flag__Wreturn_type
9456		if eval \${$cacheid+:} false; then :
9457  $as_echo_n "(cached) " >&6
9458else
9459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460/* end confdefs.h.  */
9461int i;
9462int
9463main ()
9464{
9465
9466  ;
9467  return 0;
9468}
9469_ACEOF
9470if ac_fn_c_try_link "$LINENO"; then :
9471  eval $cacheid=yes
9472else
9473  eval $cacheid=no
9474fi
9475rm -f core conftest.err conftest.$ac_objext \
9476    conftest$ac_exeext conftest.$ac_ext
9477fi
9478
9479
9480		CFLAGS="$xorg_testset_save_CFLAGS"
9481
9482		eval supported=\$$cacheid
9483		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9484$as_echo "$supported" >&6; }
9485		if test "$supported" = "yes" ; then
9486			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9487			found="yes"
9488		fi
9489	fi
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505xorg_testset_save_CFLAGS="$CFLAGS"
9506
9507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9512  $as_echo_n "(cached) " >&6
9513else
9514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h.  */
9516int i;
9517_ACEOF
9518if ac_fn_c_try_compile "$LINENO"; then :
9519  xorg_cv_cc_flag_unknown_warning_option=yes
9520else
9521  xorg_cv_cc_flag_unknown_warning_option=no
9522fi
9523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9524fi
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9527	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9528	CFLAGS="$xorg_testset_save_CFLAGS"
9529fi
9530
9531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9532	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9533		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534	fi
9535	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9539  $as_echo_n "(cached) " >&6
9540else
9541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h.  */
9543int i;
9544_ACEOF
9545if ac_fn_c_try_compile "$LINENO"; then :
9546  xorg_cv_cc_flag_unused_command_line_argument=yes
9547else
9548  xorg_cv_cc_flag_unused_command_line_argument=no
9549fi
9550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551fi
9552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9555	CFLAGS="$xorg_testset_save_CFLAGS"
9556fi
9557
9558found="no"
9559
9560	if test $found = "no" ; then
9561		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563		fi
9564
9565		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9567		fi
9568
9569		CFLAGS="$CFLAGS -Wtrigraphs"
9570
9571		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9572$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9573		cacheid=xorg_cv_cc_flag__Wtrigraphs
9574		if eval \${$cacheid+:} false; then :
9575  $as_echo_n "(cached) " >&6
9576else
9577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579int i;
9580int
9581main ()
9582{
9583
9584  ;
9585  return 0;
9586}
9587_ACEOF
9588if ac_fn_c_try_link "$LINENO"; then :
9589  eval $cacheid=yes
9590else
9591  eval $cacheid=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext \
9594    conftest$ac_exeext conftest.$ac_ext
9595fi
9596
9597
9598		CFLAGS="$xorg_testset_save_CFLAGS"
9599
9600		eval supported=\$$cacheid
9601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9602$as_echo "$supported" >&6; }
9603		if test "$supported" = "yes" ; then
9604			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9605			found="yes"
9606		fi
9607	fi
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623xorg_testset_save_CFLAGS="$CFLAGS"
9624
9625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633/* end confdefs.h.  */
9634int i;
9635_ACEOF
9636if ac_fn_c_try_compile "$LINENO"; then :
9637  xorg_cv_cc_flag_unknown_warning_option=yes
9638else
9639  xorg_cv_cc_flag_unknown_warning_option=no
9640fi
9641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642fi
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9646	CFLAGS="$xorg_testset_save_CFLAGS"
9647fi
9648
9649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652	fi
9653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9657  $as_echo_n "(cached) " >&6
9658else
9659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661int i;
9662_ACEOF
9663if ac_fn_c_try_compile "$LINENO"; then :
9664  xorg_cv_cc_flag_unused_command_line_argument=yes
9665else
9666  xorg_cv_cc_flag_unused_command_line_argument=no
9667fi
9668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9669fi
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9673	CFLAGS="$xorg_testset_save_CFLAGS"
9674fi
9675
9676found="no"
9677
9678	if test $found = "no" ; then
9679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681		fi
9682
9683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9685		fi
9686
9687		CFLAGS="$CFLAGS -Warray-bounds"
9688
9689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9690$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9691		cacheid=xorg_cv_cc_flag__Warray_bounds
9692		if eval \${$cacheid+:} false; then :
9693  $as_echo_n "(cached) " >&6
9694else
9695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h.  */
9697int i;
9698int
9699main ()
9700{
9701
9702  ;
9703  return 0;
9704}
9705_ACEOF
9706if ac_fn_c_try_link "$LINENO"; then :
9707  eval $cacheid=yes
9708else
9709  eval $cacheid=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext \
9712    conftest$ac_exeext conftest.$ac_ext
9713fi
9714
9715
9716		CFLAGS="$xorg_testset_save_CFLAGS"
9717
9718		eval supported=\$$cacheid
9719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9720$as_echo "$supported" >&6; }
9721		if test "$supported" = "yes" ; then
9722			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9723			found="yes"
9724		fi
9725	fi
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741xorg_testset_save_CFLAGS="$CFLAGS"
9742
9743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9748  $as_echo_n "(cached) " >&6
9749else
9750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751/* end confdefs.h.  */
9752int i;
9753_ACEOF
9754if ac_fn_c_try_compile "$LINENO"; then :
9755  xorg_cv_cc_flag_unknown_warning_option=yes
9756else
9757  xorg_cv_cc_flag_unknown_warning_option=no
9758fi
9759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760fi
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9764	CFLAGS="$xorg_testset_save_CFLAGS"
9765fi
9766
9767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770	fi
9771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9775  $as_echo_n "(cached) " >&6
9776else
9777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778/* end confdefs.h.  */
9779int i;
9780_ACEOF
9781if ac_fn_c_try_compile "$LINENO"; then :
9782  xorg_cv_cc_flag_unused_command_line_argument=yes
9783else
9784  xorg_cv_cc_flag_unused_command_line_argument=no
9785fi
9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787fi
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9791	CFLAGS="$xorg_testset_save_CFLAGS"
9792fi
9793
9794found="no"
9795
9796	if test $found = "no" ; then
9797		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9799		fi
9800
9801		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9803		fi
9804
9805		CFLAGS="$CFLAGS -Wwrite-strings"
9806
9807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9808$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9809		cacheid=xorg_cv_cc_flag__Wwrite_strings
9810		if eval \${$cacheid+:} false; then :
9811  $as_echo_n "(cached) " >&6
9812else
9813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h.  */
9815int i;
9816int
9817main ()
9818{
9819
9820  ;
9821  return 0;
9822}
9823_ACEOF
9824if ac_fn_c_try_link "$LINENO"; then :
9825  eval $cacheid=yes
9826else
9827  eval $cacheid=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext \
9830    conftest$ac_exeext conftest.$ac_ext
9831fi
9832
9833
9834		CFLAGS="$xorg_testset_save_CFLAGS"
9835
9836		eval supported=\$$cacheid
9837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9838$as_echo "$supported" >&6; }
9839		if test "$supported" = "yes" ; then
9840			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9841			found="yes"
9842		fi
9843	fi
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859xorg_testset_save_CFLAGS="$CFLAGS"
9860
9861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9866  $as_echo_n "(cached) " >&6
9867else
9868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870int i;
9871_ACEOF
9872if ac_fn_c_try_compile "$LINENO"; then :
9873  xorg_cv_cc_flag_unknown_warning_option=yes
9874else
9875  xorg_cv_cc_flag_unknown_warning_option=no
9876fi
9877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9878fi
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9882	CFLAGS="$xorg_testset_save_CFLAGS"
9883fi
9884
9885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888	fi
9889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9893  $as_echo_n "(cached) " >&6
9894else
9895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896/* end confdefs.h.  */
9897int i;
9898_ACEOF
9899if ac_fn_c_try_compile "$LINENO"; then :
9900  xorg_cv_cc_flag_unused_command_line_argument=yes
9901else
9902  xorg_cv_cc_flag_unused_command_line_argument=no
9903fi
9904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9905fi
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9909	CFLAGS="$xorg_testset_save_CFLAGS"
9910fi
9911
9912found="no"
9913
9914	if test $found = "no" ; then
9915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9917		fi
9918
9919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9921		fi
9922
9923		CFLAGS="$CFLAGS -Waddress"
9924
9925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9926$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9927		cacheid=xorg_cv_cc_flag__Waddress
9928		if eval \${$cacheid+:} false; then :
9929  $as_echo_n "(cached) " >&6
9930else
9931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932/* end confdefs.h.  */
9933int i;
9934int
9935main ()
9936{
9937
9938  ;
9939  return 0;
9940}
9941_ACEOF
9942if ac_fn_c_try_link "$LINENO"; then :
9943  eval $cacheid=yes
9944else
9945  eval $cacheid=no
9946fi
9947rm -f core conftest.err conftest.$ac_objext \
9948    conftest$ac_exeext conftest.$ac_ext
9949fi
9950
9951
9952		CFLAGS="$xorg_testset_save_CFLAGS"
9953
9954		eval supported=\$$cacheid
9955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9956$as_echo "$supported" >&6; }
9957		if test "$supported" = "yes" ; then
9958			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9959			found="yes"
9960		fi
9961	fi
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977xorg_testset_save_CFLAGS="$CFLAGS"
9978
9979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9984  $as_echo_n "(cached) " >&6
9985else
9986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987/* end confdefs.h.  */
9988int i;
9989_ACEOF
9990if ac_fn_c_try_compile "$LINENO"; then :
9991  xorg_cv_cc_flag_unknown_warning_option=yes
9992else
9993  xorg_cv_cc_flag_unknown_warning_option=no
9994fi
9995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9996fi
9997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10000	CFLAGS="$xorg_testset_save_CFLAGS"
10001fi
10002
10003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006	fi
10007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10011  $as_echo_n "(cached) " >&6
10012else
10013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h.  */
10015int i;
10016_ACEOF
10017if ac_fn_c_try_compile "$LINENO"; then :
10018  xorg_cv_cc_flag_unused_command_line_argument=yes
10019else
10020  xorg_cv_cc_flag_unused_command_line_argument=no
10021fi
10022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10023fi
10024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10027	CFLAGS="$xorg_testset_save_CFLAGS"
10028fi
10029
10030found="no"
10031
10032	if test $found = "no" ; then
10033		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10035		fi
10036
10037		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10039		fi
10040
10041		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10042
10043		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10044$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10045		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10046		if eval \${$cacheid+:} false; then :
10047  $as_echo_n "(cached) " >&6
10048else
10049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h.  */
10051int i;
10052int
10053main ()
10054{
10055
10056  ;
10057  return 0;
10058}
10059_ACEOF
10060if ac_fn_c_try_link "$LINENO"; then :
10061  eval $cacheid=yes
10062else
10063  eval $cacheid=no
10064fi
10065rm -f core conftest.err conftest.$ac_objext \
10066    conftest$ac_exeext conftest.$ac_ext
10067fi
10068
10069
10070		CFLAGS="$xorg_testset_save_CFLAGS"
10071
10072		eval supported=\$$cacheid
10073		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10074$as_echo "$supported" >&6; }
10075		if test "$supported" = "yes" ; then
10076			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10077			found="yes"
10078		fi
10079	fi
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095xorg_testset_save_CFLAGS="$CFLAGS"
10096
10097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10098	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10102  $as_echo_n "(cached) " >&6
10103else
10104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105/* end confdefs.h.  */
10106int i;
10107_ACEOF
10108if ac_fn_c_try_compile "$LINENO"; then :
10109  xorg_cv_cc_flag_unknown_warning_option=yes
10110else
10111  xorg_cv_cc_flag_unknown_warning_option=no
10112fi
10113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10114fi
10115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10118	CFLAGS="$xorg_testset_save_CFLAGS"
10119fi
10120
10121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10124	fi
10125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10129  $as_echo_n "(cached) " >&6
10130else
10131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132/* end confdefs.h.  */
10133int i;
10134_ACEOF
10135if ac_fn_c_try_compile "$LINENO"; then :
10136  xorg_cv_cc_flag_unused_command_line_argument=yes
10137else
10138  xorg_cv_cc_flag_unused_command_line_argument=no
10139fi
10140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10141fi
10142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10145	CFLAGS="$xorg_testset_save_CFLAGS"
10146fi
10147
10148found="no"
10149
10150	if test $found = "no" ; then
10151		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10153		fi
10154
10155		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10157		fi
10158
10159		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10160
10161		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10162$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10163		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10164		if eval \${$cacheid+:} false; then :
10165  $as_echo_n "(cached) " >&6
10166else
10167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168/* end confdefs.h.  */
10169int i;
10170int
10171main ()
10172{
10173
10174  ;
10175  return 0;
10176}
10177_ACEOF
10178if ac_fn_c_try_link "$LINENO"; then :
10179  eval $cacheid=yes
10180else
10181  eval $cacheid=no
10182fi
10183rm -f core conftest.err conftest.$ac_objext \
10184    conftest$ac_exeext conftest.$ac_ext
10185fi
10186
10187
10188		CFLAGS="$xorg_testset_save_CFLAGS"
10189
10190		eval supported=\$$cacheid
10191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10192$as_echo "$supported" >&6; }
10193		if test "$supported" = "yes" ; then
10194			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10195			found="yes"
10196		fi
10197	fi
10198
10199
10200fi
10201
10202
10203
10204
10205
10206
10207
10208		CWARNFLAGS="$BASE_CFLAGS"
10209		if  test "x$GCC" = xyes ; then
10210		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10211		fi
10212
10213
10214
10215
10216
10217
10218
10219
10220# Check whether --enable-strict-compilation was given.
10221if test "${enable_strict_compilation+set}" = set; then :
10222  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10223else
10224  STRICT_COMPILE=no
10225fi
10226
10227
10228
10229
10230
10231
10232STRICT_CFLAGS=""
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246xorg_testset_save_CFLAGS="$CFLAGS"
10247
10248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10249	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10251$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10252if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10253  $as_echo_n "(cached) " >&6
10254else
10255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h.  */
10257int i;
10258_ACEOF
10259if ac_fn_c_try_compile "$LINENO"; then :
10260  xorg_cv_cc_flag_unknown_warning_option=yes
10261else
10262  xorg_cv_cc_flag_unknown_warning_option=no
10263fi
10264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10265fi
10266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10267$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10268	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10269	CFLAGS="$xorg_testset_save_CFLAGS"
10270fi
10271
10272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10273	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10274		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10275	fi
10276	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10278$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10279if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10280  $as_echo_n "(cached) " >&6
10281else
10282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283/* end confdefs.h.  */
10284int i;
10285_ACEOF
10286if ac_fn_c_try_compile "$LINENO"; then :
10287  xorg_cv_cc_flag_unused_command_line_argument=yes
10288else
10289  xorg_cv_cc_flag_unused_command_line_argument=no
10290fi
10291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10294$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10295	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10296	CFLAGS="$xorg_testset_save_CFLAGS"
10297fi
10298
10299found="no"
10300
10301	if test $found = "no" ; then
10302		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10303			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10304		fi
10305
10306		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10307			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10308		fi
10309
10310		CFLAGS="$CFLAGS -pedantic"
10311
10312		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10313$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10314		cacheid=xorg_cv_cc_flag__pedantic
10315		if eval \${$cacheid+:} false; then :
10316  $as_echo_n "(cached) " >&6
10317else
10318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319/* end confdefs.h.  */
10320int i;
10321int
10322main ()
10323{
10324
10325  ;
10326  return 0;
10327}
10328_ACEOF
10329if ac_fn_c_try_link "$LINENO"; then :
10330  eval $cacheid=yes
10331else
10332  eval $cacheid=no
10333fi
10334rm -f core conftest.err conftest.$ac_objext \
10335    conftest$ac_exeext conftest.$ac_ext
10336fi
10337
10338
10339		CFLAGS="$xorg_testset_save_CFLAGS"
10340
10341		eval supported=\$$cacheid
10342		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10343$as_echo "$supported" >&6; }
10344		if test "$supported" = "yes" ; then
10345			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10346			found="yes"
10347		fi
10348	fi
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364xorg_testset_save_CFLAGS="$CFLAGS"
10365
10366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10367	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10368	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10369$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10370if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10371  $as_echo_n "(cached) " >&6
10372else
10373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374/* end confdefs.h.  */
10375int i;
10376_ACEOF
10377if ac_fn_c_try_compile "$LINENO"; then :
10378  xorg_cv_cc_flag_unknown_warning_option=yes
10379else
10380  xorg_cv_cc_flag_unknown_warning_option=no
10381fi
10382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383fi
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10385$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10386	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10387	CFLAGS="$xorg_testset_save_CFLAGS"
10388fi
10389
10390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10391	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10392		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393	fi
10394	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10396$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10397if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10398  $as_echo_n "(cached) " >&6
10399else
10400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401/* end confdefs.h.  */
10402int i;
10403_ACEOF
10404if ac_fn_c_try_compile "$LINENO"; then :
10405  xorg_cv_cc_flag_unused_command_line_argument=yes
10406else
10407  xorg_cv_cc_flag_unused_command_line_argument=no
10408fi
10409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410fi
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10412$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10413	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10414	CFLAGS="$xorg_testset_save_CFLAGS"
10415fi
10416
10417found="no"
10418
10419	if test $found = "no" ; then
10420		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10421			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10422		fi
10423
10424		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10425			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10426		fi
10427
10428		CFLAGS="$CFLAGS -Werror"
10429
10430		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10431$as_echo_n "checking if $CC supports -Werror... " >&6; }
10432		cacheid=xorg_cv_cc_flag__Werror
10433		if eval \${$cacheid+:} false; then :
10434  $as_echo_n "(cached) " >&6
10435else
10436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437/* end confdefs.h.  */
10438int i;
10439int
10440main ()
10441{
10442
10443  ;
10444  return 0;
10445}
10446_ACEOF
10447if ac_fn_c_try_link "$LINENO"; then :
10448  eval $cacheid=yes
10449else
10450  eval $cacheid=no
10451fi
10452rm -f core conftest.err conftest.$ac_objext \
10453    conftest$ac_exeext conftest.$ac_ext
10454fi
10455
10456
10457		CFLAGS="$xorg_testset_save_CFLAGS"
10458
10459		eval supported=\$$cacheid
10460		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10461$as_echo "$supported" >&6; }
10462		if test "$supported" = "yes" ; then
10463			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10464			found="yes"
10465		fi
10466	fi
10467
10468	if test $found = "no" ; then
10469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10471		fi
10472
10473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10475		fi
10476
10477		CFLAGS="$CFLAGS -errwarn"
10478
10479		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10480$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10481		cacheid=xorg_cv_cc_flag__errwarn
10482		if eval \${$cacheid+:} false; then :
10483  $as_echo_n "(cached) " >&6
10484else
10485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486/* end confdefs.h.  */
10487int i;
10488int
10489main ()
10490{
10491
10492  ;
10493  return 0;
10494}
10495_ACEOF
10496if ac_fn_c_try_link "$LINENO"; then :
10497  eval $cacheid=yes
10498else
10499  eval $cacheid=no
10500fi
10501rm -f core conftest.err conftest.$ac_objext \
10502    conftest$ac_exeext conftest.$ac_ext
10503fi
10504
10505
10506		CFLAGS="$xorg_testset_save_CFLAGS"
10507
10508		eval supported=\$$cacheid
10509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10510$as_echo "$supported" >&6; }
10511		if test "$supported" = "yes" ; then
10512			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10513			found="yes"
10514		fi
10515	fi
10516
10517
10518
10519# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10520# activate it with -Werror, so we add it here explicitly.
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534xorg_testset_save_CFLAGS="$CFLAGS"
10535
10536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10537	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10541  $as_echo_n "(cached) " >&6
10542else
10543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h.  */
10545int i;
10546_ACEOF
10547if ac_fn_c_try_compile "$LINENO"; then :
10548  xorg_cv_cc_flag_unknown_warning_option=yes
10549else
10550  xorg_cv_cc_flag_unknown_warning_option=no
10551fi
10552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553fi
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10557	CFLAGS="$xorg_testset_save_CFLAGS"
10558fi
10559
10560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10563	fi
10564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10568  $as_echo_n "(cached) " >&6
10569else
10570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571/* end confdefs.h.  */
10572int i;
10573_ACEOF
10574if ac_fn_c_try_compile "$LINENO"; then :
10575  xorg_cv_cc_flag_unused_command_line_argument=yes
10576else
10577  xorg_cv_cc_flag_unused_command_line_argument=no
10578fi
10579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10580fi
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10584	CFLAGS="$xorg_testset_save_CFLAGS"
10585fi
10586
10587found="no"
10588
10589	if test $found = "no" ; then
10590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592		fi
10593
10594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10596		fi
10597
10598		CFLAGS="$CFLAGS -Werror=attributes"
10599
10600		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10601$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10602		cacheid=xorg_cv_cc_flag__Werror_attributes
10603		if eval \${$cacheid+:} false; then :
10604  $as_echo_n "(cached) " >&6
10605else
10606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607/* end confdefs.h.  */
10608int i;
10609int
10610main ()
10611{
10612
10613  ;
10614  return 0;
10615}
10616_ACEOF
10617if ac_fn_c_try_link "$LINENO"; then :
10618  eval $cacheid=yes
10619else
10620  eval $cacheid=no
10621fi
10622rm -f core conftest.err conftest.$ac_objext \
10623    conftest$ac_exeext conftest.$ac_ext
10624fi
10625
10626
10627		CFLAGS="$xorg_testset_save_CFLAGS"
10628
10629		eval supported=\$$cacheid
10630		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10631$as_echo "$supported" >&6; }
10632		if test "$supported" = "yes" ; then
10633			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10634			found="yes"
10635		fi
10636	fi
10637
10638
10639
10640if test "x$STRICT_COMPILE" = "xyes"; then
10641    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10642    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10643fi
10644
10645
10646
10647
10648
10649
10650cat >>confdefs.h <<_ACEOF
10651#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10652_ACEOF
10653
10654	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10655	if test "x$PVM" = "x"; then
10656		PVM="0"
10657	fi
10658
10659cat >>confdefs.h <<_ACEOF
10660#define PACKAGE_VERSION_MINOR $PVM
10661_ACEOF
10662
10663	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10664	if test "x$PVP" = "x"; then
10665		PVP="0"
10666	fi
10667
10668cat >>confdefs.h <<_ACEOF
10669#define PACKAGE_VERSION_PATCHLEVEL $PVP
10670_ACEOF
10671
10672
10673
10674CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10675mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10676|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10677echo 'git directory not found: installing possibly empty changelog.' >&2)"
10678
10679
10680
10681
10682macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10683INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10684mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10685|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10686echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10687
10688
10689
10690
10691
10692
10693if test x$APP_MAN_SUFFIX = x    ; then
10694    APP_MAN_SUFFIX=1
10695fi
10696if test x$APP_MAN_DIR = x    ; then
10697    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10698fi
10699
10700if test x$LIB_MAN_SUFFIX = x    ; then
10701    LIB_MAN_SUFFIX=3
10702fi
10703if test x$LIB_MAN_DIR = x    ; then
10704    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10705fi
10706
10707if test x$FILE_MAN_SUFFIX = x    ; then
10708    case $host_os in
10709	# Solaris 2.0 - 11 use SysV man page sections
10710	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10711	*)				FILE_MAN_SUFFIX=5  ;;
10712    esac
10713fi
10714if test x$FILE_MAN_DIR = x    ; then
10715    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10716fi
10717
10718if test x$MISC_MAN_SUFFIX = x    ; then
10719    case $host_os in
10720	# Solaris 2.0 - 11 use SysV man page sections
10721	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10722	*)				MISC_MAN_SUFFIX=7  ;;
10723    esac
10724fi
10725if test x$MISC_MAN_DIR = x    ; then
10726    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10727fi
10728
10729if test x$DRIVER_MAN_SUFFIX = x    ; then
10730    case $host_os in
10731	# Solaris 2.0 - 11 use SysV man page sections
10732	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10733	*)				DRIVER_MAN_SUFFIX=4  ;;
10734    esac
10735fi
10736if test x$DRIVER_MAN_DIR = x    ; then
10737    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10738fi
10739
10740if test x$ADMIN_MAN_SUFFIX = x    ; then
10741    case $host_os in
10742	# Solaris 2.0 - 11 use SysV man page sections
10743	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10744	*)				ADMIN_MAN_SUFFIX=8  ;;
10745    esac
10746fi
10747if test x$ADMIN_MAN_DIR = x    ; then
10748    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10749fi
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765XORG_MAN_PAGE="X Version 11"
10766
10767MAN_SUBSTS="\
10768	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10769	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10770	-e 's|__xservername__|Xorg|g' \
10771	-e 's|__xconfigfile__|xorg.conf|g' \
10772	-e 's|__projectroot__|\$(prefix)|g' \
10773	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10774	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10775	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10776	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10777	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10778	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10779	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10780
10781
10782
10783# Check whether --enable-silent-rules was given.
10784if test "${enable_silent_rules+set}" = set; then :
10785  enableval=$enable_silent_rules;
10786fi
10787
10788case $enable_silent_rules in # (((
10789  yes) AM_DEFAULT_VERBOSITY=0;;
10790   no) AM_DEFAULT_VERBOSITY=1;;
10791    *) AM_DEFAULT_VERBOSITY=0;;
10792esac
10793am_make=${MAKE-make}
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10795$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10796if ${am_cv_make_support_nested_variables+:} false; then :
10797  $as_echo_n "(cached) " >&6
10798else
10799  if $as_echo 'TRUE=$(BAR$(V))
10800BAR0=false
10801BAR1=true
10802V=1
10803am__doit:
10804	@$(TRUE)
10805.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10806  am_cv_make_support_nested_variables=yes
10807else
10808  am_cv_make_support_nested_variables=no
10809fi
10810fi
10811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10812$as_echo "$am_cv_make_support_nested_variables" >&6; }
10813if test $am_cv_make_support_nested_variables = yes; then
10814    AM_V='$(V)'
10815  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10816else
10817  AM_V=$AM_DEFAULT_VERBOSITY
10818  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10819fi
10820AM_BACKSLASH='\'
10821
10822
10823
10824for ac_func in strcasecmp
10825do :
10826  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
10827if test "x$ac_cv_func_strcasecmp" = xyes; then :
10828  cat >>confdefs.h <<_ACEOF
10829#define HAVE_STRCASECMP 1
10830_ACEOF
10831
10832fi
10833done
10834
10835
10836# Checks for pkg-config packages
10837
10838pkg_failed=no
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XREFRESH" >&5
10840$as_echo_n "checking for XREFRESH... " >&6; }
10841
10842if test -n "$XREFRESH_CFLAGS"; then
10843    pkg_cv_XREFRESH_CFLAGS="$XREFRESH_CFLAGS"
10844 elif test -n "$PKG_CONFIG"; then
10845    if test -n "$PKG_CONFIG" && \
10846    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
10847  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
10848  ac_status=$?
10849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850  test $ac_status = 0; }; then
10851  pkg_cv_XREFRESH_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
10852		      test "x$?" != "x0" && pkg_failed=yes
10853else
10854  pkg_failed=yes
10855fi
10856 else
10857    pkg_failed=untried
10858fi
10859if test -n "$XREFRESH_LIBS"; then
10860    pkg_cv_XREFRESH_LIBS="$XREFRESH_LIBS"
10861 elif test -n "$PKG_CONFIG"; then
10862    if test -n "$PKG_CONFIG" && \
10863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
10864  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
10865  ac_status=$?
10866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10867  test $ac_status = 0; }; then
10868  pkg_cv_XREFRESH_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
10869		      test "x$?" != "x0" && pkg_failed=yes
10870else
10871  pkg_failed=yes
10872fi
10873 else
10874    pkg_failed=untried
10875fi
10876
10877
10878
10879if test $pkg_failed = yes; then
10880   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881$as_echo "no" >&6; }
10882
10883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10884        _pkg_short_errors_supported=yes
10885else
10886        _pkg_short_errors_supported=no
10887fi
10888        if test $_pkg_short_errors_supported = yes; then
10889	        XREFRESH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
10890        else
10891	        XREFRESH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
10892        fi
10893	# Put the nasty error message in config.log where it belongs
10894	echo "$XREFRESH_PKG_ERRORS" >&5
10895
10896	as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
10897
10898$XREFRESH_PKG_ERRORS
10899
10900Consider adjusting the PKG_CONFIG_PATH environment variable if you
10901installed software in a non-standard prefix.
10902
10903Alternatively, you may set the environment variables XREFRESH_CFLAGS
10904and XREFRESH_LIBS to avoid the need to call pkg-config.
10905See the pkg-config man page for more details." "$LINENO" 5
10906elif test $pkg_failed = untried; then
10907     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908$as_echo "no" >&6; }
10909	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10911as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10912is in your PATH or set the PKG_CONFIG environment variable to the full
10913path to pkg-config.
10914
10915Alternatively, you may set the environment variables XREFRESH_CFLAGS
10916and XREFRESH_LIBS to avoid the need to call pkg-config.
10917See the pkg-config man page for more details.
10918
10919To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10920See \`config.log' for more details" "$LINENO" 5; }
10921else
10922	XREFRESH_CFLAGS=$pkg_cv_XREFRESH_CFLAGS
10923	XREFRESH_LIBS=$pkg_cv_XREFRESH_LIBS
10924        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10925$as_echo "yes" >&6; }
10926
10927fi
10928
10929ac_config_files="$ac_config_files Makefile man/Makefile"
10930
10931cat >confcache <<\_ACEOF
10932# This file is a shell script that caches the results of configure
10933# tests run on this system so they can be shared between configure
10934# scripts and configure runs, see configure's option --config-cache.
10935# It is not useful on other systems.  If it contains results you don't
10936# want to keep, you may remove or edit it.
10937#
10938# config.status only pays attention to the cache file if you give it
10939# the --recheck option to rerun configure.
10940#
10941# `ac_cv_env_foo' variables (set or unset) will be overridden when
10942# loading this file, other *unset* `ac_cv_foo' will be assigned the
10943# following values.
10944
10945_ACEOF
10946
10947# The following way of writing the cache mishandles newlines in values,
10948# but we know of no workaround that is simple, portable, and efficient.
10949# So, we kill variables containing newlines.
10950# Ultrix sh set writes to stderr and can't be redirected directly,
10951# and sets the high bit in the cache file unless we assign to the vars.
10952(
10953  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10954    eval ac_val=\$$ac_var
10955    case $ac_val in #(
10956    *${as_nl}*)
10957      case $ac_var in #(
10958      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10959$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10960      esac
10961      case $ac_var in #(
10962      _ | IFS | as_nl) ;; #(
10963      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10964      *) { eval $ac_var=; unset $ac_var;} ;;
10965      esac ;;
10966    esac
10967  done
10968
10969  (set) 2>&1 |
10970    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10971    *${as_nl}ac_space=\ *)
10972      # `set' does not quote correctly, so add quotes: double-quote
10973      # substitution turns \\\\ into \\, and sed turns \\ into \.
10974      sed -n \
10975	"s/'/'\\\\''/g;
10976	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10977      ;; #(
10978    *)
10979      # `set' quotes correctly as required by POSIX, so do not add quotes.
10980      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10981      ;;
10982    esac |
10983    sort
10984) |
10985  sed '
10986     /^ac_cv_env_/b end
10987     t clear
10988     :clear
10989     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10990     t end
10991     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10992     :end' >>confcache
10993if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10994  if test -w "$cache_file"; then
10995    if test "x$cache_file" != "x/dev/null"; then
10996      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10997$as_echo "$as_me: updating cache $cache_file" >&6;}
10998      if test ! -f "$cache_file" || test -h "$cache_file"; then
10999	cat confcache >"$cache_file"
11000      else
11001        case $cache_file in #(
11002        */* | ?:*)
11003	  mv -f confcache "$cache_file"$$ &&
11004	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11005        *)
11006	  mv -f confcache "$cache_file" ;;
11007	esac
11008      fi
11009    fi
11010  else
11011    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11012$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11013  fi
11014fi
11015rm -f confcache
11016
11017test "x$prefix" = xNONE && prefix=$ac_default_prefix
11018# Let make expand exec_prefix.
11019test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11020
11021DEFS=-DHAVE_CONFIG_H
11022
11023ac_libobjs=
11024ac_ltlibobjs=
11025U=
11026for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11027  # 1. Remove the extension, and $U if already installed.
11028  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11029  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11030  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11031  #    will be set to the directory where LIBOBJS objects are built.
11032  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11033  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11034done
11035LIBOBJS=$ac_libobjs
11036
11037LTLIBOBJS=$ac_ltlibobjs
11038
11039
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11041$as_echo_n "checking that generated files are newer than configure... " >&6; }
11042   if test -n "$am_sleep_pid"; then
11043     # Hide warnings about reused PIDs.
11044     wait $am_sleep_pid 2>/dev/null
11045   fi
11046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11047$as_echo "done" >&6; }
11048if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11049  as_fn_error $? "conditional \"AMDEP\" was never defined.
11050Usually this means the macro was only invoked conditionally." "$LINENO" 5
11051fi
11052if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11053  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11054Usually this means the macro was only invoked conditionally." "$LINENO" 5
11055fi
11056 if test -n "$EXEEXT"; then
11057  am__EXEEXT_TRUE=
11058  am__EXEEXT_FALSE='#'
11059else
11060  am__EXEEXT_TRUE='#'
11061  am__EXEEXT_FALSE=
11062fi
11063
11064
11065: "${CONFIG_STATUS=./config.status}"
11066ac_write_fail=0
11067ac_clean_files_save=$ac_clean_files
11068ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11070$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11071as_write_fail=0
11072cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11073#! $SHELL
11074# Generated by $as_me.
11075# Run this file to recreate the current configuration.
11076# Compiler output produced by configure, useful for debugging
11077# configure, is in config.log if it exists.
11078
11079debug=false
11080ac_cs_recheck=false
11081ac_cs_silent=false
11082
11083SHELL=\${CONFIG_SHELL-$SHELL}
11084export SHELL
11085_ASEOF
11086cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11087## -------------------- ##
11088## M4sh Initialization. ##
11089## -------------------- ##
11090
11091# Be more Bourne compatible
11092DUALCASE=1; export DUALCASE # for MKS sh
11093if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11094  emulate sh
11095  NULLCMD=:
11096  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11097  # is contrary to our usage.  Disable this feature.
11098  alias -g '${1+"$@"}'='"$@"'
11099  setopt NO_GLOB_SUBST
11100else
11101  case `(set -o) 2>/dev/null` in #(
11102  *posix*) :
11103    set -o posix ;; #(
11104  *) :
11105     ;;
11106esac
11107fi
11108
11109
11110as_nl='
11111'
11112export as_nl
11113# Printing a long string crashes Solaris 7 /usr/bin/printf.
11114as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11115as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11116as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11117# Prefer a ksh shell builtin over an external printf program on Solaris,
11118# but without wasting forks for bash or zsh.
11119if test -z "$BASH_VERSION$ZSH_VERSION" \
11120    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11121  as_echo='print -r --'
11122  as_echo_n='print -rn --'
11123elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11124  as_echo='printf %s\n'
11125  as_echo_n='printf %s'
11126else
11127  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11128    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11129    as_echo_n='/usr/ucb/echo -n'
11130  else
11131    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11132    as_echo_n_body='eval
11133      arg=$1;
11134      case $arg in #(
11135      *"$as_nl"*)
11136	expr "X$arg" : "X\\(.*\\)$as_nl";
11137	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11138      esac;
11139      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11140    '
11141    export as_echo_n_body
11142    as_echo_n='sh -c $as_echo_n_body as_echo'
11143  fi
11144  export as_echo_body
11145  as_echo='sh -c $as_echo_body as_echo'
11146fi
11147
11148# The user is always right.
11149if test "${PATH_SEPARATOR+set}" != set; then
11150  PATH_SEPARATOR=:
11151  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11152    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11153      PATH_SEPARATOR=';'
11154  }
11155fi
11156
11157
11158# IFS
11159# We need space, tab and new line, in precisely that order.  Quoting is
11160# there to prevent editors from complaining about space-tab.
11161# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11162# splitting by setting IFS to empty value.)
11163IFS=" ""	$as_nl"
11164
11165# Find who we are.  Look in the path if we contain no directory separator.
11166as_myself=
11167case $0 in #((
11168  *[\\/]* ) as_myself=$0 ;;
11169  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170for as_dir in $PATH
11171do
11172  IFS=$as_save_IFS
11173  test -z "$as_dir" && as_dir=.
11174    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11175  done
11176IFS=$as_save_IFS
11177
11178     ;;
11179esac
11180# We did not find ourselves, most probably we were run as `sh COMMAND'
11181# in which case we are not to be found in the path.
11182if test "x$as_myself" = x; then
11183  as_myself=$0
11184fi
11185if test ! -f "$as_myself"; then
11186  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11187  exit 1
11188fi
11189
11190# Unset variables that we do not need and which cause bugs (e.g. in
11191# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11192# suppresses any "Segmentation fault" message there.  '((' could
11193# trigger a bug in pdksh 5.2.14.
11194for as_var in BASH_ENV ENV MAIL MAILPATH
11195do eval test x\${$as_var+set} = xset \
11196  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11197done
11198PS1='$ '
11199PS2='> '
11200PS4='+ '
11201
11202# NLS nuisances.
11203LC_ALL=C
11204export LC_ALL
11205LANGUAGE=C
11206export LANGUAGE
11207
11208# CDPATH.
11209(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11210
11211
11212# as_fn_error STATUS ERROR [LINENO LOG_FD]
11213# ----------------------------------------
11214# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11215# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11216# script with STATUS, using 1 if that was 0.
11217as_fn_error ()
11218{
11219  as_status=$1; test $as_status -eq 0 && as_status=1
11220  if test "$4"; then
11221    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11222    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11223  fi
11224  $as_echo "$as_me: error: $2" >&2
11225  as_fn_exit $as_status
11226} # as_fn_error
11227
11228
11229# as_fn_set_status STATUS
11230# -----------------------
11231# Set $? to STATUS, without forking.
11232as_fn_set_status ()
11233{
11234  return $1
11235} # as_fn_set_status
11236
11237# as_fn_exit STATUS
11238# -----------------
11239# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11240as_fn_exit ()
11241{
11242  set +e
11243  as_fn_set_status $1
11244  exit $1
11245} # as_fn_exit
11246
11247# as_fn_unset VAR
11248# ---------------
11249# Portably unset VAR.
11250as_fn_unset ()
11251{
11252  { eval $1=; unset $1;}
11253}
11254as_unset=as_fn_unset
11255# as_fn_append VAR VALUE
11256# ----------------------
11257# Append the text in VALUE to the end of the definition contained in VAR. Take
11258# advantage of any shell optimizations that allow amortized linear growth over
11259# repeated appends, instead of the typical quadratic growth present in naive
11260# implementations.
11261if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11262  eval 'as_fn_append ()
11263  {
11264    eval $1+=\$2
11265  }'
11266else
11267  as_fn_append ()
11268  {
11269    eval $1=\$$1\$2
11270  }
11271fi # as_fn_append
11272
11273# as_fn_arith ARG...
11274# ------------------
11275# Perform arithmetic evaluation on the ARGs, and store the result in the
11276# global $as_val. Take advantage of shells that can avoid forks. The arguments
11277# must be portable across $(()) and expr.
11278if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11279  eval 'as_fn_arith ()
11280  {
11281    as_val=$(( $* ))
11282  }'
11283else
11284  as_fn_arith ()
11285  {
11286    as_val=`expr "$@" || test $? -eq 1`
11287  }
11288fi # as_fn_arith
11289
11290
11291if expr a : '\(a\)' >/dev/null 2>&1 &&
11292   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11293  as_expr=expr
11294else
11295  as_expr=false
11296fi
11297
11298if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11299  as_basename=basename
11300else
11301  as_basename=false
11302fi
11303
11304if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11305  as_dirname=dirname
11306else
11307  as_dirname=false
11308fi
11309
11310as_me=`$as_basename -- "$0" ||
11311$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11312	 X"$0" : 'X\(//\)$' \| \
11313	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11314$as_echo X/"$0" |
11315    sed '/^.*\/\([^/][^/]*\)\/*$/{
11316	    s//\1/
11317	    q
11318	  }
11319	  /^X\/\(\/\/\)$/{
11320	    s//\1/
11321	    q
11322	  }
11323	  /^X\/\(\/\).*/{
11324	    s//\1/
11325	    q
11326	  }
11327	  s/.*/./; q'`
11328
11329# Avoid depending upon Character Ranges.
11330as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11331as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11332as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11333as_cr_digits='0123456789'
11334as_cr_alnum=$as_cr_Letters$as_cr_digits
11335
11336ECHO_C= ECHO_N= ECHO_T=
11337case `echo -n x` in #(((((
11338-n*)
11339  case `echo 'xy\c'` in
11340  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11341  xy)  ECHO_C='\c';;
11342  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11343       ECHO_T='	';;
11344  esac;;
11345*)
11346  ECHO_N='-n';;
11347esac
11348
11349rm -f conf$$ conf$$.exe conf$$.file
11350if test -d conf$$.dir; then
11351  rm -f conf$$.dir/conf$$.file
11352else
11353  rm -f conf$$.dir
11354  mkdir conf$$.dir 2>/dev/null
11355fi
11356if (echo >conf$$.file) 2>/dev/null; then
11357  if ln -s conf$$.file conf$$ 2>/dev/null; then
11358    as_ln_s='ln -s'
11359    # ... but there are two gotchas:
11360    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11361    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11362    # In both cases, we have to default to `cp -pR'.
11363    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11364      as_ln_s='cp -pR'
11365  elif ln conf$$.file conf$$ 2>/dev/null; then
11366    as_ln_s=ln
11367  else
11368    as_ln_s='cp -pR'
11369  fi
11370else
11371  as_ln_s='cp -pR'
11372fi
11373rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11374rmdir conf$$.dir 2>/dev/null
11375
11376
11377# as_fn_mkdir_p
11378# -------------
11379# Create "$as_dir" as a directory, including parents if necessary.
11380as_fn_mkdir_p ()
11381{
11382
11383  case $as_dir in #(
11384  -*) as_dir=./$as_dir;;
11385  esac
11386  test -d "$as_dir" || eval $as_mkdir_p || {
11387    as_dirs=
11388    while :; do
11389      case $as_dir in #(
11390      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11391      *) as_qdir=$as_dir;;
11392      esac
11393      as_dirs="'$as_qdir' $as_dirs"
11394      as_dir=`$as_dirname -- "$as_dir" ||
11395$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11396	 X"$as_dir" : 'X\(//\)[^/]' \| \
11397	 X"$as_dir" : 'X\(//\)$' \| \
11398	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11399$as_echo X"$as_dir" |
11400    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11401	    s//\1/
11402	    q
11403	  }
11404	  /^X\(\/\/\)[^/].*/{
11405	    s//\1/
11406	    q
11407	  }
11408	  /^X\(\/\/\)$/{
11409	    s//\1/
11410	    q
11411	  }
11412	  /^X\(\/\).*/{
11413	    s//\1/
11414	    q
11415	  }
11416	  s/.*/./; q'`
11417      test -d "$as_dir" && break
11418    done
11419    test -z "$as_dirs" || eval "mkdir $as_dirs"
11420  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11421
11422
11423} # as_fn_mkdir_p
11424if mkdir -p . 2>/dev/null; then
11425  as_mkdir_p='mkdir -p "$as_dir"'
11426else
11427  test -d ./-p && rmdir ./-p
11428  as_mkdir_p=false
11429fi
11430
11431
11432# as_fn_executable_p FILE
11433# -----------------------
11434# Test if FILE is an executable regular file.
11435as_fn_executable_p ()
11436{
11437  test -f "$1" && test -x "$1"
11438} # as_fn_executable_p
11439as_test_x='test -x'
11440as_executable_p=as_fn_executable_p
11441
11442# Sed expression to map a string onto a valid CPP name.
11443as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11444
11445# Sed expression to map a string onto a valid variable name.
11446as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11447
11448
11449exec 6>&1
11450## ----------------------------------- ##
11451## Main body of $CONFIG_STATUS script. ##
11452## ----------------------------------- ##
11453_ASEOF
11454test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11455
11456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11457# Save the log message, to keep $0 and so on meaningful, and to
11458# report actual input values of CONFIG_FILES etc. instead of their
11459# values after options handling.
11460ac_log="
11461This file was extended by xrefresh $as_me 1.0.6, which was
11462generated by GNU Autoconf 2.69.  Invocation command line was
11463
11464  CONFIG_FILES    = $CONFIG_FILES
11465  CONFIG_HEADERS  = $CONFIG_HEADERS
11466  CONFIG_LINKS    = $CONFIG_LINKS
11467  CONFIG_COMMANDS = $CONFIG_COMMANDS
11468  $ $0 $@
11469
11470on `(hostname || uname -n) 2>/dev/null | sed 1q`
11471"
11472
11473_ACEOF
11474
11475case $ac_config_files in *"
11476"*) set x $ac_config_files; shift; ac_config_files=$*;;
11477esac
11478
11479case $ac_config_headers in *"
11480"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11481esac
11482
11483
11484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11485# Files that config.status was made for.
11486config_files="$ac_config_files"
11487config_headers="$ac_config_headers"
11488config_commands="$ac_config_commands"
11489
11490_ACEOF
11491
11492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11493ac_cs_usage="\
11494\`$as_me' instantiates files and other configuration actions
11495from templates according to the current configuration.  Unless the files
11496and actions are specified as TAGs, all are instantiated by default.
11497
11498Usage: $0 [OPTION]... [TAG]...
11499
11500  -h, --help       print this help, then exit
11501  -V, --version    print version number and configuration settings, then exit
11502      --config     print configuration, then exit
11503  -q, --quiet, --silent
11504                   do not print progress messages
11505  -d, --debug      don't remove temporary files
11506      --recheck    update $as_me by reconfiguring in the same conditions
11507      --file=FILE[:TEMPLATE]
11508                   instantiate the configuration file FILE
11509      --header=FILE[:TEMPLATE]
11510                   instantiate the configuration header FILE
11511
11512Configuration files:
11513$config_files
11514
11515Configuration headers:
11516$config_headers
11517
11518Configuration commands:
11519$config_commands
11520
11521Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11522
11523_ACEOF
11524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11525ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11526ac_cs_version="\\
11527xrefresh config.status 1.0.6
11528configured by $0, generated by GNU Autoconf 2.69,
11529  with options \\"\$ac_cs_config\\"
11530
11531Copyright (C) 2012 Free Software Foundation, Inc.
11532This config.status script is free software; the Free Software Foundation
11533gives unlimited permission to copy, distribute and modify it."
11534
11535ac_pwd='$ac_pwd'
11536srcdir='$srcdir'
11537INSTALL='$INSTALL'
11538MKDIR_P='$MKDIR_P'
11539AWK='$AWK'
11540test -n "\$AWK" || AWK=awk
11541_ACEOF
11542
11543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11544# The default lists apply if the user does not specify any file.
11545ac_need_defaults=:
11546while test $# != 0
11547do
11548  case $1 in
11549  --*=?*)
11550    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11551    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11552    ac_shift=:
11553    ;;
11554  --*=)
11555    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11556    ac_optarg=
11557    ac_shift=:
11558    ;;
11559  *)
11560    ac_option=$1
11561    ac_optarg=$2
11562    ac_shift=shift
11563    ;;
11564  esac
11565
11566  case $ac_option in
11567  # Handling of the options.
11568  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11569    ac_cs_recheck=: ;;
11570  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11571    $as_echo "$ac_cs_version"; exit ;;
11572  --config | --confi | --conf | --con | --co | --c )
11573    $as_echo "$ac_cs_config"; exit ;;
11574  --debug | --debu | --deb | --de | --d | -d )
11575    debug=: ;;
11576  --file | --fil | --fi | --f )
11577    $ac_shift
11578    case $ac_optarg in
11579    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11580    '') as_fn_error $? "missing file argument" ;;
11581    esac
11582    as_fn_append CONFIG_FILES " '$ac_optarg'"
11583    ac_need_defaults=false;;
11584  --header | --heade | --head | --hea )
11585    $ac_shift
11586    case $ac_optarg in
11587    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11588    esac
11589    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11590    ac_need_defaults=false;;
11591  --he | --h)
11592    # Conflict between --help and --header
11593    as_fn_error $? "ambiguous option: \`$1'
11594Try \`$0 --help' for more information.";;
11595  --help | --hel | -h )
11596    $as_echo "$ac_cs_usage"; exit ;;
11597  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11598  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11599    ac_cs_silent=: ;;
11600
11601  # This is an error.
11602  -*) as_fn_error $? "unrecognized option: \`$1'
11603Try \`$0 --help' for more information." ;;
11604
11605  *) as_fn_append ac_config_targets " $1"
11606     ac_need_defaults=false ;;
11607
11608  esac
11609  shift
11610done
11611
11612ac_configure_extra_args=
11613
11614if $ac_cs_silent; then
11615  exec 6>/dev/null
11616  ac_configure_extra_args="$ac_configure_extra_args --silent"
11617fi
11618
11619_ACEOF
11620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11621if \$ac_cs_recheck; then
11622  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11623  shift
11624  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11625  CONFIG_SHELL='$SHELL'
11626  export CONFIG_SHELL
11627  exec "\$@"
11628fi
11629
11630_ACEOF
11631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11632exec 5>>config.log
11633{
11634  echo
11635  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11636## Running $as_me. ##
11637_ASBOX
11638  $as_echo "$ac_log"
11639} >&5
11640
11641_ACEOF
11642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11643#
11644# INIT-COMMANDS
11645#
11646AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11647
11648_ACEOF
11649
11650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11651
11652# Handling of arguments.
11653for ac_config_target in $ac_config_targets
11654do
11655  case $ac_config_target in
11656    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11657    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11658    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11659    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11660
11661  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11662  esac
11663done
11664
11665
11666# If the user did not use the arguments to specify the items to instantiate,
11667# then the envvar interface is used.  Set only those that are not.
11668# We use the long form for the default assignment because of an extremely
11669# bizarre bug on SunOS 4.1.3.
11670if $ac_need_defaults; then
11671  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11672  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11673  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11674fi
11675
11676# Have a temporary directory for convenience.  Make it in the build tree
11677# simply because there is no reason against having it here, and in addition,
11678# creating and moving files from /tmp can sometimes cause problems.
11679# Hook for its removal unless debugging.
11680# Note that there is a small window in which the directory will not be cleaned:
11681# after its creation but before its name has been assigned to `$tmp'.
11682$debug ||
11683{
11684  tmp= ac_tmp=
11685  trap 'exit_status=$?
11686  : "${ac_tmp:=$tmp}"
11687  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11688' 0
11689  trap 'as_fn_exit 1' 1 2 13 15
11690}
11691# Create a (secure) tmp directory for tmp files.
11692
11693{
11694  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11695  test -d "$tmp"
11696}  ||
11697{
11698  tmp=./conf$$-$RANDOM
11699  (umask 077 && mkdir "$tmp")
11700} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11701ac_tmp=$tmp
11702
11703# Set up the scripts for CONFIG_FILES section.
11704# No need to generate them if there are no CONFIG_FILES.
11705# This happens for instance with `./config.status config.h'.
11706if test -n "$CONFIG_FILES"; then
11707
11708
11709ac_cr=`echo X | tr X '\015'`
11710# On cygwin, bash can eat \r inside `` if the user requested igncr.
11711# But we know of no other shell where ac_cr would be empty at this
11712# point, so we can use a bashism as a fallback.
11713if test "x$ac_cr" = x; then
11714  eval ac_cr=\$\'\\r\'
11715fi
11716ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11717if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11718  ac_cs_awk_cr='\\r'
11719else
11720  ac_cs_awk_cr=$ac_cr
11721fi
11722
11723echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11724_ACEOF
11725
11726
11727{
11728  echo "cat >conf$$subs.awk <<_ACEOF" &&
11729  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11730  echo "_ACEOF"
11731} >conf$$subs.sh ||
11732  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11733ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11734ac_delim='%!_!# '
11735for ac_last_try in false false false false false :; do
11736  . ./conf$$subs.sh ||
11737    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11738
11739  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11740  if test $ac_delim_n = $ac_delim_num; then
11741    break
11742  elif $ac_last_try; then
11743    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11744  else
11745    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11746  fi
11747done
11748rm -f conf$$subs.sh
11749
11750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11751cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11752_ACEOF
11753sed -n '
11754h
11755s/^/S["/; s/!.*/"]=/
11756p
11757g
11758s/^[^!]*!//
11759:repl
11760t repl
11761s/'"$ac_delim"'$//
11762t delim
11763:nl
11764h
11765s/\(.\{148\}\)..*/\1/
11766t more1
11767s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11768p
11769n
11770b repl
11771:more1
11772s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11773p
11774g
11775s/.\{148\}//
11776t nl
11777:delim
11778h
11779s/\(.\{148\}\)..*/\1/
11780t more2
11781s/["\\]/\\&/g; s/^/"/; s/$/"/
11782p
11783b
11784:more2
11785s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11786p
11787g
11788s/.\{148\}//
11789t delim
11790' <conf$$subs.awk | sed '
11791/^[^""]/{
11792  N
11793  s/\n//
11794}
11795' >>$CONFIG_STATUS || ac_write_fail=1
11796rm -f conf$$subs.awk
11797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11798_ACAWK
11799cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11800  for (key in S) S_is_set[key] = 1
11801  FS = ""
11802
11803}
11804{
11805  line = $ 0
11806  nfields = split(line, field, "@")
11807  substed = 0
11808  len = length(field[1])
11809  for (i = 2; i < nfields; i++) {
11810    key = field[i]
11811    keylen = length(key)
11812    if (S_is_set[key]) {
11813      value = S[key]
11814      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11815      len += length(value) + length(field[++i])
11816      substed = 1
11817    } else
11818      len += 1 + keylen
11819  }
11820
11821  print line
11822}
11823
11824_ACAWK
11825_ACEOF
11826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11827if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11828  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11829else
11830  cat
11831fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11832  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11833_ACEOF
11834
11835# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11836# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11837# trailing colons and then remove the whole line if VPATH becomes empty
11838# (actually we leave an empty line to preserve line numbers).
11839if test "x$srcdir" = x.; then
11840  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11841h
11842s///
11843s/^/:/
11844s/[	 ]*$/:/
11845s/:\$(srcdir):/:/g
11846s/:\${srcdir}:/:/g
11847s/:@srcdir@:/:/g
11848s/^:*//
11849s/:*$//
11850x
11851s/\(=[	 ]*\).*/\1/
11852G
11853s/\n//
11854s/^[^=]*=[	 ]*$//
11855}'
11856fi
11857
11858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11859fi # test -n "$CONFIG_FILES"
11860
11861# Set up the scripts for CONFIG_HEADERS section.
11862# No need to generate them if there are no CONFIG_HEADERS.
11863# This happens for instance with `./config.status Makefile'.
11864if test -n "$CONFIG_HEADERS"; then
11865cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11866BEGIN {
11867_ACEOF
11868
11869# Transform confdefs.h into an awk script `defines.awk', embedded as
11870# here-document in config.status, that substitutes the proper values into
11871# config.h.in to produce config.h.
11872
11873# Create a delimiter string that does not exist in confdefs.h, to ease
11874# handling of long lines.
11875ac_delim='%!_!# '
11876for ac_last_try in false false :; do
11877  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11878  if test -z "$ac_tt"; then
11879    break
11880  elif $ac_last_try; then
11881    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11882  else
11883    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11884  fi
11885done
11886
11887# For the awk script, D is an array of macro values keyed by name,
11888# likewise P contains macro parameters if any.  Preserve backslash
11889# newline sequences.
11890
11891ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11892sed -n '
11893s/.\{148\}/&'"$ac_delim"'/g
11894t rset
11895:rset
11896s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11897t def
11898d
11899:def
11900s/\\$//
11901t bsnl
11902s/["\\]/\\&/g
11903s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11904D["\1"]=" \3"/p
11905s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11906d
11907:bsnl
11908s/["\\]/\\&/g
11909s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11910D["\1"]=" \3\\\\\\n"\\/p
11911t cont
11912s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11913t cont
11914d
11915:cont
11916n
11917s/.\{148\}/&'"$ac_delim"'/g
11918t clear
11919:clear
11920s/\\$//
11921t bsnlc
11922s/["\\]/\\&/g; s/^/"/; s/$/"/p
11923d
11924:bsnlc
11925s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11926b cont
11927' <confdefs.h | sed '
11928s/'"$ac_delim"'/"\\\
11929"/g' >>$CONFIG_STATUS || ac_write_fail=1
11930
11931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11932  for (key in D) D_is_set[key] = 1
11933  FS = ""
11934}
11935/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11936  line = \$ 0
11937  split(line, arg, " ")
11938  if (arg[1] == "#") {
11939    defundef = arg[2]
11940    mac1 = arg[3]
11941  } else {
11942    defundef = substr(arg[1], 2)
11943    mac1 = arg[2]
11944  }
11945  split(mac1, mac2, "(") #)
11946  macro = mac2[1]
11947  prefix = substr(line, 1, index(line, defundef) - 1)
11948  if (D_is_set[macro]) {
11949    # Preserve the white space surrounding the "#".
11950    print prefix "define", macro P[macro] D[macro]
11951    next
11952  } else {
11953    # Replace #undef with comments.  This is necessary, for example,
11954    # in the case of _POSIX_SOURCE, which is predefined and required
11955    # on some systems where configure will not decide to define it.
11956    if (defundef == "undef") {
11957      print "/*", prefix defundef, macro, "*/"
11958      next
11959    }
11960  }
11961}
11962{ print }
11963_ACAWK
11964_ACEOF
11965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11966  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11967fi # test -n "$CONFIG_HEADERS"
11968
11969
11970eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11971shift
11972for ac_tag
11973do
11974  case $ac_tag in
11975  :[FHLC]) ac_mode=$ac_tag; continue;;
11976  esac
11977  case $ac_mode$ac_tag in
11978  :[FHL]*:*);;
11979  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11980  :[FH]-) ac_tag=-:-;;
11981  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11982  esac
11983  ac_save_IFS=$IFS
11984  IFS=:
11985  set x $ac_tag
11986  IFS=$ac_save_IFS
11987  shift
11988  ac_file=$1
11989  shift
11990
11991  case $ac_mode in
11992  :L) ac_source=$1;;
11993  :[FH])
11994    ac_file_inputs=
11995    for ac_f
11996    do
11997      case $ac_f in
11998      -) ac_f="$ac_tmp/stdin";;
11999      *) # Look for the file first in the build tree, then in the source tree
12000	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12001	 # because $ac_f cannot contain `:'.
12002	 test -f "$ac_f" ||
12003	   case $ac_f in
12004	   [\\/$]*) false;;
12005	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12006	   esac ||
12007	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12008      esac
12009      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12010      as_fn_append ac_file_inputs " '$ac_f'"
12011    done
12012
12013    # Let's still pretend it is `configure' which instantiates (i.e., don't
12014    # use $as_me), people would be surprised to read:
12015    #    /* config.h.  Generated by config.status.  */
12016    configure_input='Generated from '`
12017	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12018	`' by configure.'
12019    if test x"$ac_file" != x-; then
12020      configure_input="$ac_file.  $configure_input"
12021      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12022$as_echo "$as_me: creating $ac_file" >&6;}
12023    fi
12024    # Neutralize special characters interpreted by sed in replacement strings.
12025    case $configure_input in #(
12026    *\&* | *\|* | *\\* )
12027       ac_sed_conf_input=`$as_echo "$configure_input" |
12028       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12029    *) ac_sed_conf_input=$configure_input;;
12030    esac
12031
12032    case $ac_tag in
12033    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12034      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12035    esac
12036    ;;
12037  esac
12038
12039  ac_dir=`$as_dirname -- "$ac_file" ||
12040$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12041	 X"$ac_file" : 'X\(//\)[^/]' \| \
12042	 X"$ac_file" : 'X\(//\)$' \| \
12043	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12044$as_echo X"$ac_file" |
12045    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12046	    s//\1/
12047	    q
12048	  }
12049	  /^X\(\/\/\)[^/].*/{
12050	    s//\1/
12051	    q
12052	  }
12053	  /^X\(\/\/\)$/{
12054	    s//\1/
12055	    q
12056	  }
12057	  /^X\(\/\).*/{
12058	    s//\1/
12059	    q
12060	  }
12061	  s/.*/./; q'`
12062  as_dir="$ac_dir"; as_fn_mkdir_p
12063  ac_builddir=.
12064
12065case "$ac_dir" in
12066.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12067*)
12068  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12069  # A ".." for each directory in $ac_dir_suffix.
12070  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12071  case $ac_top_builddir_sub in
12072  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12073  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12074  esac ;;
12075esac
12076ac_abs_top_builddir=$ac_pwd
12077ac_abs_builddir=$ac_pwd$ac_dir_suffix
12078# for backward compatibility:
12079ac_top_builddir=$ac_top_build_prefix
12080
12081case $srcdir in
12082  .)  # We are building in place.
12083    ac_srcdir=.
12084    ac_top_srcdir=$ac_top_builddir_sub
12085    ac_abs_top_srcdir=$ac_pwd ;;
12086  [\\/]* | ?:[\\/]* )  # Absolute name.
12087    ac_srcdir=$srcdir$ac_dir_suffix;
12088    ac_top_srcdir=$srcdir
12089    ac_abs_top_srcdir=$srcdir ;;
12090  *) # Relative name.
12091    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12092    ac_top_srcdir=$ac_top_build_prefix$srcdir
12093    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12094esac
12095ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12096
12097
12098  case $ac_mode in
12099  :F)
12100  #
12101  # CONFIG_FILE
12102  #
12103
12104  case $INSTALL in
12105  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12106  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12107  esac
12108  ac_MKDIR_P=$MKDIR_P
12109  case $MKDIR_P in
12110  [\\/$]* | ?:[\\/]* ) ;;
12111  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12112  esac
12113_ACEOF
12114
12115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12116# If the template does not know about datarootdir, expand it.
12117# FIXME: This hack should be removed a few years after 2.60.
12118ac_datarootdir_hack=; ac_datarootdir_seen=
12119ac_sed_dataroot='
12120/datarootdir/ {
12121  p
12122  q
12123}
12124/@datadir@/p
12125/@docdir@/p
12126/@infodir@/p
12127/@localedir@/p
12128/@mandir@/p'
12129case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12130*datarootdir*) ac_datarootdir_seen=yes;;
12131*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12132  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12133$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12134_ACEOF
12135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12136  ac_datarootdir_hack='
12137  s&@datadir@&$datadir&g
12138  s&@docdir@&$docdir&g
12139  s&@infodir@&$infodir&g
12140  s&@localedir@&$localedir&g
12141  s&@mandir@&$mandir&g
12142  s&\\\${datarootdir}&$datarootdir&g' ;;
12143esac
12144_ACEOF
12145
12146# Neutralize VPATH when `$srcdir' = `.'.
12147# Shell code in configure.ac might set extrasub.
12148# FIXME: do we really want to maintain this feature?
12149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12150ac_sed_extra="$ac_vpsub
12151$extrasub
12152_ACEOF
12153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12154:t
12155/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12156s|@configure_input@|$ac_sed_conf_input|;t t
12157s&@top_builddir@&$ac_top_builddir_sub&;t t
12158s&@top_build_prefix@&$ac_top_build_prefix&;t t
12159s&@srcdir@&$ac_srcdir&;t t
12160s&@abs_srcdir@&$ac_abs_srcdir&;t t
12161s&@top_srcdir@&$ac_top_srcdir&;t t
12162s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12163s&@builddir@&$ac_builddir&;t t
12164s&@abs_builddir@&$ac_abs_builddir&;t t
12165s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12166s&@INSTALL@&$ac_INSTALL&;t t
12167s&@MKDIR_P@&$ac_MKDIR_P&;t t
12168$ac_datarootdir_hack
12169"
12170eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12171  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12172
12173test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12174  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12175  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12176      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12177  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12178which seems to be undefined.  Please make sure it is defined" >&5
12179$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12180which seems to be undefined.  Please make sure it is defined" >&2;}
12181
12182  rm -f "$ac_tmp/stdin"
12183  case $ac_file in
12184  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12185  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12186  esac \
12187  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12188 ;;
12189  :H)
12190  #
12191  # CONFIG_HEADER
12192  #
12193  if test x"$ac_file" != x-; then
12194    {
12195      $as_echo "/* $configure_input  */" \
12196      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12197    } >"$ac_tmp/config.h" \
12198      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12199    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12200      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12201$as_echo "$as_me: $ac_file is unchanged" >&6;}
12202    else
12203      rm -f "$ac_file"
12204      mv "$ac_tmp/config.h" "$ac_file" \
12205	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12206    fi
12207  else
12208    $as_echo "/* $configure_input  */" \
12209      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12210      || as_fn_error $? "could not create -" "$LINENO" 5
12211  fi
12212# Compute "$ac_file"'s index in $config_headers.
12213_am_arg="$ac_file"
12214_am_stamp_count=1
12215for _am_header in $config_headers :; do
12216  case $_am_header in
12217    $_am_arg | $_am_arg:* )
12218      break ;;
12219    * )
12220      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12221  esac
12222done
12223echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12224$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12225	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12226	 X"$_am_arg" : 'X\(//\)$' \| \
12227	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12228$as_echo X"$_am_arg" |
12229    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12230	    s//\1/
12231	    q
12232	  }
12233	  /^X\(\/\/\)[^/].*/{
12234	    s//\1/
12235	    q
12236	  }
12237	  /^X\(\/\/\)$/{
12238	    s//\1/
12239	    q
12240	  }
12241	  /^X\(\/\).*/{
12242	    s//\1/
12243	    q
12244	  }
12245	  s/.*/./; q'`/stamp-h$_am_stamp_count
12246 ;;
12247
12248  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12249$as_echo "$as_me: executing $ac_file commands" >&6;}
12250 ;;
12251  esac
12252
12253
12254  case $ac_file$ac_mode in
12255    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12256  # Older Autoconf quotes --file arguments for eval, but not when files
12257  # are listed without --file.  Let's play safe and only enable the eval
12258  # if we detect the quoting.
12259  case $CONFIG_FILES in
12260  *\'*) eval set x "$CONFIG_FILES" ;;
12261  *)   set x $CONFIG_FILES ;;
12262  esac
12263  shift
12264  for mf
12265  do
12266    # Strip MF so we end up with the name of the file.
12267    mf=`echo "$mf" | sed -e 's/:.*$//'`
12268    # Check whether this is an Automake generated Makefile or not.
12269    # We used to match only the files named 'Makefile.in', but
12270    # some people rename them; so instead we look at the file content.
12271    # Grep'ing the first line is not enough: some people post-process
12272    # each Makefile.in and add a new line on top of each file to say so.
12273    # Grep'ing the whole file is not good either: AIX grep has a line
12274    # limit of 2048, but all sed's we know have understand at least 4000.
12275    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12276      dirpart=`$as_dirname -- "$mf" ||
12277$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12278	 X"$mf" : 'X\(//\)[^/]' \| \
12279	 X"$mf" : 'X\(//\)$' \| \
12280	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12281$as_echo X"$mf" |
12282    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12283	    s//\1/
12284	    q
12285	  }
12286	  /^X\(\/\/\)[^/].*/{
12287	    s//\1/
12288	    q
12289	  }
12290	  /^X\(\/\/\)$/{
12291	    s//\1/
12292	    q
12293	  }
12294	  /^X\(\/\).*/{
12295	    s//\1/
12296	    q
12297	  }
12298	  s/.*/./; q'`
12299    else
12300      continue
12301    fi
12302    # Extract the definition of DEPDIR, am__include, and am__quote
12303    # from the Makefile without running 'make'.
12304    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12305    test -z "$DEPDIR" && continue
12306    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12307    test -z "$am__include" && continue
12308    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12309    # Find all dependency output files, they are included files with
12310    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12311    # simplest approach to changing $(DEPDIR) to its actual value in the
12312    # expansion.
12313    for file in `sed -n "
12314      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12315	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12316      # Make sure the directory exists.
12317      test -f "$dirpart/$file" && continue
12318      fdir=`$as_dirname -- "$file" ||
12319$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12320	 X"$file" : 'X\(//\)[^/]' \| \
12321	 X"$file" : 'X\(//\)$' \| \
12322	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12323$as_echo X"$file" |
12324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12325	    s//\1/
12326	    q
12327	  }
12328	  /^X\(\/\/\)[^/].*/{
12329	    s//\1/
12330	    q
12331	  }
12332	  /^X\(\/\/\)$/{
12333	    s//\1/
12334	    q
12335	  }
12336	  /^X\(\/\).*/{
12337	    s//\1/
12338	    q
12339	  }
12340	  s/.*/./; q'`
12341      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12342      # echo "creating $dirpart/$file"
12343      echo '# dummy' > "$dirpart/$file"
12344    done
12345  done
12346}
12347 ;;
12348
12349  esac
12350done # for ac_tag
12351
12352
12353as_fn_exit 0
12354_ACEOF
12355ac_clean_files=$ac_clean_files_save
12356
12357test $ac_write_fail = 0 ||
12358  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12359
12360
12361# configure is writing to config.log, and then calls config.status.
12362# config.status does its own redirection, appending to config.log.
12363# Unfortunately, on DOS this fails, as config.log is still kept open
12364# by configure, so config.status won't be able to write to it; its
12365# output is simply discarded.  So we exec the FD to /dev/null,
12366# effectively closing config.log, so it can be properly (re)opened and
12367# appended to by config.status.  When coming back to configure, we
12368# need to make the FD available again.
12369if test "$no_create" != yes; then
12370  ac_cs_success=:
12371  ac_config_status_args=
12372  test "$silent" = yes &&
12373    ac_config_status_args="$ac_config_status_args --quiet"
12374  exec 5>/dev/null
12375  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12376  exec 5>>config.log
12377  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12378  # would make configure fail if this is the last instruction.
12379  $ac_cs_success || as_fn_exit 1
12380fi
12381if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12382  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12383$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12384fi
12385
12386