configure revision 68af480f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xclipboard 1.1.3.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='xclipboard'
563PACKAGE_TARNAME='xclipboard'
564PACKAGE_VERSION='1.1.3'
565PACKAGE_STRING='xclipboard 1.1.3'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569ac_unique_file="Makefile.am"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584#  include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589#  include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_subst_vars='am__EXEEXT_FALSE
607am__EXEEXT_TRUE
608LTLIBOBJS
609LIBOBJS
610appdefaultdir
611APPDEFS_LIBS
612APPDEFS_CFLAGS
613XCLIPBOARD_LIBS
614XCLIPBOARD_CFLAGS
615MAN_SUBSTS
616XORG_MAN_PAGE
617ADMIN_MAN_DIR
618DRIVER_MAN_DIR
619MISC_MAN_DIR
620FILE_MAN_DIR
621LIB_MAN_DIR
622APP_MAN_DIR
623ADMIN_MAN_SUFFIX
624DRIVER_MAN_SUFFIX
625MISC_MAN_SUFFIX
626FILE_MAN_SUFFIX
627LIB_MAN_SUFFIX
628APP_MAN_SUFFIX
629SED
630host_os
631host_vendor
632host_cpu
633host
634build_os
635build_vendor
636build_cpu
637build
638INSTALL_CMD
639PKG_CONFIG
640CHANGELOG_CMD
641STRICT_CFLAGS
642CWARNFLAGS
643BASE_CFLAGS
644EGREP
645GREP
646CPP
647am__fastdepCC_FALSE
648am__fastdepCC_TRUE
649CCDEPMODE
650am__nodep
651AMDEPBACKSLASH
652AMDEP_FALSE
653AMDEP_TRUE
654am__quote
655am__include
656DEPDIR
657OBJEXT
658EXEEXT
659ac_ct_CC
660CPPFLAGS
661LDFLAGS
662CFLAGS
663CC
664MAINT
665MAINTAINER_MODE_FALSE
666MAINTAINER_MODE_TRUE
667AM_BACKSLASH
668AM_DEFAULT_VERBOSITY
669AM_DEFAULT_V
670AM_V
671am__untar
672am__tar
673AMTAR
674am__leading_dot
675SET_MAKE
676AWK
677mkdir_p
678MKDIR_P
679INSTALL_STRIP_PROGRAM
680STRIP
681install_sh
682MAKEINFO
683AUTOHEADER
684AUTOMAKE
685AUTOCONF
686ACLOCAL
687VERSION
688PACKAGE
689CYGPATH_W
690am__isrc
691INSTALL_DATA
692INSTALL_SCRIPT
693INSTALL_PROGRAM
694target_alias
695host_alias
696build_alias
697LIBS
698ECHO_T
699ECHO_N
700ECHO_C
701DEFS
702mandir
703localedir
704libdir
705psdir
706pdfdir
707dvidir
708htmldir
709infodir
710docdir
711oldincludedir
712includedir
713localstatedir
714sharedstatedir
715sysconfdir
716datadir
717datarootdir
718libexecdir
719sbindir
720bindir
721program_transform_name
722prefix
723exec_prefix
724PACKAGE_URL
725PACKAGE_BUGREPORT
726PACKAGE_STRING
727PACKAGE_VERSION
728PACKAGE_TARNAME
729PACKAGE_NAME
730PATH_SEPARATOR
731SHELL'
732ac_subst_files=''
733ac_user_opts='
734enable_option_checking
735enable_silent_rules
736enable_maintainer_mode
737enable_dependency_tracking
738enable_selective_werror
739enable_strict_compilation
740with_appdefaultdir
741'
742      ac_precious_vars='build_alias
743host_alias
744target_alias
745CC
746CFLAGS
747LDFLAGS
748LIBS
749CPPFLAGS
750CPP
751PKG_CONFIG
752XCLIPBOARD_CFLAGS
753XCLIPBOARD_LIBS
754APPDEFS_CFLAGS
755APPDEFS_LIBS'
756
757
758# Initialize some variables set by options.
759ac_init_help=
760ac_init_version=false
761ac_unrecognized_opts=
762ac_unrecognized_sep=
763# The variables have the same names as the options, with
764# dashes changed to underlines.
765cache_file=/dev/null
766exec_prefix=NONE
767no_create=
768no_recursion=
769prefix=NONE
770program_prefix=NONE
771program_suffix=NONE
772program_transform_name=s,x,x,
773silent=
774site=
775srcdir=
776verbose=
777x_includes=NONE
778x_libraries=NONE
779
780# Installation directory options.
781# These are left unexpanded so users can "make install exec_prefix=/foo"
782# and all the variables that are supposed to be based on exec_prefix
783# by default will actually change.
784# Use braces instead of parens because sh, perl, etc. also accept them.
785# (The list follows the same order as the GNU Coding Standards.)
786bindir='${exec_prefix}/bin'
787sbindir='${exec_prefix}/sbin'
788libexecdir='${exec_prefix}/libexec'
789datarootdir='${prefix}/share'
790datadir='${datarootdir}'
791sysconfdir='${prefix}/etc'
792sharedstatedir='${prefix}/com'
793localstatedir='${prefix}/var'
794includedir='${prefix}/include'
795oldincludedir='/usr/include'
796docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797infodir='${datarootdir}/info'
798htmldir='${docdir}'
799dvidir='${docdir}'
800pdfdir='${docdir}'
801psdir='${docdir}'
802libdir='${exec_prefix}/lib'
803localedir='${datarootdir}/locale'
804mandir='${datarootdir}/man'
805
806ac_prev=
807ac_dashdash=
808for ac_option
809do
810  # If the previous option needs an argument, assign it.
811  if test -n "$ac_prev"; then
812    eval $ac_prev=\$ac_option
813    ac_prev=
814    continue
815  fi
816
817  case $ac_option in
818  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819  *=)   ac_optarg= ;;
820  *)    ac_optarg=yes ;;
821  esac
822
823  # Accept the important Cygnus configure options, so we can diagnose typos.
824
825  case $ac_dashdash$ac_option in
826  --)
827    ac_dashdash=yes ;;
828
829  -bindir | --bindir | --bindi | --bind | --bin | --bi)
830    ac_prev=bindir ;;
831  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832    bindir=$ac_optarg ;;
833
834  -build | --build | --buil | --bui | --bu)
835    ac_prev=build_alias ;;
836  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837    build_alias=$ac_optarg ;;
838
839  -cache-file | --cache-file | --cache-fil | --cache-fi \
840  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841    ac_prev=cache_file ;;
842  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844    cache_file=$ac_optarg ;;
845
846  --config-cache | -C)
847    cache_file=config.cache ;;
848
849  -datadir | --datadir | --datadi | --datad)
850    ac_prev=datadir ;;
851  -datadir=* | --datadir=* | --datadi=* | --datad=*)
852    datadir=$ac_optarg ;;
853
854  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855  | --dataroo | --dataro | --datar)
856    ac_prev=datarootdir ;;
857  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859    datarootdir=$ac_optarg ;;
860
861  -disable-* | --disable-*)
862    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863    # Reject names that are not valid shell variable names.
864    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865      as_fn_error $? "invalid feature name: $ac_useropt"
866    ac_useropt_orig=$ac_useropt
867    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868    case $ac_user_opts in
869      *"
870"enable_$ac_useropt"
871"*) ;;
872      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873	 ac_unrecognized_sep=', ';;
874    esac
875    eval enable_$ac_useropt=no ;;
876
877  -docdir | --docdir | --docdi | --doc | --do)
878    ac_prev=docdir ;;
879  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880    docdir=$ac_optarg ;;
881
882  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883    ac_prev=dvidir ;;
884  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885    dvidir=$ac_optarg ;;
886
887  -enable-* | --enable-*)
888    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889    # Reject names that are not valid shell variable names.
890    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891      as_fn_error $? "invalid feature name: $ac_useropt"
892    ac_useropt_orig=$ac_useropt
893    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894    case $ac_user_opts in
895      *"
896"enable_$ac_useropt"
897"*) ;;
898      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899	 ac_unrecognized_sep=', ';;
900    esac
901    eval enable_$ac_useropt=\$ac_optarg ;;
902
903  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905  | --exec | --exe | --ex)
906    ac_prev=exec_prefix ;;
907  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909  | --exec=* | --exe=* | --ex=*)
910    exec_prefix=$ac_optarg ;;
911
912  -gas | --gas | --ga | --g)
913    # Obsolete; use --with-gas.
914    with_gas=yes ;;
915
916  -help | --help | --hel | --he | -h)
917    ac_init_help=long ;;
918  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919    ac_init_help=recursive ;;
920  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921    ac_init_help=short ;;
922
923  -host | --host | --hos | --ho)
924    ac_prev=host_alias ;;
925  -host=* | --host=* | --hos=* | --ho=*)
926    host_alias=$ac_optarg ;;
927
928  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929    ac_prev=htmldir ;;
930  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931  | --ht=*)
932    htmldir=$ac_optarg ;;
933
934  -includedir | --includedir | --includedi | --included | --include \
935  | --includ | --inclu | --incl | --inc)
936    ac_prev=includedir ;;
937  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938  | --includ=* | --inclu=* | --incl=* | --inc=*)
939    includedir=$ac_optarg ;;
940
941  -infodir | --infodir | --infodi | --infod | --info | --inf)
942    ac_prev=infodir ;;
943  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944    infodir=$ac_optarg ;;
945
946  -libdir | --libdir | --libdi | --libd)
947    ac_prev=libdir ;;
948  -libdir=* | --libdir=* | --libdi=* | --libd=*)
949    libdir=$ac_optarg ;;
950
951  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952  | --libexe | --libex | --libe)
953    ac_prev=libexecdir ;;
954  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955  | --libexe=* | --libex=* | --libe=*)
956    libexecdir=$ac_optarg ;;
957
958  -localedir | --localedir | --localedi | --localed | --locale)
959    ac_prev=localedir ;;
960  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961    localedir=$ac_optarg ;;
962
963  -localstatedir | --localstatedir | --localstatedi | --localstated \
964  | --localstate | --localstat | --localsta | --localst | --locals)
965    ac_prev=localstatedir ;;
966  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968    localstatedir=$ac_optarg ;;
969
970  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971    ac_prev=mandir ;;
972  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973    mandir=$ac_optarg ;;
974
975  -nfp | --nfp | --nf)
976    # Obsolete; use --without-fp.
977    with_fp=no ;;
978
979  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980  | --no-cr | --no-c | -n)
981    no_create=yes ;;
982
983  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985    no_recursion=yes ;;
986
987  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989  | --oldin | --oldi | --old | --ol | --o)
990    ac_prev=oldincludedir ;;
991  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994    oldincludedir=$ac_optarg ;;
995
996  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997    ac_prev=prefix ;;
998  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999    prefix=$ac_optarg ;;
1000
1001  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002  | --program-pre | --program-pr | --program-p)
1003    ac_prev=program_prefix ;;
1004  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006    program_prefix=$ac_optarg ;;
1007
1008  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009  | --program-suf | --program-su | --program-s)
1010    ac_prev=program_suffix ;;
1011  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013    program_suffix=$ac_optarg ;;
1014
1015  -program-transform-name | --program-transform-name \
1016  | --program-transform-nam | --program-transform-na \
1017  | --program-transform-n | --program-transform- \
1018  | --program-transform | --program-transfor \
1019  | --program-transfo | --program-transf \
1020  | --program-trans | --program-tran \
1021  | --progr-tra | --program-tr | --program-t)
1022    ac_prev=program_transform_name ;;
1023  -program-transform-name=* | --program-transform-name=* \
1024  | --program-transform-nam=* | --program-transform-na=* \
1025  | --program-transform-n=* | --program-transform-=* \
1026  | --program-transform=* | --program-transfor=* \
1027  | --program-transfo=* | --program-transf=* \
1028  | --program-trans=* | --program-tran=* \
1029  | --progr-tra=* | --program-tr=* | --program-t=*)
1030    program_transform_name=$ac_optarg ;;
1031
1032  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033    ac_prev=pdfdir ;;
1034  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035    pdfdir=$ac_optarg ;;
1036
1037  -psdir | --psdir | --psdi | --psd | --ps)
1038    ac_prev=psdir ;;
1039  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040    psdir=$ac_optarg ;;
1041
1042  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043  | -silent | --silent | --silen | --sile | --sil)
1044    silent=yes ;;
1045
1046  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047    ac_prev=sbindir ;;
1048  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049  | --sbi=* | --sb=*)
1050    sbindir=$ac_optarg ;;
1051
1052  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054  | --sharedst | --shareds | --shared | --share | --shar \
1055  | --sha | --sh)
1056    ac_prev=sharedstatedir ;;
1057  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060  | --sha=* | --sh=*)
1061    sharedstatedir=$ac_optarg ;;
1062
1063  -site | --site | --sit)
1064    ac_prev=site ;;
1065  -site=* | --site=* | --sit=*)
1066    site=$ac_optarg ;;
1067
1068  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069    ac_prev=srcdir ;;
1070  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071    srcdir=$ac_optarg ;;
1072
1073  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074  | --syscon | --sysco | --sysc | --sys | --sy)
1075    ac_prev=sysconfdir ;;
1076  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078    sysconfdir=$ac_optarg ;;
1079
1080  -target | --target | --targe | --targ | --tar | --ta | --t)
1081    ac_prev=target_alias ;;
1082  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083    target_alias=$ac_optarg ;;
1084
1085  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086    verbose=yes ;;
1087
1088  -version | --version | --versio | --versi | --vers | -V)
1089    ac_init_version=: ;;
1090
1091  -with-* | --with-*)
1092    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093    # Reject names that are not valid shell variable names.
1094    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095      as_fn_error $? "invalid package name: $ac_useropt"
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"with_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103	 ac_unrecognized_sep=', ';;
1104    esac
1105    eval with_$ac_useropt=\$ac_optarg ;;
1106
1107  -without-* | --without-*)
1108    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109    # Reject names that are not valid shell variable names.
1110    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111      as_fn_error $? "invalid package name: $ac_useropt"
1112    ac_useropt_orig=$ac_useropt
1113    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114    case $ac_user_opts in
1115      *"
1116"with_$ac_useropt"
1117"*) ;;
1118      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119	 ac_unrecognized_sep=', ';;
1120    esac
1121    eval with_$ac_useropt=no ;;
1122
1123  --x)
1124    # Obsolete; use --with-x.
1125    with_x=yes ;;
1126
1127  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128  | --x-incl | --x-inc | --x-in | --x-i)
1129    ac_prev=x_includes ;;
1130  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132    x_includes=$ac_optarg ;;
1133
1134  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136    ac_prev=x_libraries ;;
1137  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139    x_libraries=$ac_optarg ;;
1140
1141  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142Try \`$0 --help' for more information"
1143    ;;
1144
1145  *=*)
1146    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147    # Reject names that are not valid shell variable names.
1148    case $ac_envvar in #(
1149      '' | [0-9]* | *[!_$as_cr_alnum]* )
1150      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151    esac
1152    eval $ac_envvar=\$ac_optarg
1153    export $ac_envvar ;;
1154
1155  *)
1156    # FIXME: should be removed in autoconf 3.0.
1157    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161    ;;
1162
1163  esac
1164done
1165
1166if test -n "$ac_prev"; then
1167  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168  as_fn_error $? "missing argument to $ac_option"
1169fi
1170
1171if test -n "$ac_unrecognized_opts"; then
1172  case $enable_option_checking in
1173    no) ;;
1174    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176  esac
1177fi
1178
1179# Check all directory arguments for consistency.
1180for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181		datadir sysconfdir sharedstatedir localstatedir includedir \
1182		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183		libdir localedir mandir
1184do
1185  eval ac_val=\$$ac_var
1186  # Remove trailing slashes.
1187  case $ac_val in
1188    */ )
1189      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190      eval $ac_var=\$ac_val;;
1191  esac
1192  # Be sure to have absolute directory names.
1193  case $ac_val in
1194    [\\/$]* | ?:[\\/]* )  continue;;
1195    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196  esac
1197  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198done
1199
1200# There might be people who depend on the old broken behavior: `$host'
1201# used to hold the argument of --host etc.
1202# FIXME: To remove some day.
1203build=$build_alias
1204host=$host_alias
1205target=$target_alias
1206
1207# FIXME: To remove some day.
1208if test "x$host_alias" != x; then
1209  if test "x$build_alias" = x; then
1210    cross_compiling=maybe
1211    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212    If a cross compiler is detected then cross compile mode will be used" >&2
1213  elif test "x$build_alias" != "x$host_alias"; then
1214    cross_compiling=yes
1215  fi
1216fi
1217
1218ac_tool_prefix=
1219test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221test "$silent" = yes && exec 6>/dev/null
1222
1223
1224ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225ac_ls_di=`ls -di .` &&
1226ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227  as_fn_error $? "working directory cannot be determined"
1228test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229  as_fn_error $? "pwd does not report name of working directory"
1230
1231
1232# Find the source files, if location was not specified.
1233if test -z "$srcdir"; then
1234  ac_srcdir_defaulted=yes
1235  # Try the directory containing this script, then the parent directory.
1236  ac_confdir=`$as_dirname -- "$as_myself" ||
1237$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238	 X"$as_myself" : 'X\(//\)[^/]' \| \
1239	 X"$as_myself" : 'X\(//\)$' \| \
1240	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241$as_echo X"$as_myself" |
1242    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243	    s//\1/
1244	    q
1245	  }
1246	  /^X\(\/\/\)[^/].*/{
1247	    s//\1/
1248	    q
1249	  }
1250	  /^X\(\/\/\)$/{
1251	    s//\1/
1252	    q
1253	  }
1254	  /^X\(\/\).*/{
1255	    s//\1/
1256	    q
1257	  }
1258	  s/.*/./; q'`
1259  srcdir=$ac_confdir
1260  if test ! -r "$srcdir/$ac_unique_file"; then
1261    srcdir=..
1262  fi
1263else
1264  ac_srcdir_defaulted=no
1265fi
1266if test ! -r "$srcdir/$ac_unique_file"; then
1267  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269fi
1270ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271ac_abs_confdir=`(
1272	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273	pwd)`
1274# When building in place, set srcdir=.
1275if test "$ac_abs_confdir" = "$ac_pwd"; then
1276  srcdir=.
1277fi
1278# Remove unnecessary trailing slashes from srcdir.
1279# Double slashes in file names in object file debugging info
1280# mess up M-x gdb in Emacs.
1281case $srcdir in
1282*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283esac
1284for ac_var in $ac_precious_vars; do
1285  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286  eval ac_env_${ac_var}_value=\$${ac_var}
1287  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289done
1290
1291#
1292# Report the --help message.
1293#
1294if test "$ac_init_help" = "long"; then
1295  # Omit some internal or obsolete options to make the list less imposing.
1296  # This message is too long to be a string in the A/UX 3.1 sh.
1297  cat <<_ACEOF
1298\`configure' configures xclipboard 1.1.3 to adapt to many kinds of systems.
1299
1300Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303VAR=VALUE.  See below for descriptions of some of the useful variables.
1304
1305Defaults for the options are specified in brackets.
1306
1307Configuration:
1308  -h, --help              display this help and exit
1309      --help=short        display options specific to this package
1310      --help=recursive    display the short help of all the included packages
1311  -V, --version           display version information and exit
1312  -q, --quiet, --silent   do not print \`checking ...' messages
1313      --cache-file=FILE   cache test results in FILE [disabled]
1314  -C, --config-cache      alias for \`--cache-file=config.cache'
1315  -n, --no-create         do not create output files
1316      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1317
1318Installation directories:
1319  --prefix=PREFIX         install architecture-independent files in PREFIX
1320                          [$ac_default_prefix]
1321  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1322                          [PREFIX]
1323
1324By default, \`make install' will install all the files in
1325\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1326an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327for instance \`--prefix=\$HOME'.
1328
1329For better control, use the options below.
1330
1331Fine tuning of the installation directories:
1332  --bindir=DIR            user executables [EPREFIX/bin]
1333  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1334  --libexecdir=DIR        program executables [EPREFIX/libexec]
1335  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1336  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1337  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1338  --libdir=DIR            object code libraries [EPREFIX/lib]
1339  --includedir=DIR        C header files [PREFIX/include]
1340  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1341  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1342  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1343  --infodir=DIR           info documentation [DATAROOTDIR/info]
1344  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1345  --mandir=DIR            man documentation [DATAROOTDIR/man]
1346  --docdir=DIR            documentation root [DATAROOTDIR/doc/xclipboard]
1347  --htmldir=DIR           html documentation [DOCDIR]
1348  --dvidir=DIR            dvi documentation [DOCDIR]
1349  --pdfdir=DIR            pdf documentation [DOCDIR]
1350  --psdir=DIR             ps documentation [DOCDIR]
1351_ACEOF
1352
1353  cat <<\_ACEOF
1354
1355Program names:
1356  --program-prefix=PREFIX            prepend PREFIX to installed program names
1357  --program-suffix=SUFFIX            append SUFFIX to installed program names
1358  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1359
1360System types:
1361  --build=BUILD     configure for building on BUILD [guessed]
1362  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1363_ACEOF
1364fi
1365
1366if test -n "$ac_init_help"; then
1367  case $ac_init_help in
1368     short | recursive ) echo "Configuration of xclipboard 1.1.3:";;
1369   esac
1370  cat <<\_ACEOF
1371
1372Optional Features:
1373  --disable-option-checking  ignore unrecognized --enable/--with options
1374  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376  --enable-silent-rules   less verbose build output (undo: "make V=1")
1377  --disable-silent-rules  verbose build output (undo: "make V=0")
1378  --enable-maintainer-mode
1379                          enable make rules and dependencies not useful (and
1380                          sometimes confusing) to the casual installer
1381  --enable-dependency-tracking
1382                          do not reject slow dependency extractors
1383  --disable-dependency-tracking
1384                          speeds up one-time build
1385  --disable-selective-werror
1386                          Turn off selective compiler errors. (default:
1387                          enabled)
1388  --enable-strict-compilation
1389                          Enable all warnings from compiler and make them
1390                          errors (default: disabled)
1391
1392Optional Packages:
1393  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1394  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1395  --with-appdefaultdir=<pathname>
1396                          specify directory for app-defaults files (default is
1397                          autodetected)
1398
1399Some influential environment variables:
1400  CC          C compiler command
1401  CFLAGS      C compiler flags
1402  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1403              nonstandard directory <lib dir>
1404  LIBS        libraries to pass to the linker, e.g. -l<library>
1405  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406              you have headers in a nonstandard directory <include dir>
1407  CPP         C preprocessor
1408  PKG_CONFIG  path to pkg-config utility
1409  XCLIPBOARD_CFLAGS
1410              C compiler flags for XCLIPBOARD, overriding pkg-config
1411  XCLIPBOARD_LIBS
1412              linker flags for XCLIPBOARD, overriding pkg-config
1413  APPDEFS_CFLAGS
1414              C compiler flags for APPDEFS, overriding pkg-config
1415  APPDEFS_LIBS
1416              linker flags for APPDEFS, overriding pkg-config
1417
1418Use these variables to override the choices made by `configure' or to help
1419it to find libraries and programs with nonstandard names/locations.
1420
1421Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1422_ACEOF
1423ac_status=$?
1424fi
1425
1426if test "$ac_init_help" = "recursive"; then
1427  # If there are subdirs, report their specific --help.
1428  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429    test -d "$ac_dir" ||
1430      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431      continue
1432    ac_builddir=.
1433
1434case "$ac_dir" in
1435.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436*)
1437  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438  # A ".." for each directory in $ac_dir_suffix.
1439  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440  case $ac_top_builddir_sub in
1441  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443  esac ;;
1444esac
1445ac_abs_top_builddir=$ac_pwd
1446ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447# for backward compatibility:
1448ac_top_builddir=$ac_top_build_prefix
1449
1450case $srcdir in
1451  .)  # We are building in place.
1452    ac_srcdir=.
1453    ac_top_srcdir=$ac_top_builddir_sub
1454    ac_abs_top_srcdir=$ac_pwd ;;
1455  [\\/]* | ?:[\\/]* )  # Absolute name.
1456    ac_srcdir=$srcdir$ac_dir_suffix;
1457    ac_top_srcdir=$srcdir
1458    ac_abs_top_srcdir=$srcdir ;;
1459  *) # Relative name.
1460    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461    ac_top_srcdir=$ac_top_build_prefix$srcdir
1462    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463esac
1464ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465
1466    cd "$ac_dir" || { ac_status=$?; continue; }
1467    # Check for guested configure.
1468    if test -f "$ac_srcdir/configure.gnu"; then
1469      echo &&
1470      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471    elif test -f "$ac_srcdir/configure"; then
1472      echo &&
1473      $SHELL "$ac_srcdir/configure" --help=recursive
1474    else
1475      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476    fi || ac_status=$?
1477    cd "$ac_pwd" || { ac_status=$?; break; }
1478  done
1479fi
1480
1481test -n "$ac_init_help" && exit $ac_status
1482if $ac_init_version; then
1483  cat <<\_ACEOF
1484xclipboard configure 1.1.3
1485generated by GNU Autoconf 2.68
1486
1487Copyright (C) 2010 Free Software Foundation, Inc.
1488This configure script is free software; the Free Software Foundation
1489gives unlimited permission to copy, distribute and modify it.
1490_ACEOF
1491  exit
1492fi
1493
1494## ------------------------ ##
1495## Autoconf initialization. ##
1496## ------------------------ ##
1497
1498# ac_fn_c_try_compile LINENO
1499# --------------------------
1500# Try to compile conftest.$ac_ext, and return whether this succeeded.
1501ac_fn_c_try_compile ()
1502{
1503  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504  rm -f conftest.$ac_objext
1505  if { { ac_try="$ac_compile"
1506case "(($ac_try" in
1507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508  *) ac_try_echo=$ac_try;;
1509esac
1510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511$as_echo "$ac_try_echo"; } >&5
1512  (eval "$ac_compile") 2>conftest.err
1513  ac_status=$?
1514  if test -s conftest.err; then
1515    grep -v '^ *+' conftest.err >conftest.er1
1516    cat conftest.er1 >&5
1517    mv -f conftest.er1 conftest.err
1518  fi
1519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520  test $ac_status = 0; } && {
1521	 test -z "$ac_c_werror_flag" ||
1522	 test ! -s conftest.err
1523       } && test -s conftest.$ac_objext; then :
1524  ac_retval=0
1525else
1526  $as_echo "$as_me: failed program was:" >&5
1527sed 's/^/| /' conftest.$ac_ext >&5
1528
1529	ac_retval=1
1530fi
1531  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532  as_fn_set_status $ac_retval
1533
1534} # ac_fn_c_try_compile
1535
1536# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1537# ---------------------------------------------
1538# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1539# accordingly.
1540ac_fn_c_check_decl ()
1541{
1542  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543  as_decl_name=`echo $2|sed 's/ *(.*//'`
1544  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1546$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1547if eval \${$3+:} false; then :
1548  $as_echo_n "(cached) " >&6
1549else
1550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1551/* end confdefs.h.  */
1552$4
1553int
1554main ()
1555{
1556#ifndef $as_decl_name
1557#ifdef __cplusplus
1558  (void) $as_decl_use;
1559#else
1560  (void) $as_decl_name;
1561#endif
1562#endif
1563
1564  ;
1565  return 0;
1566}
1567_ACEOF
1568if ac_fn_c_try_compile "$LINENO"; then :
1569  eval "$3=yes"
1570else
1571  eval "$3=no"
1572fi
1573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1574fi
1575eval ac_res=\$$3
1576	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577$as_echo "$ac_res" >&6; }
1578  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579
1580} # ac_fn_c_check_decl
1581
1582# ac_fn_c_try_cpp LINENO
1583# ----------------------
1584# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_cpp ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  if { { ac_try="$ac_cpp conftest.$ac_ext"
1589case "(($ac_try" in
1590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591  *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596  ac_status=$?
1597  if test -s conftest.err; then
1598    grep -v '^ *+' conftest.err >conftest.er1
1599    cat conftest.er1 >&5
1600    mv -f conftest.er1 conftest.err
1601  fi
1602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603  test $ac_status = 0; } > conftest.i && {
1604	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1605	 test ! -s conftest.err
1606       }; then :
1607  ac_retval=0
1608else
1609  $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612    ac_retval=1
1613fi
1614  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615  as_fn_set_status $ac_retval
1616
1617} # ac_fn_c_try_cpp
1618
1619# ac_fn_c_try_run LINENO
1620# ----------------------
1621# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1622# that executables *can* be run.
1623ac_fn_c_try_run ()
1624{
1625  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626  if { { ac_try="$ac_link"
1627case "(($ac_try" in
1628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629  *) ac_try_echo=$ac_try;;
1630esac
1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632$as_echo "$ac_try_echo"; } >&5
1633  (eval "$ac_link") 2>&5
1634  ac_status=$?
1635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1637  { { case "(($ac_try" in
1638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639  *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643  (eval "$ac_try") 2>&5
1644  ac_status=$?
1645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646  test $ac_status = 0; }; }; then :
1647  ac_retval=0
1648else
1649  $as_echo "$as_me: program exited with status $ac_status" >&5
1650       $as_echo "$as_me: failed program was:" >&5
1651sed 's/^/| /' conftest.$ac_ext >&5
1652
1653       ac_retval=$ac_status
1654fi
1655  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657  as_fn_set_status $ac_retval
1658
1659} # ac_fn_c_try_run
1660
1661# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662# -------------------------------------------------------
1663# Tests whether HEADER exists and can be compiled using the include files in
1664# INCLUDES, setting the cache variable VAR accordingly.
1665ac_fn_c_check_header_compile ()
1666{
1667  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669$as_echo_n "checking for $2... " >&6; }
1670if eval \${$3+:} false; then :
1671  $as_echo_n "(cached) " >&6
1672else
1673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674/* end confdefs.h.  */
1675$4
1676#include <$2>
1677_ACEOF
1678if ac_fn_c_try_compile "$LINENO"; then :
1679  eval "$3=yes"
1680else
1681  eval "$3=no"
1682fi
1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684fi
1685eval ac_res=\$$3
1686	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687$as_echo "$ac_res" >&6; }
1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690} # ac_fn_c_check_header_compile
1691
1692# ac_fn_c_try_link LINENO
1693# -----------------------
1694# Try to link conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_link ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  rm -f conftest.$ac_objext conftest$ac_exeext
1699  if { { ac_try="$ac_link"
1700case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706  (eval "$ac_link") 2>conftest.err
1707  ac_status=$?
1708  if test -s conftest.err; then
1709    grep -v '^ *+' conftest.err >conftest.er1
1710    cat conftest.er1 >&5
1711    mv -f conftest.er1 conftest.err
1712  fi
1713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714  test $ac_status = 0; } && {
1715	 test -z "$ac_c_werror_flag" ||
1716	 test ! -s conftest.err
1717       } && test -s conftest$ac_exeext && {
1718	 test "$cross_compiling" = yes ||
1719	 $as_test_x conftest$ac_exeext
1720       }; then :
1721  ac_retval=0
1722else
1723  $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726	ac_retval=1
1727fi
1728  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1729  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1730  # interfere with the next link command; also delete a directory that is
1731  # left behind by Apple's compiler.  We do this before executing the actions.
1732  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734  as_fn_set_status $ac_retval
1735
1736} # ac_fn_c_try_link
1737cat >config.log <<_ACEOF
1738This file contains any messages produced by compilers while
1739running configure, to aid debugging if configure makes a mistake.
1740
1741It was created by xclipboard $as_me 1.1.3, which was
1742generated by GNU Autoconf 2.68.  Invocation command line was
1743
1744  $ $0 $@
1745
1746_ACEOF
1747exec 5>>config.log
1748{
1749cat <<_ASUNAME
1750## --------- ##
1751## Platform. ##
1752## --------- ##
1753
1754hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1755uname -m = `(uname -m) 2>/dev/null || echo unknown`
1756uname -r = `(uname -r) 2>/dev/null || echo unknown`
1757uname -s = `(uname -s) 2>/dev/null || echo unknown`
1758uname -v = `(uname -v) 2>/dev/null || echo unknown`
1759
1760/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1761/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1762
1763/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1764/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1765/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1766/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1767/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1768/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1769/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1770
1771_ASUNAME
1772
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776  IFS=$as_save_IFS
1777  test -z "$as_dir" && as_dir=.
1778    $as_echo "PATH: $as_dir"
1779  done
1780IFS=$as_save_IFS
1781
1782} >&5
1783
1784cat >&5 <<_ACEOF
1785
1786
1787## ----------- ##
1788## Core tests. ##
1789## ----------- ##
1790
1791_ACEOF
1792
1793
1794# Keep a trace of the command line.
1795# Strip out --no-create and --no-recursion so they do not pile up.
1796# Strip out --silent because we don't want to record it for future runs.
1797# Also quote any args containing shell meta-characters.
1798# Make two passes to allow for proper duplicate-argument suppression.
1799ac_configure_args=
1800ac_configure_args0=
1801ac_configure_args1=
1802ac_must_keep_next=false
1803for ac_pass in 1 2
1804do
1805  for ac_arg
1806  do
1807    case $ac_arg in
1808    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1809    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1810    | -silent | --silent | --silen | --sile | --sil)
1811      continue ;;
1812    *\'*)
1813      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1814    esac
1815    case $ac_pass in
1816    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1817    2)
1818      as_fn_append ac_configure_args1 " '$ac_arg'"
1819      if test $ac_must_keep_next = true; then
1820	ac_must_keep_next=false # Got value, back to normal.
1821      else
1822	case $ac_arg in
1823	  *=* | --config-cache | -C | -disable-* | --disable-* \
1824	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1825	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1826	  | -with-* | --with-* | -without-* | --without-* | --x)
1827	    case "$ac_configure_args0 " in
1828	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1829	    esac
1830	    ;;
1831	  -* ) ac_must_keep_next=true ;;
1832	esac
1833      fi
1834      as_fn_append ac_configure_args " '$ac_arg'"
1835      ;;
1836    esac
1837  done
1838done
1839{ ac_configure_args0=; unset ac_configure_args0;}
1840{ ac_configure_args1=; unset ac_configure_args1;}
1841
1842# When interrupted or exit'd, cleanup temporary files, and complete
1843# config.log.  We remove comments because anyway the quotes in there
1844# would cause problems or look ugly.
1845# WARNING: Use '\'' to represent an apostrophe within the trap.
1846# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1847trap 'exit_status=$?
1848  # Save into config.log some information that might help in debugging.
1849  {
1850    echo
1851
1852    $as_echo "## ---------------- ##
1853## Cache variables. ##
1854## ---------------- ##"
1855    echo
1856    # The following way of writing the cache mishandles newlines in values,
1857(
1858  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1859    eval ac_val=\$$ac_var
1860    case $ac_val in #(
1861    *${as_nl}*)
1862      case $ac_var in #(
1863      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1864$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1865      esac
1866      case $ac_var in #(
1867      _ | IFS | as_nl) ;; #(
1868      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1869      *) { eval $ac_var=; unset $ac_var;} ;;
1870      esac ;;
1871    esac
1872  done
1873  (set) 2>&1 |
1874    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1875    *${as_nl}ac_space=\ *)
1876      sed -n \
1877	"s/'\''/'\''\\\\'\'''\''/g;
1878	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1879      ;; #(
1880    *)
1881      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1882      ;;
1883    esac |
1884    sort
1885)
1886    echo
1887
1888    $as_echo "## ----------------- ##
1889## Output variables. ##
1890## ----------------- ##"
1891    echo
1892    for ac_var in $ac_subst_vars
1893    do
1894      eval ac_val=\$$ac_var
1895      case $ac_val in
1896      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897      esac
1898      $as_echo "$ac_var='\''$ac_val'\''"
1899    done | sort
1900    echo
1901
1902    if test -n "$ac_subst_files"; then
1903      $as_echo "## ------------------- ##
1904## File substitutions. ##
1905## ------------------- ##"
1906      echo
1907      for ac_var in $ac_subst_files
1908      do
1909	eval ac_val=\$$ac_var
1910	case $ac_val in
1911	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912	esac
1913	$as_echo "$ac_var='\''$ac_val'\''"
1914      done | sort
1915      echo
1916    fi
1917
1918    if test -s confdefs.h; then
1919      $as_echo "## ----------- ##
1920## confdefs.h. ##
1921## ----------- ##"
1922      echo
1923      cat confdefs.h
1924      echo
1925    fi
1926    test "$ac_signal" != 0 &&
1927      $as_echo "$as_me: caught signal $ac_signal"
1928    $as_echo "$as_me: exit $exit_status"
1929  } >&5
1930  rm -f core *.core core.conftest.* &&
1931    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1932    exit $exit_status
1933' 0
1934for ac_signal in 1 2 13 15; do
1935  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1936done
1937ac_signal=0
1938
1939# confdefs.h avoids OS command line length limits that DEFS can exceed.
1940rm -f -r conftest* confdefs.h
1941
1942$as_echo "/* confdefs.h */" > confdefs.h
1943
1944# Predefined preprocessor variables.
1945
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_NAME "$PACKAGE_NAME"
1948_ACEOF
1949
1950cat >>confdefs.h <<_ACEOF
1951#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1952_ACEOF
1953
1954cat >>confdefs.h <<_ACEOF
1955#define PACKAGE_VERSION "$PACKAGE_VERSION"
1956_ACEOF
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_STRING "$PACKAGE_STRING"
1960_ACEOF
1961
1962cat >>confdefs.h <<_ACEOF
1963#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1964_ACEOF
1965
1966cat >>confdefs.h <<_ACEOF
1967#define PACKAGE_URL "$PACKAGE_URL"
1968_ACEOF
1969
1970
1971# Let the site file select an alternate cache file if it wants to.
1972# Prefer an explicitly selected file to automatically selected ones.
1973ac_site_file1=NONE
1974ac_site_file2=NONE
1975if test -n "$CONFIG_SITE"; then
1976  # We do not want a PATH search for config.site.
1977  case $CONFIG_SITE in #((
1978    -*)  ac_site_file1=./$CONFIG_SITE;;
1979    */*) ac_site_file1=$CONFIG_SITE;;
1980    *)   ac_site_file1=./$CONFIG_SITE;;
1981  esac
1982elif test "x$prefix" != xNONE; then
1983  ac_site_file1=$prefix/share/config.site
1984  ac_site_file2=$prefix/etc/config.site
1985else
1986  ac_site_file1=$ac_default_prefix/share/config.site
1987  ac_site_file2=$ac_default_prefix/etc/config.site
1988fi
1989for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1990do
1991  test "x$ac_site_file" = xNONE && continue
1992  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1993    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1994$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1995    sed 's/^/| /' "$ac_site_file" >&5
1996    . "$ac_site_file" \
1997      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1999as_fn_error $? "failed to load site script $ac_site_file
2000See \`config.log' for more details" "$LINENO" 5; }
2001  fi
2002done
2003
2004if test -r "$cache_file"; then
2005  # Some versions of bash will fail to source /dev/null (special files
2006  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2007  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2008    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2009$as_echo "$as_me: loading cache $cache_file" >&6;}
2010    case $cache_file in
2011      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2012      *)                      . "./$cache_file";;
2013    esac
2014  fi
2015else
2016  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2017$as_echo "$as_me: creating cache $cache_file" >&6;}
2018  >$cache_file
2019fi
2020
2021# Check that the precious variables saved in the cache have kept the same
2022# value.
2023ac_cache_corrupted=false
2024for ac_var in $ac_precious_vars; do
2025  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2026  eval ac_new_set=\$ac_env_${ac_var}_set
2027  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2028  eval ac_new_val=\$ac_env_${ac_var}_value
2029  case $ac_old_set,$ac_new_set in
2030    set,)
2031      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2032$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2033      ac_cache_corrupted=: ;;
2034    ,set)
2035      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2036$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2037      ac_cache_corrupted=: ;;
2038    ,);;
2039    *)
2040      if test "x$ac_old_val" != "x$ac_new_val"; then
2041	# differences in whitespace do not lead to failure.
2042	ac_old_val_w=`echo x $ac_old_val`
2043	ac_new_val_w=`echo x $ac_new_val`
2044	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2045	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2046$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2047	  ac_cache_corrupted=:
2048	else
2049	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2050$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2051	  eval $ac_var=\$ac_old_val
2052	fi
2053	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2054$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2055	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2056$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2057      fi;;
2058  esac
2059  # Pass precious variables to config.status.
2060  if test "$ac_new_set" = set; then
2061    case $ac_new_val in
2062    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2063    *) ac_arg=$ac_var=$ac_new_val ;;
2064    esac
2065    case " $ac_configure_args " in
2066      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2067      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2068    esac
2069  fi
2070done
2071if $ac_cache_corrupted; then
2072  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2074  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2075$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2076  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2077fi
2078## -------------------- ##
2079## Main body of script. ##
2080## -------------------- ##
2081
2082ac_ext=c
2083ac_cpp='$CPP $CPPFLAGS'
2084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2086ac_compiler_gnu=$ac_cv_c_compiler_gnu
2087
2088
2089
2090ac_config_headers="$ac_config_headers config.h"
2091
2092
2093# Initialize Automake
2094am__api_version='1.14'
2095
2096ac_aux_dir=
2097for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2098  if test -f "$ac_dir/install-sh"; then
2099    ac_aux_dir=$ac_dir
2100    ac_install_sh="$ac_aux_dir/install-sh -c"
2101    break
2102  elif test -f "$ac_dir/install.sh"; then
2103    ac_aux_dir=$ac_dir
2104    ac_install_sh="$ac_aux_dir/install.sh -c"
2105    break
2106  elif test -f "$ac_dir/shtool"; then
2107    ac_aux_dir=$ac_dir
2108    ac_install_sh="$ac_aux_dir/shtool install -c"
2109    break
2110  fi
2111done
2112if test -z "$ac_aux_dir"; then
2113  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2114fi
2115
2116# These three variables are undocumented and unsupported,
2117# and are intended to be withdrawn in a future Autoconf release.
2118# They can cause serious problems if a builder's source tree is in a directory
2119# whose full name contains unusual characters.
2120ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2121ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2122ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2123
2124
2125# Find a good install program.  We prefer a C program (faster),
2126# so one script is as good as another.  But avoid the broken or
2127# incompatible versions:
2128# SysV /etc/install, /usr/sbin/install
2129# SunOS /usr/etc/install
2130# IRIX /sbin/install
2131# AIX /bin/install
2132# AmigaOS /C/install, which installs bootblocks on floppy discs
2133# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2134# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2135# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2136# OS/2's system install, which has a completely different semantic
2137# ./install, which can be erroneously created by make from ./install.sh.
2138# Reject install programs that cannot install multiple files.
2139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2140$as_echo_n "checking for a BSD-compatible install... " >&6; }
2141if test -z "$INSTALL"; then
2142if ${ac_cv_path_install+:} false; then :
2143  $as_echo_n "(cached) " >&6
2144else
2145  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146for as_dir in $PATH
2147do
2148  IFS=$as_save_IFS
2149  test -z "$as_dir" && as_dir=.
2150    # Account for people who put trailing slashes in PATH elements.
2151case $as_dir/ in #((
2152  ./ | .// | /[cC]/* | \
2153  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2154  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2155  /usr/ucb/* ) ;;
2156  *)
2157    # OSF1 and SCO ODT 3.0 have their own names for install.
2158    # Don't use installbsd from OSF since it installs stuff as root
2159    # by default.
2160    for ac_prog in ginstall scoinst install; do
2161      for ac_exec_ext in '' $ac_executable_extensions; do
2162	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2163	  if test $ac_prog = install &&
2164	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165	    # AIX install.  It has an incompatible calling convention.
2166	    :
2167	  elif test $ac_prog = install &&
2168	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2169	    # program-specific install script used by HP pwplus--don't use.
2170	    :
2171	  else
2172	    rm -rf conftest.one conftest.two conftest.dir
2173	    echo one > conftest.one
2174	    echo two > conftest.two
2175	    mkdir conftest.dir
2176	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2177	      test -s conftest.one && test -s conftest.two &&
2178	      test -s conftest.dir/conftest.one &&
2179	      test -s conftest.dir/conftest.two
2180	    then
2181	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2182	      break 3
2183	    fi
2184	  fi
2185	fi
2186      done
2187    done
2188    ;;
2189esac
2190
2191  done
2192IFS=$as_save_IFS
2193
2194rm -rf conftest.one conftest.two conftest.dir
2195
2196fi
2197  if test "${ac_cv_path_install+set}" = set; then
2198    INSTALL=$ac_cv_path_install
2199  else
2200    # As a last resort, use the slow shell script.  Don't cache a
2201    # value for INSTALL within a source directory, because that will
2202    # break other packages using the cache if that directory is
2203    # removed, or if the value is a relative name.
2204    INSTALL=$ac_install_sh
2205  fi
2206fi
2207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2208$as_echo "$INSTALL" >&6; }
2209
2210# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211# It thinks the first close brace ends the variable substitution.
2212test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2213
2214test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2215
2216test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2217
2218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2219$as_echo_n "checking whether build environment is sane... " >&6; }
2220# Reject unsafe characters in $srcdir or the absolute working directory
2221# name.  Accept space and tab only in the latter.
2222am_lf='
2223'
2224case `pwd` in
2225  *[\\\"\#\$\&\'\`$am_lf]*)
2226    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2227esac
2228case $srcdir in
2229  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2230    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2231esac
2232
2233# Do 'set' in a subshell so we don't clobber the current shell's
2234# arguments.  Must try -L first in case configure is actually a
2235# symlink; some systems play weird games with the mod time of symlinks
2236# (eg FreeBSD returns the mod time of the symlink's containing
2237# directory).
2238if (
2239   am_has_slept=no
2240   for am_try in 1 2; do
2241     echo "timestamp, slept: $am_has_slept" > conftest.file
2242     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2243     if test "$*" = "X"; then
2244	# -L didn't work.
2245	set X `ls -t "$srcdir/configure" conftest.file`
2246     fi
2247     if test "$*" != "X $srcdir/configure conftest.file" \
2248	&& test "$*" != "X conftest.file $srcdir/configure"; then
2249
2250	# If neither matched, then we have a broken ls.  This can happen
2251	# if, for instance, CONFIG_SHELL is bash and it inherits a
2252	# broken ls alias from the environment.  This has actually
2253	# happened.  Such a system could not be considered "sane".
2254	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2255  alias in your environment" "$LINENO" 5
2256     fi
2257     if test "$2" = conftest.file || test $am_try -eq 2; then
2258       break
2259     fi
2260     # Just in case.
2261     sleep 1
2262     am_has_slept=yes
2263   done
2264   test "$2" = conftest.file
2265   )
2266then
2267   # Ok.
2268   :
2269else
2270   as_fn_error $? "newly created file is older than distributed files!
2271Check your system clock" "$LINENO" 5
2272fi
2273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2274$as_echo "yes" >&6; }
2275# If we didn't sleep, we still need to ensure time stamps of config.status and
2276# generated files are strictly newer.
2277am_sleep_pid=
2278if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2279  ( sleep 1 ) &
2280  am_sleep_pid=$!
2281fi
2282
2283rm -f conftest.file
2284
2285test "$program_prefix" != NONE &&
2286  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2287# Use a double $ so make ignores it.
2288test "$program_suffix" != NONE &&
2289  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2290# Double any \ or $.
2291# By default was `s,x,x', remove it if useless.
2292ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2293program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2294
2295# expand $ac_aux_dir to an absolute path
2296am_aux_dir=`cd $ac_aux_dir && pwd`
2297
2298if test x"${MISSING+set}" != xset; then
2299  case $am_aux_dir in
2300  *\ * | *\	*)
2301    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2302  *)
2303    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2304  esac
2305fi
2306# Use eval to expand $SHELL
2307if eval "$MISSING --is-lightweight"; then
2308  am_missing_run="$MISSING "
2309else
2310  am_missing_run=
2311  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2312$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2313fi
2314
2315if test x"${install_sh}" != xset; then
2316  case $am_aux_dir in
2317  *\ * | *\	*)
2318    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2319  *)
2320    install_sh="\${SHELL} $am_aux_dir/install-sh"
2321  esac
2322fi
2323
2324# Installed binaries are usually stripped using 'strip' when the user
2325# run "make install-strip".  However 'strip' might not be the right
2326# tool to use in cross-compilation environments, therefore Automake
2327# will honor the 'STRIP' environment variable to overrule this program.
2328if test "$cross_compiling" != no; then
2329  if test -n "$ac_tool_prefix"; then
2330  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2331set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
2335  $as_echo_n "(cached) " >&6
2336else
2337  if test -n "$STRIP"; then
2338  ac_cv_prog_STRIP="$STRIP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
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
2357STRIP=$ac_cv_prog_STRIP
2358if test -n "$STRIP"; then
2359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2360$as_echo "$STRIP" >&6; }
2361else
2362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2363$as_echo "no" >&6; }
2364fi
2365
2366
2367fi
2368if test -z "$ac_cv_prog_STRIP"; then
2369  ac_ct_STRIP=$STRIP
2370  # Extract the first word of "strip", so it can be a program name with args.
2371set dummy strip; ac_word=$2
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2373$as_echo_n "checking for $ac_word... " >&6; }
2374if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2375  $as_echo_n "(cached) " >&6
2376else
2377  if test -n "$ac_ct_STRIP"; then
2378  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2379else
2380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383  IFS=$as_save_IFS
2384  test -z "$as_dir" && as_dir=.
2385    for ac_exec_ext in '' $ac_executable_extensions; do
2386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387    ac_cv_prog_ac_ct_STRIP="strip"
2388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2389    break 2
2390  fi
2391done
2392  done
2393IFS=$as_save_IFS
2394
2395fi
2396fi
2397ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2398if test -n "$ac_ct_STRIP"; then
2399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2400$as_echo "$ac_ct_STRIP" >&6; }
2401else
2402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2403$as_echo "no" >&6; }
2404fi
2405
2406  if test "x$ac_ct_STRIP" = x; then
2407    STRIP=":"
2408  else
2409    case $cross_compiling:$ac_tool_warned in
2410yes:)
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2413ac_tool_warned=yes ;;
2414esac
2415    STRIP=$ac_ct_STRIP
2416  fi
2417else
2418  STRIP="$ac_cv_prog_STRIP"
2419fi
2420
2421fi
2422INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2423
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2425$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2426if test -z "$MKDIR_P"; then
2427  if ${ac_cv_path_mkdir+:} false; then :
2428  $as_echo_n "(cached) " >&6
2429else
2430  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2432do
2433  IFS=$as_save_IFS
2434  test -z "$as_dir" && as_dir=.
2435    for ac_prog in mkdir gmkdir; do
2436	 for ac_exec_ext in '' $ac_executable_extensions; do
2437	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2438	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2439	     'mkdir (GNU coreutils) '* | \
2440	     'mkdir (coreutils) '* | \
2441	     'mkdir (fileutils) '4.1*)
2442	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2443	       break 3;;
2444	   esac
2445	 done
2446       done
2447  done
2448IFS=$as_save_IFS
2449
2450fi
2451
2452  test -d ./--version && rmdir ./--version
2453  if test "${ac_cv_path_mkdir+set}" = set; then
2454    MKDIR_P="$ac_cv_path_mkdir -p"
2455  else
2456    # As a last resort, use the slow shell script.  Don't cache a
2457    # value for MKDIR_P within a source directory, because that will
2458    # break other packages using the cache if that directory is
2459    # removed, or if the value is a relative name.
2460    MKDIR_P="$ac_install_sh -d"
2461  fi
2462fi
2463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2464$as_echo "$MKDIR_P" >&6; }
2465
2466for ac_prog in gawk mawk nawk awk
2467do
2468  # Extract the first word of "$ac_prog", so it can be a program name with args.
2469set dummy $ac_prog; ac_word=$2
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471$as_echo_n "checking for $ac_word... " >&6; }
2472if ${ac_cv_prog_AWK+:} false; then :
2473  $as_echo_n "(cached) " >&6
2474else
2475  if test -n "$AWK"; then
2476  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481  IFS=$as_save_IFS
2482  test -z "$as_dir" && as_dir=.
2483    for ac_exec_ext in '' $ac_executable_extensions; do
2484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485    ac_cv_prog_AWK="$ac_prog"
2486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487    break 2
2488  fi
2489done
2490  done
2491IFS=$as_save_IFS
2492
2493fi
2494fi
2495AWK=$ac_cv_prog_AWK
2496if test -n "$AWK"; then
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2498$as_echo "$AWK" >&6; }
2499else
2500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501$as_echo "no" >&6; }
2502fi
2503
2504
2505  test -n "$AWK" && break
2506done
2507
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2509$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2510set x ${MAKE-make}
2511ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2512if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2513  $as_echo_n "(cached) " >&6
2514else
2515  cat >conftest.make <<\_ACEOF
2516SHELL = /bin/sh
2517all:
2518	@echo '@@@%%%=$(MAKE)=@@@%%%'
2519_ACEOF
2520# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2521case `${MAKE-make} -f conftest.make 2>/dev/null` in
2522  *@@@%%%=?*=@@@%%%*)
2523    eval ac_cv_prog_make_${ac_make}_set=yes;;
2524  *)
2525    eval ac_cv_prog_make_${ac_make}_set=no;;
2526esac
2527rm -f conftest.make
2528fi
2529if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2531$as_echo "yes" >&6; }
2532  SET_MAKE=
2533else
2534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535$as_echo "no" >&6; }
2536  SET_MAKE="MAKE=${MAKE-make}"
2537fi
2538
2539rm -rf .tst 2>/dev/null
2540mkdir .tst 2>/dev/null
2541if test -d .tst; then
2542  am__leading_dot=.
2543else
2544  am__leading_dot=_
2545fi
2546rmdir .tst 2>/dev/null
2547
2548# Check whether --enable-silent-rules was given.
2549if test "${enable_silent_rules+set}" = set; then :
2550  enableval=$enable_silent_rules;
2551fi
2552
2553case $enable_silent_rules in # (((
2554  yes) AM_DEFAULT_VERBOSITY=0;;
2555   no) AM_DEFAULT_VERBOSITY=1;;
2556    *) AM_DEFAULT_VERBOSITY=1;;
2557esac
2558am_make=${MAKE-make}
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2560$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2561if ${am_cv_make_support_nested_variables+:} false; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  if $as_echo 'TRUE=$(BAR$(V))
2565BAR0=false
2566BAR1=true
2567V=1
2568am__doit:
2569	@$(TRUE)
2570.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2571  am_cv_make_support_nested_variables=yes
2572else
2573  am_cv_make_support_nested_variables=no
2574fi
2575fi
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2577$as_echo "$am_cv_make_support_nested_variables" >&6; }
2578if test $am_cv_make_support_nested_variables = yes; then
2579    AM_V='$(V)'
2580  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2581else
2582  AM_V=$AM_DEFAULT_VERBOSITY
2583  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2584fi
2585AM_BACKSLASH='\'
2586
2587if test "`cd $srcdir && pwd`" != "`pwd`"; then
2588  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2589  # is not polluted with repeated "-I."
2590  am__isrc=' -I$(srcdir)'
2591  # test to see if srcdir already configured
2592  if test -f $srcdir/config.status; then
2593    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2594  fi
2595fi
2596
2597# test whether we have cygpath
2598if test -z "$CYGPATH_W"; then
2599  if (cygpath --version) >/dev/null 2>/dev/null; then
2600    CYGPATH_W='cygpath -w'
2601  else
2602    CYGPATH_W=echo
2603  fi
2604fi
2605
2606
2607# Define the identity of the package.
2608 PACKAGE='xclipboard'
2609 VERSION='1.1.3'
2610
2611
2612cat >>confdefs.h <<_ACEOF
2613#define PACKAGE "$PACKAGE"
2614_ACEOF
2615
2616
2617cat >>confdefs.h <<_ACEOF
2618#define VERSION "$VERSION"
2619_ACEOF
2620
2621# Some tools Automake needs.
2622
2623ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2624
2625
2626AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2627
2628
2629AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2630
2631
2632AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2633
2634
2635MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2636
2637# For better backward compatibility.  To be removed once Automake 1.9.x
2638# dies out for good.  For more background, see:
2639# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2640# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2641mkdir_p='$(MKDIR_P)'
2642
2643# We need awk for the "check" target.  The system "awk" is bad on
2644# some platforms.
2645# Always define AMTAR for backward compatibility.  Yes, it's still used
2646# in the wild :-(  We should find a proper way to deprecate it ...
2647AMTAR='$${TAR-tar}'
2648
2649
2650# We'll loop over all known methods to create a tar archive until one works.
2651_am_tools='gnutar  pax cpio none'
2652
2653am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2654
2655
2656
2657
2658
2659
2660# POSIX will say in a future version that running "rm -f" with no argument
2661# is OK; and we want to be able to make that assumption in our Makefile
2662# recipes.  So use an aggressive probe to check that the usage we want is
2663# actually supported "in the wild" to an acceptable degree.
2664# See automake bug#10828.
2665# To make any issue more visible, cause the running configure to be aborted
2666# by default if the 'rm' program in use doesn't match our expectations; the
2667# user can still override this though.
2668if rm -f && rm -fr && rm -rf; then : OK; else
2669  cat >&2 <<'END'
2670Oops!
2671
2672Your 'rm' program seems unable to run without file operands specified
2673on the command line, even when the '-f' option is present.  This is contrary
2674to the behaviour of most rm programs out there, and not conforming with
2675the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2676
2677Please tell bug-automake@gnu.org about your system, including the value
2678of your $PATH and any error possibly output before this message.  This
2679can help us improve future automake versions.
2680
2681END
2682  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2683    echo 'Configuration will proceed anyway, since you have set the' >&2
2684    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2685    echo >&2
2686  else
2687    cat >&2 <<'END'
2688Aborting the configuration process, to ensure you take notice of the issue.
2689
2690You can download and install GNU coreutils to get an 'rm' implementation
2691that behaves properly: <http://www.gnu.org/software/coreutils/>.
2692
2693If you want to complete the configuration process using your problematic
2694'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2695to "yes", and re-run configure.
2696
2697END
2698    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2699  fi
2700fi
2701
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2703$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2704    # Check whether --enable-maintainer-mode was given.
2705if test "${enable_maintainer_mode+set}" = set; then :
2706  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2707else
2708  USE_MAINTAINER_MODE=no
2709fi
2710
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2712$as_echo "$USE_MAINTAINER_MODE" >&6; }
2713   if test $USE_MAINTAINER_MODE = yes; then
2714  MAINTAINER_MODE_TRUE=
2715  MAINTAINER_MODE_FALSE='#'
2716else
2717  MAINTAINER_MODE_TRUE='#'
2718  MAINTAINER_MODE_FALSE=
2719fi
2720
2721  MAINT=$MAINTAINER_MODE_TRUE
2722
2723
2724
2725# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737DEPDIR="${am__leading_dot}deps"
2738
2739ac_config_commands="$ac_config_commands depfiles"
2740
2741
2742am_make=${MAKE-make}
2743cat > confinc << 'END'
2744am__doit:
2745	@echo this is the am__doit target
2746.PHONY: am__doit
2747END
2748# If we don't find an include directive, just comment out the code.
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2750$as_echo_n "checking for style of include used by $am_make... " >&6; }
2751am__include="#"
2752am__quote=
2753_am_result=none
2754# First try GNU make style include.
2755echo "include confinc" > confmf
2756# Ignore all kinds of additional output from 'make'.
2757case `$am_make -s -f confmf 2> /dev/null` in #(
2758*the\ am__doit\ target*)
2759  am__include=include
2760  am__quote=
2761  _am_result=GNU
2762  ;;
2763esac
2764# Now try BSD make style include.
2765if test "$am__include" = "#"; then
2766   echo '.include "confinc"' > confmf
2767   case `$am_make -s -f confmf 2> /dev/null` in #(
2768   *the\ am__doit\ target*)
2769     am__include=.include
2770     am__quote="\""
2771     _am_result=BSD
2772     ;;
2773   esac
2774fi
2775
2776
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2778$as_echo "$_am_result" >&6; }
2779rm -f confinc confmf
2780
2781# Check whether --enable-dependency-tracking was given.
2782if test "${enable_dependency_tracking+set}" = set; then :
2783  enableval=$enable_dependency_tracking;
2784fi
2785
2786if test "x$enable_dependency_tracking" != xno; then
2787  am_depcomp="$ac_aux_dir/depcomp"
2788  AMDEPBACKSLASH='\'
2789  am__nodep='_no'
2790fi
2791 if test "x$enable_dependency_tracking" != xno; then
2792  AMDEP_TRUE=
2793  AMDEP_FALSE='#'
2794else
2795  AMDEP_TRUE='#'
2796  AMDEP_FALSE=
2797fi
2798
2799
2800ac_ext=c
2801ac_cpp='$CPP $CPPFLAGS'
2802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805if test -n "$ac_tool_prefix"; then
2806  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2807set dummy ${ac_tool_prefix}gcc; ac_word=$2
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; }
2810if ${ac_cv_prog_CC+:} false; then :
2811  $as_echo_n "(cached) " >&6
2812else
2813  if test -n "$CC"; then
2814  ac_cv_prog_CC="$CC" # Let the user override the test.
2815else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819  IFS=$as_save_IFS
2820  test -z "$as_dir" && as_dir=.
2821    for ac_exec_ext in '' $ac_executable_extensions; do
2822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825    break 2
2826  fi
2827done
2828  done
2829IFS=$as_save_IFS
2830
2831fi
2832fi
2833CC=$ac_cv_prog_CC
2834if test -n "$CC"; then
2835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836$as_echo "$CC" >&6; }
2837else
2838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
2840fi
2841
2842
2843fi
2844if test -z "$ac_cv_prog_CC"; then
2845  ac_ct_CC=$CC
2846  # Extract the first word of "gcc", so it can be a program name with args.
2847set dummy gcc; ac_word=$2
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849$as_echo_n "checking for $ac_word... " >&6; }
2850if ${ac_cv_prog_ac_ct_CC+:} false; then :
2851  $as_echo_n "(cached) " >&6
2852else
2853  if test -n "$ac_ct_CC"; then
2854  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859  IFS=$as_save_IFS
2860  test -z "$as_dir" && as_dir=.
2861    for ac_exec_ext in '' $ac_executable_extensions; do
2862  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863    ac_cv_prog_ac_ct_CC="gcc"
2864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865    break 2
2866  fi
2867done
2868  done
2869IFS=$as_save_IFS
2870
2871fi
2872fi
2873ac_ct_CC=$ac_cv_prog_ac_ct_CC
2874if test -n "$ac_ct_CC"; then
2875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2876$as_echo "$ac_ct_CC" >&6; }
2877else
2878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879$as_echo "no" >&6; }
2880fi
2881
2882  if test "x$ac_ct_CC" = x; then
2883    CC=""
2884  else
2885    case $cross_compiling:$ac_tool_warned in
2886yes:)
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2889ac_tool_warned=yes ;;
2890esac
2891    CC=$ac_ct_CC
2892  fi
2893else
2894  CC="$ac_cv_prog_CC"
2895fi
2896
2897if test -z "$CC"; then
2898          if test -n "$ac_tool_prefix"; then
2899    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2900set dummy ${ac_tool_prefix}cc; ac_word=$2
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902$as_echo_n "checking for $ac_word... " >&6; }
2903if ${ac_cv_prog_CC+:} false; then :
2904  $as_echo_n "(cached) " >&6
2905else
2906  if test -n "$CC"; then
2907  ac_cv_prog_CC="$CC" # Let the user override the test.
2908else
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912  IFS=$as_save_IFS
2913  test -z "$as_dir" && as_dir=.
2914    for ac_exec_ext in '' $ac_executable_extensions; do
2915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916    ac_cv_prog_CC="${ac_tool_prefix}cc"
2917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918    break 2
2919  fi
2920done
2921  done
2922IFS=$as_save_IFS
2923
2924fi
2925fi
2926CC=$ac_cv_prog_CC
2927if test -n "$CC"; then
2928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929$as_echo "$CC" >&6; }
2930else
2931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932$as_echo "no" >&6; }
2933fi
2934
2935
2936  fi
2937fi
2938if test -z "$CC"; then
2939  # Extract the first word of "cc", so it can be a program name with args.
2940set dummy cc; ac_word=$2
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942$as_echo_n "checking for $ac_word... " >&6; }
2943if ${ac_cv_prog_CC+:} false; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  if test -n "$CC"; then
2947  ac_cv_prog_CC="$CC" # Let the user override the test.
2948else
2949  ac_prog_rejected=no
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  test -z "$as_dir" && as_dir=.
2955    for ac_exec_ext in '' $ac_executable_extensions; do
2956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2958       ac_prog_rejected=yes
2959       continue
2960     fi
2961    ac_cv_prog_CC="cc"
2962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966  done
2967IFS=$as_save_IFS
2968
2969if test $ac_prog_rejected = yes; then
2970  # We found a bogon in the path, so make sure we never use it.
2971  set dummy $ac_cv_prog_CC
2972  shift
2973  if test $# != 0; then
2974    # We chose a different compiler from the bogus one.
2975    # However, it has the same basename, so the bogon will be chosen
2976    # first if we set CC to just the basename; use the full file name.
2977    shift
2978    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2979  fi
2980fi
2981fi
2982fi
2983CC=$ac_cv_prog_CC
2984if test -n "$CC"; then
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986$as_echo "$CC" >&6; }
2987else
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
2990fi
2991
2992
2993fi
2994if test -z "$CC"; then
2995  if test -n "$ac_tool_prefix"; then
2996  for ac_prog in cl.exe
2997  do
2998    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2999set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; }
3002if ${ac_cv_prog_CC+:} false; then :
3003  $as_echo_n "(cached) " >&6
3004else
3005  if test -n "$CC"; then
3006  ac_cv_prog_CC="$CC" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011  IFS=$as_save_IFS
3012  test -z "$as_dir" && as_dir=.
3013    for ac_exec_ext in '' $ac_executable_extensions; do
3014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017    break 2
3018  fi
3019done
3020  done
3021IFS=$as_save_IFS
3022
3023fi
3024fi
3025CC=$ac_cv_prog_CC
3026if test -n "$CC"; then
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028$as_echo "$CC" >&6; }
3029else
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
3032fi
3033
3034
3035    test -n "$CC" && break
3036  done
3037fi
3038if test -z "$CC"; then
3039  ac_ct_CC=$CC
3040  for ac_prog in cl.exe
3041do
3042  # Extract the first word of "$ac_prog", so it can be a program name with args.
3043set dummy $ac_prog; ac_word=$2
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045$as_echo_n "checking for $ac_word... " >&6; }
3046if ${ac_cv_prog_ac_ct_CC+:} false; then :
3047  $as_echo_n "(cached) " >&6
3048else
3049  if test -n "$ac_ct_CC"; then
3050  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051else
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055  IFS=$as_save_IFS
3056  test -z "$as_dir" && as_dir=.
3057    for ac_exec_ext in '' $ac_executable_extensions; do
3058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059    ac_cv_prog_ac_ct_CC="$ac_prog"
3060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061    break 2
3062  fi
3063done
3064  done
3065IFS=$as_save_IFS
3066
3067fi
3068fi
3069ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070if test -n "$ac_ct_CC"; then
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3072$as_echo "$ac_ct_CC" >&6; }
3073else
3074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075$as_echo "no" >&6; }
3076fi
3077
3078
3079  test -n "$ac_ct_CC" && break
3080done
3081
3082  if test "x$ac_ct_CC" = x; then
3083    CC=""
3084  else
3085    case $cross_compiling:$ac_tool_warned in
3086yes:)
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089ac_tool_warned=yes ;;
3090esac
3091    CC=$ac_ct_CC
3092  fi
3093fi
3094
3095fi
3096
3097
3098test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100as_fn_error $? "no acceptable C compiler found in \$PATH
3101See \`config.log' for more details" "$LINENO" 5; }
3102
3103# Provide some information about the compiler.
3104$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3105set X $ac_compile
3106ac_compiler=$2
3107for ac_option in --version -v -V -qversion; do
3108  { { ac_try="$ac_compiler $ac_option >&5"
3109case "(($ac_try" in
3110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111  *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114$as_echo "$ac_try_echo"; } >&5
3115  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3116  ac_status=$?
3117  if test -s conftest.err; then
3118    sed '10a\
3119... rest of stderr output deleted ...
3120         10q' conftest.err >conftest.er1
3121    cat conftest.er1 >&5
3122  fi
3123  rm -f conftest.er1 conftest.err
3124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125  test $ac_status = 0; }
3126done
3127
3128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129/* end confdefs.h.  */
3130
3131int
3132main ()
3133{
3134
3135  ;
3136  return 0;
3137}
3138_ACEOF
3139ac_clean_files_save=$ac_clean_files
3140ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3141# Try to create an executable without -o first, disregard a.out.
3142# It will help us diagnose broken compilers, and finding out an intuition
3143# of exeext.
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3145$as_echo_n "checking whether the C compiler works... " >&6; }
3146ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3147
3148# The possible output files:
3149ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3150
3151ac_rmfiles=
3152for ac_file in $ac_files
3153do
3154  case $ac_file in
3155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3156    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3157  esac
3158done
3159rm -f $ac_rmfiles
3160
3161if { { ac_try="$ac_link_default"
3162case "(($ac_try" in
3163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164  *) ac_try_echo=$ac_try;;
3165esac
3166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167$as_echo "$ac_try_echo"; } >&5
3168  (eval "$ac_link_default") 2>&5
3169  ac_status=$?
3170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171  test $ac_status = 0; }; then :
3172  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3174# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3175# so that the user can short-circuit this test for compilers unknown to
3176# Autoconf.
3177for ac_file in $ac_files ''
3178do
3179  test -f "$ac_file" || continue
3180  case $ac_file in
3181    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3182	;;
3183    [ab].out )
3184	# We found the default executable, but exeext='' is most
3185	# certainly right.
3186	break;;
3187    *.* )
3188	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3189	then :; else
3190	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3191	fi
3192	# We set ac_cv_exeext here because the later test for it is not
3193	# safe: cross compilers may not add the suffix if given an `-o'
3194	# argument, so we may need to know it at that point already.
3195	# Even if this section looks crufty: it has the advantage of
3196	# actually working.
3197	break;;
3198    * )
3199	break;;
3200  esac
3201done
3202test "$ac_cv_exeext" = no && ac_cv_exeext=
3203
3204else
3205  ac_file=''
3206fi
3207if test -z "$ac_file"; then :
3208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210$as_echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215as_fn_error 77 "C compiler cannot create executables
3216See \`config.log' for more details" "$LINENO" 5; }
3217else
3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219$as_echo "yes" >&6; }
3220fi
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3222$as_echo_n "checking for C compiler default output file name... " >&6; }
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3224$as_echo "$ac_file" >&6; }
3225ac_exeext=$ac_cv_exeext
3226
3227rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3228ac_clean_files=$ac_clean_files_save
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3230$as_echo_n "checking for suffix of executables... " >&6; }
3231if { { ac_try="$ac_link"
3232case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237$as_echo "$ac_try_echo"; } >&5
3238  (eval "$ac_link") 2>&5
3239  ac_status=$?
3240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241  test $ac_status = 0; }; then :
3242  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3243# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3244# work properly (i.e., refer to `conftest.exe'), while it won't with
3245# `rm'.
3246for ac_file in conftest.exe conftest conftest.*; do
3247  test -f "$ac_file" || continue
3248  case $ac_file in
3249    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3250    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3251	  break;;
3252    * ) break;;
3253  esac
3254done
3255else
3256  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3259See \`config.log' for more details" "$LINENO" 5; }
3260fi
3261rm -f conftest conftest$ac_cv_exeext
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3263$as_echo "$ac_cv_exeext" >&6; }
3264
3265rm -f conftest.$ac_ext
3266EXEEXT=$ac_cv_exeext
3267ac_exeext=$EXEEXT
3268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269/* end confdefs.h.  */
3270#include <stdio.h>
3271int
3272main ()
3273{
3274FILE *f = fopen ("conftest.out", "w");
3275 return ferror (f) || fclose (f) != 0;
3276
3277  ;
3278  return 0;
3279}
3280_ACEOF
3281ac_clean_files="$ac_clean_files conftest.out"
3282# Check that the compiler produces executables we can run.  If not, either
3283# the compiler is broken, or we cross compile.
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3285$as_echo_n "checking whether we are cross compiling... " >&6; }
3286if test "$cross_compiling" != yes; then
3287  { { ac_try="$ac_link"
3288case "(($ac_try" in
3289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290  *) ac_try_echo=$ac_try;;
3291esac
3292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293$as_echo "$ac_try_echo"; } >&5
3294  (eval "$ac_link") 2>&5
3295  ac_status=$?
3296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297  test $ac_status = 0; }
3298  if { ac_try='./conftest$ac_cv_exeext'
3299  { { case "(($ac_try" in
3300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301  *) ac_try_echo=$ac_try;;
3302esac
3303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304$as_echo "$ac_try_echo"; } >&5
3305  (eval "$ac_try") 2>&5
3306  ac_status=$?
3307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308  test $ac_status = 0; }; }; then
3309    cross_compiling=no
3310  else
3311    if test "$cross_compiling" = maybe; then
3312	cross_compiling=yes
3313    else
3314	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316as_fn_error $? "cannot run C compiled programs.
3317If you meant to cross compile, use \`--host'.
3318See \`config.log' for more details" "$LINENO" 5; }
3319    fi
3320  fi
3321fi
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3323$as_echo "$cross_compiling" >&6; }
3324
3325rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3326ac_clean_files=$ac_clean_files_save
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3328$as_echo_n "checking for suffix of object files... " >&6; }
3329if ${ac_cv_objext+:} false; then :
3330  $as_echo_n "(cached) " >&6
3331else
3332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333/* end confdefs.h.  */
3334
3335int
3336main ()
3337{
3338
3339  ;
3340  return 0;
3341}
3342_ACEOF
3343rm -f conftest.o conftest.obj
3344if { { ac_try="$ac_compile"
3345case "(($ac_try" in
3346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347  *) ac_try_echo=$ac_try;;
3348esac
3349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350$as_echo "$ac_try_echo"; } >&5
3351  (eval "$ac_compile") 2>&5
3352  ac_status=$?
3353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354  test $ac_status = 0; }; then :
3355  for ac_file in conftest.o conftest.obj conftest.*; do
3356  test -f "$ac_file" || continue;
3357  case $ac_file in
3358    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3359    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3360       break;;
3361  esac
3362done
3363else
3364  $as_echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
3367{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369as_fn_error $? "cannot compute suffix of object files: cannot compile
3370See \`config.log' for more details" "$LINENO" 5; }
3371fi
3372rm -f conftest.$ac_cv_objext conftest.$ac_ext
3373fi
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3375$as_echo "$ac_cv_objext" >&6; }
3376OBJEXT=$ac_cv_objext
3377ac_objext=$OBJEXT
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3379$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3380if ${ac_cv_c_compiler_gnu+:} false; then :
3381  $as_echo_n "(cached) " >&6
3382else
3383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384/* end confdefs.h.  */
3385
3386int
3387main ()
3388{
3389#ifndef __GNUC__
3390       choke me
3391#endif
3392
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397if ac_fn_c_try_compile "$LINENO"; then :
3398  ac_compiler_gnu=yes
3399else
3400  ac_compiler_gnu=no
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403ac_cv_c_compiler_gnu=$ac_compiler_gnu
3404
3405fi
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3407$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3408if test $ac_compiler_gnu = yes; then
3409  GCC=yes
3410else
3411  GCC=
3412fi
3413ac_test_CFLAGS=${CFLAGS+set}
3414ac_save_CFLAGS=$CFLAGS
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3416$as_echo_n "checking whether $CC accepts -g... " >&6; }
3417if ${ac_cv_prog_cc_g+:} false; then :
3418  $as_echo_n "(cached) " >&6
3419else
3420  ac_save_c_werror_flag=$ac_c_werror_flag
3421   ac_c_werror_flag=yes
3422   ac_cv_prog_cc_g=no
3423   CFLAGS="-g"
3424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425/* end confdefs.h.  */
3426
3427int
3428main ()
3429{
3430
3431  ;
3432  return 0;
3433}
3434_ACEOF
3435if ac_fn_c_try_compile "$LINENO"; then :
3436  ac_cv_prog_cc_g=yes
3437else
3438  CFLAGS=""
3439      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440/* end confdefs.h.  */
3441
3442int
3443main ()
3444{
3445
3446  ;
3447  return 0;
3448}
3449_ACEOF
3450if ac_fn_c_try_compile "$LINENO"; then :
3451
3452else
3453  ac_c_werror_flag=$ac_save_c_werror_flag
3454	 CFLAGS="-g"
3455	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456/* end confdefs.h.  */
3457
3458int
3459main ()
3460{
3461
3462  ;
3463  return 0;
3464}
3465_ACEOF
3466if ac_fn_c_try_compile "$LINENO"; then :
3467  ac_cv_prog_cc_g=yes
3468fi
3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470fi
3471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472fi
3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474   ac_c_werror_flag=$ac_save_c_werror_flag
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3477$as_echo "$ac_cv_prog_cc_g" >&6; }
3478if test "$ac_test_CFLAGS" = set; then
3479  CFLAGS=$ac_save_CFLAGS
3480elif test $ac_cv_prog_cc_g = yes; then
3481  if test "$GCC" = yes; then
3482    CFLAGS="-g -O2"
3483  else
3484    CFLAGS="-g"
3485  fi
3486else
3487  if test "$GCC" = yes; then
3488    CFLAGS="-O2"
3489  else
3490    CFLAGS=
3491  fi
3492fi
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3494$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3495if ${ac_cv_prog_cc_c89+:} false; then :
3496  $as_echo_n "(cached) " >&6
3497else
3498  ac_cv_prog_cc_c89=no
3499ac_save_CC=$CC
3500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501/* end confdefs.h.  */
3502#include <stdarg.h>
3503#include <stdio.h>
3504#include <sys/types.h>
3505#include <sys/stat.h>
3506/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3507struct buf { int x; };
3508FILE * (*rcsopen) (struct buf *, struct stat *, int);
3509static char *e (p, i)
3510     char **p;
3511     int i;
3512{
3513  return p[i];
3514}
3515static char *f (char * (*g) (char **, int), char **p, ...)
3516{
3517  char *s;
3518  va_list v;
3519  va_start (v,p);
3520  s = g (p, va_arg (v,int));
3521  va_end (v);
3522  return s;
3523}
3524
3525/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3526   function prototypes and stuff, but not '\xHH' hex character constants.
3527   These don't provoke an error unfortunately, instead are silently treated
3528   as 'x'.  The following induces an error, until -std is added to get
3529   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3530   array size at least.  It's necessary to write '\x00'==0 to get something
3531   that's true only with -std.  */
3532int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3533
3534/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3535   inside strings and character constants.  */
3536#define FOO(x) 'x'
3537int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3538
3539int test (int i, double x);
3540struct s1 {int (*f) (int a);};
3541struct s2 {int (*f) (double a);};
3542int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3543int argc;
3544char **argv;
3545int
3546main ()
3547{
3548return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3554	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3555do
3556  CC="$ac_save_CC $ac_arg"
3557  if ac_fn_c_try_compile "$LINENO"; then :
3558  ac_cv_prog_cc_c89=$ac_arg
3559fi
3560rm -f core conftest.err conftest.$ac_objext
3561  test "x$ac_cv_prog_cc_c89" != "xno" && break
3562done
3563rm -f conftest.$ac_ext
3564CC=$ac_save_CC
3565
3566fi
3567# AC_CACHE_VAL
3568case "x$ac_cv_prog_cc_c89" in
3569  x)
3570    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3571$as_echo "none needed" >&6; } ;;
3572  xno)
3573    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3574$as_echo "unsupported" >&6; } ;;
3575  *)
3576    CC="$CC $ac_cv_prog_cc_c89"
3577    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3578$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3579esac
3580if test "x$ac_cv_prog_cc_c89" != xno; then :
3581
3582fi
3583
3584ac_ext=c
3585ac_cpp='$CPP $CPPFLAGS'
3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589
3590ac_ext=c
3591ac_cpp='$CPP $CPPFLAGS'
3592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3596$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3597if ${am_cv_prog_cc_c_o+:} false; then :
3598  $as_echo_n "(cached) " >&6
3599else
3600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601/* end confdefs.h.  */
3602
3603int
3604main ()
3605{
3606
3607  ;
3608  return 0;
3609}
3610_ACEOF
3611  # Make sure it works both with $CC and with simple cc.
3612  # Following AC_PROG_CC_C_O, we do the test twice because some
3613  # compilers refuse to overwrite an existing .o file with -o,
3614  # though they will create one.
3615  am_cv_prog_cc_c_o=yes
3616  for am_i in 1 2; do
3617    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3618   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } \
3622         && test -f conftest2.$ac_objext; then
3623      : OK
3624    else
3625      am_cv_prog_cc_c_o=no
3626      break
3627    fi
3628  done
3629  rm -f core conftest*
3630  unset am_i
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3633$as_echo "$am_cv_prog_cc_c_o" >&6; }
3634if test "$am_cv_prog_cc_c_o" != yes; then
3635   # Losing compiler, so override with the script.
3636   # FIXME: It is wrong to rewrite CC.
3637   # But if we don't then we get into trouble of one sort or another.
3638   # A longer-term fix would be to have automake use am__CC in this case,
3639   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3640   CC="$am_aux_dir/compile $CC"
3641fi
3642ac_ext=c
3643ac_cpp='$CPP $CPPFLAGS'
3644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
3648
3649depcc="$CC"   am_compiler_list=
3650
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3652$as_echo_n "checking dependency style of $depcc... " >&6; }
3653if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3654  $as_echo_n "(cached) " >&6
3655else
3656  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3657  # We make a subdir and do the tests there.  Otherwise we can end up
3658  # making bogus files that we don't know about and never remove.  For
3659  # instance it was reported that on HP-UX the gcc test will end up
3660  # making a dummy file named 'D' -- because '-MD' means "put the output
3661  # in D".
3662  rm -rf conftest.dir
3663  mkdir conftest.dir
3664  # Copy depcomp to subdir because otherwise we won't find it if we're
3665  # using a relative directory.
3666  cp "$am_depcomp" conftest.dir
3667  cd conftest.dir
3668  # We will build objects and dependencies in a subdirectory because
3669  # it helps to detect inapplicable dependency modes.  For instance
3670  # both Tru64's cc and ICC support -MD to output dependencies as a
3671  # side effect of compilation, but ICC will put the dependencies in
3672  # the current directory while Tru64 will put them in the object
3673  # directory.
3674  mkdir sub
3675
3676  am_cv_CC_dependencies_compiler_type=none
3677  if test "$am_compiler_list" = ""; then
3678     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3679  fi
3680  am__universal=false
3681  case " $depcc " in #(
3682     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3683     esac
3684
3685  for depmode in $am_compiler_list; do
3686    # Setup a source with many dependencies, because some compilers
3687    # like to wrap large dependency lists on column 80 (with \), and
3688    # we should not choose a depcomp mode which is confused by this.
3689    #
3690    # We need to recreate these files for each test, as the compiler may
3691    # overwrite some of them when testing with obscure command lines.
3692    # This happens at least with the AIX C compiler.
3693    : > sub/conftest.c
3694    for i in 1 2 3 4 5 6; do
3695      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3696      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3697      # Solaris 10 /bin/sh.
3698      echo '/* dummy */' > sub/conftst$i.h
3699    done
3700    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3701
3702    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3703    # mode.  It turns out that the SunPro C++ compiler does not properly
3704    # handle '-M -o', and we need to detect this.  Also, some Intel
3705    # versions had trouble with output in subdirs.
3706    am__obj=sub/conftest.${OBJEXT-o}
3707    am__minus_obj="-o $am__obj"
3708    case $depmode in
3709    gcc)
3710      # This depmode causes a compiler race in universal mode.
3711      test "$am__universal" = false || continue
3712      ;;
3713    nosideeffect)
3714      # After this tag, mechanisms are not by side-effect, so they'll
3715      # only be used when explicitly requested.
3716      if test "x$enable_dependency_tracking" = xyes; then
3717	continue
3718      else
3719	break
3720      fi
3721      ;;
3722    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3723      # This compiler won't grok '-c -o', but also, the minuso test has
3724      # not run yet.  These depmodes are late enough in the game, and
3725      # so weak that their functioning should not be impacted.
3726      am__obj=conftest.${OBJEXT-o}
3727      am__minus_obj=
3728      ;;
3729    none) break ;;
3730    esac
3731    if depmode=$depmode \
3732       source=sub/conftest.c object=$am__obj \
3733       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3734       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3735         >/dev/null 2>conftest.err &&
3736       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3737       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3738       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3739       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3740      # icc doesn't choke on unknown options, it will just issue warnings
3741      # or remarks (even with -Werror).  So we grep stderr for any message
3742      # that says an option was ignored or not supported.
3743      # When given -MP, icc 7.0 and 7.1 complain thusly:
3744      #   icc: Command line warning: ignoring option '-M'; no argument required
3745      # The diagnosis changed in icc 8.0:
3746      #   icc: Command line remark: option '-MP' not supported
3747      if (grep 'ignoring option' conftest.err ||
3748          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3749        am_cv_CC_dependencies_compiler_type=$depmode
3750        break
3751      fi
3752    fi
3753  done
3754
3755  cd ..
3756  rm -rf conftest.dir
3757else
3758  am_cv_CC_dependencies_compiler_type=none
3759fi
3760
3761fi
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3763$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3764CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3765
3766 if
3767  test "x$enable_dependency_tracking" != xno \
3768  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3769  am__fastdepCC_TRUE=
3770  am__fastdepCC_FALSE='#'
3771else
3772  am__fastdepCC_TRUE='#'
3773  am__fastdepCC_FALSE=
3774fi
3775
3776
3777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3778$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3779if ${ac_cv_prog_cc_c99+:} false; then :
3780  $as_echo_n "(cached) " >&6
3781else
3782  ac_cv_prog_cc_c99=no
3783ac_save_CC=$CC
3784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785/* end confdefs.h.  */
3786#include <stdarg.h>
3787#include <stdbool.h>
3788#include <stdlib.h>
3789#include <wchar.h>
3790#include <stdio.h>
3791
3792// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3793#define debug(...) fprintf (stderr, __VA_ARGS__)
3794#define showlist(...) puts (#__VA_ARGS__)
3795#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3796static void
3797test_varargs_macros (void)
3798{
3799  int x = 1234;
3800  int y = 5678;
3801  debug ("Flag");
3802  debug ("X = %d\n", x);
3803  showlist (The first, second, and third items.);
3804  report (x>y, "x is %d but y is %d", x, y);
3805}
3806
3807// Check long long types.
3808#define BIG64 18446744073709551615ull
3809#define BIG32 4294967295ul
3810#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3811#if !BIG_OK
3812  your preprocessor is broken;
3813#endif
3814#if BIG_OK
3815#else
3816  your preprocessor is broken;
3817#endif
3818static long long int bignum = -9223372036854775807LL;
3819static unsigned long long int ubignum = BIG64;
3820
3821struct incomplete_array
3822{
3823  int datasize;
3824  double data[];
3825};
3826
3827struct named_init {
3828  int number;
3829  const wchar_t *name;
3830  double average;
3831};
3832
3833typedef const char *ccp;
3834
3835static inline int
3836test_restrict (ccp restrict text)
3837{
3838  // See if C++-style comments work.
3839  // Iterate through items via the restricted pointer.
3840  // Also check for declarations in for loops.
3841  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3842    continue;
3843  return 0;
3844}
3845
3846// Check varargs and va_copy.
3847static void
3848test_varargs (const char *format, ...)
3849{
3850  va_list args;
3851  va_start (args, format);
3852  va_list args_copy;
3853  va_copy (args_copy, args);
3854
3855  const char *str;
3856  int number;
3857  float fnumber;
3858
3859  while (*format)
3860    {
3861      switch (*format++)
3862	{
3863	case 's': // string
3864	  str = va_arg (args_copy, const char *);
3865	  break;
3866	case 'd': // int
3867	  number = va_arg (args_copy, int);
3868	  break;
3869	case 'f': // float
3870	  fnumber = va_arg (args_copy, double);
3871	  break;
3872	default:
3873	  break;
3874	}
3875    }
3876  va_end (args_copy);
3877  va_end (args);
3878}
3879
3880int
3881main ()
3882{
3883
3884  // Check bool.
3885  _Bool success = false;
3886
3887  // Check restrict.
3888  if (test_restrict ("String literal") == 0)
3889    success = true;
3890  char *restrict newvar = "Another string";
3891
3892  // Check varargs.
3893  test_varargs ("s, d' f .", "string", 65, 34.234);
3894  test_varargs_macros ();
3895
3896  // Check flexible array members.
3897  struct incomplete_array *ia =
3898    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3899  ia->datasize = 10;
3900  for (int i = 0; i < ia->datasize; ++i)
3901    ia->data[i] = i * 1.234;
3902
3903  // Check named initializers.
3904  struct named_init ni = {
3905    .number = 34,
3906    .name = L"Test wide string",
3907    .average = 543.34343,
3908  };
3909
3910  ni.number = 58;
3911
3912  int dynamic_array[ni.number];
3913  dynamic_array[ni.number - 1] = 543;
3914
3915  // work around unused variable warnings
3916  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3917	  || dynamic_array[ni.number - 1] != 543);
3918
3919  ;
3920  return 0;
3921}
3922_ACEOF
3923for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3924do
3925  CC="$ac_save_CC $ac_arg"
3926  if ac_fn_c_try_compile "$LINENO"; then :
3927  ac_cv_prog_cc_c99=$ac_arg
3928fi
3929rm -f core conftest.err conftest.$ac_objext
3930  test "x$ac_cv_prog_cc_c99" != "xno" && break
3931done
3932rm -f conftest.$ac_ext
3933CC=$ac_save_CC
3934
3935fi
3936# AC_CACHE_VAL
3937case "x$ac_cv_prog_cc_c99" in
3938  x)
3939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3940$as_echo "none needed" >&6; } ;;
3941  xno)
3942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3943$as_echo "unsupported" >&6; } ;;
3944  *)
3945    CC="$CC $ac_cv_prog_cc_c99"
3946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3947$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3948esac
3949if test "x$ac_cv_prog_cc_c99" != xno; then :
3950
3951fi
3952
3953
3954
3955ac_ext=c
3956ac_cpp='$CPP $CPPFLAGS'
3957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3961$as_echo_n "checking how to run the C preprocessor... " >&6; }
3962# On Suns, sometimes $CPP names a directory.
3963if test -n "$CPP" && test -d "$CPP"; then
3964  CPP=
3965fi
3966if test -z "$CPP"; then
3967  if ${ac_cv_prog_CPP+:} false; then :
3968  $as_echo_n "(cached) " >&6
3969else
3970      # Double quotes because CPP needs to be expanded
3971    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3972    do
3973      ac_preproc_ok=false
3974for ac_c_preproc_warn_flag in '' yes
3975do
3976  # Use a header file that comes with gcc, so configuring glibc
3977  # with a fresh cross-compiler works.
3978  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979  # <limits.h> exists even on freestanding compilers.
3980  # On the NeXT, cc -E runs the code through the compiler's parser,
3981  # not just through cpp. "Syntax error" is here to catch this case.
3982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983/* end confdefs.h.  */
3984#ifdef __STDC__
3985# include <limits.h>
3986#else
3987# include <assert.h>
3988#endif
3989		     Syntax error
3990_ACEOF
3991if ac_fn_c_try_cpp "$LINENO"; then :
3992
3993else
3994  # Broken: fails on valid input.
3995continue
3996fi
3997rm -f conftest.err conftest.i conftest.$ac_ext
3998
3999  # OK, works on sane cases.  Now check whether nonexistent headers
4000  # can be detected and how.
4001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002/* end confdefs.h.  */
4003#include <ac_nonexistent.h>
4004_ACEOF
4005if ac_fn_c_try_cpp "$LINENO"; then :
4006  # Broken: success on invalid input.
4007continue
4008else
4009  # Passes both tests.
4010ac_preproc_ok=:
4011break
4012fi
4013rm -f conftest.err conftest.i conftest.$ac_ext
4014
4015done
4016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4017rm -f conftest.i conftest.err conftest.$ac_ext
4018if $ac_preproc_ok; then :
4019  break
4020fi
4021
4022    done
4023    ac_cv_prog_CPP=$CPP
4024
4025fi
4026  CPP=$ac_cv_prog_CPP
4027else
4028  ac_cv_prog_CPP=$CPP
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4031$as_echo "$CPP" >&6; }
4032ac_preproc_ok=false
4033for ac_c_preproc_warn_flag in '' yes
4034do
4035  # Use a header file that comes with gcc, so configuring glibc
4036  # with a fresh cross-compiler works.
4037  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4038  # <limits.h> exists even on freestanding compilers.
4039  # On the NeXT, cc -E runs the code through the compiler's parser,
4040  # not just through cpp. "Syntax error" is here to catch this case.
4041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042/* end confdefs.h.  */
4043#ifdef __STDC__
4044# include <limits.h>
4045#else
4046# include <assert.h>
4047#endif
4048		     Syntax error
4049_ACEOF
4050if ac_fn_c_try_cpp "$LINENO"; then :
4051
4052else
4053  # Broken: fails on valid input.
4054continue
4055fi
4056rm -f conftest.err conftest.i conftest.$ac_ext
4057
4058  # OK, works on sane cases.  Now check whether nonexistent headers
4059  # can be detected and how.
4060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061/* end confdefs.h.  */
4062#include <ac_nonexistent.h>
4063_ACEOF
4064if ac_fn_c_try_cpp "$LINENO"; then :
4065  # Broken: success on invalid input.
4066continue
4067else
4068  # Passes both tests.
4069ac_preproc_ok=:
4070break
4071fi
4072rm -f conftest.err conftest.i conftest.$ac_ext
4073
4074done
4075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4076rm -f conftest.i conftest.err conftest.$ac_ext
4077if $ac_preproc_ok; then :
4078
4079else
4080  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4083See \`config.log' for more details" "$LINENO" 5; }
4084fi
4085
4086ac_ext=c
4087ac_cpp='$CPP $CPPFLAGS'
4088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091
4092
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4094$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4095if ${ac_cv_path_GREP+:} false; then :
4096  $as_echo_n "(cached) " >&6
4097else
4098  if test -z "$GREP"; then
4099  ac_path_GREP_found=false
4100  # Loop through the user's path and test for each of PROGNAME-LIST
4101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106    for ac_prog in grep ggrep; do
4107    for ac_exec_ext in '' $ac_executable_extensions; do
4108      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4109      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4110# Check for GNU ac_path_GREP and select it if it is found.
4111  # Check for GNU $ac_path_GREP
4112case `"$ac_path_GREP" --version 2>&1` in
4113*GNU*)
4114  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4115*)
4116  ac_count=0
4117  $as_echo_n 0123456789 >"conftest.in"
4118  while :
4119  do
4120    cat "conftest.in" "conftest.in" >"conftest.tmp"
4121    mv "conftest.tmp" "conftest.in"
4122    cp "conftest.in" "conftest.nl"
4123    $as_echo 'GREP' >> "conftest.nl"
4124    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126    as_fn_arith $ac_count + 1 && ac_count=$as_val
4127    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4128      # Best one so far, save it but keep looking for a better one
4129      ac_cv_path_GREP="$ac_path_GREP"
4130      ac_path_GREP_max=$ac_count
4131    fi
4132    # 10*(2^10) chars as input seems more than enough
4133    test $ac_count -gt 10 && break
4134  done
4135  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136esac
4137
4138      $ac_path_GREP_found && break 3
4139    done
4140  done
4141  done
4142IFS=$as_save_IFS
4143  if test -z "$ac_cv_path_GREP"; then
4144    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145  fi
4146else
4147  ac_cv_path_GREP=$GREP
4148fi
4149
4150fi
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4152$as_echo "$ac_cv_path_GREP" >&6; }
4153 GREP="$ac_cv_path_GREP"
4154
4155
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4157$as_echo_n "checking for egrep... " >&6; }
4158if ${ac_cv_path_EGREP+:} false; then :
4159  $as_echo_n "(cached) " >&6
4160else
4161  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4162   then ac_cv_path_EGREP="$GREP -E"
4163   else
4164     if test -z "$EGREP"; then
4165  ac_path_EGREP_found=false
4166  # Loop through the user's path and test for each of PROGNAME-LIST
4167  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4169do
4170  IFS=$as_save_IFS
4171  test -z "$as_dir" && as_dir=.
4172    for ac_prog in egrep; do
4173    for ac_exec_ext in '' $ac_executable_extensions; do
4174      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4175      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4176# Check for GNU ac_path_EGREP and select it if it is found.
4177  # Check for GNU $ac_path_EGREP
4178case `"$ac_path_EGREP" --version 2>&1` in
4179*GNU*)
4180  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4181*)
4182  ac_count=0
4183  $as_echo_n 0123456789 >"conftest.in"
4184  while :
4185  do
4186    cat "conftest.in" "conftest.in" >"conftest.tmp"
4187    mv "conftest.tmp" "conftest.in"
4188    cp "conftest.in" "conftest.nl"
4189    $as_echo 'EGREP' >> "conftest.nl"
4190    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4191    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4192    as_fn_arith $ac_count + 1 && ac_count=$as_val
4193    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4194      # Best one so far, save it but keep looking for a better one
4195      ac_cv_path_EGREP="$ac_path_EGREP"
4196      ac_path_EGREP_max=$ac_count
4197    fi
4198    # 10*(2^10) chars as input seems more than enough
4199    test $ac_count -gt 10 && break
4200  done
4201  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4202esac
4203
4204      $ac_path_EGREP_found && break 3
4205    done
4206  done
4207  done
4208IFS=$as_save_IFS
4209  if test -z "$ac_cv_path_EGREP"; then
4210    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4211  fi
4212else
4213  ac_cv_path_EGREP=$EGREP
4214fi
4215
4216   fi
4217fi
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4219$as_echo "$ac_cv_path_EGREP" >&6; }
4220 EGREP="$ac_cv_path_EGREP"
4221
4222
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4224$as_echo_n "checking for ANSI C header files... " >&6; }
4225if ${ac_cv_header_stdc+:} false; then :
4226  $as_echo_n "(cached) " >&6
4227else
4228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h.  */
4230#include <stdlib.h>
4231#include <stdarg.h>
4232#include <string.h>
4233#include <float.h>
4234
4235int
4236main ()
4237{
4238
4239  ;
4240  return 0;
4241}
4242_ACEOF
4243if ac_fn_c_try_compile "$LINENO"; then :
4244  ac_cv_header_stdc=yes
4245else
4246  ac_cv_header_stdc=no
4247fi
4248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249
4250if test $ac_cv_header_stdc = yes; then
4251  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253/* end confdefs.h.  */
4254#include <string.h>
4255
4256_ACEOF
4257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4258  $EGREP "memchr" >/dev/null 2>&1; then :
4259
4260else
4261  ac_cv_header_stdc=no
4262fi
4263rm -f conftest*
4264
4265fi
4266
4267if test $ac_cv_header_stdc = yes; then
4268  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270/* end confdefs.h.  */
4271#include <stdlib.h>
4272
4273_ACEOF
4274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275  $EGREP "free" >/dev/null 2>&1; then :
4276
4277else
4278  ac_cv_header_stdc=no
4279fi
4280rm -f conftest*
4281
4282fi
4283
4284if test $ac_cv_header_stdc = yes; then
4285  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4286  if test "$cross_compiling" = yes; then :
4287  :
4288else
4289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290/* end confdefs.h.  */
4291#include <ctype.h>
4292#include <stdlib.h>
4293#if ((' ' & 0x0FF) == 0x020)
4294# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4295# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4296#else
4297# define ISLOWER(c) \
4298		   (('a' <= (c) && (c) <= 'i') \
4299		     || ('j' <= (c) && (c) <= 'r') \
4300		     || ('s' <= (c) && (c) <= 'z'))
4301# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4302#endif
4303
4304#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4305int
4306main ()
4307{
4308  int i;
4309  for (i = 0; i < 256; i++)
4310    if (XOR (islower (i), ISLOWER (i))
4311	|| toupper (i) != TOUPPER (i))
4312      return 2;
4313  return 0;
4314}
4315_ACEOF
4316if ac_fn_c_try_run "$LINENO"; then :
4317
4318else
4319  ac_cv_header_stdc=no
4320fi
4321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4322  conftest.$ac_objext conftest.beam conftest.$ac_ext
4323fi
4324
4325fi
4326fi
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4328$as_echo "$ac_cv_header_stdc" >&6; }
4329if test $ac_cv_header_stdc = yes; then
4330
4331$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4332
4333fi
4334
4335# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4336for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4337		  inttypes.h stdint.h unistd.h
4338do :
4339  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4340ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4341"
4342if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4343  cat >>confdefs.h <<_ACEOF
4344#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4345_ACEOF
4346
4347fi
4348
4349done
4350
4351
4352
4353
4354
4355
4356ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4357if test "x$ac_cv_have_decl___clang__" = xyes; then :
4358  CLANGCC="yes"
4359else
4360  CLANGCC="no"
4361fi
4362
4363ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4364if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4365  INTELCC="yes"
4366else
4367  INTELCC="no"
4368fi
4369
4370ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4371if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4372  SUNCC="yes"
4373else
4374  SUNCC="no"
4375fi
4376
4377
4378
4379
4380if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4381	if test -n "$ac_tool_prefix"; then
4382  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4383set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385$as_echo_n "checking for $ac_word... " >&6; }
4386if ${ac_cv_path_PKG_CONFIG+:} false; then :
4387  $as_echo_n "(cached) " >&6
4388else
4389  case $PKG_CONFIG in
4390  [\\/]* | ?:[\\/]*)
4391  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4392  ;;
4393  *)
4394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397  IFS=$as_save_IFS
4398  test -z "$as_dir" && as_dir=.
4399    for ac_exec_ext in '' $ac_executable_extensions; do
4400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403    break 2
4404  fi
4405done
4406  done
4407IFS=$as_save_IFS
4408
4409  ;;
4410esac
4411fi
4412PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4413if test -n "$PKG_CONFIG"; then
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4415$as_echo "$PKG_CONFIG" >&6; }
4416else
4417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418$as_echo "no" >&6; }
4419fi
4420
4421
4422fi
4423if test -z "$ac_cv_path_PKG_CONFIG"; then
4424  ac_pt_PKG_CONFIG=$PKG_CONFIG
4425  # Extract the first word of "pkg-config", so it can be a program name with args.
4426set dummy pkg-config; ac_word=$2
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428$as_echo_n "checking for $ac_word... " >&6; }
4429if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4430  $as_echo_n "(cached) " >&6
4431else
4432  case $ac_pt_PKG_CONFIG in
4433  [\\/]* | ?:[\\/]*)
4434  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4435  ;;
4436  *)
4437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440  IFS=$as_save_IFS
4441  test -z "$as_dir" && as_dir=.
4442    for ac_exec_ext in '' $ac_executable_extensions; do
4443  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446    break 2
4447  fi
4448done
4449  done
4450IFS=$as_save_IFS
4451
4452  ;;
4453esac
4454fi
4455ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4456if test -n "$ac_pt_PKG_CONFIG"; then
4457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4458$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4459else
4460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461$as_echo "no" >&6; }
4462fi
4463
4464  if test "x$ac_pt_PKG_CONFIG" = x; then
4465    PKG_CONFIG=""
4466  else
4467    case $cross_compiling:$ac_tool_warned in
4468yes:)
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4471ac_tool_warned=yes ;;
4472esac
4473    PKG_CONFIG=$ac_pt_PKG_CONFIG
4474  fi
4475else
4476  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4477fi
4478
4479fi
4480if test -n "$PKG_CONFIG"; then
4481	_pkg_min_version=0.9.0
4482	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4483$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4484	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4486$as_echo "yes" >&6; }
4487	else
4488		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489$as_echo "no" >&6; }
4490		PKG_CONFIG=""
4491	fi
4492
4493fi
4494# Make sure we can run config.sub.
4495$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4496  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4497
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4499$as_echo_n "checking build system type... " >&6; }
4500if ${ac_cv_build+:} false; then :
4501  $as_echo_n "(cached) " >&6
4502else
4503  ac_build_alias=$build_alias
4504test "x$ac_build_alias" = x &&
4505  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4506test "x$ac_build_alias" = x &&
4507  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4508ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4509  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4510
4511fi
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4513$as_echo "$ac_cv_build" >&6; }
4514case $ac_cv_build in
4515*-*-*) ;;
4516*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4517esac
4518build=$ac_cv_build
4519ac_save_IFS=$IFS; IFS='-'
4520set x $ac_cv_build
4521shift
4522build_cpu=$1
4523build_vendor=$2
4524shift; shift
4525# Remember, the first character of IFS is used to create $*,
4526# except with old shells:
4527build_os=$*
4528IFS=$ac_save_IFS
4529case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4530
4531
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4533$as_echo_n "checking host system type... " >&6; }
4534if ${ac_cv_host+:} false; then :
4535  $as_echo_n "(cached) " >&6
4536else
4537  if test "x$host_alias" = x; then
4538  ac_cv_host=$ac_cv_build
4539else
4540  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4541    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4542fi
4543
4544fi
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4546$as_echo "$ac_cv_host" >&6; }
4547case $ac_cv_host in
4548*-*-*) ;;
4549*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4550esac
4551host=$ac_cv_host
4552ac_save_IFS=$IFS; IFS='-'
4553set x $ac_cv_host
4554shift
4555host_cpu=$1
4556host_vendor=$2
4557shift; shift
4558# Remember, the first character of IFS is used to create $*,
4559# except with old shells:
4560host_os=$*
4561IFS=$ac_save_IFS
4562case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4563
4564
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4566$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4567if ${ac_cv_path_SED+:} false; then :
4568  $as_echo_n "(cached) " >&6
4569else
4570            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4571     for ac_i in 1 2 3 4 5 6 7; do
4572       ac_script="$ac_script$as_nl$ac_script"
4573     done
4574     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4575     { ac_script=; unset ac_script;}
4576     if test -z "$SED"; then
4577  ac_path_SED_found=false
4578  # Loop through the user's path and test for each of PROGNAME-LIST
4579  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH
4581do
4582  IFS=$as_save_IFS
4583  test -z "$as_dir" && as_dir=.
4584    for ac_prog in sed gsed; do
4585    for ac_exec_ext in '' $ac_executable_extensions; do
4586      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4587      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4588# Check for GNU ac_path_SED and select it if it is found.
4589  # Check for GNU $ac_path_SED
4590case `"$ac_path_SED" --version 2>&1` in
4591*GNU*)
4592  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4593*)
4594  ac_count=0
4595  $as_echo_n 0123456789 >"conftest.in"
4596  while :
4597  do
4598    cat "conftest.in" "conftest.in" >"conftest.tmp"
4599    mv "conftest.tmp" "conftest.in"
4600    cp "conftest.in" "conftest.nl"
4601    $as_echo '' >> "conftest.nl"
4602    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4603    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604    as_fn_arith $ac_count + 1 && ac_count=$as_val
4605    if test $ac_count -gt ${ac_path_SED_max-0}; then
4606      # Best one so far, save it but keep looking for a better one
4607      ac_cv_path_SED="$ac_path_SED"
4608      ac_path_SED_max=$ac_count
4609    fi
4610    # 10*(2^10) chars as input seems more than enough
4611    test $ac_count -gt 10 && break
4612  done
4613  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614esac
4615
4616      $ac_path_SED_found && break 3
4617    done
4618  done
4619  done
4620IFS=$as_save_IFS
4621  if test -z "$ac_cv_path_SED"; then
4622    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4623  fi
4624else
4625  ac_cv_path_SED=$SED
4626fi
4627
4628fi
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4630$as_echo "$ac_cv_path_SED" >&6; }
4631 SED="$ac_cv_path_SED"
4632  rm -f conftest.sed
4633
4634
4635
4636
4637
4638
4639# Check whether --enable-selective-werror was given.
4640if test "${enable_selective_werror+set}" = set; then :
4641  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4642else
4643  SELECTIVE_WERROR=yes
4644fi
4645
4646
4647
4648
4649
4650# -v is too short to test reliably with XORG_TESTSET_CFLAG
4651if test "x$SUNCC" = "xyes"; then
4652    BASE_CFLAGS="-v"
4653else
4654    BASE_CFLAGS=""
4655fi
4656
4657# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671xorg_testset_save_CFLAGS="$CFLAGS"
4672
4673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4674	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4678  $as_echo_n "(cached) " >&6
4679else
4680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681/* end confdefs.h.  */
4682int i;
4683_ACEOF
4684if ac_fn_c_try_compile "$LINENO"; then :
4685  xorg_cv_cc_flag_unknown_warning_option=yes
4686else
4687  xorg_cv_cc_flag_unknown_warning_option=no
4688fi
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690fi
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4694	CFLAGS="$xorg_testset_save_CFLAGS"
4695fi
4696
4697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4700	fi
4701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4705  $as_echo_n "(cached) " >&6
4706else
4707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708/* end confdefs.h.  */
4709int i;
4710_ACEOF
4711if ac_fn_c_try_compile "$LINENO"; then :
4712  xorg_cv_cc_flag_unused_command_line_argument=yes
4713else
4714  xorg_cv_cc_flag_unused_command_line_argument=no
4715fi
4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717fi
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4721	CFLAGS="$xorg_testset_save_CFLAGS"
4722fi
4723
4724found="no"
4725
4726	if test $found = "no" ; then
4727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4729		fi
4730
4731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4733		fi
4734
4735		CFLAGS="$CFLAGS -Wall"
4736
4737		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4738$as_echo_n "checking if $CC supports -Wall... " >&6; }
4739		cacheid=xorg_cv_cc_flag__Wall
4740		if eval \${$cacheid+:} false; then :
4741  $as_echo_n "(cached) " >&6
4742else
4743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h.  */
4745int i;
4746int
4747main ()
4748{
4749
4750  ;
4751  return 0;
4752}
4753_ACEOF
4754if ac_fn_c_try_link "$LINENO"; then :
4755  eval $cacheid=yes
4756else
4757  eval $cacheid=no
4758fi
4759rm -f core conftest.err conftest.$ac_objext \
4760    conftest$ac_exeext conftest.$ac_ext
4761fi
4762
4763
4764		CFLAGS="$xorg_testset_save_CFLAGS"
4765
4766		eval supported=\$$cacheid
4767		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4768$as_echo "$supported" >&6; }
4769		if test "$supported" = "yes" ; then
4770			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4771			found="yes"
4772		fi
4773	fi
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789xorg_testset_save_CFLAGS="$CFLAGS"
4790
4791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4796  $as_echo_n "(cached) " >&6
4797else
4798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799/* end confdefs.h.  */
4800int i;
4801_ACEOF
4802if ac_fn_c_try_compile "$LINENO"; then :
4803  xorg_cv_cc_flag_unknown_warning_option=yes
4804else
4805  xorg_cv_cc_flag_unknown_warning_option=no
4806fi
4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808fi
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4812	CFLAGS="$xorg_testset_save_CFLAGS"
4813fi
4814
4815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4818	fi
4819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4823  $as_echo_n "(cached) " >&6
4824else
4825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h.  */
4827int i;
4828_ACEOF
4829if ac_fn_c_try_compile "$LINENO"; then :
4830  xorg_cv_cc_flag_unused_command_line_argument=yes
4831else
4832  xorg_cv_cc_flag_unused_command_line_argument=no
4833fi
4834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835fi
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4838	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4839	CFLAGS="$xorg_testset_save_CFLAGS"
4840fi
4841
4842found="no"
4843
4844	if test $found = "no" ; then
4845		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4847		fi
4848
4849		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4851		fi
4852
4853		CFLAGS="$CFLAGS -Wpointer-arith"
4854
4855		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4856$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4857		cacheid=xorg_cv_cc_flag__Wpointer_arith
4858		if eval \${$cacheid+:} false; then :
4859  $as_echo_n "(cached) " >&6
4860else
4861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862/* end confdefs.h.  */
4863int i;
4864int
4865main ()
4866{
4867
4868  ;
4869  return 0;
4870}
4871_ACEOF
4872if ac_fn_c_try_link "$LINENO"; then :
4873  eval $cacheid=yes
4874else
4875  eval $cacheid=no
4876fi
4877rm -f core conftest.err conftest.$ac_objext \
4878    conftest$ac_exeext conftest.$ac_ext
4879fi
4880
4881
4882		CFLAGS="$xorg_testset_save_CFLAGS"
4883
4884		eval supported=\$$cacheid
4885		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4886$as_echo "$supported" >&6; }
4887		if test "$supported" = "yes" ; then
4888			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4889			found="yes"
4890		fi
4891	fi
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907xorg_testset_save_CFLAGS="$CFLAGS"
4908
4909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4910	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4912$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4913if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4914  $as_echo_n "(cached) " >&6
4915else
4916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917/* end confdefs.h.  */
4918int i;
4919_ACEOF
4920if ac_fn_c_try_compile "$LINENO"; then :
4921  xorg_cv_cc_flag_unknown_warning_option=yes
4922else
4923  xorg_cv_cc_flag_unknown_warning_option=no
4924fi
4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926fi
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4928$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4929	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4930	CFLAGS="$xorg_testset_save_CFLAGS"
4931fi
4932
4933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4934	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4935		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4936	fi
4937	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4939$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4940if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4941  $as_echo_n "(cached) " >&6
4942else
4943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* end confdefs.h.  */
4945int i;
4946_ACEOF
4947if ac_fn_c_try_compile "$LINENO"; then :
4948  xorg_cv_cc_flag_unused_command_line_argument=yes
4949else
4950  xorg_cv_cc_flag_unused_command_line_argument=no
4951fi
4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953fi
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4955$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4956	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4957	CFLAGS="$xorg_testset_save_CFLAGS"
4958fi
4959
4960found="no"
4961
4962	if test $found = "no" ; then
4963		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4964			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4965		fi
4966
4967		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4968			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4969		fi
4970
4971		CFLAGS="$CFLAGS -Wmissing-declarations"
4972
4973		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4974$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4975		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4976		if eval \${$cacheid+:} false; then :
4977  $as_echo_n "(cached) " >&6
4978else
4979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980/* end confdefs.h.  */
4981int i;
4982int
4983main ()
4984{
4985
4986  ;
4987  return 0;
4988}
4989_ACEOF
4990if ac_fn_c_try_link "$LINENO"; then :
4991  eval $cacheid=yes
4992else
4993  eval $cacheid=no
4994fi
4995rm -f core conftest.err conftest.$ac_objext \
4996    conftest$ac_exeext conftest.$ac_ext
4997fi
4998
4999
5000		CFLAGS="$xorg_testset_save_CFLAGS"
5001
5002		eval supported=\$$cacheid
5003		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5004$as_echo "$supported" >&6; }
5005		if test "$supported" = "yes" ; then
5006			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5007			found="yes"
5008		fi
5009	fi
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025xorg_testset_save_CFLAGS="$CFLAGS"
5026
5027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5028	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035/* end confdefs.h.  */
5036int i;
5037_ACEOF
5038if ac_fn_c_try_compile "$LINENO"; then :
5039  xorg_cv_cc_flag_unknown_warning_option=yes
5040else
5041  xorg_cv_cc_flag_unknown_warning_option=no
5042fi
5043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044fi
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5047	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5048	CFLAGS="$xorg_testset_save_CFLAGS"
5049fi
5050
5051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5052	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5053		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5054	fi
5055	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5059  $as_echo_n "(cached) " >&6
5060else
5061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h.  */
5063int i;
5064_ACEOF
5065if ac_fn_c_try_compile "$LINENO"; then :
5066  xorg_cv_cc_flag_unused_command_line_argument=yes
5067else
5068  xorg_cv_cc_flag_unused_command_line_argument=no
5069fi
5070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071fi
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5074	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5075	CFLAGS="$xorg_testset_save_CFLAGS"
5076fi
5077
5078found="no"
5079
5080	if test $found = "no" ; then
5081		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5082			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5083		fi
5084
5085		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5086			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5087		fi
5088
5089		CFLAGS="$CFLAGS -Wformat=2"
5090
5091		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5092$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5093		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5094		if eval \${$cacheid+:} false; then :
5095  $as_echo_n "(cached) " >&6
5096else
5097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098/* end confdefs.h.  */
5099int i;
5100int
5101main ()
5102{
5103
5104  ;
5105  return 0;
5106}
5107_ACEOF
5108if ac_fn_c_try_link "$LINENO"; then :
5109  eval $cacheid=yes
5110else
5111  eval $cacheid=no
5112fi
5113rm -f core conftest.err conftest.$ac_objext \
5114    conftest$ac_exeext conftest.$ac_ext
5115fi
5116
5117
5118		CFLAGS="$xorg_testset_save_CFLAGS"
5119
5120		eval supported=\$$cacheid
5121		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5122$as_echo "$supported" >&6; }
5123		if test "$supported" = "yes" ; then
5124			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5125			found="yes"
5126		fi
5127	fi
5128
5129	if test $found = "no" ; then
5130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5132		fi
5133
5134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5136		fi
5137
5138		CFLAGS="$CFLAGS -Wformat"
5139
5140		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5141$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5142		cacheid=xorg_cv_cc_flag__Wformat
5143		if eval \${$cacheid+:} false; then :
5144  $as_echo_n "(cached) " >&6
5145else
5146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147/* end confdefs.h.  */
5148int i;
5149int
5150main ()
5151{
5152
5153  ;
5154  return 0;
5155}
5156_ACEOF
5157if ac_fn_c_try_link "$LINENO"; then :
5158  eval $cacheid=yes
5159else
5160  eval $cacheid=no
5161fi
5162rm -f core conftest.err conftest.$ac_objext \
5163    conftest$ac_exeext conftest.$ac_ext
5164fi
5165
5166
5167		CFLAGS="$xorg_testset_save_CFLAGS"
5168
5169		eval supported=\$$cacheid
5170		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5171$as_echo "$supported" >&6; }
5172		if test "$supported" = "yes" ; then
5173			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5174			found="yes"
5175		fi
5176	fi
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194xorg_testset_save_CFLAGS="$CFLAGS"
5195
5196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5201  $as_echo_n "(cached) " >&6
5202else
5203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h.  */
5205int i;
5206_ACEOF
5207if ac_fn_c_try_compile "$LINENO"; then :
5208  xorg_cv_cc_flag_unknown_warning_option=yes
5209else
5210  xorg_cv_cc_flag_unknown_warning_option=no
5211fi
5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213fi
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5217	CFLAGS="$xorg_testset_save_CFLAGS"
5218fi
5219
5220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5223	fi
5224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5228  $as_echo_n "(cached) " >&6
5229else
5230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231/* end confdefs.h.  */
5232int i;
5233_ACEOF
5234if ac_fn_c_try_compile "$LINENO"; then :
5235  xorg_cv_cc_flag_unused_command_line_argument=yes
5236else
5237  xorg_cv_cc_flag_unused_command_line_argument=no
5238fi
5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240fi
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5244	CFLAGS="$xorg_testset_save_CFLAGS"
5245fi
5246
5247found="no"
5248
5249	if test $found = "no" ; then
5250		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5252		fi
5253
5254		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5256		fi
5257
5258		CFLAGS="$CFLAGS -Wstrict-prototypes"
5259
5260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5261$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5262		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5263		if eval \${$cacheid+:} false; then :
5264  $as_echo_n "(cached) " >&6
5265else
5266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267/* end confdefs.h.  */
5268int i;
5269int
5270main ()
5271{
5272
5273  ;
5274  return 0;
5275}
5276_ACEOF
5277if ac_fn_c_try_link "$LINENO"; then :
5278  eval $cacheid=yes
5279else
5280  eval $cacheid=no
5281fi
5282rm -f core conftest.err conftest.$ac_objext \
5283    conftest$ac_exeext conftest.$ac_ext
5284fi
5285
5286
5287		CFLAGS="$xorg_testset_save_CFLAGS"
5288
5289		eval supported=\$$cacheid
5290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5291$as_echo "$supported" >&6; }
5292		if test "$supported" = "yes" ; then
5293			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5294			found="yes"
5295		fi
5296	fi
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312xorg_testset_save_CFLAGS="$CFLAGS"
5313
5314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h.  */
5323int i;
5324_ACEOF
5325if ac_fn_c_try_compile "$LINENO"; then :
5326  xorg_cv_cc_flag_unknown_warning_option=yes
5327else
5328  xorg_cv_cc_flag_unknown_warning_option=no
5329fi
5330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5335	CFLAGS="$xorg_testset_save_CFLAGS"
5336fi
5337
5338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5341	fi
5342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350int i;
5351_ACEOF
5352if ac_fn_c_try_compile "$LINENO"; then :
5353  xorg_cv_cc_flag_unused_command_line_argument=yes
5354else
5355  xorg_cv_cc_flag_unused_command_line_argument=no
5356fi
5357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358fi
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5361	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5362	CFLAGS="$xorg_testset_save_CFLAGS"
5363fi
5364
5365found="no"
5366
5367	if test $found = "no" ; then
5368		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370		fi
5371
5372		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5374		fi
5375
5376		CFLAGS="$CFLAGS -Wmissing-prototypes"
5377
5378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5379$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5380		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5381		if eval \${$cacheid+:} false; then :
5382  $as_echo_n "(cached) " >&6
5383else
5384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385/* end confdefs.h.  */
5386int i;
5387int
5388main ()
5389{
5390
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395if ac_fn_c_try_link "$LINENO"; then :
5396  eval $cacheid=yes
5397else
5398  eval $cacheid=no
5399fi
5400rm -f core conftest.err conftest.$ac_objext \
5401    conftest$ac_exeext conftest.$ac_ext
5402fi
5403
5404
5405		CFLAGS="$xorg_testset_save_CFLAGS"
5406
5407		eval supported=\$$cacheid
5408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5409$as_echo "$supported" >&6; }
5410		if test "$supported" = "yes" ; then
5411			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5412			found="yes"
5413		fi
5414	fi
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430xorg_testset_save_CFLAGS="$CFLAGS"
5431
5432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5437  $as_echo_n "(cached) " >&6
5438else
5439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h.  */
5441int i;
5442_ACEOF
5443if ac_fn_c_try_compile "$LINENO"; then :
5444  xorg_cv_cc_flag_unknown_warning_option=yes
5445else
5446  xorg_cv_cc_flag_unknown_warning_option=no
5447fi
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5453	CFLAGS="$xorg_testset_save_CFLAGS"
5454fi
5455
5456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5459	fi
5460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5464  $as_echo_n "(cached) " >&6
5465else
5466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467/* end confdefs.h.  */
5468int i;
5469_ACEOF
5470if ac_fn_c_try_compile "$LINENO"; then :
5471  xorg_cv_cc_flag_unused_command_line_argument=yes
5472else
5473  xorg_cv_cc_flag_unused_command_line_argument=no
5474fi
5475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476fi
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5480	CFLAGS="$xorg_testset_save_CFLAGS"
5481fi
5482
5483found="no"
5484
5485	if test $found = "no" ; then
5486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488		fi
5489
5490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5492		fi
5493
5494		CFLAGS="$CFLAGS -Wnested-externs"
5495
5496		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5497$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5498		cacheid=xorg_cv_cc_flag__Wnested_externs
5499		if eval \${$cacheid+:} false; then :
5500  $as_echo_n "(cached) " >&6
5501else
5502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h.  */
5504int i;
5505int
5506main ()
5507{
5508
5509  ;
5510  return 0;
5511}
5512_ACEOF
5513if ac_fn_c_try_link "$LINENO"; then :
5514  eval $cacheid=yes
5515else
5516  eval $cacheid=no
5517fi
5518rm -f core conftest.err conftest.$ac_objext \
5519    conftest$ac_exeext conftest.$ac_ext
5520fi
5521
5522
5523		CFLAGS="$xorg_testset_save_CFLAGS"
5524
5525		eval supported=\$$cacheid
5526		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5527$as_echo "$supported" >&6; }
5528		if test "$supported" = "yes" ; then
5529			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5530			found="yes"
5531		fi
5532	fi
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548xorg_testset_save_CFLAGS="$CFLAGS"
5549
5550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h.  */
5559int i;
5560_ACEOF
5561if ac_fn_c_try_compile "$LINENO"; then :
5562  xorg_cv_cc_flag_unknown_warning_option=yes
5563else
5564  xorg_cv_cc_flag_unknown_warning_option=no
5565fi
5566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567fi
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5570	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5571	CFLAGS="$xorg_testset_save_CFLAGS"
5572fi
5573
5574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5575	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5576		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5577	fi
5578	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5582  $as_echo_n "(cached) " >&6
5583else
5584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585/* end confdefs.h.  */
5586int i;
5587_ACEOF
5588if ac_fn_c_try_compile "$LINENO"; then :
5589  xorg_cv_cc_flag_unused_command_line_argument=yes
5590else
5591  xorg_cv_cc_flag_unused_command_line_argument=no
5592fi
5593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594fi
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5598	CFLAGS="$xorg_testset_save_CFLAGS"
5599fi
5600
5601found="no"
5602
5603	if test $found = "no" ; then
5604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606		fi
5607
5608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5610		fi
5611
5612		CFLAGS="$CFLAGS -Wbad-function-cast"
5613
5614		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5615$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5616		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5617		if eval \${$cacheid+:} false; then :
5618  $as_echo_n "(cached) " >&6
5619else
5620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h.  */
5622int i;
5623int
5624main ()
5625{
5626
5627  ;
5628  return 0;
5629}
5630_ACEOF
5631if ac_fn_c_try_link "$LINENO"; then :
5632  eval $cacheid=yes
5633else
5634  eval $cacheid=no
5635fi
5636rm -f core conftest.err conftest.$ac_objext \
5637    conftest$ac_exeext conftest.$ac_ext
5638fi
5639
5640
5641		CFLAGS="$xorg_testset_save_CFLAGS"
5642
5643		eval supported=\$$cacheid
5644		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5645$as_echo "$supported" >&6; }
5646		if test "$supported" = "yes" ; then
5647			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5648			found="yes"
5649		fi
5650	fi
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666xorg_testset_save_CFLAGS="$CFLAGS"
5667
5668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5673  $as_echo_n "(cached) " >&6
5674else
5675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676/* end confdefs.h.  */
5677int i;
5678_ACEOF
5679if ac_fn_c_try_compile "$LINENO"; then :
5680  xorg_cv_cc_flag_unknown_warning_option=yes
5681else
5682  xorg_cv_cc_flag_unknown_warning_option=no
5683fi
5684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685fi
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5689	CFLAGS="$xorg_testset_save_CFLAGS"
5690fi
5691
5692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5695	fi
5696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5700  $as_echo_n "(cached) " >&6
5701else
5702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703/* end confdefs.h.  */
5704int i;
5705_ACEOF
5706if ac_fn_c_try_compile "$LINENO"; then :
5707  xorg_cv_cc_flag_unused_command_line_argument=yes
5708else
5709  xorg_cv_cc_flag_unused_command_line_argument=no
5710fi
5711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712fi
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5716	CFLAGS="$xorg_testset_save_CFLAGS"
5717fi
5718
5719found="no"
5720
5721	if test $found = "no" ; then
5722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5724		fi
5725
5726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5728		fi
5729
5730		CFLAGS="$CFLAGS -Wold-style-definition"
5731
5732		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5733$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5734		cacheid=xorg_cv_cc_flag__Wold_style_definition
5735		if eval \${$cacheid+:} false; then :
5736  $as_echo_n "(cached) " >&6
5737else
5738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h.  */
5740int i;
5741int
5742main ()
5743{
5744
5745  ;
5746  return 0;
5747}
5748_ACEOF
5749if ac_fn_c_try_link "$LINENO"; then :
5750  eval $cacheid=yes
5751else
5752  eval $cacheid=no
5753fi
5754rm -f core conftest.err conftest.$ac_objext \
5755    conftest$ac_exeext conftest.$ac_ext
5756fi
5757
5758
5759		CFLAGS="$xorg_testset_save_CFLAGS"
5760
5761		eval supported=\$$cacheid
5762		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5763$as_echo "$supported" >&6; }
5764		if test "$supported" = "yes" ; then
5765			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5766			found="yes"
5767		fi
5768	fi
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784xorg_testset_save_CFLAGS="$CFLAGS"
5785
5786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5791  $as_echo_n "(cached) " >&6
5792else
5793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794/* end confdefs.h.  */
5795int i;
5796_ACEOF
5797if ac_fn_c_try_compile "$LINENO"; then :
5798  xorg_cv_cc_flag_unknown_warning_option=yes
5799else
5800  xorg_cv_cc_flag_unknown_warning_option=no
5801fi
5802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803fi
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5807	CFLAGS="$xorg_testset_save_CFLAGS"
5808fi
5809
5810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5813	fi
5814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5818  $as_echo_n "(cached) " >&6
5819else
5820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h.  */
5822int i;
5823_ACEOF
5824if ac_fn_c_try_compile "$LINENO"; then :
5825  xorg_cv_cc_flag_unused_command_line_argument=yes
5826else
5827  xorg_cv_cc_flag_unused_command_line_argument=no
5828fi
5829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830fi
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5833	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5834	CFLAGS="$xorg_testset_save_CFLAGS"
5835fi
5836
5837found="no"
5838
5839	if test $found = "no" ; then
5840		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5841			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5842		fi
5843
5844		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5845			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5846		fi
5847
5848		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5849
5850		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5851$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5852		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5853		if eval \${$cacheid+:} false; then :
5854  $as_echo_n "(cached) " >&6
5855else
5856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857/* end confdefs.h.  */
5858int i;
5859int
5860main ()
5861{
5862
5863  ;
5864  return 0;
5865}
5866_ACEOF
5867if ac_fn_c_try_link "$LINENO"; then :
5868  eval $cacheid=yes
5869else
5870  eval $cacheid=no
5871fi
5872rm -f core conftest.err conftest.$ac_objext \
5873    conftest$ac_exeext conftest.$ac_ext
5874fi
5875
5876
5877		CFLAGS="$xorg_testset_save_CFLAGS"
5878
5879		eval supported=\$$cacheid
5880		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5881$as_echo "$supported" >&6; }
5882		if test "$supported" = "yes" ; then
5883			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5884			found="yes"
5885		fi
5886	fi
5887
5888
5889
5890
5891
5892# This chunk adds additional warnings that could catch undesired effects.
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906xorg_testset_save_CFLAGS="$CFLAGS"
5907
5908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5913  $as_echo_n "(cached) " >&6
5914else
5915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916/* end confdefs.h.  */
5917int i;
5918_ACEOF
5919if ac_fn_c_try_compile "$LINENO"; then :
5920  xorg_cv_cc_flag_unknown_warning_option=yes
5921else
5922  xorg_cv_cc_flag_unknown_warning_option=no
5923fi
5924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925fi
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5928	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5929	CFLAGS="$xorg_testset_save_CFLAGS"
5930fi
5931
5932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5933	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5935	fi
5936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5940  $as_echo_n "(cached) " >&6
5941else
5942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943/* end confdefs.h.  */
5944int i;
5945_ACEOF
5946if ac_fn_c_try_compile "$LINENO"; then :
5947  xorg_cv_cc_flag_unused_command_line_argument=yes
5948else
5949  xorg_cv_cc_flag_unused_command_line_argument=no
5950fi
5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952fi
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5956	CFLAGS="$xorg_testset_save_CFLAGS"
5957fi
5958
5959found="no"
5960
5961	if test $found = "no" ; then
5962		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964		fi
5965
5966		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5968		fi
5969
5970		CFLAGS="$CFLAGS -Wunused"
5971
5972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5973$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5974		cacheid=xorg_cv_cc_flag__Wunused
5975		if eval \${$cacheid+:} false; then :
5976  $as_echo_n "(cached) " >&6
5977else
5978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979/* end confdefs.h.  */
5980int i;
5981int
5982main ()
5983{
5984
5985  ;
5986  return 0;
5987}
5988_ACEOF
5989if ac_fn_c_try_link "$LINENO"; then :
5990  eval $cacheid=yes
5991else
5992  eval $cacheid=no
5993fi
5994rm -f core conftest.err conftest.$ac_objext \
5995    conftest$ac_exeext conftest.$ac_ext
5996fi
5997
5998
5999		CFLAGS="$xorg_testset_save_CFLAGS"
6000
6001		eval supported=\$$cacheid
6002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6003$as_echo "$supported" >&6; }
6004		if test "$supported" = "yes" ; then
6005			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6006			found="yes"
6007		fi
6008	fi
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024xorg_testset_save_CFLAGS="$CFLAGS"
6025
6026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6031  $as_echo_n "(cached) " >&6
6032else
6033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034/* end confdefs.h.  */
6035int i;
6036_ACEOF
6037if ac_fn_c_try_compile "$LINENO"; then :
6038  xorg_cv_cc_flag_unknown_warning_option=yes
6039else
6040  xorg_cv_cc_flag_unknown_warning_option=no
6041fi
6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043fi
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6047	CFLAGS="$xorg_testset_save_CFLAGS"
6048fi
6049
6050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6053	fi
6054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6058  $as_echo_n "(cached) " >&6
6059else
6060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061/* end confdefs.h.  */
6062int i;
6063_ACEOF
6064if ac_fn_c_try_compile "$LINENO"; then :
6065  xorg_cv_cc_flag_unused_command_line_argument=yes
6066else
6067  xorg_cv_cc_flag_unused_command_line_argument=no
6068fi
6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070fi
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6074	CFLAGS="$xorg_testset_save_CFLAGS"
6075fi
6076
6077found="no"
6078
6079	if test $found = "no" ; then
6080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082		fi
6083
6084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6086		fi
6087
6088		CFLAGS="$CFLAGS -Wuninitialized"
6089
6090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6091$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6092		cacheid=xorg_cv_cc_flag__Wuninitialized
6093		if eval \${$cacheid+:} false; then :
6094  $as_echo_n "(cached) " >&6
6095else
6096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097/* end confdefs.h.  */
6098int i;
6099int
6100main ()
6101{
6102
6103  ;
6104  return 0;
6105}
6106_ACEOF
6107if ac_fn_c_try_link "$LINENO"; then :
6108  eval $cacheid=yes
6109else
6110  eval $cacheid=no
6111fi
6112rm -f core conftest.err conftest.$ac_objext \
6113    conftest$ac_exeext conftest.$ac_ext
6114fi
6115
6116
6117		CFLAGS="$xorg_testset_save_CFLAGS"
6118
6119		eval supported=\$$cacheid
6120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6121$as_echo "$supported" >&6; }
6122		if test "$supported" = "yes" ; then
6123			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6124			found="yes"
6125		fi
6126	fi
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142xorg_testset_save_CFLAGS="$CFLAGS"
6143
6144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6149  $as_echo_n "(cached) " >&6
6150else
6151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h.  */
6153int i;
6154_ACEOF
6155if ac_fn_c_try_compile "$LINENO"; then :
6156  xorg_cv_cc_flag_unknown_warning_option=yes
6157else
6158  xorg_cv_cc_flag_unknown_warning_option=no
6159fi
6160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161fi
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6165	CFLAGS="$xorg_testset_save_CFLAGS"
6166fi
6167
6168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6171	fi
6172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6176  $as_echo_n "(cached) " >&6
6177else
6178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h.  */
6180int i;
6181_ACEOF
6182if ac_fn_c_try_compile "$LINENO"; then :
6183  xorg_cv_cc_flag_unused_command_line_argument=yes
6184else
6185  xorg_cv_cc_flag_unused_command_line_argument=no
6186fi
6187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188fi
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6192	CFLAGS="$xorg_testset_save_CFLAGS"
6193fi
6194
6195found="no"
6196
6197	if test $found = "no" ; then
6198		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200		fi
6201
6202		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6204		fi
6205
6206		CFLAGS="$CFLAGS -Wshadow"
6207
6208		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6209$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6210		cacheid=xorg_cv_cc_flag__Wshadow
6211		if eval \${$cacheid+:} false; then :
6212  $as_echo_n "(cached) " >&6
6213else
6214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h.  */
6216int i;
6217int
6218main ()
6219{
6220
6221  ;
6222  return 0;
6223}
6224_ACEOF
6225if ac_fn_c_try_link "$LINENO"; then :
6226  eval $cacheid=yes
6227else
6228  eval $cacheid=no
6229fi
6230rm -f core conftest.err conftest.$ac_objext \
6231    conftest$ac_exeext conftest.$ac_ext
6232fi
6233
6234
6235		CFLAGS="$xorg_testset_save_CFLAGS"
6236
6237		eval supported=\$$cacheid
6238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6239$as_echo "$supported" >&6; }
6240		if test "$supported" = "yes" ; then
6241			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6242			found="yes"
6243		fi
6244	fi
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260xorg_testset_save_CFLAGS="$CFLAGS"
6261
6262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6267  $as_echo_n "(cached) " >&6
6268else
6269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h.  */
6271int i;
6272_ACEOF
6273if ac_fn_c_try_compile "$LINENO"; then :
6274  xorg_cv_cc_flag_unknown_warning_option=yes
6275else
6276  xorg_cv_cc_flag_unknown_warning_option=no
6277fi
6278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279fi
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6283	CFLAGS="$xorg_testset_save_CFLAGS"
6284fi
6285
6286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6289	fi
6290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6294  $as_echo_n "(cached) " >&6
6295else
6296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297/* end confdefs.h.  */
6298int i;
6299_ACEOF
6300if ac_fn_c_try_compile "$LINENO"; then :
6301  xorg_cv_cc_flag_unused_command_line_argument=yes
6302else
6303  xorg_cv_cc_flag_unused_command_line_argument=no
6304fi
6305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306fi
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6310	CFLAGS="$xorg_testset_save_CFLAGS"
6311fi
6312
6313found="no"
6314
6315	if test $found = "no" ; then
6316		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318		fi
6319
6320		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6322		fi
6323
6324		CFLAGS="$CFLAGS -Wcast-qual"
6325
6326		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6327$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6328		cacheid=xorg_cv_cc_flag__Wcast_qual
6329		if eval \${$cacheid+:} false; then :
6330  $as_echo_n "(cached) " >&6
6331else
6332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h.  */
6334int i;
6335int
6336main ()
6337{
6338
6339  ;
6340  return 0;
6341}
6342_ACEOF
6343if ac_fn_c_try_link "$LINENO"; then :
6344  eval $cacheid=yes
6345else
6346  eval $cacheid=no
6347fi
6348rm -f core conftest.err conftest.$ac_objext \
6349    conftest$ac_exeext conftest.$ac_ext
6350fi
6351
6352
6353		CFLAGS="$xorg_testset_save_CFLAGS"
6354
6355		eval supported=\$$cacheid
6356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6357$as_echo "$supported" >&6; }
6358		if test "$supported" = "yes" ; then
6359			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6360			found="yes"
6361		fi
6362	fi
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378xorg_testset_save_CFLAGS="$CFLAGS"
6379
6380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6381	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6385  $as_echo_n "(cached) " >&6
6386else
6387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388/* end confdefs.h.  */
6389int i;
6390_ACEOF
6391if ac_fn_c_try_compile "$LINENO"; then :
6392  xorg_cv_cc_flag_unknown_warning_option=yes
6393else
6394  xorg_cv_cc_flag_unknown_warning_option=no
6395fi
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397fi
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6401	CFLAGS="$xorg_testset_save_CFLAGS"
6402fi
6403
6404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6407	fi
6408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6412  $as_echo_n "(cached) " >&6
6413else
6414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415/* end confdefs.h.  */
6416int i;
6417_ACEOF
6418if ac_fn_c_try_compile "$LINENO"; then :
6419  xorg_cv_cc_flag_unused_command_line_argument=yes
6420else
6421  xorg_cv_cc_flag_unused_command_line_argument=no
6422fi
6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424fi
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6428	CFLAGS="$xorg_testset_save_CFLAGS"
6429fi
6430
6431found="no"
6432
6433	if test $found = "no" ; then
6434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436		fi
6437
6438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6440		fi
6441
6442		CFLAGS="$CFLAGS -Wmissing-noreturn"
6443
6444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6445$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6446		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6447		if eval \${$cacheid+:} false; then :
6448  $as_echo_n "(cached) " >&6
6449else
6450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451/* end confdefs.h.  */
6452int i;
6453int
6454main ()
6455{
6456
6457  ;
6458  return 0;
6459}
6460_ACEOF
6461if ac_fn_c_try_link "$LINENO"; then :
6462  eval $cacheid=yes
6463else
6464  eval $cacheid=no
6465fi
6466rm -f core conftest.err conftest.$ac_objext \
6467    conftest$ac_exeext conftest.$ac_ext
6468fi
6469
6470
6471		CFLAGS="$xorg_testset_save_CFLAGS"
6472
6473		eval supported=\$$cacheid
6474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6475$as_echo "$supported" >&6; }
6476		if test "$supported" = "yes" ; then
6477			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6478			found="yes"
6479		fi
6480	fi
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496xorg_testset_save_CFLAGS="$CFLAGS"
6497
6498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6503  $as_echo_n "(cached) " >&6
6504else
6505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h.  */
6507int i;
6508_ACEOF
6509if ac_fn_c_try_compile "$LINENO"; then :
6510  xorg_cv_cc_flag_unknown_warning_option=yes
6511else
6512  xorg_cv_cc_flag_unknown_warning_option=no
6513fi
6514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515fi
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6519	CFLAGS="$xorg_testset_save_CFLAGS"
6520fi
6521
6522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6525	fi
6526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6530  $as_echo_n "(cached) " >&6
6531else
6532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533/* end confdefs.h.  */
6534int i;
6535_ACEOF
6536if ac_fn_c_try_compile "$LINENO"; then :
6537  xorg_cv_cc_flag_unused_command_line_argument=yes
6538else
6539  xorg_cv_cc_flag_unused_command_line_argument=no
6540fi
6541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542fi
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6546	CFLAGS="$xorg_testset_save_CFLAGS"
6547fi
6548
6549found="no"
6550
6551	if test $found = "no" ; then
6552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6554		fi
6555
6556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6558		fi
6559
6560		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6561
6562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6563$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6564		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6565		if eval \${$cacheid+:} false; then :
6566  $as_echo_n "(cached) " >&6
6567else
6568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569/* end confdefs.h.  */
6570int i;
6571int
6572main ()
6573{
6574
6575  ;
6576  return 0;
6577}
6578_ACEOF
6579if ac_fn_c_try_link "$LINENO"; then :
6580  eval $cacheid=yes
6581else
6582  eval $cacheid=no
6583fi
6584rm -f core conftest.err conftest.$ac_objext \
6585    conftest$ac_exeext conftest.$ac_ext
6586fi
6587
6588
6589		CFLAGS="$xorg_testset_save_CFLAGS"
6590
6591		eval supported=\$$cacheid
6592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6593$as_echo "$supported" >&6; }
6594		if test "$supported" = "yes" ; then
6595			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6596			found="yes"
6597		fi
6598	fi
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614xorg_testset_save_CFLAGS="$CFLAGS"
6615
6616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6621  $as_echo_n "(cached) " >&6
6622else
6623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h.  */
6625int i;
6626_ACEOF
6627if ac_fn_c_try_compile "$LINENO"; then :
6628  xorg_cv_cc_flag_unknown_warning_option=yes
6629else
6630  xorg_cv_cc_flag_unknown_warning_option=no
6631fi
6632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633fi
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6637	CFLAGS="$xorg_testset_save_CFLAGS"
6638fi
6639
6640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6643	fi
6644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6648  $as_echo_n "(cached) " >&6
6649else
6650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651/* end confdefs.h.  */
6652int i;
6653_ACEOF
6654if ac_fn_c_try_compile "$LINENO"; then :
6655  xorg_cv_cc_flag_unused_command_line_argument=yes
6656else
6657  xorg_cv_cc_flag_unused_command_line_argument=no
6658fi
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660fi
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6664	CFLAGS="$xorg_testset_save_CFLAGS"
6665fi
6666
6667found="no"
6668
6669	if test $found = "no" ; then
6670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672		fi
6673
6674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6676		fi
6677
6678		CFLAGS="$CFLAGS -Wredundant-decls"
6679
6680		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6681$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6682		cacheid=xorg_cv_cc_flag__Wredundant_decls
6683		if eval \${$cacheid+:} false; then :
6684  $as_echo_n "(cached) " >&6
6685else
6686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687/* end confdefs.h.  */
6688int i;
6689int
6690main ()
6691{
6692
6693  ;
6694  return 0;
6695}
6696_ACEOF
6697if ac_fn_c_try_link "$LINENO"; then :
6698  eval $cacheid=yes
6699else
6700  eval $cacheid=no
6701fi
6702rm -f core conftest.err conftest.$ac_objext \
6703    conftest$ac_exeext conftest.$ac_ext
6704fi
6705
6706
6707		CFLAGS="$xorg_testset_save_CFLAGS"
6708
6709		eval supported=\$$cacheid
6710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6711$as_echo "$supported" >&6; }
6712		if test "$supported" = "yes" ; then
6713			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6714			found="yes"
6715		fi
6716	fi
6717
6718
6719
6720# These are currently disabled because they are noisy.  They will be enabled
6721# in the future once the codebase is sufficiently modernized to silence
6722# them.  For now, I don't want them to drown out the other warnings.
6723# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6724# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6725# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6726
6727# Turn some warnings into errors, so we don't accidently get successful builds
6728# when there are problems that should be fixed.
6729
6730if test "x$SELECTIVE_WERROR" = "xyes" ; then
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744xorg_testset_save_CFLAGS="$CFLAGS"
6745
6746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6747	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6749$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6750if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756_ACEOF
6757if ac_fn_c_try_compile "$LINENO"; then :
6758  xorg_cv_cc_flag_unknown_warning_option=yes
6759else
6760  xorg_cv_cc_flag_unknown_warning_option=no
6761fi
6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763fi
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6765$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6766	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6767	CFLAGS="$xorg_testset_save_CFLAGS"
6768fi
6769
6770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6771	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6772		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6773	fi
6774	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6775	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6776$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6777if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6778  $as_echo_n "(cached) " >&6
6779else
6780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781/* end confdefs.h.  */
6782int i;
6783_ACEOF
6784if ac_fn_c_try_compile "$LINENO"; then :
6785  xorg_cv_cc_flag_unused_command_line_argument=yes
6786else
6787  xorg_cv_cc_flag_unused_command_line_argument=no
6788fi
6789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790fi
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6792$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6794	CFLAGS="$xorg_testset_save_CFLAGS"
6795fi
6796
6797found="no"
6798
6799	if test $found = "no" ; then
6800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6802		fi
6803
6804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6806		fi
6807
6808		CFLAGS="$CFLAGS -Werror=implicit"
6809
6810		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6811$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6812		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6813		if eval \${$cacheid+:} false; then :
6814  $as_echo_n "(cached) " >&6
6815else
6816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817/* end confdefs.h.  */
6818int i;
6819int
6820main ()
6821{
6822
6823  ;
6824  return 0;
6825}
6826_ACEOF
6827if ac_fn_c_try_link "$LINENO"; then :
6828  eval $cacheid=yes
6829else
6830  eval $cacheid=no
6831fi
6832rm -f core conftest.err conftest.$ac_objext \
6833    conftest$ac_exeext conftest.$ac_ext
6834fi
6835
6836
6837		CFLAGS="$xorg_testset_save_CFLAGS"
6838
6839		eval supported=\$$cacheid
6840		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6841$as_echo "$supported" >&6; }
6842		if test "$supported" = "yes" ; then
6843			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6844			found="yes"
6845		fi
6846	fi
6847
6848	if test $found = "no" ; then
6849		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6851		fi
6852
6853		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6855		fi
6856
6857		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6858
6859		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6860$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6861		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6862		if eval \${$cacheid+:} false; then :
6863  $as_echo_n "(cached) " >&6
6864else
6865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866/* end confdefs.h.  */
6867int i;
6868int
6869main ()
6870{
6871
6872  ;
6873  return 0;
6874}
6875_ACEOF
6876if ac_fn_c_try_link "$LINENO"; then :
6877  eval $cacheid=yes
6878else
6879  eval $cacheid=no
6880fi
6881rm -f core conftest.err conftest.$ac_objext \
6882    conftest$ac_exeext conftest.$ac_ext
6883fi
6884
6885
6886		CFLAGS="$xorg_testset_save_CFLAGS"
6887
6888		eval supported=\$$cacheid
6889		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6890$as_echo "$supported" >&6; }
6891		if test "$supported" = "yes" ; then
6892			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6893			found="yes"
6894		fi
6895	fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911xorg_testset_save_CFLAGS="$CFLAGS"
6912
6913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h.  */
6922int i;
6923_ACEOF
6924if ac_fn_c_try_compile "$LINENO"; then :
6925  xorg_cv_cc_flag_unknown_warning_option=yes
6926else
6927  xorg_cv_cc_flag_unknown_warning_option=no
6928fi
6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930fi
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6934	CFLAGS="$xorg_testset_save_CFLAGS"
6935fi
6936
6937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940	fi
6941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949int i;
6950_ACEOF
6951if ac_fn_c_try_compile "$LINENO"; then :
6952  xorg_cv_cc_flag_unused_command_line_argument=yes
6953else
6954  xorg_cv_cc_flag_unused_command_line_argument=no
6955fi
6956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957fi
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6961	CFLAGS="$xorg_testset_save_CFLAGS"
6962fi
6963
6964found="no"
6965
6966	if test $found = "no" ; then
6967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969		fi
6970
6971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6973		fi
6974
6975		CFLAGS="$CFLAGS -Werror=nonnull"
6976
6977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6978$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6979		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6980		if eval \${$cacheid+:} false; then :
6981  $as_echo_n "(cached) " >&6
6982else
6983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984/* end confdefs.h.  */
6985int i;
6986int
6987main ()
6988{
6989
6990  ;
6991  return 0;
6992}
6993_ACEOF
6994if ac_fn_c_try_link "$LINENO"; then :
6995  eval $cacheid=yes
6996else
6997  eval $cacheid=no
6998fi
6999rm -f core conftest.err conftest.$ac_objext \
7000    conftest$ac_exeext conftest.$ac_ext
7001fi
7002
7003
7004		CFLAGS="$xorg_testset_save_CFLAGS"
7005
7006		eval supported=\$$cacheid
7007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7008$as_echo "$supported" >&6; }
7009		if test "$supported" = "yes" ; then
7010			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7011			found="yes"
7012		fi
7013	fi
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029xorg_testset_save_CFLAGS="$CFLAGS"
7030
7031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7036  $as_echo_n "(cached) " >&6
7037else
7038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039/* end confdefs.h.  */
7040int i;
7041_ACEOF
7042if ac_fn_c_try_compile "$LINENO"; then :
7043  xorg_cv_cc_flag_unknown_warning_option=yes
7044else
7045  xorg_cv_cc_flag_unknown_warning_option=no
7046fi
7047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048fi
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7052	CFLAGS="$xorg_testset_save_CFLAGS"
7053fi
7054
7055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058	fi
7059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066/* end confdefs.h.  */
7067int i;
7068_ACEOF
7069if ac_fn_c_try_compile "$LINENO"; then :
7070  xorg_cv_cc_flag_unused_command_line_argument=yes
7071else
7072  xorg_cv_cc_flag_unused_command_line_argument=no
7073fi
7074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075fi
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7078	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7079	CFLAGS="$xorg_testset_save_CFLAGS"
7080fi
7081
7082found="no"
7083
7084	if test $found = "no" ; then
7085		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087		fi
7088
7089		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7091		fi
7092
7093		CFLAGS="$CFLAGS -Werror=init-self"
7094
7095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7096$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7097		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7098		if eval \${$cacheid+:} false; then :
7099  $as_echo_n "(cached) " >&6
7100else
7101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h.  */
7103int i;
7104int
7105main ()
7106{
7107
7108  ;
7109  return 0;
7110}
7111_ACEOF
7112if ac_fn_c_try_link "$LINENO"; then :
7113  eval $cacheid=yes
7114else
7115  eval $cacheid=no
7116fi
7117rm -f core conftest.err conftest.$ac_objext \
7118    conftest$ac_exeext conftest.$ac_ext
7119fi
7120
7121
7122		CFLAGS="$xorg_testset_save_CFLAGS"
7123
7124		eval supported=\$$cacheid
7125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7126$as_echo "$supported" >&6; }
7127		if test "$supported" = "yes" ; then
7128			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7129			found="yes"
7130		fi
7131	fi
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147xorg_testset_save_CFLAGS="$CFLAGS"
7148
7149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7150	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7154  $as_echo_n "(cached) " >&6
7155else
7156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157/* end confdefs.h.  */
7158int i;
7159_ACEOF
7160if ac_fn_c_try_compile "$LINENO"; then :
7161  xorg_cv_cc_flag_unknown_warning_option=yes
7162else
7163  xorg_cv_cc_flag_unknown_warning_option=no
7164fi
7165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166fi
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7169	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7170	CFLAGS="$xorg_testset_save_CFLAGS"
7171fi
7172
7173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7174	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7176	fi
7177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7181  $as_echo_n "(cached) " >&6
7182else
7183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184/* end confdefs.h.  */
7185int i;
7186_ACEOF
7187if ac_fn_c_try_compile "$LINENO"; then :
7188  xorg_cv_cc_flag_unused_command_line_argument=yes
7189else
7190  xorg_cv_cc_flag_unused_command_line_argument=no
7191fi
7192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7193fi
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7196	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7197	CFLAGS="$xorg_testset_save_CFLAGS"
7198fi
7199
7200found="no"
7201
7202	if test $found = "no" ; then
7203		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7204			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205		fi
7206
7207		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7208			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7209		fi
7210
7211		CFLAGS="$CFLAGS -Werror=main"
7212
7213		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7214$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7215		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7216		if eval \${$cacheid+:} false; then :
7217  $as_echo_n "(cached) " >&6
7218else
7219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h.  */
7221int i;
7222int
7223main ()
7224{
7225
7226  ;
7227  return 0;
7228}
7229_ACEOF
7230if ac_fn_c_try_link "$LINENO"; then :
7231  eval $cacheid=yes
7232else
7233  eval $cacheid=no
7234fi
7235rm -f core conftest.err conftest.$ac_objext \
7236    conftest$ac_exeext conftest.$ac_ext
7237fi
7238
7239
7240		CFLAGS="$xorg_testset_save_CFLAGS"
7241
7242		eval supported=\$$cacheid
7243		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7244$as_echo "$supported" >&6; }
7245		if test "$supported" = "yes" ; then
7246			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7247			found="yes"
7248		fi
7249	fi
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265xorg_testset_save_CFLAGS="$CFLAGS"
7266
7267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7272  $as_echo_n "(cached) " >&6
7273else
7274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275/* end confdefs.h.  */
7276int i;
7277_ACEOF
7278if ac_fn_c_try_compile "$LINENO"; then :
7279  xorg_cv_cc_flag_unknown_warning_option=yes
7280else
7281  xorg_cv_cc_flag_unknown_warning_option=no
7282fi
7283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284fi
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7287	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7288	CFLAGS="$xorg_testset_save_CFLAGS"
7289fi
7290
7291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7292	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7293		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7294	fi
7295	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7299  $as_echo_n "(cached) " >&6
7300else
7301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302/* end confdefs.h.  */
7303int i;
7304_ACEOF
7305if ac_fn_c_try_compile "$LINENO"; then :
7306  xorg_cv_cc_flag_unused_command_line_argument=yes
7307else
7308  xorg_cv_cc_flag_unused_command_line_argument=no
7309fi
7310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311fi
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7314	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7315	CFLAGS="$xorg_testset_save_CFLAGS"
7316fi
7317
7318found="no"
7319
7320	if test $found = "no" ; then
7321		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323		fi
7324
7325		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7327		fi
7328
7329		CFLAGS="$CFLAGS -Werror=missing-braces"
7330
7331		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7332$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7333		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7334		if eval \${$cacheid+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338/* end confdefs.h.  */
7339int i;
7340int
7341main ()
7342{
7343
7344  ;
7345  return 0;
7346}
7347_ACEOF
7348if ac_fn_c_try_link "$LINENO"; then :
7349  eval $cacheid=yes
7350else
7351  eval $cacheid=no
7352fi
7353rm -f core conftest.err conftest.$ac_objext \
7354    conftest$ac_exeext conftest.$ac_ext
7355fi
7356
7357
7358		CFLAGS="$xorg_testset_save_CFLAGS"
7359
7360		eval supported=\$$cacheid
7361		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7362$as_echo "$supported" >&6; }
7363		if test "$supported" = "yes" ; then
7364			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7365			found="yes"
7366		fi
7367	fi
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383xorg_testset_save_CFLAGS="$CFLAGS"
7384
7385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7386	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7390  $as_echo_n "(cached) " >&6
7391else
7392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393/* end confdefs.h.  */
7394int i;
7395_ACEOF
7396if ac_fn_c_try_compile "$LINENO"; then :
7397  xorg_cv_cc_flag_unknown_warning_option=yes
7398else
7399  xorg_cv_cc_flag_unknown_warning_option=no
7400fi
7401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402fi
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7406	CFLAGS="$xorg_testset_save_CFLAGS"
7407fi
7408
7409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7412	fi
7413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7417  $as_echo_n "(cached) " >&6
7418else
7419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420/* end confdefs.h.  */
7421int i;
7422_ACEOF
7423if ac_fn_c_try_compile "$LINENO"; then :
7424  xorg_cv_cc_flag_unused_command_line_argument=yes
7425else
7426  xorg_cv_cc_flag_unused_command_line_argument=no
7427fi
7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429fi
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7432	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7433	CFLAGS="$xorg_testset_save_CFLAGS"
7434fi
7435
7436found="no"
7437
7438	if test $found = "no" ; then
7439		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7440			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7441		fi
7442
7443		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7444			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7445		fi
7446
7447		CFLAGS="$CFLAGS -Werror=sequence-point"
7448
7449		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7450$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7451		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7452		if eval \${$cacheid+:} false; then :
7453  $as_echo_n "(cached) " >&6
7454else
7455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h.  */
7457int i;
7458int
7459main ()
7460{
7461
7462  ;
7463  return 0;
7464}
7465_ACEOF
7466if ac_fn_c_try_link "$LINENO"; then :
7467  eval $cacheid=yes
7468else
7469  eval $cacheid=no
7470fi
7471rm -f core conftest.err conftest.$ac_objext \
7472    conftest$ac_exeext conftest.$ac_ext
7473fi
7474
7475
7476		CFLAGS="$xorg_testset_save_CFLAGS"
7477
7478		eval supported=\$$cacheid
7479		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7480$as_echo "$supported" >&6; }
7481		if test "$supported" = "yes" ; then
7482			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7483			found="yes"
7484		fi
7485	fi
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501xorg_testset_save_CFLAGS="$CFLAGS"
7502
7503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7508  $as_echo_n "(cached) " >&6
7509else
7510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511/* end confdefs.h.  */
7512int i;
7513_ACEOF
7514if ac_fn_c_try_compile "$LINENO"; then :
7515  xorg_cv_cc_flag_unknown_warning_option=yes
7516else
7517  xorg_cv_cc_flag_unknown_warning_option=no
7518fi
7519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520fi
7521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7524	CFLAGS="$xorg_testset_save_CFLAGS"
7525fi
7526
7527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7530	fi
7531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7535  $as_echo_n "(cached) " >&6
7536else
7537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538/* end confdefs.h.  */
7539int i;
7540_ACEOF
7541if ac_fn_c_try_compile "$LINENO"; then :
7542  xorg_cv_cc_flag_unused_command_line_argument=yes
7543else
7544  xorg_cv_cc_flag_unused_command_line_argument=no
7545fi
7546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547fi
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7551	CFLAGS="$xorg_testset_save_CFLAGS"
7552fi
7553
7554found="no"
7555
7556	if test $found = "no" ; then
7557		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7559		fi
7560
7561		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7563		fi
7564
7565		CFLAGS="$CFLAGS -Werror=return-type"
7566
7567		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7568$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7569		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7570		if eval \${$cacheid+:} false; then :
7571  $as_echo_n "(cached) " >&6
7572else
7573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574/* end confdefs.h.  */
7575int i;
7576int
7577main ()
7578{
7579
7580  ;
7581  return 0;
7582}
7583_ACEOF
7584if ac_fn_c_try_link "$LINENO"; then :
7585  eval $cacheid=yes
7586else
7587  eval $cacheid=no
7588fi
7589rm -f core conftest.err conftest.$ac_objext \
7590    conftest$ac_exeext conftest.$ac_ext
7591fi
7592
7593
7594		CFLAGS="$xorg_testset_save_CFLAGS"
7595
7596		eval supported=\$$cacheid
7597		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7598$as_echo "$supported" >&6; }
7599		if test "$supported" = "yes" ; then
7600			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7601			found="yes"
7602		fi
7603	fi
7604
7605	if test $found = "no" ; then
7606		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7607			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7608		fi
7609
7610		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7611			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7612		fi
7613
7614		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7615
7616		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7617$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7618		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7619		if eval \${$cacheid+:} false; then :
7620  $as_echo_n "(cached) " >&6
7621else
7622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623/* end confdefs.h.  */
7624int i;
7625int
7626main ()
7627{
7628
7629  ;
7630  return 0;
7631}
7632_ACEOF
7633if ac_fn_c_try_link "$LINENO"; then :
7634  eval $cacheid=yes
7635else
7636  eval $cacheid=no
7637fi
7638rm -f core conftest.err conftest.$ac_objext \
7639    conftest$ac_exeext conftest.$ac_ext
7640fi
7641
7642
7643		CFLAGS="$xorg_testset_save_CFLAGS"
7644
7645		eval supported=\$$cacheid
7646		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7647$as_echo "$supported" >&6; }
7648		if test "$supported" = "yes" ; then
7649			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7650			found="yes"
7651		fi
7652	fi
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668xorg_testset_save_CFLAGS="$CFLAGS"
7669
7670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7673$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7674if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7675  $as_echo_n "(cached) " >&6
7676else
7677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h.  */
7679int i;
7680_ACEOF
7681if ac_fn_c_try_compile "$LINENO"; then :
7682  xorg_cv_cc_flag_unknown_warning_option=yes
7683else
7684  xorg_cv_cc_flag_unknown_warning_option=no
7685fi
7686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687fi
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7689$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7690	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7691	CFLAGS="$xorg_testset_save_CFLAGS"
7692fi
7693
7694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7695	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7697	fi
7698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7700$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7701if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7702  $as_echo_n "(cached) " >&6
7703else
7704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705/* end confdefs.h.  */
7706int i;
7707_ACEOF
7708if ac_fn_c_try_compile "$LINENO"; then :
7709  xorg_cv_cc_flag_unused_command_line_argument=yes
7710else
7711  xorg_cv_cc_flag_unused_command_line_argument=no
7712fi
7713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714fi
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7716$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7718	CFLAGS="$xorg_testset_save_CFLAGS"
7719fi
7720
7721found="no"
7722
7723	if test $found = "no" ; then
7724		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726		fi
7727
7728		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7730		fi
7731
7732		CFLAGS="$CFLAGS -Werror=trigraphs"
7733
7734		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7735$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7736		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7737		if eval \${$cacheid+:} false; then :
7738  $as_echo_n "(cached) " >&6
7739else
7740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741/* end confdefs.h.  */
7742int i;
7743int
7744main ()
7745{
7746
7747  ;
7748  return 0;
7749}
7750_ACEOF
7751if ac_fn_c_try_link "$LINENO"; then :
7752  eval $cacheid=yes
7753else
7754  eval $cacheid=no
7755fi
7756rm -f core conftest.err conftest.$ac_objext \
7757    conftest$ac_exeext conftest.$ac_ext
7758fi
7759
7760
7761		CFLAGS="$xorg_testset_save_CFLAGS"
7762
7763		eval supported=\$$cacheid
7764		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7765$as_echo "$supported" >&6; }
7766		if test "$supported" = "yes" ; then
7767			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7768			found="yes"
7769		fi
7770	fi
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786xorg_testset_save_CFLAGS="$CFLAGS"
7787
7788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h.  */
7797int i;
7798_ACEOF
7799if ac_fn_c_try_compile "$LINENO"; then :
7800  xorg_cv_cc_flag_unknown_warning_option=yes
7801else
7802  xorg_cv_cc_flag_unknown_warning_option=no
7803fi
7804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7809	CFLAGS="$xorg_testset_save_CFLAGS"
7810fi
7811
7812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7815	fi
7816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7820  $as_echo_n "(cached) " >&6
7821else
7822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823/* end confdefs.h.  */
7824int i;
7825_ACEOF
7826if ac_fn_c_try_compile "$LINENO"; then :
7827  xorg_cv_cc_flag_unused_command_line_argument=yes
7828else
7829  xorg_cv_cc_flag_unused_command_line_argument=no
7830fi
7831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832fi
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7836	CFLAGS="$xorg_testset_save_CFLAGS"
7837fi
7838
7839found="no"
7840
7841	if test $found = "no" ; then
7842		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844		fi
7845
7846		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7848		fi
7849
7850		CFLAGS="$CFLAGS -Werror=array-bounds"
7851
7852		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7853$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7854		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7855		if eval \${$cacheid+:} false; then :
7856  $as_echo_n "(cached) " >&6
7857else
7858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859/* end confdefs.h.  */
7860int i;
7861int
7862main ()
7863{
7864
7865  ;
7866  return 0;
7867}
7868_ACEOF
7869if ac_fn_c_try_link "$LINENO"; then :
7870  eval $cacheid=yes
7871else
7872  eval $cacheid=no
7873fi
7874rm -f core conftest.err conftest.$ac_objext \
7875    conftest$ac_exeext conftest.$ac_ext
7876fi
7877
7878
7879		CFLAGS="$xorg_testset_save_CFLAGS"
7880
7881		eval supported=\$$cacheid
7882		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7883$as_echo "$supported" >&6; }
7884		if test "$supported" = "yes" ; then
7885			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7886			found="yes"
7887		fi
7888	fi
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904xorg_testset_save_CFLAGS="$CFLAGS"
7905
7906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7907	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7911  $as_echo_n "(cached) " >&6
7912else
7913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h.  */
7915int i;
7916_ACEOF
7917if ac_fn_c_try_compile "$LINENO"; then :
7918  xorg_cv_cc_flag_unknown_warning_option=yes
7919else
7920  xorg_cv_cc_flag_unknown_warning_option=no
7921fi
7922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7927	CFLAGS="$xorg_testset_save_CFLAGS"
7928fi
7929
7930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7933	fi
7934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7938  $as_echo_n "(cached) " >&6
7939else
7940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941/* end confdefs.h.  */
7942int i;
7943_ACEOF
7944if ac_fn_c_try_compile "$LINENO"; then :
7945  xorg_cv_cc_flag_unused_command_line_argument=yes
7946else
7947  xorg_cv_cc_flag_unused_command_line_argument=no
7948fi
7949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950fi
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7953	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7954	CFLAGS="$xorg_testset_save_CFLAGS"
7955fi
7956
7957found="no"
7958
7959	if test $found = "no" ; then
7960		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962		fi
7963
7964		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7966		fi
7967
7968		CFLAGS="$CFLAGS -Werror=write-strings"
7969
7970		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7971$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7972		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7973		if eval \${$cacheid+:} false; then :
7974  $as_echo_n "(cached) " >&6
7975else
7976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977/* end confdefs.h.  */
7978int i;
7979int
7980main ()
7981{
7982
7983  ;
7984  return 0;
7985}
7986_ACEOF
7987if ac_fn_c_try_link "$LINENO"; then :
7988  eval $cacheid=yes
7989else
7990  eval $cacheid=no
7991fi
7992rm -f core conftest.err conftest.$ac_objext \
7993    conftest$ac_exeext conftest.$ac_ext
7994fi
7995
7996
7997		CFLAGS="$xorg_testset_save_CFLAGS"
7998
7999		eval supported=\$$cacheid
8000		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8001$as_echo "$supported" >&6; }
8002		if test "$supported" = "yes" ; then
8003			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8004			found="yes"
8005		fi
8006	fi
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022xorg_testset_save_CFLAGS="$CFLAGS"
8023
8024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8029  $as_echo_n "(cached) " >&6
8030else
8031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032/* end confdefs.h.  */
8033int i;
8034_ACEOF
8035if ac_fn_c_try_compile "$LINENO"; then :
8036  xorg_cv_cc_flag_unknown_warning_option=yes
8037else
8038  xorg_cv_cc_flag_unknown_warning_option=no
8039fi
8040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041fi
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8045	CFLAGS="$xorg_testset_save_CFLAGS"
8046fi
8047
8048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8051	fi
8052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8056  $as_echo_n "(cached) " >&6
8057else
8058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059/* end confdefs.h.  */
8060int i;
8061_ACEOF
8062if ac_fn_c_try_compile "$LINENO"; then :
8063  xorg_cv_cc_flag_unused_command_line_argument=yes
8064else
8065  xorg_cv_cc_flag_unused_command_line_argument=no
8066fi
8067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068fi
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8071	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8072	CFLAGS="$xorg_testset_save_CFLAGS"
8073fi
8074
8075found="no"
8076
8077	if test $found = "no" ; then
8078		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8079			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8080		fi
8081
8082		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8083			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8084		fi
8085
8086		CFLAGS="$CFLAGS -Werror=address"
8087
8088		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8089$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8090		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8091		if eval \${$cacheid+:} false; then :
8092  $as_echo_n "(cached) " >&6
8093else
8094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095/* end confdefs.h.  */
8096int i;
8097int
8098main ()
8099{
8100
8101  ;
8102  return 0;
8103}
8104_ACEOF
8105if ac_fn_c_try_link "$LINENO"; then :
8106  eval $cacheid=yes
8107else
8108  eval $cacheid=no
8109fi
8110rm -f core conftest.err conftest.$ac_objext \
8111    conftest$ac_exeext conftest.$ac_ext
8112fi
8113
8114
8115		CFLAGS="$xorg_testset_save_CFLAGS"
8116
8117		eval supported=\$$cacheid
8118		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8119$as_echo "$supported" >&6; }
8120		if test "$supported" = "yes" ; then
8121			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8122			found="yes"
8123		fi
8124	fi
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140xorg_testset_save_CFLAGS="$CFLAGS"
8141
8142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8145$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8146if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8147  $as_echo_n "(cached) " >&6
8148else
8149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150/* end confdefs.h.  */
8151int i;
8152_ACEOF
8153if ac_fn_c_try_compile "$LINENO"; then :
8154  xorg_cv_cc_flag_unknown_warning_option=yes
8155else
8156  xorg_cv_cc_flag_unknown_warning_option=no
8157fi
8158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159fi
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8161$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8163	CFLAGS="$xorg_testset_save_CFLAGS"
8164fi
8165
8166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8169	fi
8170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8172$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8173if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8174  $as_echo_n "(cached) " >&6
8175else
8176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177/* end confdefs.h.  */
8178int i;
8179_ACEOF
8180if ac_fn_c_try_compile "$LINENO"; then :
8181  xorg_cv_cc_flag_unused_command_line_argument=yes
8182else
8183  xorg_cv_cc_flag_unused_command_line_argument=no
8184fi
8185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186fi
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8188$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8189	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8190	CFLAGS="$xorg_testset_save_CFLAGS"
8191fi
8192
8193found="no"
8194
8195	if test $found = "no" ; then
8196		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8198		fi
8199
8200		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8202		fi
8203
8204		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8205
8206		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8207$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8208		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8209		if eval \${$cacheid+:} false; then :
8210  $as_echo_n "(cached) " >&6
8211else
8212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213/* end confdefs.h.  */
8214int i;
8215int
8216main ()
8217{
8218
8219  ;
8220  return 0;
8221}
8222_ACEOF
8223if ac_fn_c_try_link "$LINENO"; then :
8224  eval $cacheid=yes
8225else
8226  eval $cacheid=no
8227fi
8228rm -f core conftest.err conftest.$ac_objext \
8229    conftest$ac_exeext conftest.$ac_ext
8230fi
8231
8232
8233		CFLAGS="$xorg_testset_save_CFLAGS"
8234
8235		eval supported=\$$cacheid
8236		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8237$as_echo "$supported" >&6; }
8238		if test "$supported" = "yes" ; then
8239			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8240			found="yes"
8241		fi
8242	fi
8243
8244	if test $found = "no" ; then
8245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8247		fi
8248
8249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8251		fi
8252
8253		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8254
8255		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8256$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8257		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8258		if eval \${$cacheid+:} false; then :
8259  $as_echo_n "(cached) " >&6
8260else
8261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262/* end confdefs.h.  */
8263int i;
8264int
8265main ()
8266{
8267
8268  ;
8269  return 0;
8270}
8271_ACEOF
8272if ac_fn_c_try_link "$LINENO"; then :
8273  eval $cacheid=yes
8274else
8275  eval $cacheid=no
8276fi
8277rm -f core conftest.err conftest.$ac_objext \
8278    conftest$ac_exeext conftest.$ac_ext
8279fi
8280
8281
8282		CFLAGS="$xorg_testset_save_CFLAGS"
8283
8284		eval supported=\$$cacheid
8285		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8286$as_echo "$supported" >&6; }
8287		if test "$supported" = "yes" ; then
8288			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8289			found="yes"
8290		fi
8291	fi
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307xorg_testset_save_CFLAGS="$CFLAGS"
8308
8309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8314  $as_echo_n "(cached) " >&6
8315else
8316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317/* end confdefs.h.  */
8318int i;
8319_ACEOF
8320if ac_fn_c_try_compile "$LINENO"; then :
8321  xorg_cv_cc_flag_unknown_warning_option=yes
8322else
8323  xorg_cv_cc_flag_unknown_warning_option=no
8324fi
8325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326fi
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8330	CFLAGS="$xorg_testset_save_CFLAGS"
8331fi
8332
8333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336	fi
8337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8341  $as_echo_n "(cached) " >&6
8342else
8343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344/* end confdefs.h.  */
8345int i;
8346_ACEOF
8347if ac_fn_c_try_compile "$LINENO"; then :
8348  xorg_cv_cc_flag_unused_command_line_argument=yes
8349else
8350  xorg_cv_cc_flag_unused_command_line_argument=no
8351fi
8352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353fi
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8357	CFLAGS="$xorg_testset_save_CFLAGS"
8358fi
8359
8360found="no"
8361
8362	if test $found = "no" ; then
8363		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8365		fi
8366
8367		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8369		fi
8370
8371		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8372
8373		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8374$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8375		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8376		if eval \${$cacheid+:} false; then :
8377  $as_echo_n "(cached) " >&6
8378else
8379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380/* end confdefs.h.  */
8381int i;
8382int
8383main ()
8384{
8385
8386  ;
8387  return 0;
8388}
8389_ACEOF
8390if ac_fn_c_try_link "$LINENO"; then :
8391  eval $cacheid=yes
8392else
8393  eval $cacheid=no
8394fi
8395rm -f core conftest.err conftest.$ac_objext \
8396    conftest$ac_exeext conftest.$ac_ext
8397fi
8398
8399
8400		CFLAGS="$xorg_testset_save_CFLAGS"
8401
8402		eval supported=\$$cacheid
8403		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8404$as_echo "$supported" >&6; }
8405		if test "$supported" = "yes" ; then
8406			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8407			found="yes"
8408		fi
8409	fi
8410
8411 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8412else
8413{ $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
8414$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;}
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428xorg_testset_save_CFLAGS="$CFLAGS"
8429
8430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8435  $as_echo_n "(cached) " >&6
8436else
8437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438/* end confdefs.h.  */
8439int i;
8440_ACEOF
8441if ac_fn_c_try_compile "$LINENO"; then :
8442  xorg_cv_cc_flag_unknown_warning_option=yes
8443else
8444  xorg_cv_cc_flag_unknown_warning_option=no
8445fi
8446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447fi
8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8451	CFLAGS="$xorg_testset_save_CFLAGS"
8452fi
8453
8454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8457	fi
8458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8462  $as_echo_n "(cached) " >&6
8463else
8464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465/* end confdefs.h.  */
8466int i;
8467_ACEOF
8468if ac_fn_c_try_compile "$LINENO"; then :
8469  xorg_cv_cc_flag_unused_command_line_argument=yes
8470else
8471  xorg_cv_cc_flag_unused_command_line_argument=no
8472fi
8473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474fi
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8478	CFLAGS="$xorg_testset_save_CFLAGS"
8479fi
8480
8481found="no"
8482
8483	if test $found = "no" ; then
8484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486		fi
8487
8488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8490		fi
8491
8492		CFLAGS="$CFLAGS -Wimplicit"
8493
8494		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8495$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8496		cacheid=xorg_cv_cc_flag__Wimplicit
8497		if eval \${$cacheid+:} false; then :
8498  $as_echo_n "(cached) " >&6
8499else
8500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501/* end confdefs.h.  */
8502int i;
8503int
8504main ()
8505{
8506
8507  ;
8508  return 0;
8509}
8510_ACEOF
8511if ac_fn_c_try_link "$LINENO"; then :
8512  eval $cacheid=yes
8513else
8514  eval $cacheid=no
8515fi
8516rm -f core conftest.err conftest.$ac_objext \
8517    conftest$ac_exeext conftest.$ac_ext
8518fi
8519
8520
8521		CFLAGS="$xorg_testset_save_CFLAGS"
8522
8523		eval supported=\$$cacheid
8524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8525$as_echo "$supported" >&6; }
8526		if test "$supported" = "yes" ; then
8527			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8528			found="yes"
8529		fi
8530	fi
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546xorg_testset_save_CFLAGS="$CFLAGS"
8547
8548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8553  $as_echo_n "(cached) " >&6
8554else
8555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556/* end confdefs.h.  */
8557int i;
8558_ACEOF
8559if ac_fn_c_try_compile "$LINENO"; then :
8560  xorg_cv_cc_flag_unknown_warning_option=yes
8561else
8562  xorg_cv_cc_flag_unknown_warning_option=no
8563fi
8564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565fi
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8569	CFLAGS="$xorg_testset_save_CFLAGS"
8570fi
8571
8572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8575	fi
8576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8580  $as_echo_n "(cached) " >&6
8581else
8582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583/* end confdefs.h.  */
8584int i;
8585_ACEOF
8586if ac_fn_c_try_compile "$LINENO"; then :
8587  xorg_cv_cc_flag_unused_command_line_argument=yes
8588else
8589  xorg_cv_cc_flag_unused_command_line_argument=no
8590fi
8591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592fi
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8596	CFLAGS="$xorg_testset_save_CFLAGS"
8597fi
8598
8599found="no"
8600
8601	if test $found = "no" ; then
8602		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604		fi
8605
8606		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8608		fi
8609
8610		CFLAGS="$CFLAGS -Wnonnull"
8611
8612		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8613$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8614		cacheid=xorg_cv_cc_flag__Wnonnull
8615		if eval \${$cacheid+:} false; then :
8616  $as_echo_n "(cached) " >&6
8617else
8618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619/* end confdefs.h.  */
8620int i;
8621int
8622main ()
8623{
8624
8625  ;
8626  return 0;
8627}
8628_ACEOF
8629if ac_fn_c_try_link "$LINENO"; then :
8630  eval $cacheid=yes
8631else
8632  eval $cacheid=no
8633fi
8634rm -f core conftest.err conftest.$ac_objext \
8635    conftest$ac_exeext conftest.$ac_ext
8636fi
8637
8638
8639		CFLAGS="$xorg_testset_save_CFLAGS"
8640
8641		eval supported=\$$cacheid
8642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8643$as_echo "$supported" >&6; }
8644		if test "$supported" = "yes" ; then
8645			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8646			found="yes"
8647		fi
8648	fi
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664xorg_testset_save_CFLAGS="$CFLAGS"
8665
8666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8667	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8671  $as_echo_n "(cached) " >&6
8672else
8673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674/* end confdefs.h.  */
8675int i;
8676_ACEOF
8677if ac_fn_c_try_compile "$LINENO"; then :
8678  xorg_cv_cc_flag_unknown_warning_option=yes
8679else
8680  xorg_cv_cc_flag_unknown_warning_option=no
8681fi
8682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683fi
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8687	CFLAGS="$xorg_testset_save_CFLAGS"
8688fi
8689
8690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8693	fi
8694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8698  $as_echo_n "(cached) " >&6
8699else
8700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701/* end confdefs.h.  */
8702int i;
8703_ACEOF
8704if ac_fn_c_try_compile "$LINENO"; then :
8705  xorg_cv_cc_flag_unused_command_line_argument=yes
8706else
8707  xorg_cv_cc_flag_unused_command_line_argument=no
8708fi
8709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710fi
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8714	CFLAGS="$xorg_testset_save_CFLAGS"
8715fi
8716
8717found="no"
8718
8719	if test $found = "no" ; then
8720		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722		fi
8723
8724		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8726		fi
8727
8728		CFLAGS="$CFLAGS -Winit-self"
8729
8730		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8731$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8732		cacheid=xorg_cv_cc_flag__Winit_self
8733		if eval \${$cacheid+:} false; then :
8734  $as_echo_n "(cached) " >&6
8735else
8736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737/* end confdefs.h.  */
8738int i;
8739int
8740main ()
8741{
8742
8743  ;
8744  return 0;
8745}
8746_ACEOF
8747if ac_fn_c_try_link "$LINENO"; then :
8748  eval $cacheid=yes
8749else
8750  eval $cacheid=no
8751fi
8752rm -f core conftest.err conftest.$ac_objext \
8753    conftest$ac_exeext conftest.$ac_ext
8754fi
8755
8756
8757		CFLAGS="$xorg_testset_save_CFLAGS"
8758
8759		eval supported=\$$cacheid
8760		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8761$as_echo "$supported" >&6; }
8762		if test "$supported" = "yes" ; then
8763			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8764			found="yes"
8765		fi
8766	fi
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782xorg_testset_save_CFLAGS="$CFLAGS"
8783
8784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8785	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8786	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8789  $as_echo_n "(cached) " >&6
8790else
8791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792/* end confdefs.h.  */
8793int i;
8794_ACEOF
8795if ac_fn_c_try_compile "$LINENO"; then :
8796  xorg_cv_cc_flag_unknown_warning_option=yes
8797else
8798  xorg_cv_cc_flag_unknown_warning_option=no
8799fi
8800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801fi
8802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8804	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8805	CFLAGS="$xorg_testset_save_CFLAGS"
8806fi
8807
8808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8809	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8810		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8811	fi
8812	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8816  $as_echo_n "(cached) " >&6
8817else
8818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819/* end confdefs.h.  */
8820int i;
8821_ACEOF
8822if ac_fn_c_try_compile "$LINENO"; then :
8823  xorg_cv_cc_flag_unused_command_line_argument=yes
8824else
8825  xorg_cv_cc_flag_unused_command_line_argument=no
8826fi
8827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828fi
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8831	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8832	CFLAGS="$xorg_testset_save_CFLAGS"
8833fi
8834
8835found="no"
8836
8837	if test $found = "no" ; then
8838		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8839			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840		fi
8841
8842		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8843			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8844		fi
8845
8846		CFLAGS="$CFLAGS -Wmain"
8847
8848		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8849$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8850		cacheid=xorg_cv_cc_flag__Wmain
8851		if eval \${$cacheid+:} false; then :
8852  $as_echo_n "(cached) " >&6
8853else
8854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855/* end confdefs.h.  */
8856int i;
8857int
8858main ()
8859{
8860
8861  ;
8862  return 0;
8863}
8864_ACEOF
8865if ac_fn_c_try_link "$LINENO"; then :
8866  eval $cacheid=yes
8867else
8868  eval $cacheid=no
8869fi
8870rm -f core conftest.err conftest.$ac_objext \
8871    conftest$ac_exeext conftest.$ac_ext
8872fi
8873
8874
8875		CFLAGS="$xorg_testset_save_CFLAGS"
8876
8877		eval supported=\$$cacheid
8878		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8879$as_echo "$supported" >&6; }
8880		if test "$supported" = "yes" ; then
8881			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8882			found="yes"
8883		fi
8884	fi
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900xorg_testset_save_CFLAGS="$CFLAGS"
8901
8902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8903	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8907  $as_echo_n "(cached) " >&6
8908else
8909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910/* end confdefs.h.  */
8911int i;
8912_ACEOF
8913if ac_fn_c_try_compile "$LINENO"; then :
8914  xorg_cv_cc_flag_unknown_warning_option=yes
8915else
8916  xorg_cv_cc_flag_unknown_warning_option=no
8917fi
8918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919fi
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8923	CFLAGS="$xorg_testset_save_CFLAGS"
8924fi
8925
8926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8929	fi
8930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8934  $as_echo_n "(cached) " >&6
8935else
8936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937/* end confdefs.h.  */
8938int i;
8939_ACEOF
8940if ac_fn_c_try_compile "$LINENO"; then :
8941  xorg_cv_cc_flag_unused_command_line_argument=yes
8942else
8943  xorg_cv_cc_flag_unused_command_line_argument=no
8944fi
8945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946fi
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8950	CFLAGS="$xorg_testset_save_CFLAGS"
8951fi
8952
8953found="no"
8954
8955	if test $found = "no" ; then
8956		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958		fi
8959
8960		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8962		fi
8963
8964		CFLAGS="$CFLAGS -Wmissing-braces"
8965
8966		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8967$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8968		cacheid=xorg_cv_cc_flag__Wmissing_braces
8969		if eval \${$cacheid+:} false; then :
8970  $as_echo_n "(cached) " >&6
8971else
8972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973/* end confdefs.h.  */
8974int i;
8975int
8976main ()
8977{
8978
8979  ;
8980  return 0;
8981}
8982_ACEOF
8983if ac_fn_c_try_link "$LINENO"; then :
8984  eval $cacheid=yes
8985else
8986  eval $cacheid=no
8987fi
8988rm -f core conftest.err conftest.$ac_objext \
8989    conftest$ac_exeext conftest.$ac_ext
8990fi
8991
8992
8993		CFLAGS="$xorg_testset_save_CFLAGS"
8994
8995		eval supported=\$$cacheid
8996		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8997$as_echo "$supported" >&6; }
8998		if test "$supported" = "yes" ; then
8999			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9000			found="yes"
9001		fi
9002	fi
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018xorg_testset_save_CFLAGS="$CFLAGS"
9019
9020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9021	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9023$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9024if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9025  $as_echo_n "(cached) " >&6
9026else
9027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028/* end confdefs.h.  */
9029int i;
9030_ACEOF
9031if ac_fn_c_try_compile "$LINENO"; then :
9032  xorg_cv_cc_flag_unknown_warning_option=yes
9033else
9034  xorg_cv_cc_flag_unknown_warning_option=no
9035fi
9036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9037fi
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9039$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9040	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9041	CFLAGS="$xorg_testset_save_CFLAGS"
9042fi
9043
9044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9045	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9046		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9047	fi
9048	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9050$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9051if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9052  $as_echo_n "(cached) " >&6
9053else
9054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055/* end confdefs.h.  */
9056int i;
9057_ACEOF
9058if ac_fn_c_try_compile "$LINENO"; then :
9059  xorg_cv_cc_flag_unused_command_line_argument=yes
9060else
9061  xorg_cv_cc_flag_unused_command_line_argument=no
9062fi
9063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064fi
9065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9066$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9068	CFLAGS="$xorg_testset_save_CFLAGS"
9069fi
9070
9071found="no"
9072
9073	if test $found = "no" ; then
9074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076		fi
9077
9078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9080		fi
9081
9082		CFLAGS="$CFLAGS -Wsequence-point"
9083
9084		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9085$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9086		cacheid=xorg_cv_cc_flag__Wsequence_point
9087		if eval \${$cacheid+:} false; then :
9088  $as_echo_n "(cached) " >&6
9089else
9090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091/* end confdefs.h.  */
9092int i;
9093int
9094main ()
9095{
9096
9097  ;
9098  return 0;
9099}
9100_ACEOF
9101if ac_fn_c_try_link "$LINENO"; then :
9102  eval $cacheid=yes
9103else
9104  eval $cacheid=no
9105fi
9106rm -f core conftest.err conftest.$ac_objext \
9107    conftest$ac_exeext conftest.$ac_ext
9108fi
9109
9110
9111		CFLAGS="$xorg_testset_save_CFLAGS"
9112
9113		eval supported=\$$cacheid
9114		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9115$as_echo "$supported" >&6; }
9116		if test "$supported" = "yes" ; then
9117			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9118			found="yes"
9119		fi
9120	fi
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136xorg_testset_save_CFLAGS="$CFLAGS"
9137
9138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9139	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9141$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9142if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9143  $as_echo_n "(cached) " >&6
9144else
9145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146/* end confdefs.h.  */
9147int i;
9148_ACEOF
9149if ac_fn_c_try_compile "$LINENO"; then :
9150  xorg_cv_cc_flag_unknown_warning_option=yes
9151else
9152  xorg_cv_cc_flag_unknown_warning_option=no
9153fi
9154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155fi
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9157$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9158	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9159	CFLAGS="$xorg_testset_save_CFLAGS"
9160fi
9161
9162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9163	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9164		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9165	fi
9166	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9168$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9169if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9170  $as_echo_n "(cached) " >&6
9171else
9172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173/* end confdefs.h.  */
9174int i;
9175_ACEOF
9176if ac_fn_c_try_compile "$LINENO"; then :
9177  xorg_cv_cc_flag_unused_command_line_argument=yes
9178else
9179  xorg_cv_cc_flag_unused_command_line_argument=no
9180fi
9181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182fi
9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9184$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9185	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9186	CFLAGS="$xorg_testset_save_CFLAGS"
9187fi
9188
9189found="no"
9190
9191	if test $found = "no" ; then
9192		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9193			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194		fi
9195
9196		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9197			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9198		fi
9199
9200		CFLAGS="$CFLAGS -Wreturn-type"
9201
9202		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9203$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9204		cacheid=xorg_cv_cc_flag__Wreturn_type
9205		if eval \${$cacheid+:} false; then :
9206  $as_echo_n "(cached) " >&6
9207else
9208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209/* end confdefs.h.  */
9210int i;
9211int
9212main ()
9213{
9214
9215  ;
9216  return 0;
9217}
9218_ACEOF
9219if ac_fn_c_try_link "$LINENO"; then :
9220  eval $cacheid=yes
9221else
9222  eval $cacheid=no
9223fi
9224rm -f core conftest.err conftest.$ac_objext \
9225    conftest$ac_exeext conftest.$ac_ext
9226fi
9227
9228
9229		CFLAGS="$xorg_testset_save_CFLAGS"
9230
9231		eval supported=\$$cacheid
9232		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9233$as_echo "$supported" >&6; }
9234		if test "$supported" = "yes" ; then
9235			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9236			found="yes"
9237		fi
9238	fi
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254xorg_testset_save_CFLAGS="$CFLAGS"
9255
9256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9257	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9261  $as_echo_n "(cached) " >&6
9262else
9263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264/* end confdefs.h.  */
9265int i;
9266_ACEOF
9267if ac_fn_c_try_compile "$LINENO"; then :
9268  xorg_cv_cc_flag_unknown_warning_option=yes
9269else
9270  xorg_cv_cc_flag_unknown_warning_option=no
9271fi
9272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273fi
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9276	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9277	CFLAGS="$xorg_testset_save_CFLAGS"
9278fi
9279
9280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9281	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9282		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9283	fi
9284	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9288  $as_echo_n "(cached) " >&6
9289else
9290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291/* end confdefs.h.  */
9292int i;
9293_ACEOF
9294if ac_fn_c_try_compile "$LINENO"; then :
9295  xorg_cv_cc_flag_unused_command_line_argument=yes
9296else
9297  xorg_cv_cc_flag_unused_command_line_argument=no
9298fi
9299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300fi
9301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9304	CFLAGS="$xorg_testset_save_CFLAGS"
9305fi
9306
9307found="no"
9308
9309	if test $found = "no" ; then
9310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312		fi
9313
9314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9316		fi
9317
9318		CFLAGS="$CFLAGS -Wtrigraphs"
9319
9320		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9321$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9322		cacheid=xorg_cv_cc_flag__Wtrigraphs
9323		if eval \${$cacheid+:} false; then :
9324  $as_echo_n "(cached) " >&6
9325else
9326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327/* end confdefs.h.  */
9328int i;
9329int
9330main ()
9331{
9332
9333  ;
9334  return 0;
9335}
9336_ACEOF
9337if ac_fn_c_try_link "$LINENO"; then :
9338  eval $cacheid=yes
9339else
9340  eval $cacheid=no
9341fi
9342rm -f core conftest.err conftest.$ac_objext \
9343    conftest$ac_exeext conftest.$ac_ext
9344fi
9345
9346
9347		CFLAGS="$xorg_testset_save_CFLAGS"
9348
9349		eval supported=\$$cacheid
9350		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9351$as_echo "$supported" >&6; }
9352		if test "$supported" = "yes" ; then
9353			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9354			found="yes"
9355		fi
9356	fi
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372xorg_testset_save_CFLAGS="$CFLAGS"
9373
9374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9375	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9379  $as_echo_n "(cached) " >&6
9380else
9381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382/* end confdefs.h.  */
9383int i;
9384_ACEOF
9385if ac_fn_c_try_compile "$LINENO"; then :
9386  xorg_cv_cc_flag_unknown_warning_option=yes
9387else
9388  xorg_cv_cc_flag_unknown_warning_option=no
9389fi
9390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391fi
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9394	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9395	CFLAGS="$xorg_testset_save_CFLAGS"
9396fi
9397
9398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9399	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9400		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9401	fi
9402	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9406  $as_echo_n "(cached) " >&6
9407else
9408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409/* end confdefs.h.  */
9410int i;
9411_ACEOF
9412if ac_fn_c_try_compile "$LINENO"; then :
9413  xorg_cv_cc_flag_unused_command_line_argument=yes
9414else
9415  xorg_cv_cc_flag_unused_command_line_argument=no
9416fi
9417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418fi
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9422	CFLAGS="$xorg_testset_save_CFLAGS"
9423fi
9424
9425found="no"
9426
9427	if test $found = "no" ; then
9428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430		fi
9431
9432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9434		fi
9435
9436		CFLAGS="$CFLAGS -Warray-bounds"
9437
9438		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9439$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9440		cacheid=xorg_cv_cc_flag__Warray_bounds
9441		if eval \${$cacheid+:} false; then :
9442  $as_echo_n "(cached) " >&6
9443else
9444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445/* end confdefs.h.  */
9446int i;
9447int
9448main ()
9449{
9450
9451  ;
9452  return 0;
9453}
9454_ACEOF
9455if ac_fn_c_try_link "$LINENO"; then :
9456  eval $cacheid=yes
9457else
9458  eval $cacheid=no
9459fi
9460rm -f core conftest.err conftest.$ac_objext \
9461    conftest$ac_exeext conftest.$ac_ext
9462fi
9463
9464
9465		CFLAGS="$xorg_testset_save_CFLAGS"
9466
9467		eval supported=\$$cacheid
9468		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9469$as_echo "$supported" >&6; }
9470		if test "$supported" = "yes" ; then
9471			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9472			found="yes"
9473		fi
9474	fi
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490xorg_testset_save_CFLAGS="$CFLAGS"
9491
9492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9493	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9497  $as_echo_n "(cached) " >&6
9498else
9499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500/* end confdefs.h.  */
9501int i;
9502_ACEOF
9503if ac_fn_c_try_compile "$LINENO"; then :
9504  xorg_cv_cc_flag_unknown_warning_option=yes
9505else
9506  xorg_cv_cc_flag_unknown_warning_option=no
9507fi
9508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509fi
9510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9512	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9513	CFLAGS="$xorg_testset_save_CFLAGS"
9514fi
9515
9516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9517	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9518		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9519	fi
9520	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9524  $as_echo_n "(cached) " >&6
9525else
9526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527/* end confdefs.h.  */
9528int i;
9529_ACEOF
9530if ac_fn_c_try_compile "$LINENO"; then :
9531  xorg_cv_cc_flag_unused_command_line_argument=yes
9532else
9533  xorg_cv_cc_flag_unused_command_line_argument=no
9534fi
9535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9536fi
9537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9540	CFLAGS="$xorg_testset_save_CFLAGS"
9541fi
9542
9543found="no"
9544
9545	if test $found = "no" ; then
9546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548		fi
9549
9550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552		fi
9553
9554		CFLAGS="$CFLAGS -Wwrite-strings"
9555
9556		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9557$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9558		cacheid=xorg_cv_cc_flag__Wwrite_strings
9559		if eval \${$cacheid+:} false; then :
9560  $as_echo_n "(cached) " >&6
9561else
9562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563/* end confdefs.h.  */
9564int i;
9565int
9566main ()
9567{
9568
9569  ;
9570  return 0;
9571}
9572_ACEOF
9573if ac_fn_c_try_link "$LINENO"; then :
9574  eval $cacheid=yes
9575else
9576  eval $cacheid=no
9577fi
9578rm -f core conftest.err conftest.$ac_objext \
9579    conftest$ac_exeext conftest.$ac_ext
9580fi
9581
9582
9583		CFLAGS="$xorg_testset_save_CFLAGS"
9584
9585		eval supported=\$$cacheid
9586		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9587$as_echo "$supported" >&6; }
9588		if test "$supported" = "yes" ; then
9589			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9590			found="yes"
9591		fi
9592	fi
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608xorg_testset_save_CFLAGS="$CFLAGS"
9609
9610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9615  $as_echo_n "(cached) " >&6
9616else
9617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618/* end confdefs.h.  */
9619int i;
9620_ACEOF
9621if ac_fn_c_try_compile "$LINENO"; then :
9622  xorg_cv_cc_flag_unknown_warning_option=yes
9623else
9624  xorg_cv_cc_flag_unknown_warning_option=no
9625fi
9626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9627fi
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9630	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9631	CFLAGS="$xorg_testset_save_CFLAGS"
9632fi
9633
9634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9635	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9636		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9637	fi
9638	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9642  $as_echo_n "(cached) " >&6
9643else
9644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645/* end confdefs.h.  */
9646int i;
9647_ACEOF
9648if ac_fn_c_try_compile "$LINENO"; then :
9649  xorg_cv_cc_flag_unused_command_line_argument=yes
9650else
9651  xorg_cv_cc_flag_unused_command_line_argument=no
9652fi
9653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654fi
9655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9657	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9658	CFLAGS="$xorg_testset_save_CFLAGS"
9659fi
9660
9661found="no"
9662
9663	if test $found = "no" ; then
9664		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666		fi
9667
9668		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9670		fi
9671
9672		CFLAGS="$CFLAGS -Waddress"
9673
9674		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9675$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9676		cacheid=xorg_cv_cc_flag__Waddress
9677		if eval \${$cacheid+:} false; then :
9678  $as_echo_n "(cached) " >&6
9679else
9680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681/* end confdefs.h.  */
9682int i;
9683int
9684main ()
9685{
9686
9687  ;
9688  return 0;
9689}
9690_ACEOF
9691if ac_fn_c_try_link "$LINENO"; then :
9692  eval $cacheid=yes
9693else
9694  eval $cacheid=no
9695fi
9696rm -f core conftest.err conftest.$ac_objext \
9697    conftest$ac_exeext conftest.$ac_ext
9698fi
9699
9700
9701		CFLAGS="$xorg_testset_save_CFLAGS"
9702
9703		eval supported=\$$cacheid
9704		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9705$as_echo "$supported" >&6; }
9706		if test "$supported" = "yes" ; then
9707			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9708			found="yes"
9709		fi
9710	fi
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726xorg_testset_save_CFLAGS="$CFLAGS"
9727
9728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9733  $as_echo_n "(cached) " >&6
9734else
9735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736/* end confdefs.h.  */
9737int i;
9738_ACEOF
9739if ac_fn_c_try_compile "$LINENO"; then :
9740  xorg_cv_cc_flag_unknown_warning_option=yes
9741else
9742  xorg_cv_cc_flag_unknown_warning_option=no
9743fi
9744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745fi
9746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9748	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9749	CFLAGS="$xorg_testset_save_CFLAGS"
9750fi
9751
9752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9753	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9754		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9755	fi
9756	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9760  $as_echo_n "(cached) " >&6
9761else
9762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763/* end confdefs.h.  */
9764int i;
9765_ACEOF
9766if ac_fn_c_try_compile "$LINENO"; then :
9767  xorg_cv_cc_flag_unused_command_line_argument=yes
9768else
9769  xorg_cv_cc_flag_unused_command_line_argument=no
9770fi
9771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9772fi
9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9775	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9776	CFLAGS="$xorg_testset_save_CFLAGS"
9777fi
9778
9779found="no"
9780
9781	if test $found = "no" ; then
9782		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9783			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9784		fi
9785
9786		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9787			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9788		fi
9789
9790		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9791
9792		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9793$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9794		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9795		if eval \${$cacheid+:} false; then :
9796  $as_echo_n "(cached) " >&6
9797else
9798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799/* end confdefs.h.  */
9800int i;
9801int
9802main ()
9803{
9804
9805  ;
9806  return 0;
9807}
9808_ACEOF
9809if ac_fn_c_try_link "$LINENO"; then :
9810  eval $cacheid=yes
9811else
9812  eval $cacheid=no
9813fi
9814rm -f core conftest.err conftest.$ac_objext \
9815    conftest$ac_exeext conftest.$ac_ext
9816fi
9817
9818
9819		CFLAGS="$xorg_testset_save_CFLAGS"
9820
9821		eval supported=\$$cacheid
9822		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9823$as_echo "$supported" >&6; }
9824		if test "$supported" = "yes" ; then
9825			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9826			found="yes"
9827		fi
9828	fi
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844xorg_testset_save_CFLAGS="$CFLAGS"
9845
9846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9847	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9851  $as_echo_n "(cached) " >&6
9852else
9853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854/* end confdefs.h.  */
9855int i;
9856_ACEOF
9857if ac_fn_c_try_compile "$LINENO"; then :
9858  xorg_cv_cc_flag_unknown_warning_option=yes
9859else
9860  xorg_cv_cc_flag_unknown_warning_option=no
9861fi
9862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9863fi
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9867	CFLAGS="$xorg_testset_save_CFLAGS"
9868fi
9869
9870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9873	fi
9874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9878  $as_echo_n "(cached) " >&6
9879else
9880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881/* end confdefs.h.  */
9882int i;
9883_ACEOF
9884if ac_fn_c_try_compile "$LINENO"; then :
9885  xorg_cv_cc_flag_unused_command_line_argument=yes
9886else
9887  xorg_cv_cc_flag_unused_command_line_argument=no
9888fi
9889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890fi
9891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9893	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9894	CFLAGS="$xorg_testset_save_CFLAGS"
9895fi
9896
9897found="no"
9898
9899	if test $found = "no" ; then
9900		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9901			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9902		fi
9903
9904		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9905			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9906		fi
9907
9908		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9909
9910		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9911$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9912		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9913		if eval \${$cacheid+:} false; then :
9914  $as_echo_n "(cached) " >&6
9915else
9916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917/* end confdefs.h.  */
9918int i;
9919int
9920main ()
9921{
9922
9923  ;
9924  return 0;
9925}
9926_ACEOF
9927if ac_fn_c_try_link "$LINENO"; then :
9928  eval $cacheid=yes
9929else
9930  eval $cacheid=no
9931fi
9932rm -f core conftest.err conftest.$ac_objext \
9933    conftest$ac_exeext conftest.$ac_ext
9934fi
9935
9936
9937		CFLAGS="$xorg_testset_save_CFLAGS"
9938
9939		eval supported=\$$cacheid
9940		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9941$as_echo "$supported" >&6; }
9942		if test "$supported" = "yes" ; then
9943			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9944			found="yes"
9945		fi
9946	fi
9947
9948
9949fi
9950
9951
9952
9953
9954
9955
9956
9957		CWARNFLAGS="$BASE_CFLAGS"
9958		if  test "x$GCC" = xyes ; then
9959		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9960		fi
9961
9962
9963
9964
9965
9966
9967
9968
9969# Check whether --enable-strict-compilation was given.
9970if test "${enable_strict_compilation+set}" = set; then :
9971  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9972else
9973  STRICT_COMPILE=no
9974fi
9975
9976
9977
9978
9979
9980
9981STRICT_CFLAGS=""
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995xorg_testset_save_CFLAGS="$CFLAGS"
9996
9997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10002  $as_echo_n "(cached) " >&6
10003else
10004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005/* end confdefs.h.  */
10006int i;
10007_ACEOF
10008if ac_fn_c_try_compile "$LINENO"; then :
10009  xorg_cv_cc_flag_unknown_warning_option=yes
10010else
10011  xorg_cv_cc_flag_unknown_warning_option=no
10012fi
10013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014fi
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10018	CFLAGS="$xorg_testset_save_CFLAGS"
10019fi
10020
10021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024	fi
10025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10029  $as_echo_n "(cached) " >&6
10030else
10031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032/* end confdefs.h.  */
10033int i;
10034_ACEOF
10035if ac_fn_c_try_compile "$LINENO"; then :
10036  xorg_cv_cc_flag_unused_command_line_argument=yes
10037else
10038  xorg_cv_cc_flag_unused_command_line_argument=no
10039fi
10040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041fi
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10045	CFLAGS="$xorg_testset_save_CFLAGS"
10046fi
10047
10048found="no"
10049
10050	if test $found = "no" ; then
10051		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10053		fi
10054
10055		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10057		fi
10058
10059		CFLAGS="$CFLAGS -pedantic"
10060
10061		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10062$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10063		cacheid=xorg_cv_cc_flag__pedantic
10064		if eval \${$cacheid+:} false; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068/* end confdefs.h.  */
10069int i;
10070int
10071main ()
10072{
10073
10074  ;
10075  return 0;
10076}
10077_ACEOF
10078if ac_fn_c_try_link "$LINENO"; then :
10079  eval $cacheid=yes
10080else
10081  eval $cacheid=no
10082fi
10083rm -f core conftest.err conftest.$ac_objext \
10084    conftest$ac_exeext conftest.$ac_ext
10085fi
10086
10087
10088		CFLAGS="$xorg_testset_save_CFLAGS"
10089
10090		eval supported=\$$cacheid
10091		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10092$as_echo "$supported" >&6; }
10093		if test "$supported" = "yes" ; then
10094			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10095			found="yes"
10096		fi
10097	fi
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113xorg_testset_save_CFLAGS="$CFLAGS"
10114
10115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10120  $as_echo_n "(cached) " >&6
10121else
10122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h.  */
10124int i;
10125_ACEOF
10126if ac_fn_c_try_compile "$LINENO"; then :
10127  xorg_cv_cc_flag_unknown_warning_option=yes
10128else
10129  xorg_cv_cc_flag_unknown_warning_option=no
10130fi
10131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10132fi
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10135	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10136	CFLAGS="$xorg_testset_save_CFLAGS"
10137fi
10138
10139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10140	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10141		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142	fi
10143	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10147  $as_echo_n "(cached) " >&6
10148else
10149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150/* end confdefs.h.  */
10151int i;
10152_ACEOF
10153if ac_fn_c_try_compile "$LINENO"; then :
10154  xorg_cv_cc_flag_unused_command_line_argument=yes
10155else
10156  xorg_cv_cc_flag_unused_command_line_argument=no
10157fi
10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159fi
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10163	CFLAGS="$xorg_testset_save_CFLAGS"
10164fi
10165
10166found="no"
10167
10168	if test $found = "no" ; then
10169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10171		fi
10172
10173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10175		fi
10176
10177		CFLAGS="$CFLAGS -Werror"
10178
10179		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10180$as_echo_n "checking if $CC supports -Werror... " >&6; }
10181		cacheid=xorg_cv_cc_flag__Werror
10182		if eval \${$cacheid+:} false; then :
10183  $as_echo_n "(cached) " >&6
10184else
10185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186/* end confdefs.h.  */
10187int i;
10188int
10189main ()
10190{
10191
10192  ;
10193  return 0;
10194}
10195_ACEOF
10196if ac_fn_c_try_link "$LINENO"; then :
10197  eval $cacheid=yes
10198else
10199  eval $cacheid=no
10200fi
10201rm -f core conftest.err conftest.$ac_objext \
10202    conftest$ac_exeext conftest.$ac_ext
10203fi
10204
10205
10206		CFLAGS="$xorg_testset_save_CFLAGS"
10207
10208		eval supported=\$$cacheid
10209		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10210$as_echo "$supported" >&6; }
10211		if test "$supported" = "yes" ; then
10212			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10213			found="yes"
10214		fi
10215	fi
10216
10217	if test $found = "no" ; then
10218		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10220		fi
10221
10222		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10224		fi
10225
10226		CFLAGS="$CFLAGS -errwarn"
10227
10228		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10229$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10230		cacheid=xorg_cv_cc_flag__errwarn
10231		if eval \${$cacheid+:} false; then :
10232  $as_echo_n "(cached) " >&6
10233else
10234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235/* end confdefs.h.  */
10236int i;
10237int
10238main ()
10239{
10240
10241  ;
10242  return 0;
10243}
10244_ACEOF
10245if ac_fn_c_try_link "$LINENO"; then :
10246  eval $cacheid=yes
10247else
10248  eval $cacheid=no
10249fi
10250rm -f core conftest.err conftest.$ac_objext \
10251    conftest$ac_exeext conftest.$ac_ext
10252fi
10253
10254
10255		CFLAGS="$xorg_testset_save_CFLAGS"
10256
10257		eval supported=\$$cacheid
10258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10259$as_echo "$supported" >&6; }
10260		if test "$supported" = "yes" ; then
10261			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10262			found="yes"
10263		fi
10264	fi
10265
10266
10267
10268# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10269# activate it with -Werror, so we add it here explicitly.
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283xorg_testset_save_CFLAGS="$CFLAGS"
10284
10285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10286	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10290  $as_echo_n "(cached) " >&6
10291else
10292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293/* end confdefs.h.  */
10294int i;
10295_ACEOF
10296if ac_fn_c_try_compile "$LINENO"; then :
10297  xorg_cv_cc_flag_unknown_warning_option=yes
10298else
10299  xorg_cv_cc_flag_unknown_warning_option=no
10300fi
10301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10302fi
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10305	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10306	CFLAGS="$xorg_testset_save_CFLAGS"
10307fi
10308
10309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10310	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10311		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10312	fi
10313	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320/* end confdefs.h.  */
10321int i;
10322_ACEOF
10323if ac_fn_c_try_compile "$LINENO"; then :
10324  xorg_cv_cc_flag_unused_command_line_argument=yes
10325else
10326  xorg_cv_cc_flag_unused_command_line_argument=no
10327fi
10328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10329fi
10330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10332	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10333	CFLAGS="$xorg_testset_save_CFLAGS"
10334fi
10335
10336found="no"
10337
10338	if test $found = "no" ; then
10339		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10340			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10341		fi
10342
10343		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10344			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10345		fi
10346
10347		CFLAGS="$CFLAGS -Werror=attributes"
10348
10349		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10350$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10351		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10352		if eval \${$cacheid+:} false; then :
10353  $as_echo_n "(cached) " >&6
10354else
10355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356/* end confdefs.h.  */
10357int i;
10358int
10359main ()
10360{
10361
10362  ;
10363  return 0;
10364}
10365_ACEOF
10366if ac_fn_c_try_link "$LINENO"; then :
10367  eval $cacheid=yes
10368else
10369  eval $cacheid=no
10370fi
10371rm -f core conftest.err conftest.$ac_objext \
10372    conftest$ac_exeext conftest.$ac_ext
10373fi
10374
10375
10376		CFLAGS="$xorg_testset_save_CFLAGS"
10377
10378		eval supported=\$$cacheid
10379		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10380$as_echo "$supported" >&6; }
10381		if test "$supported" = "yes" ; then
10382			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10383			found="yes"
10384		fi
10385	fi
10386
10387
10388
10389if test "x$STRICT_COMPILE" = "xyes"; then
10390    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10391    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10392fi
10393
10394
10395
10396
10397
10398
10399cat >>confdefs.h <<_ACEOF
10400#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10401_ACEOF
10402
10403	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10404	if test "x$PVM" = "x"; then
10405		PVM="0"
10406	fi
10407
10408cat >>confdefs.h <<_ACEOF
10409#define PACKAGE_VERSION_MINOR $PVM
10410_ACEOF
10411
10412	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10413	if test "x$PVP" = "x"; then
10414		PVP="0"
10415	fi
10416
10417cat >>confdefs.h <<_ACEOF
10418#define PACKAGE_VERSION_PATCHLEVEL $PVP
10419_ACEOF
10420
10421
10422
10423CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10424mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10425|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10426echo 'git directory not found: installing possibly empty changelog.' >&2)"
10427
10428
10429
10430
10431macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10432INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10433mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10434|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10435echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10436
10437
10438
10439
10440
10441
10442if test x$APP_MAN_SUFFIX = x    ; then
10443    APP_MAN_SUFFIX=1
10444fi
10445if test x$APP_MAN_DIR = x    ; then
10446    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10447fi
10448
10449if test x$LIB_MAN_SUFFIX = x    ; then
10450    LIB_MAN_SUFFIX=3
10451fi
10452if test x$LIB_MAN_DIR = x    ; then
10453    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10454fi
10455
10456if test x$FILE_MAN_SUFFIX = x    ; then
10457    case $host_os in
10458	solaris*)	FILE_MAN_SUFFIX=4  ;;
10459	*)		FILE_MAN_SUFFIX=5  ;;
10460    esac
10461fi
10462if test x$FILE_MAN_DIR = x    ; then
10463    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10464fi
10465
10466if test x$MISC_MAN_SUFFIX = x    ; then
10467    case $host_os in
10468	solaris*)	MISC_MAN_SUFFIX=5  ;;
10469	*)		MISC_MAN_SUFFIX=7  ;;
10470    esac
10471fi
10472if test x$MISC_MAN_DIR = x    ; then
10473    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10474fi
10475
10476if test x$DRIVER_MAN_SUFFIX = x    ; then
10477    case $host_os in
10478	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10479	*)		DRIVER_MAN_SUFFIX=4  ;;
10480    esac
10481fi
10482if test x$DRIVER_MAN_DIR = x    ; then
10483    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10484fi
10485
10486if test x$ADMIN_MAN_SUFFIX = x    ; then
10487    case $host_os in
10488	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10489	*)		ADMIN_MAN_SUFFIX=8  ;;
10490    esac
10491fi
10492if test x$ADMIN_MAN_DIR = x    ; then
10493    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10494fi
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510XORG_MAN_PAGE="X Version 11"
10511
10512MAN_SUBSTS="\
10513	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10514	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10515	-e 's|__xservername__|Xorg|g' \
10516	-e 's|__xconfigfile__|xorg.conf|g' \
10517	-e 's|__projectroot__|\$(prefix)|g' \
10518	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10519	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10520	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10521	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10522	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10523	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10524	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10525
10526
10527
10528# Check whether --enable-silent-rules was given.
10529if test "${enable_silent_rules+set}" = set; then :
10530  enableval=$enable_silent_rules;
10531fi
10532
10533case $enable_silent_rules in # (((
10534  yes) AM_DEFAULT_VERBOSITY=0;;
10535   no) AM_DEFAULT_VERBOSITY=1;;
10536    *) AM_DEFAULT_VERBOSITY=0;;
10537esac
10538am_make=${MAKE-make}
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10540$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10541if ${am_cv_make_support_nested_variables+:} false; then :
10542  $as_echo_n "(cached) " >&6
10543else
10544  if $as_echo 'TRUE=$(BAR$(V))
10545BAR0=false
10546BAR1=true
10547V=1
10548am__doit:
10549	@$(TRUE)
10550.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10551  am_cv_make_support_nested_variables=yes
10552else
10553  am_cv_make_support_nested_variables=no
10554fi
10555fi
10556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10557$as_echo "$am_cv_make_support_nested_variables" >&6; }
10558if test $am_cv_make_support_nested_variables = yes; then
10559    AM_V='$(V)'
10560  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10561else
10562  AM_V=$AM_DEFAULT_VERBOSITY
10563  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10564fi
10565AM_BACKSLASH='\'
10566
10567
10568
10569# Checks for pkg-config packages
10570if test -n "$PKG_CONFIG" && \
10571    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
10572  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
10573  ac_status=$?
10574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10575  test $ac_status = 0; }; then
10576  XKBPKG="xkbfile"
10577else
10578  XKBPKG=""
10579fi
10580if test x$XKBPKG = xxkbfile ; then
10581
10582$as_echo "#define XKB 1" >>confdefs.h
10583
10584fi
10585
10586pkg_failed=no
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCLIPBOARD" >&5
10588$as_echo_n "checking for XCLIPBOARD... " >&6; }
10589
10590if test -n "$XCLIPBOARD_CFLAGS"; then
10591    pkg_cv_XCLIPBOARD_CFLAGS="$XCLIPBOARD_CFLAGS"
10592 elif test -n "$PKG_CONFIG"; then
10593    if test -n "$PKG_CONFIG" && \
10594    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.1 x11 \${XKBPKG} xproto >= 7.0.17\""; } >&5
10595  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17") 2>&5
10596  ac_status=$?
10597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10598  test $ac_status = 0; }; then
10599  pkg_cv_XCLIPBOARD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17" 2>/dev/null`
10600else
10601  pkg_failed=yes
10602fi
10603 else
10604    pkg_failed=untried
10605fi
10606if test -n "$XCLIPBOARD_LIBS"; then
10607    pkg_cv_XCLIPBOARD_LIBS="$XCLIPBOARD_LIBS"
10608 elif test -n "$PKG_CONFIG"; then
10609    if test -n "$PKG_CONFIG" && \
10610    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.1 x11 \${XKBPKG} xproto >= 7.0.17\""; } >&5
10611  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17") 2>&5
10612  ac_status=$?
10613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10614  test $ac_status = 0; }; then
10615  pkg_cv_XCLIPBOARD_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17" 2>/dev/null`
10616else
10617  pkg_failed=yes
10618fi
10619 else
10620    pkg_failed=untried
10621fi
10622
10623
10624
10625if test $pkg_failed = yes; then
10626
10627if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10628        _pkg_short_errors_supported=yes
10629else
10630        _pkg_short_errors_supported=no
10631fi
10632        if test $_pkg_short_errors_supported = yes; then
10633	        XCLIPBOARD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17" 2>&1`
10634        else
10635	        XCLIPBOARD_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17" 2>&1`
10636        fi
10637	# Put the nasty error message in config.log where it belongs
10638	echo "$XCLIPBOARD_PKG_ERRORS" >&5
10639
10640	as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17) were not met:
10641
10642$XCLIPBOARD_PKG_ERRORS
10643
10644Consider adjusting the PKG_CONFIG_PATH environment variable if you
10645installed software in a non-standard prefix.
10646
10647Alternatively, you may set the environment variables XCLIPBOARD_CFLAGS
10648and XCLIPBOARD_LIBS to avoid the need to call pkg-config.
10649See the pkg-config man page for more details.
10650" "$LINENO" 5
10651elif test $pkg_failed = untried; then
10652	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10654as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10655is in your PATH or set the PKG_CONFIG environment variable to the full
10656path to pkg-config.
10657
10658Alternatively, you may set the environment variables XCLIPBOARD_CFLAGS
10659and XCLIPBOARD_LIBS to avoid the need to call pkg-config.
10660See the pkg-config man page for more details.
10661
10662To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10663See \`config.log' for more details" "$LINENO" 5; }
10664else
10665	XCLIPBOARD_CFLAGS=$pkg_cv_XCLIPBOARD_CFLAGS
10666	XCLIPBOARD_LIBS=$pkg_cv_XCLIPBOARD_LIBS
10667        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10668$as_echo "yes" >&6; }
10669	:
10670fi
10671
10672
10673pkg_failed=no
10674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10675$as_echo_n "checking for APPDEFS... " >&6; }
10676
10677if test -n "$APPDEFS_CFLAGS"; then
10678    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10679 elif test -n "$PKG_CONFIG"; then
10680    if test -n "$PKG_CONFIG" && \
10681    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10682  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10683  ac_status=$?
10684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10685  test $ac_status = 0; }; then
10686  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10687else
10688  pkg_failed=yes
10689fi
10690 else
10691    pkg_failed=untried
10692fi
10693if test -n "$APPDEFS_LIBS"; then
10694    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10695 elif test -n "$PKG_CONFIG"; then
10696    if test -n "$PKG_CONFIG" && \
10697    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10698  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10699  ac_status=$?
10700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10701  test $ac_status = 0; }; then
10702  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10703else
10704  pkg_failed=yes
10705fi
10706 else
10707    pkg_failed=untried
10708fi
10709
10710
10711
10712if test $pkg_failed = yes; then
10713
10714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10715        _pkg_short_errors_supported=yes
10716else
10717        _pkg_short_errors_supported=no
10718fi
10719        if test $_pkg_short_errors_supported = yes; then
10720	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10721        else
10722	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10723        fi
10724	# Put the nasty error message in config.log where it belongs
10725	echo "$APPDEFS_PKG_ERRORS" >&5
10726
10727	as_fn_error $? "Package requirements (xt) were not met:
10728
10729$APPDEFS_PKG_ERRORS
10730
10731Consider adjusting the PKG_CONFIG_PATH environment variable if you
10732installed software in a non-standard prefix.
10733
10734Alternatively, you may set the environment variables APPDEFS_CFLAGS
10735and APPDEFS_LIBS to avoid the need to call pkg-config.
10736See the pkg-config man page for more details.
10737" "$LINENO" 5
10738elif test $pkg_failed = untried; then
10739	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10741as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10742is in your PATH or set the PKG_CONFIG environment variable to the full
10743path to pkg-config.
10744
10745Alternatively, you may set the environment variables APPDEFS_CFLAGS
10746and APPDEFS_LIBS to avoid the need to call pkg-config.
10747See the pkg-config man page for more details.
10748
10749To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10750See \`config.log' for more details" "$LINENO" 5; }
10751else
10752	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10753	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10755$as_echo "yes" >&6; }
10756	:
10757fi
10758xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10759
10760# Check whether --with-appdefaultdir was given.
10761if test "${with_appdefaultdir+set}" = set; then :
10762  withval=$with_appdefaultdir; appdefaultdir="$withval"
10763else
10764  appdefaultdir="${xt_appdefaultdir}"
10765fi
10766
10767
10768
10769
10770ac_config_files="$ac_config_files Makefile man/Makefile"
10771
10772cat >confcache <<\_ACEOF
10773# This file is a shell script that caches the results of configure
10774# tests run on this system so they can be shared between configure
10775# scripts and configure runs, see configure's option --config-cache.
10776# It is not useful on other systems.  If it contains results you don't
10777# want to keep, you may remove or edit it.
10778#
10779# config.status only pays attention to the cache file if you give it
10780# the --recheck option to rerun configure.
10781#
10782# `ac_cv_env_foo' variables (set or unset) will be overridden when
10783# loading this file, other *unset* `ac_cv_foo' will be assigned the
10784# following values.
10785
10786_ACEOF
10787
10788# The following way of writing the cache mishandles newlines in values,
10789# but we know of no workaround that is simple, portable, and efficient.
10790# So, we kill variables containing newlines.
10791# Ultrix sh set writes to stderr and can't be redirected directly,
10792# and sets the high bit in the cache file unless we assign to the vars.
10793(
10794  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10795    eval ac_val=\$$ac_var
10796    case $ac_val in #(
10797    *${as_nl}*)
10798      case $ac_var in #(
10799      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10800$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10801      esac
10802      case $ac_var in #(
10803      _ | IFS | as_nl) ;; #(
10804      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10805      *) { eval $ac_var=; unset $ac_var;} ;;
10806      esac ;;
10807    esac
10808  done
10809
10810  (set) 2>&1 |
10811    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10812    *${as_nl}ac_space=\ *)
10813      # `set' does not quote correctly, so add quotes: double-quote
10814      # substitution turns \\\\ into \\, and sed turns \\ into \.
10815      sed -n \
10816	"s/'/'\\\\''/g;
10817	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10818      ;; #(
10819    *)
10820      # `set' quotes correctly as required by POSIX, so do not add quotes.
10821      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10822      ;;
10823    esac |
10824    sort
10825) |
10826  sed '
10827     /^ac_cv_env_/b end
10828     t clear
10829     :clear
10830     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10831     t end
10832     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10833     :end' >>confcache
10834if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10835  if test -w "$cache_file"; then
10836    if test "x$cache_file" != "x/dev/null"; then
10837      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10838$as_echo "$as_me: updating cache $cache_file" >&6;}
10839      if test ! -f "$cache_file" || test -h "$cache_file"; then
10840	cat confcache >"$cache_file"
10841      else
10842        case $cache_file in #(
10843        */* | ?:*)
10844	  mv -f confcache "$cache_file"$$ &&
10845	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10846        *)
10847	  mv -f confcache "$cache_file" ;;
10848	esac
10849      fi
10850    fi
10851  else
10852    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10853$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10854  fi
10855fi
10856rm -f confcache
10857
10858test "x$prefix" = xNONE && prefix=$ac_default_prefix
10859# Let make expand exec_prefix.
10860test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10861
10862DEFS=-DHAVE_CONFIG_H
10863
10864ac_libobjs=
10865ac_ltlibobjs=
10866U=
10867for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10868  # 1. Remove the extension, and $U if already installed.
10869  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10870  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10871  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10872  #    will be set to the directory where LIBOBJS objects are built.
10873  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10874  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10875done
10876LIBOBJS=$ac_libobjs
10877
10878LTLIBOBJS=$ac_ltlibobjs
10879
10880
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10882$as_echo_n "checking that generated files are newer than configure... " >&6; }
10883   if test -n "$am_sleep_pid"; then
10884     # Hide warnings about reused PIDs.
10885     wait $am_sleep_pid 2>/dev/null
10886   fi
10887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10888$as_echo "done" >&6; }
10889 if test -n "$EXEEXT"; then
10890  am__EXEEXT_TRUE=
10891  am__EXEEXT_FALSE='#'
10892else
10893  am__EXEEXT_TRUE='#'
10894  am__EXEEXT_FALSE=
10895fi
10896
10897if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10898  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10899Usually this means the macro was only invoked conditionally." "$LINENO" 5
10900fi
10901if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10902  as_fn_error $? "conditional \"AMDEP\" was never defined.
10903Usually this means the macro was only invoked conditionally." "$LINENO" 5
10904fi
10905if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10906  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10907Usually this means the macro was only invoked conditionally." "$LINENO" 5
10908fi
10909
10910: "${CONFIG_STATUS=./config.status}"
10911ac_write_fail=0
10912ac_clean_files_save=$ac_clean_files
10913ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10914{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10915$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10916as_write_fail=0
10917cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10918#! $SHELL
10919# Generated by $as_me.
10920# Run this file to recreate the current configuration.
10921# Compiler output produced by configure, useful for debugging
10922# configure, is in config.log if it exists.
10923
10924debug=false
10925ac_cs_recheck=false
10926ac_cs_silent=false
10927
10928SHELL=\${CONFIG_SHELL-$SHELL}
10929export SHELL
10930_ASEOF
10931cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10932## -------------------- ##
10933## M4sh Initialization. ##
10934## -------------------- ##
10935
10936# Be more Bourne compatible
10937DUALCASE=1; export DUALCASE # for MKS sh
10938if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10939  emulate sh
10940  NULLCMD=:
10941  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10942  # is contrary to our usage.  Disable this feature.
10943  alias -g '${1+"$@"}'='"$@"'
10944  setopt NO_GLOB_SUBST
10945else
10946  case `(set -o) 2>/dev/null` in #(
10947  *posix*) :
10948    set -o posix ;; #(
10949  *) :
10950     ;;
10951esac
10952fi
10953
10954
10955as_nl='
10956'
10957export as_nl
10958# Printing a long string crashes Solaris 7 /usr/bin/printf.
10959as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10960as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10961as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10962# Prefer a ksh shell builtin over an external printf program on Solaris,
10963# but without wasting forks for bash or zsh.
10964if test -z "$BASH_VERSION$ZSH_VERSION" \
10965    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10966  as_echo='print -r --'
10967  as_echo_n='print -rn --'
10968elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10969  as_echo='printf %s\n'
10970  as_echo_n='printf %s'
10971else
10972  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10973    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10974    as_echo_n='/usr/ucb/echo -n'
10975  else
10976    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10977    as_echo_n_body='eval
10978      arg=$1;
10979      case $arg in #(
10980      *"$as_nl"*)
10981	expr "X$arg" : "X\\(.*\\)$as_nl";
10982	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10983      esac;
10984      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10985    '
10986    export as_echo_n_body
10987    as_echo_n='sh -c $as_echo_n_body as_echo'
10988  fi
10989  export as_echo_body
10990  as_echo='sh -c $as_echo_body as_echo'
10991fi
10992
10993# The user is always right.
10994if test "${PATH_SEPARATOR+set}" != set; then
10995  PATH_SEPARATOR=:
10996  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10997    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10998      PATH_SEPARATOR=';'
10999  }
11000fi
11001
11002
11003# IFS
11004# We need space, tab and new line, in precisely that order.  Quoting is
11005# there to prevent editors from complaining about space-tab.
11006# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11007# splitting by setting IFS to empty value.)
11008IFS=" ""	$as_nl"
11009
11010# Find who we are.  Look in the path if we contain no directory separator.
11011as_myself=
11012case $0 in #((
11013  *[\\/]* ) as_myself=$0 ;;
11014  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015for as_dir in $PATH
11016do
11017  IFS=$as_save_IFS
11018  test -z "$as_dir" && as_dir=.
11019    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11020  done
11021IFS=$as_save_IFS
11022
11023     ;;
11024esac
11025# We did not find ourselves, most probably we were run as `sh COMMAND'
11026# in which case we are not to be found in the path.
11027if test "x$as_myself" = x; then
11028  as_myself=$0
11029fi
11030if test ! -f "$as_myself"; then
11031  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11032  exit 1
11033fi
11034
11035# Unset variables that we do not need and which cause bugs (e.g. in
11036# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11037# suppresses any "Segmentation fault" message there.  '((' could
11038# trigger a bug in pdksh 5.2.14.
11039for as_var in BASH_ENV ENV MAIL MAILPATH
11040do eval test x\${$as_var+set} = xset \
11041  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11042done
11043PS1='$ '
11044PS2='> '
11045PS4='+ '
11046
11047# NLS nuisances.
11048LC_ALL=C
11049export LC_ALL
11050LANGUAGE=C
11051export LANGUAGE
11052
11053# CDPATH.
11054(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11055
11056
11057# as_fn_error STATUS ERROR [LINENO LOG_FD]
11058# ----------------------------------------
11059# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11060# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11061# script with STATUS, using 1 if that was 0.
11062as_fn_error ()
11063{
11064  as_status=$1; test $as_status -eq 0 && as_status=1
11065  if test "$4"; then
11066    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11067    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11068  fi
11069  $as_echo "$as_me: error: $2" >&2
11070  as_fn_exit $as_status
11071} # as_fn_error
11072
11073
11074# as_fn_set_status STATUS
11075# -----------------------
11076# Set $? to STATUS, without forking.
11077as_fn_set_status ()
11078{
11079  return $1
11080} # as_fn_set_status
11081
11082# as_fn_exit STATUS
11083# -----------------
11084# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11085as_fn_exit ()
11086{
11087  set +e
11088  as_fn_set_status $1
11089  exit $1
11090} # as_fn_exit
11091
11092# as_fn_unset VAR
11093# ---------------
11094# Portably unset VAR.
11095as_fn_unset ()
11096{
11097  { eval $1=; unset $1;}
11098}
11099as_unset=as_fn_unset
11100# as_fn_append VAR VALUE
11101# ----------------------
11102# Append the text in VALUE to the end of the definition contained in VAR. Take
11103# advantage of any shell optimizations that allow amortized linear growth over
11104# repeated appends, instead of the typical quadratic growth present in naive
11105# implementations.
11106if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11107  eval 'as_fn_append ()
11108  {
11109    eval $1+=\$2
11110  }'
11111else
11112  as_fn_append ()
11113  {
11114    eval $1=\$$1\$2
11115  }
11116fi # as_fn_append
11117
11118# as_fn_arith ARG...
11119# ------------------
11120# Perform arithmetic evaluation on the ARGs, and store the result in the
11121# global $as_val. Take advantage of shells that can avoid forks. The arguments
11122# must be portable across $(()) and expr.
11123if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11124  eval 'as_fn_arith ()
11125  {
11126    as_val=$(( $* ))
11127  }'
11128else
11129  as_fn_arith ()
11130  {
11131    as_val=`expr "$@" || test $? -eq 1`
11132  }
11133fi # as_fn_arith
11134
11135
11136if expr a : '\(a\)' >/dev/null 2>&1 &&
11137   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11138  as_expr=expr
11139else
11140  as_expr=false
11141fi
11142
11143if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11144  as_basename=basename
11145else
11146  as_basename=false
11147fi
11148
11149if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11150  as_dirname=dirname
11151else
11152  as_dirname=false
11153fi
11154
11155as_me=`$as_basename -- "$0" ||
11156$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11157	 X"$0" : 'X\(//\)$' \| \
11158	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11159$as_echo X/"$0" |
11160    sed '/^.*\/\([^/][^/]*\)\/*$/{
11161	    s//\1/
11162	    q
11163	  }
11164	  /^X\/\(\/\/\)$/{
11165	    s//\1/
11166	    q
11167	  }
11168	  /^X\/\(\/\).*/{
11169	    s//\1/
11170	    q
11171	  }
11172	  s/.*/./; q'`
11173
11174# Avoid depending upon Character Ranges.
11175as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11176as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11177as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11178as_cr_digits='0123456789'
11179as_cr_alnum=$as_cr_Letters$as_cr_digits
11180
11181ECHO_C= ECHO_N= ECHO_T=
11182case `echo -n x` in #(((((
11183-n*)
11184  case `echo 'xy\c'` in
11185  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11186  xy)  ECHO_C='\c';;
11187  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11188       ECHO_T='	';;
11189  esac;;
11190*)
11191  ECHO_N='-n';;
11192esac
11193
11194rm -f conf$$ conf$$.exe conf$$.file
11195if test -d conf$$.dir; then
11196  rm -f conf$$.dir/conf$$.file
11197else
11198  rm -f conf$$.dir
11199  mkdir conf$$.dir 2>/dev/null
11200fi
11201if (echo >conf$$.file) 2>/dev/null; then
11202  if ln -s conf$$.file conf$$ 2>/dev/null; then
11203    as_ln_s='ln -s'
11204    # ... but there are two gotchas:
11205    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11206    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11207    # In both cases, we have to default to `cp -p'.
11208    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11209      as_ln_s='cp -p'
11210  elif ln conf$$.file conf$$ 2>/dev/null; then
11211    as_ln_s=ln
11212  else
11213    as_ln_s='cp -p'
11214  fi
11215else
11216  as_ln_s='cp -p'
11217fi
11218rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11219rmdir conf$$.dir 2>/dev/null
11220
11221
11222# as_fn_mkdir_p
11223# -------------
11224# Create "$as_dir" as a directory, including parents if necessary.
11225as_fn_mkdir_p ()
11226{
11227
11228  case $as_dir in #(
11229  -*) as_dir=./$as_dir;;
11230  esac
11231  test -d "$as_dir" || eval $as_mkdir_p || {
11232    as_dirs=
11233    while :; do
11234      case $as_dir in #(
11235      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11236      *) as_qdir=$as_dir;;
11237      esac
11238      as_dirs="'$as_qdir' $as_dirs"
11239      as_dir=`$as_dirname -- "$as_dir" ||
11240$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11241	 X"$as_dir" : 'X\(//\)[^/]' \| \
11242	 X"$as_dir" : 'X\(//\)$' \| \
11243	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11244$as_echo X"$as_dir" |
11245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11246	    s//\1/
11247	    q
11248	  }
11249	  /^X\(\/\/\)[^/].*/{
11250	    s//\1/
11251	    q
11252	  }
11253	  /^X\(\/\/\)$/{
11254	    s//\1/
11255	    q
11256	  }
11257	  /^X\(\/\).*/{
11258	    s//\1/
11259	    q
11260	  }
11261	  s/.*/./; q'`
11262      test -d "$as_dir" && break
11263    done
11264    test -z "$as_dirs" || eval "mkdir $as_dirs"
11265  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11266
11267
11268} # as_fn_mkdir_p
11269if mkdir -p . 2>/dev/null; then
11270  as_mkdir_p='mkdir -p "$as_dir"'
11271else
11272  test -d ./-p && rmdir ./-p
11273  as_mkdir_p=false
11274fi
11275
11276if test -x / >/dev/null 2>&1; then
11277  as_test_x='test -x'
11278else
11279  if ls -dL / >/dev/null 2>&1; then
11280    as_ls_L_option=L
11281  else
11282    as_ls_L_option=
11283  fi
11284  as_test_x='
11285    eval sh -c '\''
11286      if test -d "$1"; then
11287	test -d "$1/.";
11288      else
11289	case $1 in #(
11290	-*)set "./$1";;
11291	esac;
11292	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11293	???[sx]*):;;*)false;;esac;fi
11294    '\'' sh
11295  '
11296fi
11297as_executable_p=$as_test_x
11298
11299# Sed expression to map a string onto a valid CPP name.
11300as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11301
11302# Sed expression to map a string onto a valid variable name.
11303as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11304
11305
11306exec 6>&1
11307## ----------------------------------- ##
11308## Main body of $CONFIG_STATUS script. ##
11309## ----------------------------------- ##
11310_ASEOF
11311test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11312
11313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11314# Save the log message, to keep $0 and so on meaningful, and to
11315# report actual input values of CONFIG_FILES etc. instead of their
11316# values after options handling.
11317ac_log="
11318This file was extended by xclipboard $as_me 1.1.3, which was
11319generated by GNU Autoconf 2.68.  Invocation command line was
11320
11321  CONFIG_FILES    = $CONFIG_FILES
11322  CONFIG_HEADERS  = $CONFIG_HEADERS
11323  CONFIG_LINKS    = $CONFIG_LINKS
11324  CONFIG_COMMANDS = $CONFIG_COMMANDS
11325  $ $0 $@
11326
11327on `(hostname || uname -n) 2>/dev/null | sed 1q`
11328"
11329
11330_ACEOF
11331
11332case $ac_config_files in *"
11333"*) set x $ac_config_files; shift; ac_config_files=$*;;
11334esac
11335
11336case $ac_config_headers in *"
11337"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11338esac
11339
11340
11341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11342# Files that config.status was made for.
11343config_files="$ac_config_files"
11344config_headers="$ac_config_headers"
11345config_commands="$ac_config_commands"
11346
11347_ACEOF
11348
11349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11350ac_cs_usage="\
11351\`$as_me' instantiates files and other configuration actions
11352from templates according to the current configuration.  Unless the files
11353and actions are specified as TAGs, all are instantiated by default.
11354
11355Usage: $0 [OPTION]... [TAG]...
11356
11357  -h, --help       print this help, then exit
11358  -V, --version    print version number and configuration settings, then exit
11359      --config     print configuration, then exit
11360  -q, --quiet, --silent
11361                   do not print progress messages
11362  -d, --debug      don't remove temporary files
11363      --recheck    update $as_me by reconfiguring in the same conditions
11364      --file=FILE[:TEMPLATE]
11365                   instantiate the configuration file FILE
11366      --header=FILE[:TEMPLATE]
11367                   instantiate the configuration header FILE
11368
11369Configuration files:
11370$config_files
11371
11372Configuration headers:
11373$config_headers
11374
11375Configuration commands:
11376$config_commands
11377
11378Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11379
11380_ACEOF
11381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11382ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11383ac_cs_version="\\
11384xclipboard config.status 1.1.3
11385configured by $0, generated by GNU Autoconf 2.68,
11386  with options \\"\$ac_cs_config\\"
11387
11388Copyright (C) 2010 Free Software Foundation, Inc.
11389This config.status script is free software; the Free Software Foundation
11390gives unlimited permission to copy, distribute and modify it."
11391
11392ac_pwd='$ac_pwd'
11393srcdir='$srcdir'
11394INSTALL='$INSTALL'
11395MKDIR_P='$MKDIR_P'
11396AWK='$AWK'
11397test -n "\$AWK" || AWK=awk
11398_ACEOF
11399
11400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11401# The default lists apply if the user does not specify any file.
11402ac_need_defaults=:
11403while test $# != 0
11404do
11405  case $1 in
11406  --*=?*)
11407    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11408    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11409    ac_shift=:
11410    ;;
11411  --*=)
11412    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11413    ac_optarg=
11414    ac_shift=:
11415    ;;
11416  *)
11417    ac_option=$1
11418    ac_optarg=$2
11419    ac_shift=shift
11420    ;;
11421  esac
11422
11423  case $ac_option in
11424  # Handling of the options.
11425  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11426    ac_cs_recheck=: ;;
11427  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11428    $as_echo "$ac_cs_version"; exit ;;
11429  --config | --confi | --conf | --con | --co | --c )
11430    $as_echo "$ac_cs_config"; exit ;;
11431  --debug | --debu | --deb | --de | --d | -d )
11432    debug=: ;;
11433  --file | --fil | --fi | --f )
11434    $ac_shift
11435    case $ac_optarg in
11436    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11437    '') as_fn_error $? "missing file argument" ;;
11438    esac
11439    as_fn_append CONFIG_FILES " '$ac_optarg'"
11440    ac_need_defaults=false;;
11441  --header | --heade | --head | --hea )
11442    $ac_shift
11443    case $ac_optarg in
11444    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11445    esac
11446    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11447    ac_need_defaults=false;;
11448  --he | --h)
11449    # Conflict between --help and --header
11450    as_fn_error $? "ambiguous option: \`$1'
11451Try \`$0 --help' for more information.";;
11452  --help | --hel | -h )
11453    $as_echo "$ac_cs_usage"; exit ;;
11454  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11455  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11456    ac_cs_silent=: ;;
11457
11458  # This is an error.
11459  -*) as_fn_error $? "unrecognized option: \`$1'
11460Try \`$0 --help' for more information." ;;
11461
11462  *) as_fn_append ac_config_targets " $1"
11463     ac_need_defaults=false ;;
11464
11465  esac
11466  shift
11467done
11468
11469ac_configure_extra_args=
11470
11471if $ac_cs_silent; then
11472  exec 6>/dev/null
11473  ac_configure_extra_args="$ac_configure_extra_args --silent"
11474fi
11475
11476_ACEOF
11477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11478if \$ac_cs_recheck; then
11479  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11480  shift
11481  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11482  CONFIG_SHELL='$SHELL'
11483  export CONFIG_SHELL
11484  exec "\$@"
11485fi
11486
11487_ACEOF
11488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11489exec 5>>config.log
11490{
11491  echo
11492  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11493## Running $as_me. ##
11494_ASBOX
11495  $as_echo "$ac_log"
11496} >&5
11497
11498_ACEOF
11499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11500#
11501# INIT-COMMANDS
11502#
11503AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11504
11505_ACEOF
11506
11507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11508
11509# Handling of arguments.
11510for ac_config_target in $ac_config_targets
11511do
11512  case $ac_config_target in
11513    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11514    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11515    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11516    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11517
11518  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11519  esac
11520done
11521
11522
11523# If the user did not use the arguments to specify the items to instantiate,
11524# then the envvar interface is used.  Set only those that are not.
11525# We use the long form for the default assignment because of an extremely
11526# bizarre bug on SunOS 4.1.3.
11527if $ac_need_defaults; then
11528  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11529  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11530  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11531fi
11532
11533# Have a temporary directory for convenience.  Make it in the build tree
11534# simply because there is no reason against having it here, and in addition,
11535# creating and moving files from /tmp can sometimes cause problems.
11536# Hook for its removal unless debugging.
11537# Note that there is a small window in which the directory will not be cleaned:
11538# after its creation but before its name has been assigned to `$tmp'.
11539$debug ||
11540{
11541  tmp= ac_tmp=
11542  trap 'exit_status=$?
11543  : "${ac_tmp:=$tmp}"
11544  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11545' 0
11546  trap 'as_fn_exit 1' 1 2 13 15
11547}
11548# Create a (secure) tmp directory for tmp files.
11549
11550{
11551  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11552  test -d "$tmp"
11553}  ||
11554{
11555  tmp=./conf$$-$RANDOM
11556  (umask 077 && mkdir "$tmp")
11557} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11558ac_tmp=$tmp
11559
11560# Set up the scripts for CONFIG_FILES section.
11561# No need to generate them if there are no CONFIG_FILES.
11562# This happens for instance with `./config.status config.h'.
11563if test -n "$CONFIG_FILES"; then
11564
11565
11566ac_cr=`echo X | tr X '\015'`
11567# On cygwin, bash can eat \r inside `` if the user requested igncr.
11568# But we know of no other shell where ac_cr would be empty at this
11569# point, so we can use a bashism as a fallback.
11570if test "x$ac_cr" = x; then
11571  eval ac_cr=\$\'\\r\'
11572fi
11573ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11574if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11575  ac_cs_awk_cr='\\r'
11576else
11577  ac_cs_awk_cr=$ac_cr
11578fi
11579
11580echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11581_ACEOF
11582
11583
11584{
11585  echo "cat >conf$$subs.awk <<_ACEOF" &&
11586  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11587  echo "_ACEOF"
11588} >conf$$subs.sh ||
11589  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11590ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11591ac_delim='%!_!# '
11592for ac_last_try in false false false false false :; do
11593  . ./conf$$subs.sh ||
11594    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11595
11596  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11597  if test $ac_delim_n = $ac_delim_num; then
11598    break
11599  elif $ac_last_try; then
11600    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11601  else
11602    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11603  fi
11604done
11605rm -f conf$$subs.sh
11606
11607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11608cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11609_ACEOF
11610sed -n '
11611h
11612s/^/S["/; s/!.*/"]=/
11613p
11614g
11615s/^[^!]*!//
11616:repl
11617t repl
11618s/'"$ac_delim"'$//
11619t delim
11620:nl
11621h
11622s/\(.\{148\}\)..*/\1/
11623t more1
11624s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11625p
11626n
11627b repl
11628:more1
11629s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11630p
11631g
11632s/.\{148\}//
11633t nl
11634:delim
11635h
11636s/\(.\{148\}\)..*/\1/
11637t more2
11638s/["\\]/\\&/g; s/^/"/; s/$/"/
11639p
11640b
11641:more2
11642s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11643p
11644g
11645s/.\{148\}//
11646t delim
11647' <conf$$subs.awk | sed '
11648/^[^""]/{
11649  N
11650  s/\n//
11651}
11652' >>$CONFIG_STATUS || ac_write_fail=1
11653rm -f conf$$subs.awk
11654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11655_ACAWK
11656cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11657  for (key in S) S_is_set[key] = 1
11658  FS = ""
11659
11660}
11661{
11662  line = $ 0
11663  nfields = split(line, field, "@")
11664  substed = 0
11665  len = length(field[1])
11666  for (i = 2; i < nfields; i++) {
11667    key = field[i]
11668    keylen = length(key)
11669    if (S_is_set[key]) {
11670      value = S[key]
11671      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11672      len += length(value) + length(field[++i])
11673      substed = 1
11674    } else
11675      len += 1 + keylen
11676  }
11677
11678  print line
11679}
11680
11681_ACAWK
11682_ACEOF
11683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11684if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11685  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11686else
11687  cat
11688fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11689  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11690_ACEOF
11691
11692# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11693# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11694# trailing colons and then remove the whole line if VPATH becomes empty
11695# (actually we leave an empty line to preserve line numbers).
11696if test "x$srcdir" = x.; then
11697  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11698h
11699s///
11700s/^/:/
11701s/[	 ]*$/:/
11702s/:\$(srcdir):/:/g
11703s/:\${srcdir}:/:/g
11704s/:@srcdir@:/:/g
11705s/^:*//
11706s/:*$//
11707x
11708s/\(=[	 ]*\).*/\1/
11709G
11710s/\n//
11711s/^[^=]*=[	 ]*$//
11712}'
11713fi
11714
11715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11716fi # test -n "$CONFIG_FILES"
11717
11718# Set up the scripts for CONFIG_HEADERS section.
11719# No need to generate them if there are no CONFIG_HEADERS.
11720# This happens for instance with `./config.status Makefile'.
11721if test -n "$CONFIG_HEADERS"; then
11722cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11723BEGIN {
11724_ACEOF
11725
11726# Transform confdefs.h into an awk script `defines.awk', embedded as
11727# here-document in config.status, that substitutes the proper values into
11728# config.h.in to produce config.h.
11729
11730# Create a delimiter string that does not exist in confdefs.h, to ease
11731# handling of long lines.
11732ac_delim='%!_!# '
11733for ac_last_try in false false :; do
11734  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11735  if test -z "$ac_tt"; then
11736    break
11737  elif $ac_last_try; then
11738    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11739  else
11740    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11741  fi
11742done
11743
11744# For the awk script, D is an array of macro values keyed by name,
11745# likewise P contains macro parameters if any.  Preserve backslash
11746# newline sequences.
11747
11748ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11749sed -n '
11750s/.\{148\}/&'"$ac_delim"'/g
11751t rset
11752:rset
11753s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11754t def
11755d
11756:def
11757s/\\$//
11758t bsnl
11759s/["\\]/\\&/g
11760s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11761D["\1"]=" \3"/p
11762s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11763d
11764:bsnl
11765s/["\\]/\\&/g
11766s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11767D["\1"]=" \3\\\\\\n"\\/p
11768t cont
11769s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11770t cont
11771d
11772:cont
11773n
11774s/.\{148\}/&'"$ac_delim"'/g
11775t clear
11776:clear
11777s/\\$//
11778t bsnlc
11779s/["\\]/\\&/g; s/^/"/; s/$/"/p
11780d
11781:bsnlc
11782s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11783b cont
11784' <confdefs.h | sed '
11785s/'"$ac_delim"'/"\\\
11786"/g' >>$CONFIG_STATUS || ac_write_fail=1
11787
11788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11789  for (key in D) D_is_set[key] = 1
11790  FS = ""
11791}
11792/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11793  line = \$ 0
11794  split(line, arg, " ")
11795  if (arg[1] == "#") {
11796    defundef = arg[2]
11797    mac1 = arg[3]
11798  } else {
11799    defundef = substr(arg[1], 2)
11800    mac1 = arg[2]
11801  }
11802  split(mac1, mac2, "(") #)
11803  macro = mac2[1]
11804  prefix = substr(line, 1, index(line, defundef) - 1)
11805  if (D_is_set[macro]) {
11806    # Preserve the white space surrounding the "#".
11807    print prefix "define", macro P[macro] D[macro]
11808    next
11809  } else {
11810    # Replace #undef with comments.  This is necessary, for example,
11811    # in the case of _POSIX_SOURCE, which is predefined and required
11812    # on some systems where configure will not decide to define it.
11813    if (defundef == "undef") {
11814      print "/*", prefix defundef, macro, "*/"
11815      next
11816    }
11817  }
11818}
11819{ print }
11820_ACAWK
11821_ACEOF
11822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11823  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11824fi # test -n "$CONFIG_HEADERS"
11825
11826
11827eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11828shift
11829for ac_tag
11830do
11831  case $ac_tag in
11832  :[FHLC]) ac_mode=$ac_tag; continue;;
11833  esac
11834  case $ac_mode$ac_tag in
11835  :[FHL]*:*);;
11836  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11837  :[FH]-) ac_tag=-:-;;
11838  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11839  esac
11840  ac_save_IFS=$IFS
11841  IFS=:
11842  set x $ac_tag
11843  IFS=$ac_save_IFS
11844  shift
11845  ac_file=$1
11846  shift
11847
11848  case $ac_mode in
11849  :L) ac_source=$1;;
11850  :[FH])
11851    ac_file_inputs=
11852    for ac_f
11853    do
11854      case $ac_f in
11855      -) ac_f="$ac_tmp/stdin";;
11856      *) # Look for the file first in the build tree, then in the source tree
11857	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11858	 # because $ac_f cannot contain `:'.
11859	 test -f "$ac_f" ||
11860	   case $ac_f in
11861	   [\\/$]*) false;;
11862	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11863	   esac ||
11864	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11865      esac
11866      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11867      as_fn_append ac_file_inputs " '$ac_f'"
11868    done
11869
11870    # Let's still pretend it is `configure' which instantiates (i.e., don't
11871    # use $as_me), people would be surprised to read:
11872    #    /* config.h.  Generated by config.status.  */
11873    configure_input='Generated from '`
11874	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11875	`' by configure.'
11876    if test x"$ac_file" != x-; then
11877      configure_input="$ac_file.  $configure_input"
11878      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11879$as_echo "$as_me: creating $ac_file" >&6;}
11880    fi
11881    # Neutralize special characters interpreted by sed in replacement strings.
11882    case $configure_input in #(
11883    *\&* | *\|* | *\\* )
11884       ac_sed_conf_input=`$as_echo "$configure_input" |
11885       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11886    *) ac_sed_conf_input=$configure_input;;
11887    esac
11888
11889    case $ac_tag in
11890    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11891      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11892    esac
11893    ;;
11894  esac
11895
11896  ac_dir=`$as_dirname -- "$ac_file" ||
11897$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11898	 X"$ac_file" : 'X\(//\)[^/]' \| \
11899	 X"$ac_file" : 'X\(//\)$' \| \
11900	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11901$as_echo X"$ac_file" |
11902    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11903	    s//\1/
11904	    q
11905	  }
11906	  /^X\(\/\/\)[^/].*/{
11907	    s//\1/
11908	    q
11909	  }
11910	  /^X\(\/\/\)$/{
11911	    s//\1/
11912	    q
11913	  }
11914	  /^X\(\/\).*/{
11915	    s//\1/
11916	    q
11917	  }
11918	  s/.*/./; q'`
11919  as_dir="$ac_dir"; as_fn_mkdir_p
11920  ac_builddir=.
11921
11922case "$ac_dir" in
11923.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11924*)
11925  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11926  # A ".." for each directory in $ac_dir_suffix.
11927  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11928  case $ac_top_builddir_sub in
11929  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11930  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11931  esac ;;
11932esac
11933ac_abs_top_builddir=$ac_pwd
11934ac_abs_builddir=$ac_pwd$ac_dir_suffix
11935# for backward compatibility:
11936ac_top_builddir=$ac_top_build_prefix
11937
11938case $srcdir in
11939  .)  # We are building in place.
11940    ac_srcdir=.
11941    ac_top_srcdir=$ac_top_builddir_sub
11942    ac_abs_top_srcdir=$ac_pwd ;;
11943  [\\/]* | ?:[\\/]* )  # Absolute name.
11944    ac_srcdir=$srcdir$ac_dir_suffix;
11945    ac_top_srcdir=$srcdir
11946    ac_abs_top_srcdir=$srcdir ;;
11947  *) # Relative name.
11948    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11949    ac_top_srcdir=$ac_top_build_prefix$srcdir
11950    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11951esac
11952ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11953
11954
11955  case $ac_mode in
11956  :F)
11957  #
11958  # CONFIG_FILE
11959  #
11960
11961  case $INSTALL in
11962  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11963  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11964  esac
11965  ac_MKDIR_P=$MKDIR_P
11966  case $MKDIR_P in
11967  [\\/$]* | ?:[\\/]* ) ;;
11968  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11969  esac
11970_ACEOF
11971
11972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11973# If the template does not know about datarootdir, expand it.
11974# FIXME: This hack should be removed a few years after 2.60.
11975ac_datarootdir_hack=; ac_datarootdir_seen=
11976ac_sed_dataroot='
11977/datarootdir/ {
11978  p
11979  q
11980}
11981/@datadir@/p
11982/@docdir@/p
11983/@infodir@/p
11984/@localedir@/p
11985/@mandir@/p'
11986case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11987*datarootdir*) ac_datarootdir_seen=yes;;
11988*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11989  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11990$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11991_ACEOF
11992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11993  ac_datarootdir_hack='
11994  s&@datadir@&$datadir&g
11995  s&@docdir@&$docdir&g
11996  s&@infodir@&$infodir&g
11997  s&@localedir@&$localedir&g
11998  s&@mandir@&$mandir&g
11999  s&\\\${datarootdir}&$datarootdir&g' ;;
12000esac
12001_ACEOF
12002
12003# Neutralize VPATH when `$srcdir' = `.'.
12004# Shell code in configure.ac might set extrasub.
12005# FIXME: do we really want to maintain this feature?
12006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12007ac_sed_extra="$ac_vpsub
12008$extrasub
12009_ACEOF
12010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12011:t
12012/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12013s|@configure_input@|$ac_sed_conf_input|;t t
12014s&@top_builddir@&$ac_top_builddir_sub&;t t
12015s&@top_build_prefix@&$ac_top_build_prefix&;t t
12016s&@srcdir@&$ac_srcdir&;t t
12017s&@abs_srcdir@&$ac_abs_srcdir&;t t
12018s&@top_srcdir@&$ac_top_srcdir&;t t
12019s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12020s&@builddir@&$ac_builddir&;t t
12021s&@abs_builddir@&$ac_abs_builddir&;t t
12022s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12023s&@INSTALL@&$ac_INSTALL&;t t
12024s&@MKDIR_P@&$ac_MKDIR_P&;t t
12025$ac_datarootdir_hack
12026"
12027eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12028  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12029
12030test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12031  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12032  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12033      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12034  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12035which seems to be undefined.  Please make sure it is defined" >&5
12036$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12037which seems to be undefined.  Please make sure it is defined" >&2;}
12038
12039  rm -f "$ac_tmp/stdin"
12040  case $ac_file in
12041  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12042  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12043  esac \
12044  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12045 ;;
12046  :H)
12047  #
12048  # CONFIG_HEADER
12049  #
12050  if test x"$ac_file" != x-; then
12051    {
12052      $as_echo "/* $configure_input  */" \
12053      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12054    } >"$ac_tmp/config.h" \
12055      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12056    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12057      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12058$as_echo "$as_me: $ac_file is unchanged" >&6;}
12059    else
12060      rm -f "$ac_file"
12061      mv "$ac_tmp/config.h" "$ac_file" \
12062	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12063    fi
12064  else
12065    $as_echo "/* $configure_input  */" \
12066      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12067      || as_fn_error $? "could not create -" "$LINENO" 5
12068  fi
12069# Compute "$ac_file"'s index in $config_headers.
12070_am_arg="$ac_file"
12071_am_stamp_count=1
12072for _am_header in $config_headers :; do
12073  case $_am_header in
12074    $_am_arg | $_am_arg:* )
12075      break ;;
12076    * )
12077      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12078  esac
12079done
12080echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12081$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12082	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12083	 X"$_am_arg" : 'X\(//\)$' \| \
12084	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12085$as_echo X"$_am_arg" |
12086    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12087	    s//\1/
12088	    q
12089	  }
12090	  /^X\(\/\/\)[^/].*/{
12091	    s//\1/
12092	    q
12093	  }
12094	  /^X\(\/\/\)$/{
12095	    s//\1/
12096	    q
12097	  }
12098	  /^X\(\/\).*/{
12099	    s//\1/
12100	    q
12101	  }
12102	  s/.*/./; q'`/stamp-h$_am_stamp_count
12103 ;;
12104
12105  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12106$as_echo "$as_me: executing $ac_file commands" >&6;}
12107 ;;
12108  esac
12109
12110
12111  case $ac_file$ac_mode in
12112    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12113  # Older Autoconf quotes --file arguments for eval, but not when files
12114  # are listed without --file.  Let's play safe and only enable the eval
12115  # if we detect the quoting.
12116  case $CONFIG_FILES in
12117  *\'*) eval set x "$CONFIG_FILES" ;;
12118  *)   set x $CONFIG_FILES ;;
12119  esac
12120  shift
12121  for mf
12122  do
12123    # Strip MF so we end up with the name of the file.
12124    mf=`echo "$mf" | sed -e 's/:.*$//'`
12125    # Check whether this is an Automake generated Makefile or not.
12126    # We used to match only the files named 'Makefile.in', but
12127    # some people rename them; so instead we look at the file content.
12128    # Grep'ing the first line is not enough: some people post-process
12129    # each Makefile.in and add a new line on top of each file to say so.
12130    # Grep'ing the whole file is not good either: AIX grep has a line
12131    # limit of 2048, but all sed's we know have understand at least 4000.
12132    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12133      dirpart=`$as_dirname -- "$mf" ||
12134$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12135	 X"$mf" : 'X\(//\)[^/]' \| \
12136	 X"$mf" : 'X\(//\)$' \| \
12137	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12138$as_echo X"$mf" |
12139    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12140	    s//\1/
12141	    q
12142	  }
12143	  /^X\(\/\/\)[^/].*/{
12144	    s//\1/
12145	    q
12146	  }
12147	  /^X\(\/\/\)$/{
12148	    s//\1/
12149	    q
12150	  }
12151	  /^X\(\/\).*/{
12152	    s//\1/
12153	    q
12154	  }
12155	  s/.*/./; q'`
12156    else
12157      continue
12158    fi
12159    # Extract the definition of DEPDIR, am__include, and am__quote
12160    # from the Makefile without running 'make'.
12161    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12162    test -z "$DEPDIR" && continue
12163    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12164    test -z "$am__include" && continue
12165    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12166    # Find all dependency output files, they are included files with
12167    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12168    # simplest approach to changing $(DEPDIR) to its actual value in the
12169    # expansion.
12170    for file in `sed -n "
12171      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12172	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12173      # Make sure the directory exists.
12174      test -f "$dirpart/$file" && continue
12175      fdir=`$as_dirname -- "$file" ||
12176$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12177	 X"$file" : 'X\(//\)[^/]' \| \
12178	 X"$file" : 'X\(//\)$' \| \
12179	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12180$as_echo X"$file" |
12181    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12182	    s//\1/
12183	    q
12184	  }
12185	  /^X\(\/\/\)[^/].*/{
12186	    s//\1/
12187	    q
12188	  }
12189	  /^X\(\/\/\)$/{
12190	    s//\1/
12191	    q
12192	  }
12193	  /^X\(\/\).*/{
12194	    s//\1/
12195	    q
12196	  }
12197	  s/.*/./; q'`
12198      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12199      # echo "creating $dirpart/$file"
12200      echo '# dummy' > "$dirpart/$file"
12201    done
12202  done
12203}
12204 ;;
12205
12206  esac
12207done # for ac_tag
12208
12209
12210as_fn_exit 0
12211_ACEOF
12212ac_clean_files=$ac_clean_files_save
12213
12214test $ac_write_fail = 0 ||
12215  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12216
12217
12218# configure is writing to config.log, and then calls config.status.
12219# config.status does its own redirection, appending to config.log.
12220# Unfortunately, on DOS this fails, as config.log is still kept open
12221# by configure, so config.status won't be able to write to it; its
12222# output is simply discarded.  So we exec the FD to /dev/null,
12223# effectively closing config.log, so it can be properly (re)opened and
12224# appended to by config.status.  When coming back to configure, we
12225# need to make the FD available again.
12226if test "$no_create" != yes; then
12227  ac_cs_success=:
12228  ac_config_status_args=
12229  test "$silent" = yes &&
12230    ac_config_status_args="$ac_config_status_args --quiet"
12231  exec 5>/dev/null
12232  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12233  exec 5>>config.log
12234  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12235  # would make configure fail if this is the last instruction.
12236  $ac_cs_success || as_fn_exit 1
12237fi
12238if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12239  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12240$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12241fi
12242
12243