configure revision ecb85c42
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for rgb 1.0.6.
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='rgb'
563PACKAGE_TARNAME='rgb'
564PACKAGE_VERSION='1.0.6'
565PACKAGE_STRING='rgb 1.0.6'
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
610RGB_DB_FALSE
611RGB_DB_TRUE
612RGB_DB_FILES
613RGB_DB_TYPE
614XORG_LIBS
615XORG_CFLAGS
616db_dir
617db_file
618RGB_LIBS
619RGB_CFLAGS
620MAN_SUBSTS
621XORG_MAN_PAGE
622ADMIN_MAN_DIR
623DRIVER_MAN_DIR
624MISC_MAN_DIR
625FILE_MAN_DIR
626LIB_MAN_DIR
627APP_MAN_DIR
628ADMIN_MAN_SUFFIX
629DRIVER_MAN_SUFFIX
630MISC_MAN_SUFFIX
631FILE_MAN_SUFFIX
632LIB_MAN_SUFFIX
633APP_MAN_SUFFIX
634SED
635host_os
636host_vendor
637host_cpu
638host
639build_os
640build_vendor
641build_cpu
642build
643INSTALL_CMD
644PKG_CONFIG
645CHANGELOG_CMD
646STRICT_CFLAGS
647CWARNFLAGS
648BASE_CFLAGS
649AM_BACKSLASH
650AM_DEFAULT_VERBOSITY
651AM_DEFAULT_V
652AM_V
653am__fastdepCC_FALSE
654am__fastdepCC_TRUE
655CCDEPMODE
656am__nodep
657AMDEPBACKSLASH
658AMDEP_FALSE
659AMDEP_TRUE
660am__quote
661am__include
662DEPDIR
663am__untar
664am__tar
665AMTAR
666am__leading_dot
667SET_MAKE
668AWK
669mkdir_p
670MKDIR_P
671INSTALL_STRIP_PROGRAM
672STRIP
673install_sh
674MAKEINFO
675AUTOHEADER
676AUTOMAKE
677AUTOCONF
678ACLOCAL
679VERSION
680PACKAGE
681CYGPATH_W
682am__isrc
683INSTALL_DATA
684INSTALL_SCRIPT
685INSTALL_PROGRAM
686EGREP
687GREP
688CPP
689OBJEXT
690EXEEXT
691ac_ct_CC
692CPPFLAGS
693LDFLAGS
694CFLAGS
695CC
696target_alias
697host_alias
698build_alias
699LIBS
700ECHO_T
701ECHO_N
702ECHO_C
703DEFS
704mandir
705localedir
706libdir
707psdir
708pdfdir
709dvidir
710htmldir
711infodir
712docdir
713oldincludedir
714includedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files=''
735ac_user_opts='
736enable_option_checking
737enable_dependency_tracking
738enable_silent_rules
739enable_selective_werror
740enable_strict_compilation
741with_rgb_db_dir
742with_rgb_db_type
743'
744      ac_precious_vars='build_alias
745host_alias
746target_alias
747CC
748CFLAGS
749LDFLAGS
750LIBS
751CPPFLAGS
752CPP
753PKG_CONFIG
754RGB_CFLAGS
755RGB_LIBS
756XORG_CFLAGS
757XORG_LIBS'
758
759
760# Initialize some variables set by options.
761ac_init_help=
762ac_init_version=false
763ac_unrecognized_opts=
764ac_unrecognized_sep=
765# The variables have the same names as the options, with
766# dashes changed to underlines.
767cache_file=/dev/null
768exec_prefix=NONE
769no_create=
770no_recursion=
771prefix=NONE
772program_prefix=NONE
773program_suffix=NONE
774program_transform_name=s,x,x,
775silent=
776site=
777srcdir=
778verbose=
779x_includes=NONE
780x_libraries=NONE
781
782# Installation directory options.
783# These are left unexpanded so users can "make install exec_prefix=/foo"
784# and all the variables that are supposed to be based on exec_prefix
785# by default will actually change.
786# Use braces instead of parens because sh, perl, etc. also accept them.
787# (The list follows the same order as the GNU Coding Standards.)
788bindir='${exec_prefix}/bin'
789sbindir='${exec_prefix}/sbin'
790libexecdir='${exec_prefix}/libexec'
791datarootdir='${prefix}/share'
792datadir='${datarootdir}'
793sysconfdir='${prefix}/etc'
794sharedstatedir='${prefix}/com'
795localstatedir='${prefix}/var'
796includedir='${prefix}/include'
797oldincludedir='/usr/include'
798docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799infodir='${datarootdir}/info'
800htmldir='${docdir}'
801dvidir='${docdir}'
802pdfdir='${docdir}'
803psdir='${docdir}'
804libdir='${exec_prefix}/lib'
805localedir='${datarootdir}/locale'
806mandir='${datarootdir}/man'
807
808ac_prev=
809ac_dashdash=
810for ac_option
811do
812  # If the previous option needs an argument, assign it.
813  if test -n "$ac_prev"; then
814    eval $ac_prev=\$ac_option
815    ac_prev=
816    continue
817  fi
818
819  case $ac_option in
820  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821  *=)   ac_optarg= ;;
822  *)    ac_optarg=yes ;;
823  esac
824
825  # Accept the important Cygnus configure options, so we can diagnose typos.
826
827  case $ac_dashdash$ac_option in
828  --)
829    ac_dashdash=yes ;;
830
831  -bindir | --bindir | --bindi | --bind | --bin | --bi)
832    ac_prev=bindir ;;
833  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834    bindir=$ac_optarg ;;
835
836  -build | --build | --buil | --bui | --bu)
837    ac_prev=build_alias ;;
838  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839    build_alias=$ac_optarg ;;
840
841  -cache-file | --cache-file | --cache-fil | --cache-fi \
842  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843    ac_prev=cache_file ;;
844  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846    cache_file=$ac_optarg ;;
847
848  --config-cache | -C)
849    cache_file=config.cache ;;
850
851  -datadir | --datadir | --datadi | --datad)
852    ac_prev=datadir ;;
853  -datadir=* | --datadir=* | --datadi=* | --datad=*)
854    datadir=$ac_optarg ;;
855
856  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857  | --dataroo | --dataro | --datar)
858    ac_prev=datarootdir ;;
859  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861    datarootdir=$ac_optarg ;;
862
863  -disable-* | --disable-*)
864    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865    # Reject names that are not valid shell variable names.
866    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867      as_fn_error $? "invalid feature name: $ac_useropt"
868    ac_useropt_orig=$ac_useropt
869    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870    case $ac_user_opts in
871      *"
872"enable_$ac_useropt"
873"*) ;;
874      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875	 ac_unrecognized_sep=', ';;
876    esac
877    eval enable_$ac_useropt=no ;;
878
879  -docdir | --docdir | --docdi | --doc | --do)
880    ac_prev=docdir ;;
881  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882    docdir=$ac_optarg ;;
883
884  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885    ac_prev=dvidir ;;
886  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887    dvidir=$ac_optarg ;;
888
889  -enable-* | --enable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error $? "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=\$ac_optarg ;;
904
905  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907  | --exec | --exe | --ex)
908    ac_prev=exec_prefix ;;
909  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911  | --exec=* | --exe=* | --ex=*)
912    exec_prefix=$ac_optarg ;;
913
914  -gas | --gas | --ga | --g)
915    # Obsolete; use --with-gas.
916    with_gas=yes ;;
917
918  -help | --help | --hel | --he | -h)
919    ac_init_help=long ;;
920  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921    ac_init_help=recursive ;;
922  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923    ac_init_help=short ;;
924
925  -host | --host | --hos | --ho)
926    ac_prev=host_alias ;;
927  -host=* | --host=* | --hos=* | --ho=*)
928    host_alias=$ac_optarg ;;
929
930  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931    ac_prev=htmldir ;;
932  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933  | --ht=*)
934    htmldir=$ac_optarg ;;
935
936  -includedir | --includedir | --includedi | --included | --include \
937  | --includ | --inclu | --incl | --inc)
938    ac_prev=includedir ;;
939  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940  | --includ=* | --inclu=* | --incl=* | --inc=*)
941    includedir=$ac_optarg ;;
942
943  -infodir | --infodir | --infodi | --infod | --info | --inf)
944    ac_prev=infodir ;;
945  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946    infodir=$ac_optarg ;;
947
948  -libdir | --libdir | --libdi | --libd)
949    ac_prev=libdir ;;
950  -libdir=* | --libdir=* | --libdi=* | --libd=*)
951    libdir=$ac_optarg ;;
952
953  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954  | --libexe | --libex | --libe)
955    ac_prev=libexecdir ;;
956  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957  | --libexe=* | --libex=* | --libe=*)
958    libexecdir=$ac_optarg ;;
959
960  -localedir | --localedir | --localedi | --localed | --locale)
961    ac_prev=localedir ;;
962  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963    localedir=$ac_optarg ;;
964
965  -localstatedir | --localstatedir | --localstatedi | --localstated \
966  | --localstate | --localstat | --localsta | --localst | --locals)
967    ac_prev=localstatedir ;;
968  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970    localstatedir=$ac_optarg ;;
971
972  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973    ac_prev=mandir ;;
974  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975    mandir=$ac_optarg ;;
976
977  -nfp | --nfp | --nf)
978    # Obsolete; use --without-fp.
979    with_fp=no ;;
980
981  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982  | --no-cr | --no-c | -n)
983    no_create=yes ;;
984
985  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987    no_recursion=yes ;;
988
989  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991  | --oldin | --oldi | --old | --ol | --o)
992    ac_prev=oldincludedir ;;
993  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996    oldincludedir=$ac_optarg ;;
997
998  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999    ac_prev=prefix ;;
1000  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001    prefix=$ac_optarg ;;
1002
1003  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004  | --program-pre | --program-pr | --program-p)
1005    ac_prev=program_prefix ;;
1006  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008    program_prefix=$ac_optarg ;;
1009
1010  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011  | --program-suf | --program-su | --program-s)
1012    ac_prev=program_suffix ;;
1013  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015    program_suffix=$ac_optarg ;;
1016
1017  -program-transform-name | --program-transform-name \
1018  | --program-transform-nam | --program-transform-na \
1019  | --program-transform-n | --program-transform- \
1020  | --program-transform | --program-transfor \
1021  | --program-transfo | --program-transf \
1022  | --program-trans | --program-tran \
1023  | --progr-tra | --program-tr | --program-t)
1024    ac_prev=program_transform_name ;;
1025  -program-transform-name=* | --program-transform-name=* \
1026  | --program-transform-nam=* | --program-transform-na=* \
1027  | --program-transform-n=* | --program-transform-=* \
1028  | --program-transform=* | --program-transfor=* \
1029  | --program-transfo=* | --program-transf=* \
1030  | --program-trans=* | --program-tran=* \
1031  | --progr-tra=* | --program-tr=* | --program-t=*)
1032    program_transform_name=$ac_optarg ;;
1033
1034  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035    ac_prev=pdfdir ;;
1036  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037    pdfdir=$ac_optarg ;;
1038
1039  -psdir | --psdir | --psdi | --psd | --ps)
1040    ac_prev=psdir ;;
1041  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042    psdir=$ac_optarg ;;
1043
1044  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045  | -silent | --silent | --silen | --sile | --sil)
1046    silent=yes ;;
1047
1048  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049    ac_prev=sbindir ;;
1050  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051  | --sbi=* | --sb=*)
1052    sbindir=$ac_optarg ;;
1053
1054  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056  | --sharedst | --shareds | --shared | --share | --shar \
1057  | --sha | --sh)
1058    ac_prev=sharedstatedir ;;
1059  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062  | --sha=* | --sh=*)
1063    sharedstatedir=$ac_optarg ;;
1064
1065  -site | --site | --sit)
1066    ac_prev=site ;;
1067  -site=* | --site=* | --sit=*)
1068    site=$ac_optarg ;;
1069
1070  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071    ac_prev=srcdir ;;
1072  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073    srcdir=$ac_optarg ;;
1074
1075  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076  | --syscon | --sysco | --sysc | --sys | --sy)
1077    ac_prev=sysconfdir ;;
1078  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080    sysconfdir=$ac_optarg ;;
1081
1082  -target | --target | --targe | --targ | --tar | --ta | --t)
1083    ac_prev=target_alias ;;
1084  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085    target_alias=$ac_optarg ;;
1086
1087  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088    verbose=yes ;;
1089
1090  -version | --version | --versio | --versi | --vers | -V)
1091    ac_init_version=: ;;
1092
1093  -with-* | --with-*)
1094    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095    # Reject names that are not valid shell variable names.
1096    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097      as_fn_error $? "invalid package name: $ac_useropt"
1098    ac_useropt_orig=$ac_useropt
1099    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100    case $ac_user_opts in
1101      *"
1102"with_$ac_useropt"
1103"*) ;;
1104      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105	 ac_unrecognized_sep=', ';;
1106    esac
1107    eval with_$ac_useropt=\$ac_optarg ;;
1108
1109  -without-* | --without-*)
1110    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111    # Reject names that are not valid shell variable names.
1112    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113      as_fn_error $? "invalid package name: $ac_useropt"
1114    ac_useropt_orig=$ac_useropt
1115    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116    case $ac_user_opts in
1117      *"
1118"with_$ac_useropt"
1119"*) ;;
1120      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121	 ac_unrecognized_sep=', ';;
1122    esac
1123    eval with_$ac_useropt=no ;;
1124
1125  --x)
1126    # Obsolete; use --with-x.
1127    with_x=yes ;;
1128
1129  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130  | --x-incl | --x-inc | --x-in | --x-i)
1131    ac_prev=x_includes ;;
1132  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134    x_includes=$ac_optarg ;;
1135
1136  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138    ac_prev=x_libraries ;;
1139  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141    x_libraries=$ac_optarg ;;
1142
1143  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1144Try \`$0 --help' for more information"
1145    ;;
1146
1147  *=*)
1148    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149    # Reject names that are not valid shell variable names.
1150    case $ac_envvar in #(
1151      '' | [0-9]* | *[!_$as_cr_alnum]* )
1152      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1153    esac
1154    eval $ac_envvar=\$ac_optarg
1155    export $ac_envvar ;;
1156
1157  *)
1158    # FIXME: should be removed in autoconf 3.0.
1159    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163    ;;
1164
1165  esac
1166done
1167
1168if test -n "$ac_prev"; then
1169  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170  as_fn_error $? "missing argument to $ac_option"
1171fi
1172
1173if test -n "$ac_unrecognized_opts"; then
1174  case $enable_option_checking in
1175    no) ;;
1176    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1177    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178  esac
1179fi
1180
1181# Check all directory arguments for consistency.
1182for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183		datadir sysconfdir sharedstatedir localstatedir includedir \
1184		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185		libdir localedir mandir
1186do
1187  eval ac_val=\$$ac_var
1188  # Remove trailing slashes.
1189  case $ac_val in
1190    */ )
1191      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192      eval $ac_var=\$ac_val;;
1193  esac
1194  # Be sure to have absolute directory names.
1195  case $ac_val in
1196    [\\/$]* | ?:[\\/]* )  continue;;
1197    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198  esac
1199  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200done
1201
1202# There might be people who depend on the old broken behavior: `$host'
1203# used to hold the argument of --host etc.
1204# FIXME: To remove some day.
1205build=$build_alias
1206host=$host_alias
1207target=$target_alias
1208
1209# FIXME: To remove some day.
1210if test "x$host_alias" != x; then
1211  if test "x$build_alias" = x; then
1212    cross_compiling=maybe
1213    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1214    If a cross compiler is detected then cross compile mode will be used" >&2
1215  elif test "x$build_alias" != "x$host_alias"; then
1216    cross_compiling=yes
1217  fi
1218fi
1219
1220ac_tool_prefix=
1221test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223test "$silent" = yes && exec 6>/dev/null
1224
1225
1226ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227ac_ls_di=`ls -di .` &&
1228ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229  as_fn_error $? "working directory cannot be determined"
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231  as_fn_error $? "pwd does not report name of working directory"
1232
1233
1234# Find the source files, if location was not specified.
1235if test -z "$srcdir"; then
1236  ac_srcdir_defaulted=yes
1237  # Try the directory containing this script, then the parent directory.
1238  ac_confdir=`$as_dirname -- "$as_myself" ||
1239$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240	 X"$as_myself" : 'X\(//\)[^/]' \| \
1241	 X"$as_myself" : 'X\(//\)$' \| \
1242	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243$as_echo X"$as_myself" |
1244    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245	    s//\1/
1246	    q
1247	  }
1248	  /^X\(\/\/\)[^/].*/{
1249	    s//\1/
1250	    q
1251	  }
1252	  /^X\(\/\/\)$/{
1253	    s//\1/
1254	    q
1255	  }
1256	  /^X\(\/\).*/{
1257	    s//\1/
1258	    q
1259	  }
1260	  s/.*/./; q'`
1261  srcdir=$ac_confdir
1262  if test ! -r "$srcdir/$ac_unique_file"; then
1263    srcdir=..
1264  fi
1265else
1266  ac_srcdir_defaulted=no
1267fi
1268if test ! -r "$srcdir/$ac_unique_file"; then
1269  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1271fi
1272ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273ac_abs_confdir=`(
1274	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1275	pwd)`
1276# When building in place, set srcdir=.
1277if test "$ac_abs_confdir" = "$ac_pwd"; then
1278  srcdir=.
1279fi
1280# Remove unnecessary trailing slashes from srcdir.
1281# Double slashes in file names in object file debugging info
1282# mess up M-x gdb in Emacs.
1283case $srcdir in
1284*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285esac
1286for ac_var in $ac_precious_vars; do
1287  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288  eval ac_env_${ac_var}_value=\$${ac_var}
1289  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291done
1292
1293#
1294# Report the --help message.
1295#
1296if test "$ac_init_help" = "long"; then
1297  # Omit some internal or obsolete options to make the list less imposing.
1298  # This message is too long to be a string in the A/UX 3.1 sh.
1299  cat <<_ACEOF
1300\`configure' configures rgb 1.0.6 to adapt to many kinds of systems.
1301
1302Usage: $0 [OPTION]... [VAR=VALUE]...
1303
1304To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305VAR=VALUE.  See below for descriptions of some of the useful variables.
1306
1307Defaults for the options are specified in brackets.
1308
1309Configuration:
1310  -h, --help              display this help and exit
1311      --help=short        display options specific to this package
1312      --help=recursive    display the short help of all the included packages
1313  -V, --version           display version information and exit
1314  -q, --quiet, --silent   do not print \`checking ...' messages
1315      --cache-file=FILE   cache test results in FILE [disabled]
1316  -C, --config-cache      alias for \`--cache-file=config.cache'
1317  -n, --no-create         do not create output files
1318      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1319
1320Installation directories:
1321  --prefix=PREFIX         install architecture-independent files in PREFIX
1322                          [$ac_default_prefix]
1323  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1324                          [PREFIX]
1325
1326By default, \`make install' will install all the files in
1327\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1328an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329for instance \`--prefix=\$HOME'.
1330
1331For better control, use the options below.
1332
1333Fine tuning of the installation directories:
1334  --bindir=DIR            user executables [EPREFIX/bin]
1335  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1336  --libexecdir=DIR        program executables [EPREFIX/libexec]
1337  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1338  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1339  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1340  --libdir=DIR            object code libraries [EPREFIX/lib]
1341  --includedir=DIR        C header files [PREFIX/include]
1342  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1343  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1344  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1345  --infodir=DIR           info documentation [DATAROOTDIR/info]
1346  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1347  --mandir=DIR            man documentation [DATAROOTDIR/man]
1348  --docdir=DIR            documentation root [DATAROOTDIR/doc/rgb]
1349  --htmldir=DIR           html documentation [DOCDIR]
1350  --dvidir=DIR            dvi documentation [DOCDIR]
1351  --pdfdir=DIR            pdf documentation [DOCDIR]
1352  --psdir=DIR             ps documentation [DOCDIR]
1353_ACEOF
1354
1355  cat <<\_ACEOF
1356
1357Program names:
1358  --program-prefix=PREFIX            prepend PREFIX to installed program names
1359  --program-suffix=SUFFIX            append SUFFIX to installed program names
1360  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1361
1362System types:
1363  --build=BUILD     configure for building on BUILD [guessed]
1364  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1365_ACEOF
1366fi
1367
1368if test -n "$ac_init_help"; then
1369  case $ac_init_help in
1370     short | recursive ) echo "Configuration of rgb 1.0.6:";;
1371   esac
1372  cat <<\_ACEOF
1373
1374Optional Features:
1375  --disable-option-checking  ignore unrecognized --enable/--with options
1376  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378  --enable-dependency-tracking
1379                          do not reject slow dependency extractors
1380  --disable-dependency-tracking
1381                          speeds up one-time build
1382  --enable-silent-rules   less verbose build output (undo: "make V=1")
1383  --disable-silent-rules  verbose build output (undo: "make V=0")
1384  --disable-selective-werror
1385                          Turn off selective compiler errors. (default:
1386                          enabled)
1387  --enable-strict-compilation
1388                          Enable all warnings from compiler and make them
1389                          errors (default: disabled)
1390
1391Optional Packages:
1392  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1393  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1394  --with-rgb-db-dir=<path>
1395                          rgb database location (default is
1396                          ${datadir}/X11/rgb)
1397  --with-rgb-db-type=(text|dbm|ndbm)
1398                          rgb database type (default is text)
1399
1400Some influential environment variables:
1401  CC          C compiler command
1402  CFLAGS      C compiler flags
1403  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1404              nonstandard directory <lib dir>
1405  LIBS        libraries to pass to the linker, e.g. -l<library>
1406  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1407              you have headers in a nonstandard directory <include dir>
1408  CPP         C preprocessor
1409  PKG_CONFIG  path to pkg-config utility
1410  RGB_CFLAGS  C compiler flags for RGB, overriding pkg-config
1411  RGB_LIBS    linker flags for RGB, overriding pkg-config
1412  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1413  XORG_LIBS   linker flags for XORG, overriding pkg-config
1414
1415Use these variables to override the choices made by `configure' or to help
1416it to find libraries and programs with nonstandard names/locations.
1417
1418Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1419_ACEOF
1420ac_status=$?
1421fi
1422
1423if test "$ac_init_help" = "recursive"; then
1424  # If there are subdirs, report their specific --help.
1425  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426    test -d "$ac_dir" ||
1427      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428      continue
1429    ac_builddir=.
1430
1431case "$ac_dir" in
1432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433*)
1434  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435  # A ".." for each directory in $ac_dir_suffix.
1436  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437  case $ac_top_builddir_sub in
1438  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440  esac ;;
1441esac
1442ac_abs_top_builddir=$ac_pwd
1443ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444# for backward compatibility:
1445ac_top_builddir=$ac_top_build_prefix
1446
1447case $srcdir in
1448  .)  # We are building in place.
1449    ac_srcdir=.
1450    ac_top_srcdir=$ac_top_builddir_sub
1451    ac_abs_top_srcdir=$ac_pwd ;;
1452  [\\/]* | ?:[\\/]* )  # Absolute name.
1453    ac_srcdir=$srcdir$ac_dir_suffix;
1454    ac_top_srcdir=$srcdir
1455    ac_abs_top_srcdir=$srcdir ;;
1456  *) # Relative name.
1457    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458    ac_top_srcdir=$ac_top_build_prefix$srcdir
1459    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460esac
1461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463    cd "$ac_dir" || { ac_status=$?; continue; }
1464    # Check for guested configure.
1465    if test -f "$ac_srcdir/configure.gnu"; then
1466      echo &&
1467      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468    elif test -f "$ac_srcdir/configure"; then
1469      echo &&
1470      $SHELL "$ac_srcdir/configure" --help=recursive
1471    else
1472      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473    fi || ac_status=$?
1474    cd "$ac_pwd" || { ac_status=$?; break; }
1475  done
1476fi
1477
1478test -n "$ac_init_help" && exit $ac_status
1479if $ac_init_version; then
1480  cat <<\_ACEOF
1481rgb configure 1.0.6
1482generated by GNU Autoconf 2.68
1483
1484Copyright (C) 2010 Free Software Foundation, Inc.
1485This configure script is free software; the Free Software Foundation
1486gives unlimited permission to copy, distribute and modify it.
1487_ACEOF
1488  exit
1489fi
1490
1491## ------------------------ ##
1492## Autoconf initialization. ##
1493## ------------------------ ##
1494
1495# ac_fn_c_try_compile LINENO
1496# --------------------------
1497# Try to compile conftest.$ac_ext, and return whether this succeeded.
1498ac_fn_c_try_compile ()
1499{
1500  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501  rm -f conftest.$ac_objext
1502  if { { ac_try="$ac_compile"
1503case "(($ac_try" in
1504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505  *) ac_try_echo=$ac_try;;
1506esac
1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508$as_echo "$ac_try_echo"; } >&5
1509  (eval "$ac_compile") 2>conftest.err
1510  ac_status=$?
1511  if test -s conftest.err; then
1512    grep -v '^ *+' conftest.err >conftest.er1
1513    cat conftest.er1 >&5
1514    mv -f conftest.er1 conftest.err
1515  fi
1516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517  test $ac_status = 0; } && {
1518	 test -z "$ac_c_werror_flag" ||
1519	 test ! -s conftest.err
1520       } && test -s conftest.$ac_objext; then :
1521  ac_retval=0
1522else
1523  $as_echo "$as_me: failed program was:" >&5
1524sed 's/^/| /' conftest.$ac_ext >&5
1525
1526	ac_retval=1
1527fi
1528  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529  as_fn_set_status $ac_retval
1530
1531} # ac_fn_c_try_compile
1532
1533# ac_fn_c_try_cpp LINENO
1534# ----------------------
1535# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_cpp ()
1537{
1538  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539  if { { ac_try="$ac_cpp conftest.$ac_ext"
1540case "(($ac_try" in
1541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542  *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1547  ac_status=$?
1548  if test -s conftest.err; then
1549    grep -v '^ *+' conftest.err >conftest.er1
1550    cat conftest.er1 >&5
1551    mv -f conftest.er1 conftest.err
1552  fi
1553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554  test $ac_status = 0; } > conftest.i && {
1555	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1556	 test ! -s conftest.err
1557       }; then :
1558  ac_retval=0
1559else
1560  $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
1562
1563    ac_retval=1
1564fi
1565  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566  as_fn_set_status $ac_retval
1567
1568} # ac_fn_c_try_cpp
1569
1570# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1571# -------------------------------------------------------
1572# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1573# the include files in INCLUDES and setting the cache variable VAR
1574# accordingly.
1575ac_fn_c_check_header_mongrel ()
1576{
1577  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578  if eval \${$3+:} false; then :
1579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580$as_echo_n "checking for $2... " >&6; }
1581if eval \${$3+:} false; then :
1582  $as_echo_n "(cached) " >&6
1583fi
1584eval ac_res=\$$3
1585	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1586$as_echo "$ac_res" >&6; }
1587else
1588  # Is the header compilable?
1589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1590$as_echo_n "checking $2 usability... " >&6; }
1591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592/* end confdefs.h.  */
1593$4
1594#include <$2>
1595_ACEOF
1596if ac_fn_c_try_compile "$LINENO"; then :
1597  ac_header_compiler=yes
1598else
1599  ac_header_compiler=no
1600fi
1601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1603$as_echo "$ac_header_compiler" >&6; }
1604
1605# Is the header present?
1606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1607$as_echo_n "checking $2 presence... " >&6; }
1608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h.  */
1610#include <$2>
1611_ACEOF
1612if ac_fn_c_try_cpp "$LINENO"; then :
1613  ac_header_preproc=yes
1614else
1615  ac_header_preproc=no
1616fi
1617rm -f conftest.err conftest.i conftest.$ac_ext
1618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1619$as_echo "$ac_header_preproc" >&6; }
1620
1621# So?  What about this header?
1622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1623  yes:no: )
1624    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1625$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1626    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1627$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1628    ;;
1629  no:yes:* )
1630    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1631$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1632    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1633$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1634    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1635$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1636    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1637$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1638    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1639$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1640( $as_echo "## ---------------------------------------------------------------------- ##
1641## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1642## ---------------------------------------------------------------------- ##"
1643     ) | sed "s/^/$as_me: WARNING:     /" >&2
1644    ;;
1645esac
1646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647$as_echo_n "checking for $2... " >&6; }
1648if eval \${$3+:} false; then :
1649  $as_echo_n "(cached) " >&6
1650else
1651  eval "$3=\$ac_header_compiler"
1652fi
1653eval ac_res=\$$3
1654	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655$as_echo "$ac_res" >&6; }
1656fi
1657  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658
1659} # ac_fn_c_check_header_mongrel
1660
1661# ac_fn_c_try_run LINENO
1662# ----------------------
1663# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664# that executables *can* be run.
1665ac_fn_c_try_run ()
1666{
1667  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668  if { { ac_try="$ac_link"
1669case "(($ac_try" in
1670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671  *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675  (eval "$ac_link") 2>&5
1676  ac_status=$?
1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679  { { case "(($ac_try" in
1680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681  *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685  (eval "$ac_try") 2>&5
1686  ac_status=$?
1687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688  test $ac_status = 0; }; }; then :
1689  ac_retval=0
1690else
1691  $as_echo "$as_me: program exited with status $ac_status" >&5
1692       $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695       ac_retval=$ac_status
1696fi
1697  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699  as_fn_set_status $ac_retval
1700
1701} # ac_fn_c_try_run
1702
1703# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704# -------------------------------------------------------
1705# Tests whether HEADER exists and can be compiled using the include files in
1706# INCLUDES, setting the cache variable VAR accordingly.
1707ac_fn_c_check_header_compile ()
1708{
1709  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711$as_echo_n "checking for $2... " >&6; }
1712if eval \${$3+:} false; then :
1713  $as_echo_n "(cached) " >&6
1714else
1715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716/* end confdefs.h.  */
1717$4
1718#include <$2>
1719_ACEOF
1720if ac_fn_c_try_compile "$LINENO"; then :
1721  eval "$3=yes"
1722else
1723  eval "$3=no"
1724fi
1725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726fi
1727eval ac_res=\$$3
1728	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729$as_echo "$ac_res" >&6; }
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732} # ac_fn_c_check_header_compile
1733
1734# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1735# ---------------------------------------------
1736# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1737# accordingly.
1738ac_fn_c_check_decl ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  as_decl_name=`echo $2|sed 's/ *(.*//'`
1742  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1744$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1745if eval \${$3+:} false; then :
1746  $as_echo_n "(cached) " >&6
1747else
1748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750$4
1751int
1752main ()
1753{
1754#ifndef $as_decl_name
1755#ifdef __cplusplus
1756  (void) $as_decl_use;
1757#else
1758  (void) $as_decl_name;
1759#endif
1760#endif
1761
1762  ;
1763  return 0;
1764}
1765_ACEOF
1766if ac_fn_c_try_compile "$LINENO"; then :
1767  eval "$3=yes"
1768else
1769  eval "$3=no"
1770fi
1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772fi
1773eval ac_res=\$$3
1774	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775$as_echo "$ac_res" >&6; }
1776  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778} # ac_fn_c_check_decl
1779
1780# ac_fn_c_try_link LINENO
1781# -----------------------
1782# Try to link conftest.$ac_ext, and return whether this succeeded.
1783ac_fn_c_try_link ()
1784{
1785  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786  rm -f conftest.$ac_objext conftest$ac_exeext
1787  if { { ac_try="$ac_link"
1788case "(($ac_try" in
1789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790  *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794  (eval "$ac_link") 2>conftest.err
1795  ac_status=$?
1796  if test -s conftest.err; then
1797    grep -v '^ *+' conftest.err >conftest.er1
1798    cat conftest.er1 >&5
1799    mv -f conftest.er1 conftest.err
1800  fi
1801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802  test $ac_status = 0; } && {
1803	 test -z "$ac_c_werror_flag" ||
1804	 test ! -s conftest.err
1805       } && test -s conftest$ac_exeext && {
1806	 test "$cross_compiling" = yes ||
1807	 $as_test_x conftest$ac_exeext
1808       }; then :
1809  ac_retval=0
1810else
1811  $as_echo "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814	ac_retval=1
1815fi
1816  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818  # interfere with the next link command; also delete a directory that is
1819  # left behind by Apple's compiler.  We do this before executing the actions.
1820  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822  as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_link
1825
1826# ac_fn_c_check_func LINENO FUNC VAR
1827# ----------------------------------
1828# Tests whether FUNC exists, setting the cache variable VAR accordingly
1829ac_fn_c_check_func ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if eval \${$3+:} false; then :
1835  $as_echo_n "(cached) " >&6
1836else
1837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h.  */
1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1841#define $2 innocuous_$2
1842
1843/* System header to define __stub macros and hopefully few prototypes,
1844    which can conflict with char $2 (); below.
1845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846    <limits.h> exists even on freestanding compilers.  */
1847
1848#ifdef __STDC__
1849# include <limits.h>
1850#else
1851# include <assert.h>
1852#endif
1853
1854#undef $2
1855
1856/* Override any GCC internal prototype to avoid an error.
1857   Use char because int might match the return type of a GCC
1858   builtin and then its argument prototype would still apply.  */
1859#ifdef __cplusplus
1860extern "C"
1861#endif
1862char $2 ();
1863/* The GNU C library defines this for functions which it implements
1864    to always fail with ENOSYS.  Some functions are actually named
1865    something starting with __ and the normal name is an alias.  */
1866#if defined __stub_$2 || defined __stub___$2
1867choke me
1868#endif
1869
1870int
1871main ()
1872{
1873return $2 ();
1874  ;
1875  return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_link "$LINENO"; then :
1879  eval "$3=yes"
1880else
1881  eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext \
1884    conftest$ac_exeext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_func
1892cat >config.log <<_ACEOF
1893This file contains any messages produced by compilers while
1894running configure, to aid debugging if configure makes a mistake.
1895
1896It was created by rgb $as_me 1.0.6, which was
1897generated by GNU Autoconf 2.68.  Invocation command line was
1898
1899  $ $0 $@
1900
1901_ACEOF
1902exec 5>>config.log
1903{
1904cat <<_ASUNAME
1905## --------- ##
1906## Platform. ##
1907## --------- ##
1908
1909hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1910uname -m = `(uname -m) 2>/dev/null || echo unknown`
1911uname -r = `(uname -r) 2>/dev/null || echo unknown`
1912uname -s = `(uname -s) 2>/dev/null || echo unknown`
1913uname -v = `(uname -v) 2>/dev/null || echo unknown`
1914
1915/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1916/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1917
1918/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1919/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1920/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1921/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1922/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1923/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1924/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1925
1926_ASUNAME
1927
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931  IFS=$as_save_IFS
1932  test -z "$as_dir" && as_dir=.
1933    $as_echo "PATH: $as_dir"
1934  done
1935IFS=$as_save_IFS
1936
1937} >&5
1938
1939cat >&5 <<_ACEOF
1940
1941
1942## ----------- ##
1943## Core tests. ##
1944## ----------- ##
1945
1946_ACEOF
1947
1948
1949# Keep a trace of the command line.
1950# Strip out --no-create and --no-recursion so they do not pile up.
1951# Strip out --silent because we don't want to record it for future runs.
1952# Also quote any args containing shell meta-characters.
1953# Make two passes to allow for proper duplicate-argument suppression.
1954ac_configure_args=
1955ac_configure_args0=
1956ac_configure_args1=
1957ac_must_keep_next=false
1958for ac_pass in 1 2
1959do
1960  for ac_arg
1961  do
1962    case $ac_arg in
1963    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965    | -silent | --silent | --silen | --sile | --sil)
1966      continue ;;
1967    *\'*)
1968      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969    esac
1970    case $ac_pass in
1971    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1972    2)
1973      as_fn_append ac_configure_args1 " '$ac_arg'"
1974      if test $ac_must_keep_next = true; then
1975	ac_must_keep_next=false # Got value, back to normal.
1976      else
1977	case $ac_arg in
1978	  *=* | --config-cache | -C | -disable-* | --disable-* \
1979	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981	  | -with-* | --with-* | -without-* | --without-* | --x)
1982	    case "$ac_configure_args0 " in
1983	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1984	    esac
1985	    ;;
1986	  -* ) ac_must_keep_next=true ;;
1987	esac
1988      fi
1989      as_fn_append ac_configure_args " '$ac_arg'"
1990      ;;
1991    esac
1992  done
1993done
1994{ ac_configure_args0=; unset ac_configure_args0;}
1995{ ac_configure_args1=; unset ac_configure_args1;}
1996
1997# When interrupted or exit'd, cleanup temporary files, and complete
1998# config.log.  We remove comments because anyway the quotes in there
1999# would cause problems or look ugly.
2000# WARNING: Use '\'' to represent an apostrophe within the trap.
2001# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002trap 'exit_status=$?
2003  # Save into config.log some information that might help in debugging.
2004  {
2005    echo
2006
2007    $as_echo "## ---------------- ##
2008## Cache variables. ##
2009## ---------------- ##"
2010    echo
2011    # The following way of writing the cache mishandles newlines in values,
2012(
2013  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014    eval ac_val=\$$ac_var
2015    case $ac_val in #(
2016    *${as_nl}*)
2017      case $ac_var in #(
2018      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020      esac
2021      case $ac_var in #(
2022      _ | IFS | as_nl) ;; #(
2023      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024      *) { eval $ac_var=; unset $ac_var;} ;;
2025      esac ;;
2026    esac
2027  done
2028  (set) 2>&1 |
2029    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030    *${as_nl}ac_space=\ *)
2031      sed -n \
2032	"s/'\''/'\''\\\\'\'''\''/g;
2033	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034      ;; #(
2035    *)
2036      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037      ;;
2038    esac |
2039    sort
2040)
2041    echo
2042
2043    $as_echo "## ----------------- ##
2044## Output variables. ##
2045## ----------------- ##"
2046    echo
2047    for ac_var in $ac_subst_vars
2048    do
2049      eval ac_val=\$$ac_var
2050      case $ac_val in
2051      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052      esac
2053      $as_echo "$ac_var='\''$ac_val'\''"
2054    done | sort
2055    echo
2056
2057    if test -n "$ac_subst_files"; then
2058      $as_echo "## ------------------- ##
2059## File substitutions. ##
2060## ------------------- ##"
2061      echo
2062      for ac_var in $ac_subst_files
2063      do
2064	eval ac_val=\$$ac_var
2065	case $ac_val in
2066	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067	esac
2068	$as_echo "$ac_var='\''$ac_val'\''"
2069      done | sort
2070      echo
2071    fi
2072
2073    if test -s confdefs.h; then
2074      $as_echo "## ----------- ##
2075## confdefs.h. ##
2076## ----------- ##"
2077      echo
2078      cat confdefs.h
2079      echo
2080    fi
2081    test "$ac_signal" != 0 &&
2082      $as_echo "$as_me: caught signal $ac_signal"
2083    $as_echo "$as_me: exit $exit_status"
2084  } >&5
2085  rm -f core *.core core.conftest.* &&
2086    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087    exit $exit_status
2088' 0
2089for ac_signal in 1 2 13 15; do
2090  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091done
2092ac_signal=0
2093
2094# confdefs.h avoids OS command line length limits that DEFS can exceed.
2095rm -f -r conftest* confdefs.h
2096
2097$as_echo "/* confdefs.h */" > confdefs.h
2098
2099# Predefined preprocessor variables.
2100
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_NAME "$PACKAGE_NAME"
2103_ACEOF
2104
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2107_ACEOF
2108
2109cat >>confdefs.h <<_ACEOF
2110#define PACKAGE_VERSION "$PACKAGE_VERSION"
2111_ACEOF
2112
2113cat >>confdefs.h <<_ACEOF
2114#define PACKAGE_STRING "$PACKAGE_STRING"
2115_ACEOF
2116
2117cat >>confdefs.h <<_ACEOF
2118#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2119_ACEOF
2120
2121cat >>confdefs.h <<_ACEOF
2122#define PACKAGE_URL "$PACKAGE_URL"
2123_ACEOF
2124
2125
2126# Let the site file select an alternate cache file if it wants to.
2127# Prefer an explicitly selected file to automatically selected ones.
2128ac_site_file1=NONE
2129ac_site_file2=NONE
2130if test -n "$CONFIG_SITE"; then
2131  # We do not want a PATH search for config.site.
2132  case $CONFIG_SITE in #((
2133    -*)  ac_site_file1=./$CONFIG_SITE;;
2134    */*) ac_site_file1=$CONFIG_SITE;;
2135    *)   ac_site_file1=./$CONFIG_SITE;;
2136  esac
2137elif test "x$prefix" != xNONE; then
2138  ac_site_file1=$prefix/share/config.site
2139  ac_site_file2=$prefix/etc/config.site
2140else
2141  ac_site_file1=$ac_default_prefix/share/config.site
2142  ac_site_file2=$ac_default_prefix/etc/config.site
2143fi
2144for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2145do
2146  test "x$ac_site_file" = xNONE && continue
2147  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2148    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2150    sed 's/^/| /' "$ac_site_file" >&5
2151    . "$ac_site_file" \
2152      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154as_fn_error $? "failed to load site script $ac_site_file
2155See \`config.log' for more details" "$LINENO" 5; }
2156  fi
2157done
2158
2159if test -r "$cache_file"; then
2160  # Some versions of bash will fail to source /dev/null (special files
2161  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2162  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2163    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164$as_echo "$as_me: loading cache $cache_file" >&6;}
2165    case $cache_file in
2166      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167      *)                      . "./$cache_file";;
2168    esac
2169  fi
2170else
2171  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172$as_echo "$as_me: creating cache $cache_file" >&6;}
2173  >$cache_file
2174fi
2175
2176# Check that the precious variables saved in the cache have kept the same
2177# value.
2178ac_cache_corrupted=false
2179for ac_var in $ac_precious_vars; do
2180  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2181  eval ac_new_set=\$ac_env_${ac_var}_set
2182  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2183  eval ac_new_val=\$ac_env_${ac_var}_value
2184  case $ac_old_set,$ac_new_set in
2185    set,)
2186      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2187$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2188      ac_cache_corrupted=: ;;
2189    ,set)
2190      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2191$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2192      ac_cache_corrupted=: ;;
2193    ,);;
2194    *)
2195      if test "x$ac_old_val" != "x$ac_new_val"; then
2196	# differences in whitespace do not lead to failure.
2197	ac_old_val_w=`echo x $ac_old_val`
2198	ac_new_val_w=`echo x $ac_new_val`
2199	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2200	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2201$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2202	  ac_cache_corrupted=:
2203	else
2204	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2205$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2206	  eval $ac_var=\$ac_old_val
2207	fi
2208	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2209$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2210	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2211$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2212      fi;;
2213  esac
2214  # Pass precious variables to config.status.
2215  if test "$ac_new_set" = set; then
2216    case $ac_new_val in
2217    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2218    *) ac_arg=$ac_var=$ac_new_val ;;
2219    esac
2220    case " $ac_configure_args " in
2221      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2222      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2223    esac
2224  fi
2225done
2226if $ac_cache_corrupted; then
2227  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2230$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2231  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2232fi
2233## -------------------- ##
2234## Main body of script. ##
2235## -------------------- ##
2236
2237ac_ext=c
2238ac_cpp='$CPP $CPPFLAGS'
2239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242
2243
2244
2245ac_config_headers="$ac_config_headers config.h"
2246
2247# expand $ac_aux_dir to an absolute path
2248am_aux_dir=`cd $ac_aux_dir && pwd`
2249
2250ac_ext=c
2251ac_cpp='$CPP $CPPFLAGS'
2252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255if test -n "$ac_tool_prefix"; then
2256  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2257set dummy ${ac_tool_prefix}gcc; ac_word=$2
2258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2259$as_echo_n "checking for $ac_word... " >&6; }
2260if ${ac_cv_prog_CC+:} false; then :
2261  $as_echo_n "(cached) " >&6
2262else
2263  if test -n "$CC"; then
2264  ac_cv_prog_CC="$CC" # Let the user override the test.
2265else
2266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267for as_dir in $PATH
2268do
2269  IFS=$as_save_IFS
2270  test -z "$as_dir" && as_dir=.
2271    for ac_exec_ext in '' $ac_executable_extensions; do
2272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2273    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2275    break 2
2276  fi
2277done
2278  done
2279IFS=$as_save_IFS
2280
2281fi
2282fi
2283CC=$ac_cv_prog_CC
2284if test -n "$CC"; then
2285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2286$as_echo "$CC" >&6; }
2287else
2288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2289$as_echo "no" >&6; }
2290fi
2291
2292
2293fi
2294if test -z "$ac_cv_prog_CC"; then
2295  ac_ct_CC=$CC
2296  # Extract the first word of "gcc", so it can be a program name with args.
2297set dummy gcc; ac_word=$2
2298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2299$as_echo_n "checking for $ac_word... " >&6; }
2300if ${ac_cv_prog_ac_ct_CC+:} false; then :
2301  $as_echo_n "(cached) " >&6
2302else
2303  if test -n "$ac_ct_CC"; then
2304  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2305else
2306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307for as_dir in $PATH
2308do
2309  IFS=$as_save_IFS
2310  test -z "$as_dir" && as_dir=.
2311    for ac_exec_ext in '' $ac_executable_extensions; do
2312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313    ac_cv_prog_ac_ct_CC="gcc"
2314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2315    break 2
2316  fi
2317done
2318  done
2319IFS=$as_save_IFS
2320
2321fi
2322fi
2323ac_ct_CC=$ac_cv_prog_ac_ct_CC
2324if test -n "$ac_ct_CC"; then
2325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2326$as_echo "$ac_ct_CC" >&6; }
2327else
2328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2329$as_echo "no" >&6; }
2330fi
2331
2332  if test "x$ac_ct_CC" = x; then
2333    CC=""
2334  else
2335    case $cross_compiling:$ac_tool_warned in
2336yes:)
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2339ac_tool_warned=yes ;;
2340esac
2341    CC=$ac_ct_CC
2342  fi
2343else
2344  CC="$ac_cv_prog_CC"
2345fi
2346
2347if test -z "$CC"; then
2348          if test -n "$ac_tool_prefix"; then
2349    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2350set dummy ${ac_tool_prefix}cc; ac_word=$2
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352$as_echo_n "checking for $ac_word... " >&6; }
2353if ${ac_cv_prog_CC+:} false; then :
2354  $as_echo_n "(cached) " >&6
2355else
2356  if test -n "$CC"; then
2357  ac_cv_prog_CC="$CC" # Let the user override the test.
2358else
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362  IFS=$as_save_IFS
2363  test -z "$as_dir" && as_dir=.
2364    for ac_exec_ext in '' $ac_executable_extensions; do
2365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366    ac_cv_prog_CC="${ac_tool_prefix}cc"
2367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2368    break 2
2369  fi
2370done
2371  done
2372IFS=$as_save_IFS
2373
2374fi
2375fi
2376CC=$ac_cv_prog_CC
2377if test -n "$CC"; then
2378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2379$as_echo "$CC" >&6; }
2380else
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382$as_echo "no" >&6; }
2383fi
2384
2385
2386  fi
2387fi
2388if test -z "$CC"; then
2389  # Extract the first word of "cc", so it can be a program name with args.
2390set dummy cc; ac_word=$2
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392$as_echo_n "checking for $ac_word... " >&6; }
2393if ${ac_cv_prog_CC+:} false; then :
2394  $as_echo_n "(cached) " >&6
2395else
2396  if test -n "$CC"; then
2397  ac_cv_prog_CC="$CC" # Let the user override the test.
2398else
2399  ac_prog_rejected=no
2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401for as_dir in $PATH
2402do
2403  IFS=$as_save_IFS
2404  test -z "$as_dir" && as_dir=.
2405    for ac_exec_ext in '' $ac_executable_extensions; do
2406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2408       ac_prog_rejected=yes
2409       continue
2410     fi
2411    ac_cv_prog_CC="cc"
2412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413    break 2
2414  fi
2415done
2416  done
2417IFS=$as_save_IFS
2418
2419if test $ac_prog_rejected = yes; then
2420  # We found a bogon in the path, so make sure we never use it.
2421  set dummy $ac_cv_prog_CC
2422  shift
2423  if test $# != 0; then
2424    # We chose a different compiler from the bogus one.
2425    # However, it has the same basename, so the bogon will be chosen
2426    # first if we set CC to just the basename; use the full file name.
2427    shift
2428    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2429  fi
2430fi
2431fi
2432fi
2433CC=$ac_cv_prog_CC
2434if test -n "$CC"; then
2435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2436$as_echo "$CC" >&6; }
2437else
2438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439$as_echo "no" >&6; }
2440fi
2441
2442
2443fi
2444if test -z "$CC"; then
2445  if test -n "$ac_tool_prefix"; then
2446  for ac_prog in cl.exe
2447  do
2448    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2449set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2451$as_echo_n "checking for $ac_word... " >&6; }
2452if ${ac_cv_prog_CC+:} false; then :
2453  $as_echo_n "(cached) " >&6
2454else
2455  if test -n "$CC"; then
2456  ac_cv_prog_CC="$CC" # Let the user override the test.
2457else
2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459for as_dir in $PATH
2460do
2461  IFS=$as_save_IFS
2462  test -z "$as_dir" && as_dir=.
2463    for ac_exec_ext in '' $ac_executable_extensions; do
2464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2467    break 2
2468  fi
2469done
2470  done
2471IFS=$as_save_IFS
2472
2473fi
2474fi
2475CC=$ac_cv_prog_CC
2476if test -n "$CC"; then
2477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2478$as_echo "$CC" >&6; }
2479else
2480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2481$as_echo "no" >&6; }
2482fi
2483
2484
2485    test -n "$CC" && break
2486  done
2487fi
2488if test -z "$CC"; then
2489  ac_ct_CC=$CC
2490  for ac_prog in cl.exe
2491do
2492  # Extract the first word of "$ac_prog", so it can be a program name with args.
2493set dummy $ac_prog; ac_word=$2
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495$as_echo_n "checking for $ac_word... " >&6; }
2496if ${ac_cv_prog_ac_ct_CC+:} false; then :
2497  $as_echo_n "(cached) " >&6
2498else
2499  if test -n "$ac_ct_CC"; then
2500  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2501else
2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503for as_dir in $PATH
2504do
2505  IFS=$as_save_IFS
2506  test -z "$as_dir" && as_dir=.
2507    for ac_exec_ext in '' $ac_executable_extensions; do
2508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509    ac_cv_prog_ac_ct_CC="$ac_prog"
2510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511    break 2
2512  fi
2513done
2514  done
2515IFS=$as_save_IFS
2516
2517fi
2518fi
2519ac_ct_CC=$ac_cv_prog_ac_ct_CC
2520if test -n "$ac_ct_CC"; then
2521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2522$as_echo "$ac_ct_CC" >&6; }
2523else
2524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525$as_echo "no" >&6; }
2526fi
2527
2528
2529  test -n "$ac_ct_CC" && break
2530done
2531
2532  if test "x$ac_ct_CC" = x; then
2533    CC=""
2534  else
2535    case $cross_compiling:$ac_tool_warned in
2536yes:)
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539ac_tool_warned=yes ;;
2540esac
2541    CC=$ac_ct_CC
2542  fi
2543fi
2544
2545fi
2546
2547
2548test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550as_fn_error $? "no acceptable C compiler found in \$PATH
2551See \`config.log' for more details" "$LINENO" 5; }
2552
2553# Provide some information about the compiler.
2554$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2555set X $ac_compile
2556ac_compiler=$2
2557for ac_option in --version -v -V -qversion; do
2558  { { ac_try="$ac_compiler $ac_option >&5"
2559case "(($ac_try" in
2560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561  *) ac_try_echo=$ac_try;;
2562esac
2563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564$as_echo "$ac_try_echo"; } >&5
2565  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2566  ac_status=$?
2567  if test -s conftest.err; then
2568    sed '10a\
2569... rest of stderr output deleted ...
2570         10q' conftest.err >conftest.er1
2571    cat conftest.er1 >&5
2572  fi
2573  rm -f conftest.er1 conftest.err
2574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575  test $ac_status = 0; }
2576done
2577
2578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579/* end confdefs.h.  */
2580
2581int
2582main ()
2583{
2584
2585  ;
2586  return 0;
2587}
2588_ACEOF
2589ac_clean_files_save=$ac_clean_files
2590ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2591# Try to create an executable without -o first, disregard a.out.
2592# It will help us diagnose broken compilers, and finding out an intuition
2593# of exeext.
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2595$as_echo_n "checking whether the C compiler works... " >&6; }
2596ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2597
2598# The possible output files:
2599ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2600
2601ac_rmfiles=
2602for ac_file in $ac_files
2603do
2604  case $ac_file in
2605    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2606    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2607  esac
2608done
2609rm -f $ac_rmfiles
2610
2611if { { ac_try="$ac_link_default"
2612case "(($ac_try" in
2613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614  *) ac_try_echo=$ac_try;;
2615esac
2616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2617$as_echo "$ac_try_echo"; } >&5
2618  (eval "$ac_link_default") 2>&5
2619  ac_status=$?
2620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2621  test $ac_status = 0; }; then :
2622  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2623# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2624# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2625# so that the user can short-circuit this test for compilers unknown to
2626# Autoconf.
2627for ac_file in $ac_files ''
2628do
2629  test -f "$ac_file" || continue
2630  case $ac_file in
2631    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2632	;;
2633    [ab].out )
2634	# We found the default executable, but exeext='' is most
2635	# certainly right.
2636	break;;
2637    *.* )
2638	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2639	then :; else
2640	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641	fi
2642	# We set ac_cv_exeext here because the later test for it is not
2643	# safe: cross compilers may not add the suffix if given an `-o'
2644	# argument, so we may need to know it at that point already.
2645	# Even if this section looks crufty: it has the advantage of
2646	# actually working.
2647	break;;
2648    * )
2649	break;;
2650  esac
2651done
2652test "$ac_cv_exeext" = no && ac_cv_exeext=
2653
2654else
2655  ac_file=''
2656fi
2657if test -z "$ac_file"; then :
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659$as_echo "no" >&6; }
2660$as_echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665as_fn_error 77 "C compiler cannot create executables
2666See \`config.log' for more details" "$LINENO" 5; }
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669$as_echo "yes" >&6; }
2670fi
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2672$as_echo_n "checking for C compiler default output file name... " >&6; }
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2674$as_echo "$ac_file" >&6; }
2675ac_exeext=$ac_cv_exeext
2676
2677rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2678ac_clean_files=$ac_clean_files_save
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2680$as_echo_n "checking for suffix of executables... " >&6; }
2681if { { ac_try="$ac_link"
2682case "(($ac_try" in
2683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684  *) ac_try_echo=$ac_try;;
2685esac
2686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687$as_echo "$ac_try_echo"; } >&5
2688  (eval "$ac_link") 2>&5
2689  ac_status=$?
2690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691  test $ac_status = 0; }; then :
2692  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2693# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2694# work properly (i.e., refer to `conftest.exe'), while it won't with
2695# `rm'.
2696for ac_file in conftest.exe conftest conftest.*; do
2697  test -f "$ac_file" || continue
2698  case $ac_file in
2699    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2700    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701	  break;;
2702    * ) break;;
2703  esac
2704done
2705else
2706  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2709See \`config.log' for more details" "$LINENO" 5; }
2710fi
2711rm -f conftest conftest$ac_cv_exeext
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2713$as_echo "$ac_cv_exeext" >&6; }
2714
2715rm -f conftest.$ac_ext
2716EXEEXT=$ac_cv_exeext
2717ac_exeext=$EXEEXT
2718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719/* end confdefs.h.  */
2720#include <stdio.h>
2721int
2722main ()
2723{
2724FILE *f = fopen ("conftest.out", "w");
2725 return ferror (f) || fclose (f) != 0;
2726
2727  ;
2728  return 0;
2729}
2730_ACEOF
2731ac_clean_files="$ac_clean_files conftest.out"
2732# Check that the compiler produces executables we can run.  If not, either
2733# the compiler is broken, or we cross compile.
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2735$as_echo_n "checking whether we are cross compiling... " >&6; }
2736if test "$cross_compiling" != yes; then
2737  { { ac_try="$ac_link"
2738case "(($ac_try" in
2739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740  *) ac_try_echo=$ac_try;;
2741esac
2742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2743$as_echo "$ac_try_echo"; } >&5
2744  (eval "$ac_link") 2>&5
2745  ac_status=$?
2746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2747  test $ac_status = 0; }
2748  if { ac_try='./conftest$ac_cv_exeext'
2749  { { case "(($ac_try" in
2750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751  *) ac_try_echo=$ac_try;;
2752esac
2753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754$as_echo "$ac_try_echo"; } >&5
2755  (eval "$ac_try") 2>&5
2756  ac_status=$?
2757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758  test $ac_status = 0; }; }; then
2759    cross_compiling=no
2760  else
2761    if test "$cross_compiling" = maybe; then
2762	cross_compiling=yes
2763    else
2764	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766as_fn_error $? "cannot run C compiled programs.
2767If you meant to cross compile, use \`--host'.
2768See \`config.log' for more details" "$LINENO" 5; }
2769    fi
2770  fi
2771fi
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2773$as_echo "$cross_compiling" >&6; }
2774
2775rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2776ac_clean_files=$ac_clean_files_save
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2778$as_echo_n "checking for suffix of object files... " >&6; }
2779if ${ac_cv_objext+:} false; then :
2780  $as_echo_n "(cached) " >&6
2781else
2782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783/* end confdefs.h.  */
2784
2785int
2786main ()
2787{
2788
2789  ;
2790  return 0;
2791}
2792_ACEOF
2793rm -f conftest.o conftest.obj
2794if { { ac_try="$ac_compile"
2795case "(($ac_try" in
2796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797  *) ac_try_echo=$ac_try;;
2798esac
2799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800$as_echo "$ac_try_echo"; } >&5
2801  (eval "$ac_compile") 2>&5
2802  ac_status=$?
2803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804  test $ac_status = 0; }; then :
2805  for ac_file in conftest.o conftest.obj conftest.*; do
2806  test -f "$ac_file" || continue;
2807  case $ac_file in
2808    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2809    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2810       break;;
2811  esac
2812done
2813else
2814  $as_echo "$as_me: failed program was:" >&5
2815sed 's/^/| /' conftest.$ac_ext >&5
2816
2817{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819as_fn_error $? "cannot compute suffix of object files: cannot compile
2820See \`config.log' for more details" "$LINENO" 5; }
2821fi
2822rm -f conftest.$ac_cv_objext conftest.$ac_ext
2823fi
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2825$as_echo "$ac_cv_objext" >&6; }
2826OBJEXT=$ac_cv_objext
2827ac_objext=$OBJEXT
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2829$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2830if ${ac_cv_c_compiler_gnu+:} false; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834/* end confdefs.h.  */
2835
2836int
2837main ()
2838{
2839#ifndef __GNUC__
2840       choke me
2841#endif
2842
2843  ;
2844  return 0;
2845}
2846_ACEOF
2847if ac_fn_c_try_compile "$LINENO"; then :
2848  ac_compiler_gnu=yes
2849else
2850  ac_compiler_gnu=no
2851fi
2852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853ac_cv_c_compiler_gnu=$ac_compiler_gnu
2854
2855fi
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2857$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2858if test $ac_compiler_gnu = yes; then
2859  GCC=yes
2860else
2861  GCC=
2862fi
2863ac_test_CFLAGS=${CFLAGS+set}
2864ac_save_CFLAGS=$CFLAGS
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2866$as_echo_n "checking whether $CC accepts -g... " >&6; }
2867if ${ac_cv_prog_cc_g+:} false; then :
2868  $as_echo_n "(cached) " >&6
2869else
2870  ac_save_c_werror_flag=$ac_c_werror_flag
2871   ac_c_werror_flag=yes
2872   ac_cv_prog_cc_g=no
2873   CFLAGS="-g"
2874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875/* end confdefs.h.  */
2876
2877int
2878main ()
2879{
2880
2881  ;
2882  return 0;
2883}
2884_ACEOF
2885if ac_fn_c_try_compile "$LINENO"; then :
2886  ac_cv_prog_cc_g=yes
2887else
2888  CFLAGS=""
2889      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890/* end confdefs.h.  */
2891
2892int
2893main ()
2894{
2895
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900if ac_fn_c_try_compile "$LINENO"; then :
2901
2902else
2903  ac_c_werror_flag=$ac_save_c_werror_flag
2904	 CFLAGS="-g"
2905	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h.  */
2907
2908int
2909main ()
2910{
2911
2912  ;
2913  return 0;
2914}
2915_ACEOF
2916if ac_fn_c_try_compile "$LINENO"; then :
2917  ac_cv_prog_cc_g=yes
2918fi
2919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920fi
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922fi
2923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924   ac_c_werror_flag=$ac_save_c_werror_flag
2925fi
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2927$as_echo "$ac_cv_prog_cc_g" >&6; }
2928if test "$ac_test_CFLAGS" = set; then
2929  CFLAGS=$ac_save_CFLAGS
2930elif test $ac_cv_prog_cc_g = yes; then
2931  if test "$GCC" = yes; then
2932    CFLAGS="-g -O2"
2933  else
2934    CFLAGS="-g"
2935  fi
2936else
2937  if test "$GCC" = yes; then
2938    CFLAGS="-O2"
2939  else
2940    CFLAGS=
2941  fi
2942fi
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2944$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2945if ${ac_cv_prog_cc_c89+:} false; then :
2946  $as_echo_n "(cached) " >&6
2947else
2948  ac_cv_prog_cc_c89=no
2949ac_save_CC=$CC
2950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951/* end confdefs.h.  */
2952#include <stdarg.h>
2953#include <stdio.h>
2954#include <sys/types.h>
2955#include <sys/stat.h>
2956/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2957struct buf { int x; };
2958FILE * (*rcsopen) (struct buf *, struct stat *, int);
2959static char *e (p, i)
2960     char **p;
2961     int i;
2962{
2963  return p[i];
2964}
2965static char *f (char * (*g) (char **, int), char **p, ...)
2966{
2967  char *s;
2968  va_list v;
2969  va_start (v,p);
2970  s = g (p, va_arg (v,int));
2971  va_end (v);
2972  return s;
2973}
2974
2975/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2976   function prototypes and stuff, but not '\xHH' hex character constants.
2977   These don't provoke an error unfortunately, instead are silently treated
2978   as 'x'.  The following induces an error, until -std is added to get
2979   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2980   array size at least.  It's necessary to write '\x00'==0 to get something
2981   that's true only with -std.  */
2982int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2983
2984/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2985   inside strings and character constants.  */
2986#define FOO(x) 'x'
2987int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2988
2989int test (int i, double x);
2990struct s1 {int (*f) (int a);};
2991struct s2 {int (*f) (double a);};
2992int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2993int argc;
2994char **argv;
2995int
2996main ()
2997{
2998return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2999  ;
3000  return 0;
3001}
3002_ACEOF
3003for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3004	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005do
3006  CC="$ac_save_CC $ac_arg"
3007  if ac_fn_c_try_compile "$LINENO"; then :
3008  ac_cv_prog_cc_c89=$ac_arg
3009fi
3010rm -f core conftest.err conftest.$ac_objext
3011  test "x$ac_cv_prog_cc_c89" != "xno" && break
3012done
3013rm -f conftest.$ac_ext
3014CC=$ac_save_CC
3015
3016fi
3017# AC_CACHE_VAL
3018case "x$ac_cv_prog_cc_c89" in
3019  x)
3020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3021$as_echo "none needed" >&6; } ;;
3022  xno)
3023    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3024$as_echo "unsupported" >&6; } ;;
3025  *)
3026    CC="$CC $ac_cv_prog_cc_c89"
3027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3028$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3029esac
3030if test "x$ac_cv_prog_cc_c89" != xno; then :
3031
3032fi
3033
3034ac_ext=c
3035ac_cpp='$CPP $CPPFLAGS'
3036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039
3040ac_ext=c
3041ac_cpp='$CPP $CPPFLAGS'
3042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3046$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3047if ${am_cv_prog_cc_c_o+:} false; then :
3048  $as_echo_n "(cached) " >&6
3049else
3050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051/* end confdefs.h.  */
3052
3053int
3054main ()
3055{
3056
3057  ;
3058  return 0;
3059}
3060_ACEOF
3061  # Make sure it works both with $CC and with simple cc.
3062  # Following AC_PROG_CC_C_O, we do the test twice because some
3063  # compilers refuse to overwrite an existing .o file with -o,
3064  # though they will create one.
3065  am_cv_prog_cc_c_o=yes
3066  for am_i in 1 2; do
3067    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3068   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } \
3072         && test -f conftest2.$ac_objext; then
3073      : OK
3074    else
3075      am_cv_prog_cc_c_o=no
3076      break
3077    fi
3078  done
3079  rm -f core conftest*
3080  unset am_i
3081fi
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3083$as_echo "$am_cv_prog_cc_c_o" >&6; }
3084if test "$am_cv_prog_cc_c_o" != yes; then
3085   # Losing compiler, so override with the script.
3086   # FIXME: It is wrong to rewrite CC.
3087   # But if we don't then we get into trouble of one sort or another.
3088   # A longer-term fix would be to have automake use am__CC in this case,
3089   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3090   CC="$am_aux_dir/compile $CC"
3091fi
3092ac_ext=c
3093ac_cpp='$CPP $CPPFLAGS'
3094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097
3098
3099
3100ac_ext=c
3101ac_cpp='$CPP $CPPFLAGS'
3102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3106$as_echo_n "checking how to run the C preprocessor... " >&6; }
3107# On Suns, sometimes $CPP names a directory.
3108if test -n "$CPP" && test -d "$CPP"; then
3109  CPP=
3110fi
3111if test -z "$CPP"; then
3112  if ${ac_cv_prog_CPP+:} false; then :
3113  $as_echo_n "(cached) " >&6
3114else
3115      # Double quotes because CPP needs to be expanded
3116    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3117    do
3118      ac_preproc_ok=false
3119for ac_c_preproc_warn_flag in '' yes
3120do
3121  # Use a header file that comes with gcc, so configuring glibc
3122  # with a fresh cross-compiler works.
3123  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3124  # <limits.h> exists even on freestanding compilers.
3125  # On the NeXT, cc -E runs the code through the compiler's parser,
3126  # not just through cpp. "Syntax error" is here to catch this case.
3127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128/* end confdefs.h.  */
3129#ifdef __STDC__
3130# include <limits.h>
3131#else
3132# include <assert.h>
3133#endif
3134		     Syntax error
3135_ACEOF
3136if ac_fn_c_try_cpp "$LINENO"; then :
3137
3138else
3139  # Broken: fails on valid input.
3140continue
3141fi
3142rm -f conftest.err conftest.i conftest.$ac_ext
3143
3144  # OK, works on sane cases.  Now check whether nonexistent headers
3145  # can be detected and how.
3146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147/* end confdefs.h.  */
3148#include <ac_nonexistent.h>
3149_ACEOF
3150if ac_fn_c_try_cpp "$LINENO"; then :
3151  # Broken: success on invalid input.
3152continue
3153else
3154  # Passes both tests.
3155ac_preproc_ok=:
3156break
3157fi
3158rm -f conftest.err conftest.i conftest.$ac_ext
3159
3160done
3161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162rm -f conftest.i conftest.err conftest.$ac_ext
3163if $ac_preproc_ok; then :
3164  break
3165fi
3166
3167    done
3168    ac_cv_prog_CPP=$CPP
3169
3170fi
3171  CPP=$ac_cv_prog_CPP
3172else
3173  ac_cv_prog_CPP=$CPP
3174fi
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3176$as_echo "$CPP" >&6; }
3177ac_preproc_ok=false
3178for ac_c_preproc_warn_flag in '' yes
3179do
3180  # Use a header file that comes with gcc, so configuring glibc
3181  # with a fresh cross-compiler works.
3182  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183  # <limits.h> exists even on freestanding compilers.
3184  # On the NeXT, cc -E runs the code through the compiler's parser,
3185  # not just through cpp. "Syntax error" is here to catch this case.
3186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187/* end confdefs.h.  */
3188#ifdef __STDC__
3189# include <limits.h>
3190#else
3191# include <assert.h>
3192#endif
3193		     Syntax error
3194_ACEOF
3195if ac_fn_c_try_cpp "$LINENO"; then :
3196
3197else
3198  # Broken: fails on valid input.
3199continue
3200fi
3201rm -f conftest.err conftest.i conftest.$ac_ext
3202
3203  # OK, works on sane cases.  Now check whether nonexistent headers
3204  # can be detected and how.
3205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206/* end confdefs.h.  */
3207#include <ac_nonexistent.h>
3208_ACEOF
3209if ac_fn_c_try_cpp "$LINENO"; then :
3210  # Broken: success on invalid input.
3211continue
3212else
3213  # Passes both tests.
3214ac_preproc_ok=:
3215break
3216fi
3217rm -f conftest.err conftest.i conftest.$ac_ext
3218
3219done
3220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221rm -f conftest.i conftest.err conftest.$ac_ext
3222if $ac_preproc_ok; then :
3223
3224else
3225  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3228See \`config.log' for more details" "$LINENO" 5; }
3229fi
3230
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236
3237
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3239$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3240if ${ac_cv_path_GREP+:} false; then :
3241  $as_echo_n "(cached) " >&6
3242else
3243  if test -z "$GREP"; then
3244  ac_path_GREP_found=false
3245  # Loop through the user's path and test for each of PROGNAME-LIST
3246  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3248do
3249  IFS=$as_save_IFS
3250  test -z "$as_dir" && as_dir=.
3251    for ac_prog in grep ggrep; do
3252    for ac_exec_ext in '' $ac_executable_extensions; do
3253      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3254      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3255# Check for GNU ac_path_GREP and select it if it is found.
3256  # Check for GNU $ac_path_GREP
3257case `"$ac_path_GREP" --version 2>&1` in
3258*GNU*)
3259  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3260*)
3261  ac_count=0
3262  $as_echo_n 0123456789 >"conftest.in"
3263  while :
3264  do
3265    cat "conftest.in" "conftest.in" >"conftest.tmp"
3266    mv "conftest.tmp" "conftest.in"
3267    cp "conftest.in" "conftest.nl"
3268    $as_echo 'GREP' >> "conftest.nl"
3269    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3270    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3271    as_fn_arith $ac_count + 1 && ac_count=$as_val
3272    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3273      # Best one so far, save it but keep looking for a better one
3274      ac_cv_path_GREP="$ac_path_GREP"
3275      ac_path_GREP_max=$ac_count
3276    fi
3277    # 10*(2^10) chars as input seems more than enough
3278    test $ac_count -gt 10 && break
3279  done
3280  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3281esac
3282
3283      $ac_path_GREP_found && break 3
3284    done
3285  done
3286  done
3287IFS=$as_save_IFS
3288  if test -z "$ac_cv_path_GREP"; then
3289    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3290  fi
3291else
3292  ac_cv_path_GREP=$GREP
3293fi
3294
3295fi
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3297$as_echo "$ac_cv_path_GREP" >&6; }
3298 GREP="$ac_cv_path_GREP"
3299
3300
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3302$as_echo_n "checking for egrep... " >&6; }
3303if ${ac_cv_path_EGREP+:} false; then :
3304  $as_echo_n "(cached) " >&6
3305else
3306  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3307   then ac_cv_path_EGREP="$GREP -E"
3308   else
3309     if test -z "$EGREP"; then
3310  ac_path_EGREP_found=false
3311  # Loop through the user's path and test for each of PROGNAME-LIST
3312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3314do
3315  IFS=$as_save_IFS
3316  test -z "$as_dir" && as_dir=.
3317    for ac_prog in egrep; do
3318    for ac_exec_ext in '' $ac_executable_extensions; do
3319      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3320      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3321# Check for GNU ac_path_EGREP and select it if it is found.
3322  # Check for GNU $ac_path_EGREP
3323case `"$ac_path_EGREP" --version 2>&1` in
3324*GNU*)
3325  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3326*)
3327  ac_count=0
3328  $as_echo_n 0123456789 >"conftest.in"
3329  while :
3330  do
3331    cat "conftest.in" "conftest.in" >"conftest.tmp"
3332    mv "conftest.tmp" "conftest.in"
3333    cp "conftest.in" "conftest.nl"
3334    $as_echo 'EGREP' >> "conftest.nl"
3335    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3336    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3337    as_fn_arith $ac_count + 1 && ac_count=$as_val
3338    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3339      # Best one so far, save it but keep looking for a better one
3340      ac_cv_path_EGREP="$ac_path_EGREP"
3341      ac_path_EGREP_max=$ac_count
3342    fi
3343    # 10*(2^10) chars as input seems more than enough
3344    test $ac_count -gt 10 && break
3345  done
3346  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3347esac
3348
3349      $ac_path_EGREP_found && break 3
3350    done
3351  done
3352  done
3353IFS=$as_save_IFS
3354  if test -z "$ac_cv_path_EGREP"; then
3355    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3356  fi
3357else
3358  ac_cv_path_EGREP=$EGREP
3359fi
3360
3361   fi
3362fi
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3364$as_echo "$ac_cv_path_EGREP" >&6; }
3365 EGREP="$ac_cv_path_EGREP"
3366
3367
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3369$as_echo_n "checking for ANSI C header files... " >&6; }
3370if ${ac_cv_header_stdc+:} false; then :
3371  $as_echo_n "(cached) " >&6
3372else
3373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374/* end confdefs.h.  */
3375#include <stdlib.h>
3376#include <stdarg.h>
3377#include <string.h>
3378#include <float.h>
3379
3380int
3381main ()
3382{
3383
3384  ;
3385  return 0;
3386}
3387_ACEOF
3388if ac_fn_c_try_compile "$LINENO"; then :
3389  ac_cv_header_stdc=yes
3390else
3391  ac_cv_header_stdc=no
3392fi
3393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394
3395if test $ac_cv_header_stdc = yes; then
3396  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398/* end confdefs.h.  */
3399#include <string.h>
3400
3401_ACEOF
3402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3403  $EGREP "memchr" >/dev/null 2>&1; then :
3404
3405else
3406  ac_cv_header_stdc=no
3407fi
3408rm -f conftest*
3409
3410fi
3411
3412if test $ac_cv_header_stdc = yes; then
3413  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415/* end confdefs.h.  */
3416#include <stdlib.h>
3417
3418_ACEOF
3419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3420  $EGREP "free" >/dev/null 2>&1; then :
3421
3422else
3423  ac_cv_header_stdc=no
3424fi
3425rm -f conftest*
3426
3427fi
3428
3429if test $ac_cv_header_stdc = yes; then
3430  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3431  if test "$cross_compiling" = yes; then :
3432  :
3433else
3434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435/* end confdefs.h.  */
3436#include <ctype.h>
3437#include <stdlib.h>
3438#if ((' ' & 0x0FF) == 0x020)
3439# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3440# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3441#else
3442# define ISLOWER(c) \
3443		   (('a' <= (c) && (c) <= 'i') \
3444		     || ('j' <= (c) && (c) <= 'r') \
3445		     || ('s' <= (c) && (c) <= 'z'))
3446# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3447#endif
3448
3449#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3450int
3451main ()
3452{
3453  int i;
3454  for (i = 0; i < 256; i++)
3455    if (XOR (islower (i), ISLOWER (i))
3456	|| toupper (i) != TOUPPER (i))
3457      return 2;
3458  return 0;
3459}
3460_ACEOF
3461if ac_fn_c_try_run "$LINENO"; then :
3462
3463else
3464  ac_cv_header_stdc=no
3465fi
3466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3467  conftest.$ac_objext conftest.beam conftest.$ac_ext
3468fi
3469
3470fi
3471fi
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3473$as_echo "$ac_cv_header_stdc" >&6; }
3474if test $ac_cv_header_stdc = yes; then
3475
3476$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3477
3478fi
3479
3480# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3481for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3482		  inttypes.h stdint.h unistd.h
3483do :
3484  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3485ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3486"
3487if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3488  cat >>confdefs.h <<_ACEOF
3489#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3490_ACEOF
3491
3492fi
3493
3494done
3495
3496
3497
3498  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3499if test "x$ac_cv_header_minix_config_h" = xyes; then :
3500  MINIX=yes
3501else
3502  MINIX=
3503fi
3504
3505
3506  if test "$MINIX" = yes; then
3507
3508$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3509
3510
3511$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3512
3513
3514$as_echo "#define _MINIX 1" >>confdefs.h
3515
3516  fi
3517
3518
3519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3520$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3521if ${ac_cv_safe_to_define___extensions__+:} false; then :
3522  $as_echo_n "(cached) " >&6
3523else
3524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526
3527#	  define __EXTENSIONS__ 1
3528	  $ac_includes_default
3529int
3530main ()
3531{
3532
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537if ac_fn_c_try_compile "$LINENO"; then :
3538  ac_cv_safe_to_define___extensions__=yes
3539else
3540  ac_cv_safe_to_define___extensions__=no
3541fi
3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543fi
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3545$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3546  test $ac_cv_safe_to_define___extensions__ = yes &&
3547    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3548
3549  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3550
3551  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3552
3553  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3554
3555  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3556
3557
3558
3559# Initialize Automake
3560am__api_version='1.14'
3561
3562ac_aux_dir=
3563for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3564  if test -f "$ac_dir/install-sh"; then
3565    ac_aux_dir=$ac_dir
3566    ac_install_sh="$ac_aux_dir/install-sh -c"
3567    break
3568  elif test -f "$ac_dir/install.sh"; then
3569    ac_aux_dir=$ac_dir
3570    ac_install_sh="$ac_aux_dir/install.sh -c"
3571    break
3572  elif test -f "$ac_dir/shtool"; then
3573    ac_aux_dir=$ac_dir
3574    ac_install_sh="$ac_aux_dir/shtool install -c"
3575    break
3576  fi
3577done
3578if test -z "$ac_aux_dir"; then
3579  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3580fi
3581
3582# These three variables are undocumented and unsupported,
3583# and are intended to be withdrawn in a future Autoconf release.
3584# They can cause serious problems if a builder's source tree is in a directory
3585# whose full name contains unusual characters.
3586ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3587ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3588ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3589
3590
3591# Find a good install program.  We prefer a C program (faster),
3592# so one script is as good as another.  But avoid the broken or
3593# incompatible versions:
3594# SysV /etc/install, /usr/sbin/install
3595# SunOS /usr/etc/install
3596# IRIX /sbin/install
3597# AIX /bin/install
3598# AmigaOS /C/install, which installs bootblocks on floppy discs
3599# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3600# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3601# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3602# OS/2's system install, which has a completely different semantic
3603# ./install, which can be erroneously created by make from ./install.sh.
3604# Reject install programs that cannot install multiple files.
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3606$as_echo_n "checking for a BSD-compatible install... " >&6; }
3607if test -z "$INSTALL"; then
3608if ${ac_cv_path_install+:} false; then :
3609  $as_echo_n "(cached) " >&6
3610else
3611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614  IFS=$as_save_IFS
3615  test -z "$as_dir" && as_dir=.
3616    # Account for people who put trailing slashes in PATH elements.
3617case $as_dir/ in #((
3618  ./ | .// | /[cC]/* | \
3619  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3620  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3621  /usr/ucb/* ) ;;
3622  *)
3623    # OSF1 and SCO ODT 3.0 have their own names for install.
3624    # Don't use installbsd from OSF since it installs stuff as root
3625    # by default.
3626    for ac_prog in ginstall scoinst install; do
3627      for ac_exec_ext in '' $ac_executable_extensions; do
3628	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3629	  if test $ac_prog = install &&
3630	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3631	    # AIX install.  It has an incompatible calling convention.
3632	    :
3633	  elif test $ac_prog = install &&
3634	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3635	    # program-specific install script used by HP pwplus--don't use.
3636	    :
3637	  else
3638	    rm -rf conftest.one conftest.two conftest.dir
3639	    echo one > conftest.one
3640	    echo two > conftest.two
3641	    mkdir conftest.dir
3642	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3643	      test -s conftest.one && test -s conftest.two &&
3644	      test -s conftest.dir/conftest.one &&
3645	      test -s conftest.dir/conftest.two
3646	    then
3647	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3648	      break 3
3649	    fi
3650	  fi
3651	fi
3652      done
3653    done
3654    ;;
3655esac
3656
3657  done
3658IFS=$as_save_IFS
3659
3660rm -rf conftest.one conftest.two conftest.dir
3661
3662fi
3663  if test "${ac_cv_path_install+set}" = set; then
3664    INSTALL=$ac_cv_path_install
3665  else
3666    # As a last resort, use the slow shell script.  Don't cache a
3667    # value for INSTALL within a source directory, because that will
3668    # break other packages using the cache if that directory is
3669    # removed, or if the value is a relative name.
3670    INSTALL=$ac_install_sh
3671  fi
3672fi
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3674$as_echo "$INSTALL" >&6; }
3675
3676# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3677# It thinks the first close brace ends the variable substitution.
3678test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3679
3680test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3681
3682test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3683
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3685$as_echo_n "checking whether build environment is sane... " >&6; }
3686# Reject unsafe characters in $srcdir or the absolute working directory
3687# name.  Accept space and tab only in the latter.
3688am_lf='
3689'
3690case `pwd` in
3691  *[\\\"\#\$\&\'\`$am_lf]*)
3692    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3693esac
3694case $srcdir in
3695  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3696    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3697esac
3698
3699# Do 'set' in a subshell so we don't clobber the current shell's
3700# arguments.  Must try -L first in case configure is actually a
3701# symlink; some systems play weird games with the mod time of symlinks
3702# (eg FreeBSD returns the mod time of the symlink's containing
3703# directory).
3704if (
3705   am_has_slept=no
3706   for am_try in 1 2; do
3707     echo "timestamp, slept: $am_has_slept" > conftest.file
3708     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3709     if test "$*" = "X"; then
3710	# -L didn't work.
3711	set X `ls -t "$srcdir/configure" conftest.file`
3712     fi
3713     if test "$*" != "X $srcdir/configure conftest.file" \
3714	&& test "$*" != "X conftest.file $srcdir/configure"; then
3715
3716	# If neither matched, then we have a broken ls.  This can happen
3717	# if, for instance, CONFIG_SHELL is bash and it inherits a
3718	# broken ls alias from the environment.  This has actually
3719	# happened.  Such a system could not be considered "sane".
3720	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3721  alias in your environment" "$LINENO" 5
3722     fi
3723     if test "$2" = conftest.file || test $am_try -eq 2; then
3724       break
3725     fi
3726     # Just in case.
3727     sleep 1
3728     am_has_slept=yes
3729   done
3730   test "$2" = conftest.file
3731   )
3732then
3733   # Ok.
3734   :
3735else
3736   as_fn_error $? "newly created file is older than distributed files!
3737Check your system clock" "$LINENO" 5
3738fi
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740$as_echo "yes" >&6; }
3741# If we didn't sleep, we still need to ensure time stamps of config.status and
3742# generated files are strictly newer.
3743am_sleep_pid=
3744if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3745  ( sleep 1 ) &
3746  am_sleep_pid=$!
3747fi
3748
3749rm -f conftest.file
3750
3751test "$program_prefix" != NONE &&
3752  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3753# Use a double $ so make ignores it.
3754test "$program_suffix" != NONE &&
3755  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3756# Double any \ or $.
3757# By default was `s,x,x', remove it if useless.
3758ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3759program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3760
3761if test x"${MISSING+set}" != xset; then
3762  case $am_aux_dir in
3763  *\ * | *\	*)
3764    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3765  *)
3766    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3767  esac
3768fi
3769# Use eval to expand $SHELL
3770if eval "$MISSING --is-lightweight"; then
3771  am_missing_run="$MISSING "
3772else
3773  am_missing_run=
3774  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3775$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3776fi
3777
3778if test x"${install_sh}" != xset; then
3779  case $am_aux_dir in
3780  *\ * | *\	*)
3781    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3782  *)
3783    install_sh="\${SHELL} $am_aux_dir/install-sh"
3784  esac
3785fi
3786
3787# Installed binaries are usually stripped using 'strip' when the user
3788# run "make install-strip".  However 'strip' might not be the right
3789# tool to use in cross-compilation environments, therefore Automake
3790# will honor the 'STRIP' environment variable to overrule this program.
3791if test "$cross_compiling" != no; then
3792  if test -n "$ac_tool_prefix"; then
3793  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3794set dummy ${ac_tool_prefix}strip; ac_word=$2
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796$as_echo_n "checking for $ac_word... " >&6; }
3797if ${ac_cv_prog_STRIP+:} false; then :
3798  $as_echo_n "(cached) " >&6
3799else
3800  if test -n "$STRIP"; then
3801  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3802else
3803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804for as_dir in $PATH
3805do
3806  IFS=$as_save_IFS
3807  test -z "$as_dir" && as_dir=.
3808    for ac_exec_ext in '' $ac_executable_extensions; do
3809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812    break 2
3813  fi
3814done
3815  done
3816IFS=$as_save_IFS
3817
3818fi
3819fi
3820STRIP=$ac_cv_prog_STRIP
3821if test -n "$STRIP"; then
3822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3823$as_echo "$STRIP" >&6; }
3824else
3825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826$as_echo "no" >&6; }
3827fi
3828
3829
3830fi
3831if test -z "$ac_cv_prog_STRIP"; then
3832  ac_ct_STRIP=$STRIP
3833  # Extract the first word of "strip", so it can be a program name with args.
3834set dummy strip; ac_word=$2
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836$as_echo_n "checking for $ac_word... " >&6; }
3837if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3838  $as_echo_n "(cached) " >&6
3839else
3840  if test -n "$ac_ct_STRIP"; then
3841  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3842else
3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH
3845do
3846  IFS=$as_save_IFS
3847  test -z "$as_dir" && as_dir=.
3848    for ac_exec_ext in '' $ac_executable_extensions; do
3849  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850    ac_cv_prog_ac_ct_STRIP="strip"
3851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852    break 2
3853  fi
3854done
3855  done
3856IFS=$as_save_IFS
3857
3858fi
3859fi
3860ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3861if test -n "$ac_ct_STRIP"; then
3862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3863$as_echo "$ac_ct_STRIP" >&6; }
3864else
3865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866$as_echo "no" >&6; }
3867fi
3868
3869  if test "x$ac_ct_STRIP" = x; then
3870    STRIP=":"
3871  else
3872    case $cross_compiling:$ac_tool_warned in
3873yes:)
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3876ac_tool_warned=yes ;;
3877esac
3878    STRIP=$ac_ct_STRIP
3879  fi
3880else
3881  STRIP="$ac_cv_prog_STRIP"
3882fi
3883
3884fi
3885INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3886
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3888$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3889if test -z "$MKDIR_P"; then
3890  if ${ac_cv_path_mkdir+:} false; then :
3891  $as_echo_n "(cached) " >&6
3892else
3893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3895do
3896  IFS=$as_save_IFS
3897  test -z "$as_dir" && as_dir=.
3898    for ac_prog in mkdir gmkdir; do
3899	 for ac_exec_ext in '' $ac_executable_extensions; do
3900	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3901	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3902	     'mkdir (GNU coreutils) '* | \
3903	     'mkdir (coreutils) '* | \
3904	     'mkdir (fileutils) '4.1*)
3905	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3906	       break 3;;
3907	   esac
3908	 done
3909       done
3910  done
3911IFS=$as_save_IFS
3912
3913fi
3914
3915  test -d ./--version && rmdir ./--version
3916  if test "${ac_cv_path_mkdir+set}" = set; then
3917    MKDIR_P="$ac_cv_path_mkdir -p"
3918  else
3919    # As a last resort, use the slow shell script.  Don't cache a
3920    # value for MKDIR_P within a source directory, because that will
3921    # break other packages using the cache if that directory is
3922    # removed, or if the value is a relative name.
3923    MKDIR_P="$ac_install_sh -d"
3924  fi
3925fi
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3927$as_echo "$MKDIR_P" >&6; }
3928
3929for ac_prog in gawk mawk nawk awk
3930do
3931  # Extract the first word of "$ac_prog", so it can be a program name with args.
3932set dummy $ac_prog; ac_word=$2
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
3935if ${ac_cv_prog_AWK+:} false; then :
3936  $as_echo_n "(cached) " >&6
3937else
3938  if test -n "$AWK"; then
3939  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944  IFS=$as_save_IFS
3945  test -z "$as_dir" && as_dir=.
3946    for ac_exec_ext in '' $ac_executable_extensions; do
3947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948    ac_cv_prog_AWK="$ac_prog"
3949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950    break 2
3951  fi
3952done
3953  done
3954IFS=$as_save_IFS
3955
3956fi
3957fi
3958AWK=$ac_cv_prog_AWK
3959if test -n "$AWK"; then
3960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3961$as_echo "$AWK" >&6; }
3962else
3963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
3965fi
3966
3967
3968  test -n "$AWK" && break
3969done
3970
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3972$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3973set x ${MAKE-make}
3974ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3975if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3976  $as_echo_n "(cached) " >&6
3977else
3978  cat >conftest.make <<\_ACEOF
3979SHELL = /bin/sh
3980all:
3981	@echo '@@@%%%=$(MAKE)=@@@%%%'
3982_ACEOF
3983# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3984case `${MAKE-make} -f conftest.make 2>/dev/null` in
3985  *@@@%%%=?*=@@@%%%*)
3986    eval ac_cv_prog_make_${ac_make}_set=yes;;
3987  *)
3988    eval ac_cv_prog_make_${ac_make}_set=no;;
3989esac
3990rm -f conftest.make
3991fi
3992if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3994$as_echo "yes" >&6; }
3995  SET_MAKE=
3996else
3997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998$as_echo "no" >&6; }
3999  SET_MAKE="MAKE=${MAKE-make}"
4000fi
4001
4002rm -rf .tst 2>/dev/null
4003mkdir .tst 2>/dev/null
4004if test -d .tst; then
4005  am__leading_dot=.
4006else
4007  am__leading_dot=_
4008fi
4009rmdir .tst 2>/dev/null
4010
4011DEPDIR="${am__leading_dot}deps"
4012
4013ac_config_commands="$ac_config_commands depfiles"
4014
4015
4016am_make=${MAKE-make}
4017cat > confinc << 'END'
4018am__doit:
4019	@echo this is the am__doit target
4020.PHONY: am__doit
4021END
4022# If we don't find an include directive, just comment out the code.
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4024$as_echo_n "checking for style of include used by $am_make... " >&6; }
4025am__include="#"
4026am__quote=
4027_am_result=none
4028# First try GNU make style include.
4029echo "include confinc" > confmf
4030# Ignore all kinds of additional output from 'make'.
4031case `$am_make -s -f confmf 2> /dev/null` in #(
4032*the\ am__doit\ target*)
4033  am__include=include
4034  am__quote=
4035  _am_result=GNU
4036  ;;
4037esac
4038# Now try BSD make style include.
4039if test "$am__include" = "#"; then
4040   echo '.include "confinc"' > confmf
4041   case `$am_make -s -f confmf 2> /dev/null` in #(
4042   *the\ am__doit\ target*)
4043     am__include=.include
4044     am__quote="\""
4045     _am_result=BSD
4046     ;;
4047   esac
4048fi
4049
4050
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4052$as_echo "$_am_result" >&6; }
4053rm -f confinc confmf
4054
4055# Check whether --enable-dependency-tracking was given.
4056if test "${enable_dependency_tracking+set}" = set; then :
4057  enableval=$enable_dependency_tracking;
4058fi
4059
4060if test "x$enable_dependency_tracking" != xno; then
4061  am_depcomp="$ac_aux_dir/depcomp"
4062  AMDEPBACKSLASH='\'
4063  am__nodep='_no'
4064fi
4065 if test "x$enable_dependency_tracking" != xno; then
4066  AMDEP_TRUE=
4067  AMDEP_FALSE='#'
4068else
4069  AMDEP_TRUE='#'
4070  AMDEP_FALSE=
4071fi
4072
4073
4074# Check whether --enable-silent-rules was given.
4075if test "${enable_silent_rules+set}" = set; then :
4076  enableval=$enable_silent_rules;
4077fi
4078
4079case $enable_silent_rules in # (((
4080  yes) AM_DEFAULT_VERBOSITY=0;;
4081   no) AM_DEFAULT_VERBOSITY=1;;
4082    *) AM_DEFAULT_VERBOSITY=1;;
4083esac
4084am_make=${MAKE-make}
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4086$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4087if ${am_cv_make_support_nested_variables+:} false; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090  if $as_echo 'TRUE=$(BAR$(V))
4091BAR0=false
4092BAR1=true
4093V=1
4094am__doit:
4095	@$(TRUE)
4096.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4097  am_cv_make_support_nested_variables=yes
4098else
4099  am_cv_make_support_nested_variables=no
4100fi
4101fi
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4103$as_echo "$am_cv_make_support_nested_variables" >&6; }
4104if test $am_cv_make_support_nested_variables = yes; then
4105    AM_V='$(V)'
4106  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4107else
4108  AM_V=$AM_DEFAULT_VERBOSITY
4109  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4110fi
4111AM_BACKSLASH='\'
4112
4113if test "`cd $srcdir && pwd`" != "`pwd`"; then
4114  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4115  # is not polluted with repeated "-I."
4116  am__isrc=' -I$(srcdir)'
4117  # test to see if srcdir already configured
4118  if test -f $srcdir/config.status; then
4119    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4120  fi
4121fi
4122
4123# test whether we have cygpath
4124if test -z "$CYGPATH_W"; then
4125  if (cygpath --version) >/dev/null 2>/dev/null; then
4126    CYGPATH_W='cygpath -w'
4127  else
4128    CYGPATH_W=echo
4129  fi
4130fi
4131
4132
4133# Define the identity of the package.
4134 PACKAGE='rgb'
4135 VERSION='1.0.6'
4136
4137
4138cat >>confdefs.h <<_ACEOF
4139#define PACKAGE "$PACKAGE"
4140_ACEOF
4141
4142
4143cat >>confdefs.h <<_ACEOF
4144#define VERSION "$VERSION"
4145_ACEOF
4146
4147# Some tools Automake needs.
4148
4149ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4150
4151
4152AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4153
4154
4155AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4156
4157
4158AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4159
4160
4161MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4162
4163# For better backward compatibility.  To be removed once Automake 1.9.x
4164# dies out for good.  For more background, see:
4165# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4166# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4167mkdir_p='$(MKDIR_P)'
4168
4169# We need awk for the "check" target.  The system "awk" is bad on
4170# some platforms.
4171# Always define AMTAR for backward compatibility.  Yes, it's still used
4172# in the wild :-(  We should find a proper way to deprecate it ...
4173AMTAR='$${TAR-tar}'
4174
4175
4176# We'll loop over all known methods to create a tar archive until one works.
4177_am_tools='gnutar  pax cpio none'
4178
4179am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4180
4181
4182
4183
4184
4185depcc="$CC"   am_compiler_list=
4186
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4188$as_echo_n "checking dependency style of $depcc... " >&6; }
4189if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4190  $as_echo_n "(cached) " >&6
4191else
4192  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4193  # We make a subdir and do the tests there.  Otherwise we can end up
4194  # making bogus files that we don't know about and never remove.  For
4195  # instance it was reported that on HP-UX the gcc test will end up
4196  # making a dummy file named 'D' -- because '-MD' means "put the output
4197  # in D".
4198  rm -rf conftest.dir
4199  mkdir conftest.dir
4200  # Copy depcomp to subdir because otherwise we won't find it if we're
4201  # using a relative directory.
4202  cp "$am_depcomp" conftest.dir
4203  cd conftest.dir
4204  # We will build objects and dependencies in a subdirectory because
4205  # it helps to detect inapplicable dependency modes.  For instance
4206  # both Tru64's cc and ICC support -MD to output dependencies as a
4207  # side effect of compilation, but ICC will put the dependencies in
4208  # the current directory while Tru64 will put them in the object
4209  # directory.
4210  mkdir sub
4211
4212  am_cv_CC_dependencies_compiler_type=none
4213  if test "$am_compiler_list" = ""; then
4214     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4215  fi
4216  am__universal=false
4217  case " $depcc " in #(
4218     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4219     esac
4220
4221  for depmode in $am_compiler_list; do
4222    # Setup a source with many dependencies, because some compilers
4223    # like to wrap large dependency lists on column 80 (with \), and
4224    # we should not choose a depcomp mode which is confused by this.
4225    #
4226    # We need to recreate these files for each test, as the compiler may
4227    # overwrite some of them when testing with obscure command lines.
4228    # This happens at least with the AIX C compiler.
4229    : > sub/conftest.c
4230    for i in 1 2 3 4 5 6; do
4231      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4232      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4233      # Solaris 10 /bin/sh.
4234      echo '/* dummy */' > sub/conftst$i.h
4235    done
4236    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4237
4238    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4239    # mode.  It turns out that the SunPro C++ compiler does not properly
4240    # handle '-M -o', and we need to detect this.  Also, some Intel
4241    # versions had trouble with output in subdirs.
4242    am__obj=sub/conftest.${OBJEXT-o}
4243    am__minus_obj="-o $am__obj"
4244    case $depmode in
4245    gcc)
4246      # This depmode causes a compiler race in universal mode.
4247      test "$am__universal" = false || continue
4248      ;;
4249    nosideeffect)
4250      # After this tag, mechanisms are not by side-effect, so they'll
4251      # only be used when explicitly requested.
4252      if test "x$enable_dependency_tracking" = xyes; then
4253	continue
4254      else
4255	break
4256      fi
4257      ;;
4258    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4259      # This compiler won't grok '-c -o', but also, the minuso test has
4260      # not run yet.  These depmodes are late enough in the game, and
4261      # so weak that their functioning should not be impacted.
4262      am__obj=conftest.${OBJEXT-o}
4263      am__minus_obj=
4264      ;;
4265    none) break ;;
4266    esac
4267    if depmode=$depmode \
4268       source=sub/conftest.c object=$am__obj \
4269       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4270       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4271         >/dev/null 2>conftest.err &&
4272       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4273       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4274       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4275       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4276      # icc doesn't choke on unknown options, it will just issue warnings
4277      # or remarks (even with -Werror).  So we grep stderr for any message
4278      # that says an option was ignored or not supported.
4279      # When given -MP, icc 7.0 and 7.1 complain thusly:
4280      #   icc: Command line warning: ignoring option '-M'; no argument required
4281      # The diagnosis changed in icc 8.0:
4282      #   icc: Command line remark: option '-MP' not supported
4283      if (grep 'ignoring option' conftest.err ||
4284          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4285        am_cv_CC_dependencies_compiler_type=$depmode
4286        break
4287      fi
4288    fi
4289  done
4290
4291  cd ..
4292  rm -rf conftest.dir
4293else
4294  am_cv_CC_dependencies_compiler_type=none
4295fi
4296
4297fi
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4299$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4300CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4301
4302 if
4303  test "x$enable_dependency_tracking" != xno \
4304  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4305  am__fastdepCC_TRUE=
4306  am__fastdepCC_FALSE='#'
4307else
4308  am__fastdepCC_TRUE='#'
4309  am__fastdepCC_FALSE=
4310fi
4311
4312
4313
4314# POSIX will say in a future version that running "rm -f" with no argument
4315# is OK; and we want to be able to make that assumption in our Makefile
4316# recipes.  So use an aggressive probe to check that the usage we want is
4317# actually supported "in the wild" to an acceptable degree.
4318# See automake bug#10828.
4319# To make any issue more visible, cause the running configure to be aborted
4320# by default if the 'rm' program in use doesn't match our expectations; the
4321# user can still override this though.
4322if rm -f && rm -fr && rm -rf; then : OK; else
4323  cat >&2 <<'END'
4324Oops!
4325
4326Your 'rm' program seems unable to run without file operands specified
4327on the command line, even when the '-f' option is present.  This is contrary
4328to the behaviour of most rm programs out there, and not conforming with
4329the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4330
4331Please tell bug-automake@gnu.org about your system, including the value
4332of your $PATH and any error possibly output before this message.  This
4333can help us improve future automake versions.
4334
4335END
4336  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4337    echo 'Configuration will proceed anyway, since you have set the' >&2
4338    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4339    echo >&2
4340  else
4341    cat >&2 <<'END'
4342Aborting the configuration process, to ensure you take notice of the issue.
4343
4344You can download and install GNU coreutils to get an 'rm' implementation
4345that behaves properly: <http://www.gnu.org/software/coreutils/>.
4346
4347If you want to complete the configuration process using your problematic
4348'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4349to "yes", and re-run configure.
4350
4351END
4352    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4353  fi
4354fi
4355
4356# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4369$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4370if ${ac_cv_prog_cc_c99+:} false; then :
4371  $as_echo_n "(cached) " >&6
4372else
4373  ac_cv_prog_cc_c99=no
4374ac_save_CC=$CC
4375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376/* end confdefs.h.  */
4377#include <stdarg.h>
4378#include <stdbool.h>
4379#include <stdlib.h>
4380#include <wchar.h>
4381#include <stdio.h>
4382
4383// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4384#define debug(...) fprintf (stderr, __VA_ARGS__)
4385#define showlist(...) puts (#__VA_ARGS__)
4386#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4387static void
4388test_varargs_macros (void)
4389{
4390  int x = 1234;
4391  int y = 5678;
4392  debug ("Flag");
4393  debug ("X = %d\n", x);
4394  showlist (The first, second, and third items.);
4395  report (x>y, "x is %d but y is %d", x, y);
4396}
4397
4398// Check long long types.
4399#define BIG64 18446744073709551615ull
4400#define BIG32 4294967295ul
4401#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4402#if !BIG_OK
4403  your preprocessor is broken;
4404#endif
4405#if BIG_OK
4406#else
4407  your preprocessor is broken;
4408#endif
4409static long long int bignum = -9223372036854775807LL;
4410static unsigned long long int ubignum = BIG64;
4411
4412struct incomplete_array
4413{
4414  int datasize;
4415  double data[];
4416};
4417
4418struct named_init {
4419  int number;
4420  const wchar_t *name;
4421  double average;
4422};
4423
4424typedef const char *ccp;
4425
4426static inline int
4427test_restrict (ccp restrict text)
4428{
4429  // See if C++-style comments work.
4430  // Iterate through items via the restricted pointer.
4431  // Also check for declarations in for loops.
4432  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4433    continue;
4434  return 0;
4435}
4436
4437// Check varargs and va_copy.
4438static void
4439test_varargs (const char *format, ...)
4440{
4441  va_list args;
4442  va_start (args, format);
4443  va_list args_copy;
4444  va_copy (args_copy, args);
4445
4446  const char *str;
4447  int number;
4448  float fnumber;
4449
4450  while (*format)
4451    {
4452      switch (*format++)
4453	{
4454	case 's': // string
4455	  str = va_arg (args_copy, const char *);
4456	  break;
4457	case 'd': // int
4458	  number = va_arg (args_copy, int);
4459	  break;
4460	case 'f': // float
4461	  fnumber = va_arg (args_copy, double);
4462	  break;
4463	default:
4464	  break;
4465	}
4466    }
4467  va_end (args_copy);
4468  va_end (args);
4469}
4470
4471int
4472main ()
4473{
4474
4475  // Check bool.
4476  _Bool success = false;
4477
4478  // Check restrict.
4479  if (test_restrict ("String literal") == 0)
4480    success = true;
4481  char *restrict newvar = "Another string";
4482
4483  // Check varargs.
4484  test_varargs ("s, d' f .", "string", 65, 34.234);
4485  test_varargs_macros ();
4486
4487  // Check flexible array members.
4488  struct incomplete_array *ia =
4489    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4490  ia->datasize = 10;
4491  for (int i = 0; i < ia->datasize; ++i)
4492    ia->data[i] = i * 1.234;
4493
4494  // Check named initializers.
4495  struct named_init ni = {
4496    .number = 34,
4497    .name = L"Test wide string",
4498    .average = 543.34343,
4499  };
4500
4501  ni.number = 58;
4502
4503  int dynamic_array[ni.number];
4504  dynamic_array[ni.number - 1] = 543;
4505
4506  // work around unused variable warnings
4507  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4508	  || dynamic_array[ni.number - 1] != 543);
4509
4510  ;
4511  return 0;
4512}
4513_ACEOF
4514for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4515do
4516  CC="$ac_save_CC $ac_arg"
4517  if ac_fn_c_try_compile "$LINENO"; then :
4518  ac_cv_prog_cc_c99=$ac_arg
4519fi
4520rm -f core conftest.err conftest.$ac_objext
4521  test "x$ac_cv_prog_cc_c99" != "xno" && break
4522done
4523rm -f conftest.$ac_ext
4524CC=$ac_save_CC
4525
4526fi
4527# AC_CACHE_VAL
4528case "x$ac_cv_prog_cc_c99" in
4529  x)
4530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4531$as_echo "none needed" >&6; } ;;
4532  xno)
4533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4534$as_echo "unsupported" >&6; } ;;
4535  *)
4536    CC="$CC $ac_cv_prog_cc_c99"
4537    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4538$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4539esac
4540if test "x$ac_cv_prog_cc_c99" != xno; then :
4541
4542fi
4543
4544
4545
4546
4547
4548
4549ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4550if test "x$ac_cv_have_decl___clang__" = xyes; then :
4551  CLANGCC="yes"
4552else
4553  CLANGCC="no"
4554fi
4555
4556ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4557if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4558  INTELCC="yes"
4559else
4560  INTELCC="no"
4561fi
4562
4563ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4564if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4565  SUNCC="yes"
4566else
4567  SUNCC="no"
4568fi
4569
4570
4571
4572
4573if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4574	if test -n "$ac_tool_prefix"; then
4575  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4576set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578$as_echo_n "checking for $ac_word... " >&6; }
4579if ${ac_cv_path_PKG_CONFIG+:} false; then :
4580  $as_echo_n "(cached) " >&6
4581else
4582  case $PKG_CONFIG in
4583  [\\/]* | ?:[\\/]*)
4584  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4585  ;;
4586  *)
4587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH
4589do
4590  IFS=$as_save_IFS
4591  test -z "$as_dir" && as_dir=.
4592    for ac_exec_ext in '' $ac_executable_extensions; do
4593  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596    break 2
4597  fi
4598done
4599  done
4600IFS=$as_save_IFS
4601
4602  ;;
4603esac
4604fi
4605PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4606if test -n "$PKG_CONFIG"; then
4607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4608$as_echo "$PKG_CONFIG" >&6; }
4609else
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611$as_echo "no" >&6; }
4612fi
4613
4614
4615fi
4616if test -z "$ac_cv_path_PKG_CONFIG"; then
4617  ac_pt_PKG_CONFIG=$PKG_CONFIG
4618  # Extract the first word of "pkg-config", so it can be a program name with args.
4619set dummy pkg-config; ac_word=$2
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621$as_echo_n "checking for $ac_word... " >&6; }
4622if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  case $ac_pt_PKG_CONFIG in
4626  [\\/]* | ?:[\\/]*)
4627  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4628  ;;
4629  *)
4630  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633  IFS=$as_save_IFS
4634  test -z "$as_dir" && as_dir=.
4635    for ac_exec_ext in '' $ac_executable_extensions; do
4636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639    break 2
4640  fi
4641done
4642  done
4643IFS=$as_save_IFS
4644
4645  ;;
4646esac
4647fi
4648ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4649if test -n "$ac_pt_PKG_CONFIG"; then
4650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4651$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4652else
4653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654$as_echo "no" >&6; }
4655fi
4656
4657  if test "x$ac_pt_PKG_CONFIG" = x; then
4658    PKG_CONFIG=""
4659  else
4660    case $cross_compiling:$ac_tool_warned in
4661yes:)
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4664ac_tool_warned=yes ;;
4665esac
4666    PKG_CONFIG=$ac_pt_PKG_CONFIG
4667  fi
4668else
4669  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4670fi
4671
4672fi
4673if test -n "$PKG_CONFIG"; then
4674	_pkg_min_version=0.9.0
4675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4676$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4677	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4678		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4679$as_echo "yes" >&6; }
4680	else
4681		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682$as_echo "no" >&6; }
4683		PKG_CONFIG=""
4684	fi
4685
4686fi
4687# Make sure we can run config.sub.
4688$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4689  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4690
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4692$as_echo_n "checking build system type... " >&6; }
4693if ${ac_cv_build+:} false; then :
4694  $as_echo_n "(cached) " >&6
4695else
4696  ac_build_alias=$build_alias
4697test "x$ac_build_alias" = x &&
4698  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4699test "x$ac_build_alias" = x &&
4700  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4701ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4702  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4703
4704fi
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4706$as_echo "$ac_cv_build" >&6; }
4707case $ac_cv_build in
4708*-*-*) ;;
4709*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4710esac
4711build=$ac_cv_build
4712ac_save_IFS=$IFS; IFS='-'
4713set x $ac_cv_build
4714shift
4715build_cpu=$1
4716build_vendor=$2
4717shift; shift
4718# Remember, the first character of IFS is used to create $*,
4719# except with old shells:
4720build_os=$*
4721IFS=$ac_save_IFS
4722case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4723
4724
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4726$as_echo_n "checking host system type... " >&6; }
4727if ${ac_cv_host+:} false; then :
4728  $as_echo_n "(cached) " >&6
4729else
4730  if test "x$host_alias" = x; then
4731  ac_cv_host=$ac_cv_build
4732else
4733  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4734    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4735fi
4736
4737fi
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4739$as_echo "$ac_cv_host" >&6; }
4740case $ac_cv_host in
4741*-*-*) ;;
4742*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4743esac
4744host=$ac_cv_host
4745ac_save_IFS=$IFS; IFS='-'
4746set x $ac_cv_host
4747shift
4748host_cpu=$1
4749host_vendor=$2
4750shift; shift
4751# Remember, the first character of IFS is used to create $*,
4752# except with old shells:
4753host_os=$*
4754IFS=$ac_save_IFS
4755case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4756
4757
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4759$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4760if ${ac_cv_path_SED+:} false; then :
4761  $as_echo_n "(cached) " >&6
4762else
4763            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4764     for ac_i in 1 2 3 4 5 6 7; do
4765       ac_script="$ac_script$as_nl$ac_script"
4766     done
4767     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4768     { ac_script=; unset ac_script;}
4769     if test -z "$SED"; then
4770  ac_path_SED_found=false
4771  # Loop through the user's path and test for each of PROGNAME-LIST
4772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775  IFS=$as_save_IFS
4776  test -z "$as_dir" && as_dir=.
4777    for ac_prog in sed gsed; do
4778    for ac_exec_ext in '' $ac_executable_extensions; do
4779      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4780      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4781# Check for GNU ac_path_SED and select it if it is found.
4782  # Check for GNU $ac_path_SED
4783case `"$ac_path_SED" --version 2>&1` in
4784*GNU*)
4785  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4786*)
4787  ac_count=0
4788  $as_echo_n 0123456789 >"conftest.in"
4789  while :
4790  do
4791    cat "conftest.in" "conftest.in" >"conftest.tmp"
4792    mv "conftest.tmp" "conftest.in"
4793    cp "conftest.in" "conftest.nl"
4794    $as_echo '' >> "conftest.nl"
4795    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4796    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4797    as_fn_arith $ac_count + 1 && ac_count=$as_val
4798    if test $ac_count -gt ${ac_path_SED_max-0}; then
4799      # Best one so far, save it but keep looking for a better one
4800      ac_cv_path_SED="$ac_path_SED"
4801      ac_path_SED_max=$ac_count
4802    fi
4803    # 10*(2^10) chars as input seems more than enough
4804    test $ac_count -gt 10 && break
4805  done
4806  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4807esac
4808
4809      $ac_path_SED_found && break 3
4810    done
4811  done
4812  done
4813IFS=$as_save_IFS
4814  if test -z "$ac_cv_path_SED"; then
4815    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4816  fi
4817else
4818  ac_cv_path_SED=$SED
4819fi
4820
4821fi
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4823$as_echo "$ac_cv_path_SED" >&6; }
4824 SED="$ac_cv_path_SED"
4825  rm -f conftest.sed
4826
4827
4828
4829
4830
4831
4832# Check whether --enable-selective-werror was given.
4833if test "${enable_selective_werror+set}" = set; then :
4834  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4835else
4836  SELECTIVE_WERROR=yes
4837fi
4838
4839
4840
4841
4842
4843# -v is too short to test reliably with XORG_TESTSET_CFLAG
4844if test "x$SUNCC" = "xyes"; then
4845    BASE_CFLAGS="-v"
4846else
4847    BASE_CFLAGS=""
4848fi
4849
4850# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864xorg_testset_save_CFLAGS="$CFLAGS"
4865
4866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4868	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4869$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4870if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874/* end confdefs.h.  */
4875int i;
4876_ACEOF
4877if ac_fn_c_try_compile "$LINENO"; then :
4878  xorg_cv_cc_flag_unknown_warning_option=yes
4879else
4880  xorg_cv_cc_flag_unknown_warning_option=no
4881fi
4882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4885$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4886	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4887	CFLAGS="$xorg_testset_save_CFLAGS"
4888fi
4889
4890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4891	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4892		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4893	fi
4894	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4896$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4897if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4898  $as_echo_n "(cached) " >&6
4899else
4900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901/* end confdefs.h.  */
4902int i;
4903_ACEOF
4904if ac_fn_c_try_compile "$LINENO"; then :
4905  xorg_cv_cc_flag_unused_command_line_argument=yes
4906else
4907  xorg_cv_cc_flag_unused_command_line_argument=no
4908fi
4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910fi
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4912$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4913	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4914	CFLAGS="$xorg_testset_save_CFLAGS"
4915fi
4916
4917found="no"
4918
4919	if test $found = "no" ; then
4920		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4922		fi
4923
4924		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4926		fi
4927
4928		CFLAGS="$CFLAGS -Wall"
4929
4930		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4931$as_echo_n "checking if $CC supports -Wall... " >&6; }
4932		cacheid=xorg_cv_cc_flag__Wall
4933		if eval \${$cacheid+:} false; then :
4934  $as_echo_n "(cached) " >&6
4935else
4936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937/* end confdefs.h.  */
4938int i;
4939int
4940main ()
4941{
4942
4943  ;
4944  return 0;
4945}
4946_ACEOF
4947if ac_fn_c_try_link "$LINENO"; then :
4948  eval $cacheid=yes
4949else
4950  eval $cacheid=no
4951fi
4952rm -f core conftest.err conftest.$ac_objext \
4953    conftest$ac_exeext conftest.$ac_ext
4954fi
4955
4956
4957		CFLAGS="$xorg_testset_save_CFLAGS"
4958
4959		eval supported=\$$cacheid
4960		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4961$as_echo "$supported" >&6; }
4962		if test "$supported" = "yes" ; then
4963			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4964			found="yes"
4965		fi
4966	fi
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982xorg_testset_save_CFLAGS="$CFLAGS"
4983
4984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4987$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4988if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993int i;
4994_ACEOF
4995if ac_fn_c_try_compile "$LINENO"; then :
4996  xorg_cv_cc_flag_unknown_warning_option=yes
4997else
4998  xorg_cv_cc_flag_unknown_warning_option=no
4999fi
5000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001fi
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5003$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5004	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5005	CFLAGS="$xorg_testset_save_CFLAGS"
5006fi
5007
5008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5009	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5011	fi
5012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5014$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5015if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5016  $as_echo_n "(cached) " >&6
5017else
5018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019/* end confdefs.h.  */
5020int i;
5021_ACEOF
5022if ac_fn_c_try_compile "$LINENO"; then :
5023  xorg_cv_cc_flag_unused_command_line_argument=yes
5024else
5025  xorg_cv_cc_flag_unused_command_line_argument=no
5026fi
5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028fi
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5030$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5031	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5032	CFLAGS="$xorg_testset_save_CFLAGS"
5033fi
5034
5035found="no"
5036
5037	if test $found = "no" ; then
5038		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5039			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5040		fi
5041
5042		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5043			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5044		fi
5045
5046		CFLAGS="$CFLAGS -Wpointer-arith"
5047
5048		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5049$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5050		cacheid=xorg_cv_cc_flag__Wpointer_arith
5051		if eval \${$cacheid+:} false; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055/* end confdefs.h.  */
5056int i;
5057int
5058main ()
5059{
5060
5061  ;
5062  return 0;
5063}
5064_ACEOF
5065if ac_fn_c_try_link "$LINENO"; then :
5066  eval $cacheid=yes
5067else
5068  eval $cacheid=no
5069fi
5070rm -f core conftest.err conftest.$ac_objext \
5071    conftest$ac_exeext conftest.$ac_ext
5072fi
5073
5074
5075		CFLAGS="$xorg_testset_save_CFLAGS"
5076
5077		eval supported=\$$cacheid
5078		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5079$as_echo "$supported" >&6; }
5080		if test "$supported" = "yes" ; then
5081			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5082			found="yes"
5083		fi
5084	fi
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100xorg_testset_save_CFLAGS="$CFLAGS"
5101
5102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5107  $as_echo_n "(cached) " >&6
5108else
5109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110/* end confdefs.h.  */
5111int i;
5112_ACEOF
5113if ac_fn_c_try_compile "$LINENO"; then :
5114  xorg_cv_cc_flag_unknown_warning_option=yes
5115else
5116  xorg_cv_cc_flag_unknown_warning_option=no
5117fi
5118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5123	CFLAGS="$xorg_testset_save_CFLAGS"
5124fi
5125
5126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5129	fi
5130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5134  $as_echo_n "(cached) " >&6
5135else
5136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137/* end confdefs.h.  */
5138int i;
5139_ACEOF
5140if ac_fn_c_try_compile "$LINENO"; then :
5141  xorg_cv_cc_flag_unused_command_line_argument=yes
5142else
5143  xorg_cv_cc_flag_unused_command_line_argument=no
5144fi
5145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146fi
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5149	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5150	CFLAGS="$xorg_testset_save_CFLAGS"
5151fi
5152
5153found="no"
5154
5155	if test $found = "no" ; then
5156		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5158		fi
5159
5160		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5162		fi
5163
5164		CFLAGS="$CFLAGS -Wmissing-declarations"
5165
5166		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5167$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5168		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5169		if eval \${$cacheid+:} false; then :
5170  $as_echo_n "(cached) " >&6
5171else
5172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h.  */
5174int i;
5175int
5176main ()
5177{
5178
5179  ;
5180  return 0;
5181}
5182_ACEOF
5183if ac_fn_c_try_link "$LINENO"; then :
5184  eval $cacheid=yes
5185else
5186  eval $cacheid=no
5187fi
5188rm -f core conftest.err conftest.$ac_objext \
5189    conftest$ac_exeext conftest.$ac_ext
5190fi
5191
5192
5193		CFLAGS="$xorg_testset_save_CFLAGS"
5194
5195		eval supported=\$$cacheid
5196		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5197$as_echo "$supported" >&6; }
5198		if test "$supported" = "yes" ; then
5199			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5200			found="yes"
5201		fi
5202	fi
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218xorg_testset_save_CFLAGS="$CFLAGS"
5219
5220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5225  $as_echo_n "(cached) " >&6
5226else
5227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h.  */
5229int i;
5230_ACEOF
5231if ac_fn_c_try_compile "$LINENO"; then :
5232  xorg_cv_cc_flag_unknown_warning_option=yes
5233else
5234  xorg_cv_cc_flag_unknown_warning_option=no
5235fi
5236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237fi
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5240	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5241	CFLAGS="$xorg_testset_save_CFLAGS"
5242fi
5243
5244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5245	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5246		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247	fi
5248	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5252  $as_echo_n "(cached) " >&6
5253else
5254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255/* end confdefs.h.  */
5256int i;
5257_ACEOF
5258if ac_fn_c_try_compile "$LINENO"; then :
5259  xorg_cv_cc_flag_unused_command_line_argument=yes
5260else
5261  xorg_cv_cc_flag_unused_command_line_argument=no
5262fi
5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264fi
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5268	CFLAGS="$xorg_testset_save_CFLAGS"
5269fi
5270
5271found="no"
5272
5273	if test $found = "no" ; then
5274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5276		fi
5277
5278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5280		fi
5281
5282		CFLAGS="$CFLAGS -Wformat=2"
5283
5284		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5285$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5286		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5287		if eval \${$cacheid+:} false; then :
5288  $as_echo_n "(cached) " >&6
5289else
5290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291/* end confdefs.h.  */
5292int i;
5293int
5294main ()
5295{
5296
5297  ;
5298  return 0;
5299}
5300_ACEOF
5301if ac_fn_c_try_link "$LINENO"; then :
5302  eval $cacheid=yes
5303else
5304  eval $cacheid=no
5305fi
5306rm -f core conftest.err conftest.$ac_objext \
5307    conftest$ac_exeext conftest.$ac_ext
5308fi
5309
5310
5311		CFLAGS="$xorg_testset_save_CFLAGS"
5312
5313		eval supported=\$$cacheid
5314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5315$as_echo "$supported" >&6; }
5316		if test "$supported" = "yes" ; then
5317			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5318			found="yes"
5319		fi
5320	fi
5321
5322	if test $found = "no" ; then
5323		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325		fi
5326
5327		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5329		fi
5330
5331		CFLAGS="$CFLAGS -Wformat"
5332
5333		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5334$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5335		cacheid=xorg_cv_cc_flag__Wformat
5336		if eval \${$cacheid+:} false; then :
5337  $as_echo_n "(cached) " >&6
5338else
5339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h.  */
5341int i;
5342int
5343main ()
5344{
5345
5346  ;
5347  return 0;
5348}
5349_ACEOF
5350if ac_fn_c_try_link "$LINENO"; then :
5351  eval $cacheid=yes
5352else
5353  eval $cacheid=no
5354fi
5355rm -f core conftest.err conftest.$ac_objext \
5356    conftest$ac_exeext conftest.$ac_ext
5357fi
5358
5359
5360		CFLAGS="$xorg_testset_save_CFLAGS"
5361
5362		eval supported=\$$cacheid
5363		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5364$as_echo "$supported" >&6; }
5365		if test "$supported" = "yes" ; then
5366			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5367			found="yes"
5368		fi
5369	fi
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387xorg_testset_save_CFLAGS="$CFLAGS"
5388
5389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5394  $as_echo_n "(cached) " >&6
5395else
5396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398int i;
5399_ACEOF
5400if ac_fn_c_try_compile "$LINENO"; then :
5401  xorg_cv_cc_flag_unknown_warning_option=yes
5402else
5403  xorg_cv_cc_flag_unknown_warning_option=no
5404fi
5405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406fi
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5409	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5410	CFLAGS="$xorg_testset_save_CFLAGS"
5411fi
5412
5413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5414	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5416	fi
5417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5421  $as_echo_n "(cached) " >&6
5422else
5423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424/* end confdefs.h.  */
5425int i;
5426_ACEOF
5427if ac_fn_c_try_compile "$LINENO"; then :
5428  xorg_cv_cc_flag_unused_command_line_argument=yes
5429else
5430  xorg_cv_cc_flag_unused_command_line_argument=no
5431fi
5432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5436	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5437	CFLAGS="$xorg_testset_save_CFLAGS"
5438fi
5439
5440found="no"
5441
5442	if test $found = "no" ; then
5443		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5444			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5445		fi
5446
5447		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5448			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5449		fi
5450
5451		CFLAGS="$CFLAGS -Wstrict-prototypes"
5452
5453		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5454$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5455		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5456		if eval \${$cacheid+:} false; then :
5457  $as_echo_n "(cached) " >&6
5458else
5459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h.  */
5461int i;
5462int
5463main ()
5464{
5465
5466  ;
5467  return 0;
5468}
5469_ACEOF
5470if ac_fn_c_try_link "$LINENO"; then :
5471  eval $cacheid=yes
5472else
5473  eval $cacheid=no
5474fi
5475rm -f core conftest.err conftest.$ac_objext \
5476    conftest$ac_exeext conftest.$ac_ext
5477fi
5478
5479
5480		CFLAGS="$xorg_testset_save_CFLAGS"
5481
5482		eval supported=\$$cacheid
5483		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5484$as_echo "$supported" >&6; }
5485		if test "$supported" = "yes" ; then
5486			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5487			found="yes"
5488		fi
5489	fi
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505xorg_testset_save_CFLAGS="$CFLAGS"
5506
5507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5512  $as_echo_n "(cached) " >&6
5513else
5514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h.  */
5516int i;
5517_ACEOF
5518if ac_fn_c_try_compile "$LINENO"; then :
5519  xorg_cv_cc_flag_unknown_warning_option=yes
5520else
5521  xorg_cv_cc_flag_unknown_warning_option=no
5522fi
5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524fi
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5527	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5528	CFLAGS="$xorg_testset_save_CFLAGS"
5529fi
5530
5531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5532	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5533		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5534	fi
5535	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5539  $as_echo_n "(cached) " >&6
5540else
5541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542/* end confdefs.h.  */
5543int i;
5544_ACEOF
5545if ac_fn_c_try_compile "$LINENO"; then :
5546  xorg_cv_cc_flag_unused_command_line_argument=yes
5547else
5548  xorg_cv_cc_flag_unused_command_line_argument=no
5549fi
5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551fi
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5555	CFLAGS="$xorg_testset_save_CFLAGS"
5556fi
5557
5558found="no"
5559
5560	if test $found = "no" ; then
5561		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563		fi
5564
5565		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567		fi
5568
5569		CFLAGS="$CFLAGS -Wmissing-prototypes"
5570
5571		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5572$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5573		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5574		if eval \${$cacheid+:} false; then :
5575  $as_echo_n "(cached) " >&6
5576else
5577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h.  */
5579int i;
5580int
5581main ()
5582{
5583
5584  ;
5585  return 0;
5586}
5587_ACEOF
5588if ac_fn_c_try_link "$LINENO"; then :
5589  eval $cacheid=yes
5590else
5591  eval $cacheid=no
5592fi
5593rm -f core conftest.err conftest.$ac_objext \
5594    conftest$ac_exeext conftest.$ac_ext
5595fi
5596
5597
5598		CFLAGS="$xorg_testset_save_CFLAGS"
5599
5600		eval supported=\$$cacheid
5601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5602$as_echo "$supported" >&6; }
5603		if test "$supported" = "yes" ; then
5604			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5605			found="yes"
5606		fi
5607	fi
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623xorg_testset_save_CFLAGS="$CFLAGS"
5624
5625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5630  $as_echo_n "(cached) " >&6
5631else
5632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633/* end confdefs.h.  */
5634int i;
5635_ACEOF
5636if ac_fn_c_try_compile "$LINENO"; then :
5637  xorg_cv_cc_flag_unknown_warning_option=yes
5638else
5639  xorg_cv_cc_flag_unknown_warning_option=no
5640fi
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642fi
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5646	CFLAGS="$xorg_testset_save_CFLAGS"
5647fi
5648
5649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652	fi
5653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5657  $as_echo_n "(cached) " >&6
5658else
5659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h.  */
5661int i;
5662_ACEOF
5663if ac_fn_c_try_compile "$LINENO"; then :
5664  xorg_cv_cc_flag_unused_command_line_argument=yes
5665else
5666  xorg_cv_cc_flag_unused_command_line_argument=no
5667fi
5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669fi
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5673	CFLAGS="$xorg_testset_save_CFLAGS"
5674fi
5675
5676found="no"
5677
5678	if test $found = "no" ; then
5679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681		fi
5682
5683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5685		fi
5686
5687		CFLAGS="$CFLAGS -Wnested-externs"
5688
5689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5690$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5691		cacheid=xorg_cv_cc_flag__Wnested_externs
5692		if eval \${$cacheid+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h.  */
5697int i;
5698int
5699main ()
5700{
5701
5702  ;
5703  return 0;
5704}
5705_ACEOF
5706if ac_fn_c_try_link "$LINENO"; then :
5707  eval $cacheid=yes
5708else
5709  eval $cacheid=no
5710fi
5711rm -f core conftest.err conftest.$ac_objext \
5712    conftest$ac_exeext conftest.$ac_ext
5713fi
5714
5715
5716		CFLAGS="$xorg_testset_save_CFLAGS"
5717
5718		eval supported=\$$cacheid
5719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5720$as_echo "$supported" >&6; }
5721		if test "$supported" = "yes" ; then
5722			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5723			found="yes"
5724		fi
5725	fi
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741xorg_testset_save_CFLAGS="$CFLAGS"
5742
5743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5748  $as_echo_n "(cached) " >&6
5749else
5750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751/* end confdefs.h.  */
5752int i;
5753_ACEOF
5754if ac_fn_c_try_compile "$LINENO"; then :
5755  xorg_cv_cc_flag_unknown_warning_option=yes
5756else
5757  xorg_cv_cc_flag_unknown_warning_option=no
5758fi
5759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760fi
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5764	CFLAGS="$xorg_testset_save_CFLAGS"
5765fi
5766
5767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770	fi
5771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5775  $as_echo_n "(cached) " >&6
5776else
5777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h.  */
5779int i;
5780_ACEOF
5781if ac_fn_c_try_compile "$LINENO"; then :
5782  xorg_cv_cc_flag_unused_command_line_argument=yes
5783else
5784  xorg_cv_cc_flag_unused_command_line_argument=no
5785fi
5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787fi
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5791	CFLAGS="$xorg_testset_save_CFLAGS"
5792fi
5793
5794found="no"
5795
5796	if test $found = "no" ; then
5797		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5799		fi
5800
5801		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5803		fi
5804
5805		CFLAGS="$CFLAGS -Wbad-function-cast"
5806
5807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5808$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5809		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5810		if eval \${$cacheid+:} false; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h.  */
5815int i;
5816int
5817main ()
5818{
5819
5820  ;
5821  return 0;
5822}
5823_ACEOF
5824if ac_fn_c_try_link "$LINENO"; then :
5825  eval $cacheid=yes
5826else
5827  eval $cacheid=no
5828fi
5829rm -f core conftest.err conftest.$ac_objext \
5830    conftest$ac_exeext conftest.$ac_ext
5831fi
5832
5833
5834		CFLAGS="$xorg_testset_save_CFLAGS"
5835
5836		eval supported=\$$cacheid
5837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5838$as_echo "$supported" >&6; }
5839		if test "$supported" = "yes" ; then
5840			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5841			found="yes"
5842		fi
5843	fi
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859xorg_testset_save_CFLAGS="$CFLAGS"
5860
5861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5866  $as_echo_n "(cached) " >&6
5867else
5868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h.  */
5870int i;
5871_ACEOF
5872if ac_fn_c_try_compile "$LINENO"; then :
5873  xorg_cv_cc_flag_unknown_warning_option=yes
5874else
5875  xorg_cv_cc_flag_unknown_warning_option=no
5876fi
5877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878fi
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5882	CFLAGS="$xorg_testset_save_CFLAGS"
5883fi
5884
5885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888	fi
5889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5893  $as_echo_n "(cached) " >&6
5894else
5895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896/* end confdefs.h.  */
5897int i;
5898_ACEOF
5899if ac_fn_c_try_compile "$LINENO"; then :
5900  xorg_cv_cc_flag_unused_command_line_argument=yes
5901else
5902  xorg_cv_cc_flag_unused_command_line_argument=no
5903fi
5904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905fi
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5909	CFLAGS="$xorg_testset_save_CFLAGS"
5910fi
5911
5912found="no"
5913
5914	if test $found = "no" ; then
5915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5917		fi
5918
5919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5921		fi
5922
5923		CFLAGS="$CFLAGS -Wold-style-definition"
5924
5925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5926$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5927		cacheid=xorg_cv_cc_flag__Wold_style_definition
5928		if eval \${$cacheid+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932/* end confdefs.h.  */
5933int i;
5934int
5935main ()
5936{
5937
5938  ;
5939  return 0;
5940}
5941_ACEOF
5942if ac_fn_c_try_link "$LINENO"; then :
5943  eval $cacheid=yes
5944else
5945  eval $cacheid=no
5946fi
5947rm -f core conftest.err conftest.$ac_objext \
5948    conftest$ac_exeext conftest.$ac_ext
5949fi
5950
5951
5952		CFLAGS="$xorg_testset_save_CFLAGS"
5953
5954		eval supported=\$$cacheid
5955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5956$as_echo "$supported" >&6; }
5957		if test "$supported" = "yes" ; then
5958			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5959			found="yes"
5960		fi
5961	fi
5962
5963	if test $found = "no" ; then
5964		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5966		fi
5967
5968		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5970		fi
5971
5972		CFLAGS="$CFLAGS -fd"
5973
5974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5975$as_echo_n "checking if $CC supports -fd... " >&6; }
5976		cacheid=xorg_cv_cc_flag__fd
5977		if eval \${$cacheid+:} false; then :
5978  $as_echo_n "(cached) " >&6
5979else
5980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981/* end confdefs.h.  */
5982int i;
5983int
5984main ()
5985{
5986
5987  ;
5988  return 0;
5989}
5990_ACEOF
5991if ac_fn_c_try_link "$LINENO"; then :
5992  eval $cacheid=yes
5993else
5994  eval $cacheid=no
5995fi
5996rm -f core conftest.err conftest.$ac_objext \
5997    conftest$ac_exeext conftest.$ac_ext
5998fi
5999
6000
6001		CFLAGS="$xorg_testset_save_CFLAGS"
6002
6003		eval supported=\$$cacheid
6004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6005$as_echo "$supported" >&6; }
6006		if test "$supported" = "yes" ; then
6007			BASE_CFLAGS="$BASE_CFLAGS -fd"
6008			found="yes"
6009		fi
6010	fi
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026xorg_testset_save_CFLAGS="$CFLAGS"
6027
6028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6031$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6032if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6033  $as_echo_n "(cached) " >&6
6034else
6035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h.  */
6037int i;
6038_ACEOF
6039if ac_fn_c_try_compile "$LINENO"; then :
6040  xorg_cv_cc_flag_unknown_warning_option=yes
6041else
6042  xorg_cv_cc_flag_unknown_warning_option=no
6043fi
6044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045fi
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6047$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6048	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6049	CFLAGS="$xorg_testset_save_CFLAGS"
6050fi
6051
6052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6053	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6054		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6055	fi
6056	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6058$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6059if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6060  $as_echo_n "(cached) " >&6
6061else
6062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063/* end confdefs.h.  */
6064int i;
6065_ACEOF
6066if ac_fn_c_try_compile "$LINENO"; then :
6067  xorg_cv_cc_flag_unused_command_line_argument=yes
6068else
6069  xorg_cv_cc_flag_unused_command_line_argument=no
6070fi
6071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6074$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6076	CFLAGS="$xorg_testset_save_CFLAGS"
6077fi
6078
6079found="no"
6080
6081	if test $found = "no" ; then
6082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084		fi
6085
6086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6088		fi
6089
6090		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6091
6092		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6093$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6094		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6095		if eval \${$cacheid+:} false; then :
6096  $as_echo_n "(cached) " >&6
6097else
6098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099/* end confdefs.h.  */
6100int i;
6101int
6102main ()
6103{
6104
6105  ;
6106  return 0;
6107}
6108_ACEOF
6109if ac_fn_c_try_link "$LINENO"; then :
6110  eval $cacheid=yes
6111else
6112  eval $cacheid=no
6113fi
6114rm -f core conftest.err conftest.$ac_objext \
6115    conftest$ac_exeext conftest.$ac_ext
6116fi
6117
6118
6119		CFLAGS="$xorg_testset_save_CFLAGS"
6120
6121		eval supported=\$$cacheid
6122		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6123$as_echo "$supported" >&6; }
6124		if test "$supported" = "yes" ; then
6125			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6126			found="yes"
6127		fi
6128	fi
6129
6130
6131
6132
6133
6134# This chunk adds additional warnings that could catch undesired effects.
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148xorg_testset_save_CFLAGS="$CFLAGS"
6149
6150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6151	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6155  $as_echo_n "(cached) " >&6
6156else
6157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158/* end confdefs.h.  */
6159int i;
6160_ACEOF
6161if ac_fn_c_try_compile "$LINENO"; then :
6162  xorg_cv_cc_flag_unknown_warning_option=yes
6163else
6164  xorg_cv_cc_flag_unknown_warning_option=no
6165fi
6166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167fi
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6170	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6171	CFLAGS="$xorg_testset_save_CFLAGS"
6172fi
6173
6174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6175	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6176		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6177	fi
6178	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6182  $as_echo_n "(cached) " >&6
6183else
6184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185/* end confdefs.h.  */
6186int i;
6187_ACEOF
6188if ac_fn_c_try_compile "$LINENO"; then :
6189  xorg_cv_cc_flag_unused_command_line_argument=yes
6190else
6191  xorg_cv_cc_flag_unused_command_line_argument=no
6192fi
6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194fi
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6198	CFLAGS="$xorg_testset_save_CFLAGS"
6199fi
6200
6201found="no"
6202
6203	if test $found = "no" ; then
6204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6206		fi
6207
6208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6210		fi
6211
6212		CFLAGS="$CFLAGS -Wunused"
6213
6214		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6215$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6216		cacheid=xorg_cv_cc_flag__Wunused
6217		if eval \${$cacheid+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h.  */
6222int i;
6223int
6224main ()
6225{
6226
6227  ;
6228  return 0;
6229}
6230_ACEOF
6231if ac_fn_c_try_link "$LINENO"; then :
6232  eval $cacheid=yes
6233else
6234  eval $cacheid=no
6235fi
6236rm -f core conftest.err conftest.$ac_objext \
6237    conftest$ac_exeext conftest.$ac_ext
6238fi
6239
6240
6241		CFLAGS="$xorg_testset_save_CFLAGS"
6242
6243		eval supported=\$$cacheid
6244		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6245$as_echo "$supported" >&6; }
6246		if test "$supported" = "yes" ; then
6247			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6248			found="yes"
6249		fi
6250	fi
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266xorg_testset_save_CFLAGS="$CFLAGS"
6267
6268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6269	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6270	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6271$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6272if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h.  */
6277int i;
6278_ACEOF
6279if ac_fn_c_try_compile "$LINENO"; then :
6280  xorg_cv_cc_flag_unknown_warning_option=yes
6281else
6282  xorg_cv_cc_flag_unknown_warning_option=no
6283fi
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285fi
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6287$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6288	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6289	CFLAGS="$xorg_testset_save_CFLAGS"
6290fi
6291
6292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6293	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6294		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295	fi
6296	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6298$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6299if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6300  $as_echo_n "(cached) " >&6
6301else
6302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303/* end confdefs.h.  */
6304int i;
6305_ACEOF
6306if ac_fn_c_try_compile "$LINENO"; then :
6307  xorg_cv_cc_flag_unused_command_line_argument=yes
6308else
6309  xorg_cv_cc_flag_unused_command_line_argument=no
6310fi
6311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312fi
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6314$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6316	CFLAGS="$xorg_testset_save_CFLAGS"
6317fi
6318
6319found="no"
6320
6321	if test $found = "no" ; then
6322		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6324		fi
6325
6326		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6328		fi
6329
6330		CFLAGS="$CFLAGS -Wuninitialized"
6331
6332		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6333$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6334		cacheid=xorg_cv_cc_flag__Wuninitialized
6335		if eval \${$cacheid+:} false; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340int i;
6341int
6342main ()
6343{
6344
6345  ;
6346  return 0;
6347}
6348_ACEOF
6349if ac_fn_c_try_link "$LINENO"; then :
6350  eval $cacheid=yes
6351else
6352  eval $cacheid=no
6353fi
6354rm -f core conftest.err conftest.$ac_objext \
6355    conftest$ac_exeext conftest.$ac_ext
6356fi
6357
6358
6359		CFLAGS="$xorg_testset_save_CFLAGS"
6360
6361		eval supported=\$$cacheid
6362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6363$as_echo "$supported" >&6; }
6364		if test "$supported" = "yes" ; then
6365			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6366			found="yes"
6367		fi
6368	fi
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384xorg_testset_save_CFLAGS="$CFLAGS"
6385
6386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6387	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6389$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6390if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6391  $as_echo_n "(cached) " >&6
6392else
6393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394/* end confdefs.h.  */
6395int i;
6396_ACEOF
6397if ac_fn_c_try_compile "$LINENO"; then :
6398  xorg_cv_cc_flag_unknown_warning_option=yes
6399else
6400  xorg_cv_cc_flag_unknown_warning_option=no
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6405$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6406	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6407	CFLAGS="$xorg_testset_save_CFLAGS"
6408fi
6409
6410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6411	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6412		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6413	fi
6414	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6416$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6417if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6418  $as_echo_n "(cached) " >&6
6419else
6420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421/* end confdefs.h.  */
6422int i;
6423_ACEOF
6424if ac_fn_c_try_compile "$LINENO"; then :
6425  xorg_cv_cc_flag_unused_command_line_argument=yes
6426else
6427  xorg_cv_cc_flag_unused_command_line_argument=no
6428fi
6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430fi
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6432$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6434	CFLAGS="$xorg_testset_save_CFLAGS"
6435fi
6436
6437found="no"
6438
6439	if test $found = "no" ; then
6440		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6442		fi
6443
6444		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6446		fi
6447
6448		CFLAGS="$CFLAGS -Wshadow"
6449
6450		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6451$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6452		cacheid=xorg_cv_cc_flag__Wshadow
6453		if eval \${$cacheid+:} false; then :
6454  $as_echo_n "(cached) " >&6
6455else
6456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457/* end confdefs.h.  */
6458int i;
6459int
6460main ()
6461{
6462
6463  ;
6464  return 0;
6465}
6466_ACEOF
6467if ac_fn_c_try_link "$LINENO"; then :
6468  eval $cacheid=yes
6469else
6470  eval $cacheid=no
6471fi
6472rm -f core conftest.err conftest.$ac_objext \
6473    conftest$ac_exeext conftest.$ac_ext
6474fi
6475
6476
6477		CFLAGS="$xorg_testset_save_CFLAGS"
6478
6479		eval supported=\$$cacheid
6480		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6481$as_echo "$supported" >&6; }
6482		if test "$supported" = "yes" ; then
6483			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6484			found="yes"
6485		fi
6486	fi
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502xorg_testset_save_CFLAGS="$CFLAGS"
6503
6504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6505	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6507$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6508if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6509  $as_echo_n "(cached) " >&6
6510else
6511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513int i;
6514_ACEOF
6515if ac_fn_c_try_compile "$LINENO"; then :
6516  xorg_cv_cc_flag_unknown_warning_option=yes
6517else
6518  xorg_cv_cc_flag_unknown_warning_option=no
6519fi
6520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521fi
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6523$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6524	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6525	CFLAGS="$xorg_testset_save_CFLAGS"
6526fi
6527
6528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6529	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6530		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6531	fi
6532	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6534$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6535if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6536  $as_echo_n "(cached) " >&6
6537else
6538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h.  */
6540int i;
6541_ACEOF
6542if ac_fn_c_try_compile "$LINENO"; then :
6543  xorg_cv_cc_flag_unused_command_line_argument=yes
6544else
6545  xorg_cv_cc_flag_unused_command_line_argument=no
6546fi
6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548fi
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6550$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6552	CFLAGS="$xorg_testset_save_CFLAGS"
6553fi
6554
6555found="no"
6556
6557	if test $found = "no" ; then
6558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6560		fi
6561
6562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6564		fi
6565
6566		CFLAGS="$CFLAGS -Wmissing-noreturn"
6567
6568		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6569$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6570		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6571		if eval \${$cacheid+:} false; then :
6572  $as_echo_n "(cached) " >&6
6573else
6574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576int i;
6577int
6578main ()
6579{
6580
6581  ;
6582  return 0;
6583}
6584_ACEOF
6585if ac_fn_c_try_link "$LINENO"; then :
6586  eval $cacheid=yes
6587else
6588  eval $cacheid=no
6589fi
6590rm -f core conftest.err conftest.$ac_objext \
6591    conftest$ac_exeext conftest.$ac_ext
6592fi
6593
6594
6595		CFLAGS="$xorg_testset_save_CFLAGS"
6596
6597		eval supported=\$$cacheid
6598		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6599$as_echo "$supported" >&6; }
6600		if test "$supported" = "yes" ; then
6601			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6602			found="yes"
6603		fi
6604	fi
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620xorg_testset_save_CFLAGS="$CFLAGS"
6621
6622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6627  $as_echo_n "(cached) " >&6
6628else
6629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631int i;
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"; then :
6634  xorg_cv_cc_flag_unknown_warning_option=yes
6635else
6636  xorg_cv_cc_flag_unknown_warning_option=no
6637fi
6638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6643	CFLAGS="$xorg_testset_save_CFLAGS"
6644fi
6645
6646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6649	fi
6650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6654  $as_echo_n "(cached) " >&6
6655else
6656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657/* end confdefs.h.  */
6658int i;
6659_ACEOF
6660if ac_fn_c_try_compile "$LINENO"; then :
6661  xorg_cv_cc_flag_unused_command_line_argument=yes
6662else
6663  xorg_cv_cc_flag_unused_command_line_argument=no
6664fi
6665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666fi
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6670	CFLAGS="$xorg_testset_save_CFLAGS"
6671fi
6672
6673found="no"
6674
6675	if test $found = "no" ; then
6676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6678		fi
6679
6680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6682		fi
6683
6684		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6685
6686		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6687$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6688		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6689		if eval \${$cacheid+:} false; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h.  */
6694int i;
6695int
6696main ()
6697{
6698
6699  ;
6700  return 0;
6701}
6702_ACEOF
6703if ac_fn_c_try_link "$LINENO"; then :
6704  eval $cacheid=yes
6705else
6706  eval $cacheid=no
6707fi
6708rm -f core conftest.err conftest.$ac_objext \
6709    conftest$ac_exeext conftest.$ac_ext
6710fi
6711
6712
6713		CFLAGS="$xorg_testset_save_CFLAGS"
6714
6715		eval supported=\$$cacheid
6716		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6717$as_echo "$supported" >&6; }
6718		if test "$supported" = "yes" ; then
6719			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6720			found="yes"
6721		fi
6722	fi
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738xorg_testset_save_CFLAGS="$CFLAGS"
6739
6740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748/* end confdefs.h.  */
6749int i;
6750_ACEOF
6751if ac_fn_c_try_compile "$LINENO"; then :
6752  xorg_cv_cc_flag_unknown_warning_option=yes
6753else
6754  xorg_cv_cc_flag_unknown_warning_option=no
6755fi
6756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757fi
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6761	CFLAGS="$xorg_testset_save_CFLAGS"
6762fi
6763
6764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6767	fi
6768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775/* end confdefs.h.  */
6776int i;
6777_ACEOF
6778if ac_fn_c_try_compile "$LINENO"; then :
6779  xorg_cv_cc_flag_unused_command_line_argument=yes
6780else
6781  xorg_cv_cc_flag_unused_command_line_argument=no
6782fi
6783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784fi
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6788	CFLAGS="$xorg_testset_save_CFLAGS"
6789fi
6790
6791found="no"
6792
6793	if test $found = "no" ; then
6794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6796		fi
6797
6798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6800		fi
6801
6802		CFLAGS="$CFLAGS -Wredundant-decls"
6803
6804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6805$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6806		cacheid=xorg_cv_cc_flag__Wredundant_decls
6807		if eval \${$cacheid+:} false; then :
6808  $as_echo_n "(cached) " >&6
6809else
6810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h.  */
6812int i;
6813int
6814main ()
6815{
6816
6817  ;
6818  return 0;
6819}
6820_ACEOF
6821if ac_fn_c_try_link "$LINENO"; then :
6822  eval $cacheid=yes
6823else
6824  eval $cacheid=no
6825fi
6826rm -f core conftest.err conftest.$ac_objext \
6827    conftest$ac_exeext conftest.$ac_ext
6828fi
6829
6830
6831		CFLAGS="$xorg_testset_save_CFLAGS"
6832
6833		eval supported=\$$cacheid
6834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6835$as_echo "$supported" >&6; }
6836		if test "$supported" = "yes" ; then
6837			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6838			found="yes"
6839		fi
6840	fi
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856xorg_testset_save_CFLAGS="$CFLAGS"
6857
6858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6863  $as_echo_n "(cached) " >&6
6864else
6865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866/* end confdefs.h.  */
6867int i;
6868_ACEOF
6869if ac_fn_c_try_compile "$LINENO"; then :
6870  xorg_cv_cc_flag_unknown_warning_option=yes
6871else
6872  xorg_cv_cc_flag_unknown_warning_option=no
6873fi
6874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875fi
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6878	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6879	CFLAGS="$xorg_testset_save_CFLAGS"
6880fi
6881
6882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6883	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6884		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6885	fi
6886	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6890  $as_echo_n "(cached) " >&6
6891else
6892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893/* end confdefs.h.  */
6894int i;
6895_ACEOF
6896if ac_fn_c_try_compile "$LINENO"; then :
6897  xorg_cv_cc_flag_unused_command_line_argument=yes
6898else
6899  xorg_cv_cc_flag_unused_command_line_argument=no
6900fi
6901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902fi
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6905	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6906	CFLAGS="$xorg_testset_save_CFLAGS"
6907fi
6908
6909found="no"
6910
6911	if test $found = "no" ; then
6912		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6913			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6914		fi
6915
6916		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6917			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6918		fi
6919
6920		CFLAGS="$CFLAGS -Wlogical-op"
6921
6922		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6923$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6924		cacheid=xorg_cv_cc_flag__Wlogical_op
6925		if eval \${$cacheid+:} false; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929/* end confdefs.h.  */
6930int i;
6931int
6932main ()
6933{
6934
6935  ;
6936  return 0;
6937}
6938_ACEOF
6939if ac_fn_c_try_link "$LINENO"; then :
6940  eval $cacheid=yes
6941else
6942  eval $cacheid=no
6943fi
6944rm -f core conftest.err conftest.$ac_objext \
6945    conftest$ac_exeext conftest.$ac_ext
6946fi
6947
6948
6949		CFLAGS="$xorg_testset_save_CFLAGS"
6950
6951		eval supported=\$$cacheid
6952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6953$as_echo "$supported" >&6; }
6954		if test "$supported" = "yes" ; then
6955			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6956			found="yes"
6957		fi
6958	fi
6959
6960
6961
6962# These are currently disabled because they are noisy.  They will be enabled
6963# in the future once the codebase is sufficiently modernized to silence
6964# them.  For now, I don't want them to drown out the other warnings.
6965# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6966# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6967# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6968
6969# Turn some warnings into errors, so we don't accidently get successful builds
6970# when there are problems that should be fixed.
6971
6972if test "x$SELECTIVE_WERROR" = "xyes" ; then
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986xorg_testset_save_CFLAGS="$CFLAGS"
6987
6988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6989	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6991$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6992if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6993  $as_echo_n "(cached) " >&6
6994else
6995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h.  */
6997int i;
6998_ACEOF
6999if ac_fn_c_try_compile "$LINENO"; then :
7000  xorg_cv_cc_flag_unknown_warning_option=yes
7001else
7002  xorg_cv_cc_flag_unknown_warning_option=no
7003fi
7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005fi
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7007$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7008	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7009	CFLAGS="$xorg_testset_save_CFLAGS"
7010fi
7011
7012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7013	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7014		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7015	fi
7016	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7018$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7019if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7020  $as_echo_n "(cached) " >&6
7021else
7022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023/* end confdefs.h.  */
7024int i;
7025_ACEOF
7026if ac_fn_c_try_compile "$LINENO"; then :
7027  xorg_cv_cc_flag_unused_command_line_argument=yes
7028else
7029  xorg_cv_cc_flag_unused_command_line_argument=no
7030fi
7031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032fi
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7034$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7036	CFLAGS="$xorg_testset_save_CFLAGS"
7037fi
7038
7039found="no"
7040
7041	if test $found = "no" ; then
7042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044		fi
7045
7046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7048		fi
7049
7050		CFLAGS="$CFLAGS -Werror=implicit"
7051
7052		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7053$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7054		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
7055		if eval \${$cacheid+:} false; then :
7056  $as_echo_n "(cached) " >&6
7057else
7058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h.  */
7060int i;
7061int
7062main ()
7063{
7064
7065  ;
7066  return 0;
7067}
7068_ACEOF
7069if ac_fn_c_try_link "$LINENO"; then :
7070  eval $cacheid=yes
7071else
7072  eval $cacheid=no
7073fi
7074rm -f core conftest.err conftest.$ac_objext \
7075    conftest$ac_exeext conftest.$ac_ext
7076fi
7077
7078
7079		CFLAGS="$xorg_testset_save_CFLAGS"
7080
7081		eval supported=\$$cacheid
7082		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7083$as_echo "$supported" >&6; }
7084		if test "$supported" = "yes" ; then
7085			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7086			found="yes"
7087		fi
7088	fi
7089
7090	if test $found = "no" ; then
7091		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7093		fi
7094
7095		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7097		fi
7098
7099		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7100
7101		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7102$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7103		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7104		if eval \${$cacheid+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h.  */
7109int i;
7110int
7111main ()
7112{
7113
7114  ;
7115  return 0;
7116}
7117_ACEOF
7118if ac_fn_c_try_link "$LINENO"; then :
7119  eval $cacheid=yes
7120else
7121  eval $cacheid=no
7122fi
7123rm -f core conftest.err conftest.$ac_objext \
7124    conftest$ac_exeext conftest.$ac_ext
7125fi
7126
7127
7128		CFLAGS="$xorg_testset_save_CFLAGS"
7129
7130		eval supported=\$$cacheid
7131		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7132$as_echo "$supported" >&6; }
7133		if test "$supported" = "yes" ; then
7134			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7135			found="yes"
7136		fi
7137	fi
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153xorg_testset_save_CFLAGS="$CFLAGS"
7154
7155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7156	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7160  $as_echo_n "(cached) " >&6
7161else
7162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h.  */
7164int i;
7165_ACEOF
7166if ac_fn_c_try_compile "$LINENO"; then :
7167  xorg_cv_cc_flag_unknown_warning_option=yes
7168else
7169  xorg_cv_cc_flag_unknown_warning_option=no
7170fi
7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172fi
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7175	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7176	CFLAGS="$xorg_testset_save_CFLAGS"
7177fi
7178
7179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7180	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7182	fi
7183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7187  $as_echo_n "(cached) " >&6
7188else
7189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190/* end confdefs.h.  */
7191int i;
7192_ACEOF
7193if ac_fn_c_try_compile "$LINENO"; then :
7194  xorg_cv_cc_flag_unused_command_line_argument=yes
7195else
7196  xorg_cv_cc_flag_unused_command_line_argument=no
7197fi
7198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199fi
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7203	CFLAGS="$xorg_testset_save_CFLAGS"
7204fi
7205
7206found="no"
7207
7208	if test $found = "no" ; then
7209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7211		fi
7212
7213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7215		fi
7216
7217		CFLAGS="$CFLAGS -Werror=nonnull"
7218
7219		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7220$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7221		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7222		if eval \${$cacheid+:} false; then :
7223  $as_echo_n "(cached) " >&6
7224else
7225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226/* end confdefs.h.  */
7227int i;
7228int
7229main ()
7230{
7231
7232  ;
7233  return 0;
7234}
7235_ACEOF
7236if ac_fn_c_try_link "$LINENO"; then :
7237  eval $cacheid=yes
7238else
7239  eval $cacheid=no
7240fi
7241rm -f core conftest.err conftest.$ac_objext \
7242    conftest$ac_exeext conftest.$ac_ext
7243fi
7244
7245
7246		CFLAGS="$xorg_testset_save_CFLAGS"
7247
7248		eval supported=\$$cacheid
7249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7250$as_echo "$supported" >&6; }
7251		if test "$supported" = "yes" ; then
7252			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7253			found="yes"
7254		fi
7255	fi
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271xorg_testset_save_CFLAGS="$CFLAGS"
7272
7273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281/* end confdefs.h.  */
7282int i;
7283_ACEOF
7284if ac_fn_c_try_compile "$LINENO"; then :
7285  xorg_cv_cc_flag_unknown_warning_option=yes
7286else
7287  xorg_cv_cc_flag_unknown_warning_option=no
7288fi
7289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290fi
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7294	CFLAGS="$xorg_testset_save_CFLAGS"
7295fi
7296
7297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7300	fi
7301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309int i;
7310_ACEOF
7311if ac_fn_c_try_compile "$LINENO"; then :
7312  xorg_cv_cc_flag_unused_command_line_argument=yes
7313else
7314  xorg_cv_cc_flag_unused_command_line_argument=no
7315fi
7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317fi
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7321	CFLAGS="$xorg_testset_save_CFLAGS"
7322fi
7323
7324found="no"
7325
7326	if test $found = "no" ; then
7327		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7329		fi
7330
7331		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7333		fi
7334
7335		CFLAGS="$CFLAGS -Werror=init-self"
7336
7337		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7338$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7339		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7340		if eval \${$cacheid+:} false; then :
7341  $as_echo_n "(cached) " >&6
7342else
7343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344/* end confdefs.h.  */
7345int i;
7346int
7347main ()
7348{
7349
7350  ;
7351  return 0;
7352}
7353_ACEOF
7354if ac_fn_c_try_link "$LINENO"; then :
7355  eval $cacheid=yes
7356else
7357  eval $cacheid=no
7358fi
7359rm -f core conftest.err conftest.$ac_objext \
7360    conftest$ac_exeext conftest.$ac_ext
7361fi
7362
7363
7364		CFLAGS="$xorg_testset_save_CFLAGS"
7365
7366		eval supported=\$$cacheid
7367		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7368$as_echo "$supported" >&6; }
7369		if test "$supported" = "yes" ; then
7370			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7371			found="yes"
7372		fi
7373	fi
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389xorg_testset_save_CFLAGS="$CFLAGS"
7390
7391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7396  $as_echo_n "(cached) " >&6
7397else
7398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h.  */
7400int i;
7401_ACEOF
7402if ac_fn_c_try_compile "$LINENO"; then :
7403  xorg_cv_cc_flag_unknown_warning_option=yes
7404else
7405  xorg_cv_cc_flag_unknown_warning_option=no
7406fi
7407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408fi
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7412	CFLAGS="$xorg_testset_save_CFLAGS"
7413fi
7414
7415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7418	fi
7419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7423  $as_echo_n "(cached) " >&6
7424else
7425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426/* end confdefs.h.  */
7427int i;
7428_ACEOF
7429if ac_fn_c_try_compile "$LINENO"; then :
7430  xorg_cv_cc_flag_unused_command_line_argument=yes
7431else
7432  xorg_cv_cc_flag_unused_command_line_argument=no
7433fi
7434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435fi
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7439	CFLAGS="$xorg_testset_save_CFLAGS"
7440fi
7441
7442found="no"
7443
7444	if test $found = "no" ; then
7445		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7447		fi
7448
7449		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7451		fi
7452
7453		CFLAGS="$CFLAGS -Werror=main"
7454
7455		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7456$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7457		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7458		if eval \${$cacheid+:} false; then :
7459  $as_echo_n "(cached) " >&6
7460else
7461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462/* end confdefs.h.  */
7463int i;
7464int
7465main ()
7466{
7467
7468  ;
7469  return 0;
7470}
7471_ACEOF
7472if ac_fn_c_try_link "$LINENO"; then :
7473  eval $cacheid=yes
7474else
7475  eval $cacheid=no
7476fi
7477rm -f core conftest.err conftest.$ac_objext \
7478    conftest$ac_exeext conftest.$ac_ext
7479fi
7480
7481
7482		CFLAGS="$xorg_testset_save_CFLAGS"
7483
7484		eval supported=\$$cacheid
7485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7486$as_echo "$supported" >&6; }
7487		if test "$supported" = "yes" ; then
7488			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7489			found="yes"
7490		fi
7491	fi
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507xorg_testset_save_CFLAGS="$CFLAGS"
7508
7509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7510	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517/* end confdefs.h.  */
7518int i;
7519_ACEOF
7520if ac_fn_c_try_compile "$LINENO"; then :
7521  xorg_cv_cc_flag_unknown_warning_option=yes
7522else
7523  xorg_cv_cc_flag_unknown_warning_option=no
7524fi
7525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526fi
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7529	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7530	CFLAGS="$xorg_testset_save_CFLAGS"
7531fi
7532
7533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7534	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7535		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7536	fi
7537	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544/* end confdefs.h.  */
7545int i;
7546_ACEOF
7547if ac_fn_c_try_compile "$LINENO"; then :
7548  xorg_cv_cc_flag_unused_command_line_argument=yes
7549else
7550  xorg_cv_cc_flag_unused_command_line_argument=no
7551fi
7552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553fi
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7556	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7557	CFLAGS="$xorg_testset_save_CFLAGS"
7558fi
7559
7560found="no"
7561
7562	if test $found = "no" ; then
7563		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7564			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7565		fi
7566
7567		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7568			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7569		fi
7570
7571		CFLAGS="$CFLAGS -Werror=missing-braces"
7572
7573		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7574$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7575		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7576		if eval \${$cacheid+:} false; then :
7577  $as_echo_n "(cached) " >&6
7578else
7579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h.  */
7581int i;
7582int
7583main ()
7584{
7585
7586  ;
7587  return 0;
7588}
7589_ACEOF
7590if ac_fn_c_try_link "$LINENO"; then :
7591  eval $cacheid=yes
7592else
7593  eval $cacheid=no
7594fi
7595rm -f core conftest.err conftest.$ac_objext \
7596    conftest$ac_exeext conftest.$ac_ext
7597fi
7598
7599
7600		CFLAGS="$xorg_testset_save_CFLAGS"
7601
7602		eval supported=\$$cacheid
7603		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7604$as_echo "$supported" >&6; }
7605		if test "$supported" = "yes" ; then
7606			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7607			found="yes"
7608		fi
7609	fi
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625xorg_testset_save_CFLAGS="$CFLAGS"
7626
7627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7631if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7632  $as_echo_n "(cached) " >&6
7633else
7634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h.  */
7636int i;
7637_ACEOF
7638if ac_fn_c_try_compile "$LINENO"; then :
7639  xorg_cv_cc_flag_unknown_warning_option=yes
7640else
7641  xorg_cv_cc_flag_unknown_warning_option=no
7642fi
7643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644fi
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7646$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7648	CFLAGS="$xorg_testset_save_CFLAGS"
7649fi
7650
7651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7654	fi
7655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7657$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7658if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7659  $as_echo_n "(cached) " >&6
7660else
7661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662/* end confdefs.h.  */
7663int i;
7664_ACEOF
7665if ac_fn_c_try_compile "$LINENO"; then :
7666  xorg_cv_cc_flag_unused_command_line_argument=yes
7667else
7668  xorg_cv_cc_flag_unused_command_line_argument=no
7669fi
7670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671fi
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7673$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7674	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7675	CFLAGS="$xorg_testset_save_CFLAGS"
7676fi
7677
7678found="no"
7679
7680	if test $found = "no" ; then
7681		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683		fi
7684
7685		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7687		fi
7688
7689		CFLAGS="$CFLAGS -Werror=sequence-point"
7690
7691		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7692$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7693		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7694		if eval \${$cacheid+:} false; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h.  */
7699int i;
7700int
7701main ()
7702{
7703
7704  ;
7705  return 0;
7706}
7707_ACEOF
7708if ac_fn_c_try_link "$LINENO"; then :
7709  eval $cacheid=yes
7710else
7711  eval $cacheid=no
7712fi
7713rm -f core conftest.err conftest.$ac_objext \
7714    conftest$ac_exeext conftest.$ac_ext
7715fi
7716
7717
7718		CFLAGS="$xorg_testset_save_CFLAGS"
7719
7720		eval supported=\$$cacheid
7721		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7722$as_echo "$supported" >&6; }
7723		if test "$supported" = "yes" ; then
7724			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7725			found="yes"
7726		fi
7727	fi
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743xorg_testset_save_CFLAGS="$CFLAGS"
7744
7745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7746	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7748$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7749if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7750  $as_echo_n "(cached) " >&6
7751else
7752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h.  */
7754int i;
7755_ACEOF
7756if ac_fn_c_try_compile "$LINENO"; then :
7757  xorg_cv_cc_flag_unknown_warning_option=yes
7758else
7759  xorg_cv_cc_flag_unknown_warning_option=no
7760fi
7761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762fi
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7764$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7765	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7766	CFLAGS="$xorg_testset_save_CFLAGS"
7767fi
7768
7769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7770	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7771		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772	fi
7773	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7775$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7776if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7777  $as_echo_n "(cached) " >&6
7778else
7779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h.  */
7781int i;
7782_ACEOF
7783if ac_fn_c_try_compile "$LINENO"; then :
7784  xorg_cv_cc_flag_unused_command_line_argument=yes
7785else
7786  xorg_cv_cc_flag_unused_command_line_argument=no
7787fi
7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789fi
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7791$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7792	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7793	CFLAGS="$xorg_testset_save_CFLAGS"
7794fi
7795
7796found="no"
7797
7798	if test $found = "no" ; then
7799		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801		fi
7802
7803		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7805		fi
7806
7807		CFLAGS="$CFLAGS -Werror=return-type"
7808
7809		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7810$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7811		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7812		if eval \${$cacheid+:} false; then :
7813  $as_echo_n "(cached) " >&6
7814else
7815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816/* end confdefs.h.  */
7817int i;
7818int
7819main ()
7820{
7821
7822  ;
7823  return 0;
7824}
7825_ACEOF
7826if ac_fn_c_try_link "$LINENO"; then :
7827  eval $cacheid=yes
7828else
7829  eval $cacheid=no
7830fi
7831rm -f core conftest.err conftest.$ac_objext \
7832    conftest$ac_exeext conftest.$ac_ext
7833fi
7834
7835
7836		CFLAGS="$xorg_testset_save_CFLAGS"
7837
7838		eval supported=\$$cacheid
7839		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7840$as_echo "$supported" >&6; }
7841		if test "$supported" = "yes" ; then
7842			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7843			found="yes"
7844		fi
7845	fi
7846
7847	if test $found = "no" ; then
7848		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7849			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7850		fi
7851
7852		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7853			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7854		fi
7855
7856		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7857
7858		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7859$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7860		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7861		if eval \${$cacheid+:} false; then :
7862  $as_echo_n "(cached) " >&6
7863else
7864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865/* end confdefs.h.  */
7866int i;
7867int
7868main ()
7869{
7870
7871  ;
7872  return 0;
7873}
7874_ACEOF
7875if ac_fn_c_try_link "$LINENO"; then :
7876  eval $cacheid=yes
7877else
7878  eval $cacheid=no
7879fi
7880rm -f core conftest.err conftest.$ac_objext \
7881    conftest$ac_exeext conftest.$ac_ext
7882fi
7883
7884
7885		CFLAGS="$xorg_testset_save_CFLAGS"
7886
7887		eval supported=\$$cacheid
7888		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7889$as_echo "$supported" >&6; }
7890		if test "$supported" = "yes" ; then
7891			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7892			found="yes"
7893		fi
7894	fi
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910xorg_testset_save_CFLAGS="$CFLAGS"
7911
7912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7917  $as_echo_n "(cached) " >&6
7918else
7919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h.  */
7921int i;
7922_ACEOF
7923if ac_fn_c_try_compile "$LINENO"; then :
7924  xorg_cv_cc_flag_unknown_warning_option=yes
7925else
7926  xorg_cv_cc_flag_unknown_warning_option=no
7927fi
7928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929fi
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7932	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7933	CFLAGS="$xorg_testset_save_CFLAGS"
7934fi
7935
7936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7937	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7938		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7939	fi
7940	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h.  */
7948int i;
7949_ACEOF
7950if ac_fn_c_try_compile "$LINENO"; then :
7951  xorg_cv_cc_flag_unused_command_line_argument=yes
7952else
7953  xorg_cv_cc_flag_unused_command_line_argument=no
7954fi
7955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956fi
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7960	CFLAGS="$xorg_testset_save_CFLAGS"
7961fi
7962
7963found="no"
7964
7965	if test $found = "no" ; then
7966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7968		fi
7969
7970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7972		fi
7973
7974		CFLAGS="$CFLAGS -Werror=trigraphs"
7975
7976		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7977$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7978		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7979		if eval \${$cacheid+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983/* end confdefs.h.  */
7984int i;
7985int
7986main ()
7987{
7988
7989  ;
7990  return 0;
7991}
7992_ACEOF
7993if ac_fn_c_try_link "$LINENO"; then :
7994  eval $cacheid=yes
7995else
7996  eval $cacheid=no
7997fi
7998rm -f core conftest.err conftest.$ac_objext \
7999    conftest$ac_exeext conftest.$ac_ext
8000fi
8001
8002
8003		CFLAGS="$xorg_testset_save_CFLAGS"
8004
8005		eval supported=\$$cacheid
8006		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8007$as_echo "$supported" >&6; }
8008		if test "$supported" = "yes" ; then
8009			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8010			found="yes"
8011		fi
8012	fi
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028xorg_testset_save_CFLAGS="$CFLAGS"
8029
8030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8031	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8035  $as_echo_n "(cached) " >&6
8036else
8037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038/* end confdefs.h.  */
8039int i;
8040_ACEOF
8041if ac_fn_c_try_compile "$LINENO"; then :
8042  xorg_cv_cc_flag_unknown_warning_option=yes
8043else
8044  xorg_cv_cc_flag_unknown_warning_option=no
8045fi
8046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047fi
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8051	CFLAGS="$xorg_testset_save_CFLAGS"
8052fi
8053
8054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8057	fi
8058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8062  $as_echo_n "(cached) " >&6
8063else
8064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065/* end confdefs.h.  */
8066int i;
8067_ACEOF
8068if ac_fn_c_try_compile "$LINENO"; then :
8069  xorg_cv_cc_flag_unused_command_line_argument=yes
8070else
8071  xorg_cv_cc_flag_unused_command_line_argument=no
8072fi
8073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074fi
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8077	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8078	CFLAGS="$xorg_testset_save_CFLAGS"
8079fi
8080
8081found="no"
8082
8083	if test $found = "no" ; then
8084		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8085			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8086		fi
8087
8088		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8089			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8090		fi
8091
8092		CFLAGS="$CFLAGS -Werror=array-bounds"
8093
8094		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8095$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8096		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8097		if eval \${$cacheid+:} false; then :
8098  $as_echo_n "(cached) " >&6
8099else
8100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101/* end confdefs.h.  */
8102int i;
8103int
8104main ()
8105{
8106
8107  ;
8108  return 0;
8109}
8110_ACEOF
8111if ac_fn_c_try_link "$LINENO"; then :
8112  eval $cacheid=yes
8113else
8114  eval $cacheid=no
8115fi
8116rm -f core conftest.err conftest.$ac_objext \
8117    conftest$ac_exeext conftest.$ac_ext
8118fi
8119
8120
8121		CFLAGS="$xorg_testset_save_CFLAGS"
8122
8123		eval supported=\$$cacheid
8124		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8125$as_echo "$supported" >&6; }
8126		if test "$supported" = "yes" ; then
8127			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8128			found="yes"
8129		fi
8130	fi
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146xorg_testset_save_CFLAGS="$CFLAGS"
8147
8148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156/* end confdefs.h.  */
8157int i;
8158_ACEOF
8159if ac_fn_c_try_compile "$LINENO"; then :
8160  xorg_cv_cc_flag_unknown_warning_option=yes
8161else
8162  xorg_cv_cc_flag_unknown_warning_option=no
8163fi
8164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165fi
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8169	CFLAGS="$xorg_testset_save_CFLAGS"
8170fi
8171
8172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8175	fi
8176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8180  $as_echo_n "(cached) " >&6
8181else
8182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183/* end confdefs.h.  */
8184int i;
8185_ACEOF
8186if ac_fn_c_try_compile "$LINENO"; then :
8187  xorg_cv_cc_flag_unused_command_line_argument=yes
8188else
8189  xorg_cv_cc_flag_unused_command_line_argument=no
8190fi
8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192fi
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8196	CFLAGS="$xorg_testset_save_CFLAGS"
8197fi
8198
8199found="no"
8200
8201	if test $found = "no" ; then
8202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8204		fi
8205
8206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8208		fi
8209
8210		CFLAGS="$CFLAGS -Werror=write-strings"
8211
8212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8213$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8214		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8215		if eval \${$cacheid+:} false; then :
8216  $as_echo_n "(cached) " >&6
8217else
8218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219/* end confdefs.h.  */
8220int i;
8221int
8222main ()
8223{
8224
8225  ;
8226  return 0;
8227}
8228_ACEOF
8229if ac_fn_c_try_link "$LINENO"; then :
8230  eval $cacheid=yes
8231else
8232  eval $cacheid=no
8233fi
8234rm -f core conftest.err conftest.$ac_objext \
8235    conftest$ac_exeext conftest.$ac_ext
8236fi
8237
8238
8239		CFLAGS="$xorg_testset_save_CFLAGS"
8240
8241		eval supported=\$$cacheid
8242		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8243$as_echo "$supported" >&6; }
8244		if test "$supported" = "yes" ; then
8245			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8246			found="yes"
8247		fi
8248	fi
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264xorg_testset_save_CFLAGS="$CFLAGS"
8265
8266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8271  $as_echo_n "(cached) " >&6
8272else
8273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274/* end confdefs.h.  */
8275int i;
8276_ACEOF
8277if ac_fn_c_try_compile "$LINENO"; then :
8278  xorg_cv_cc_flag_unknown_warning_option=yes
8279else
8280  xorg_cv_cc_flag_unknown_warning_option=no
8281fi
8282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283fi
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8287	CFLAGS="$xorg_testset_save_CFLAGS"
8288fi
8289
8290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293	fi
8294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8298  $as_echo_n "(cached) " >&6
8299else
8300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301/* end confdefs.h.  */
8302int i;
8303_ACEOF
8304if ac_fn_c_try_compile "$LINENO"; then :
8305  xorg_cv_cc_flag_unused_command_line_argument=yes
8306else
8307  xorg_cv_cc_flag_unused_command_line_argument=no
8308fi
8309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310fi
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8314	CFLAGS="$xorg_testset_save_CFLAGS"
8315fi
8316
8317found="no"
8318
8319	if test $found = "no" ; then
8320		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322		fi
8323
8324		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8326		fi
8327
8328		CFLAGS="$CFLAGS -Werror=address"
8329
8330		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8331$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8332		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8333		if eval \${$cacheid+:} false; then :
8334  $as_echo_n "(cached) " >&6
8335else
8336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h.  */
8338int i;
8339int
8340main ()
8341{
8342
8343  ;
8344  return 0;
8345}
8346_ACEOF
8347if ac_fn_c_try_link "$LINENO"; then :
8348  eval $cacheid=yes
8349else
8350  eval $cacheid=no
8351fi
8352rm -f core conftest.err conftest.$ac_objext \
8353    conftest$ac_exeext conftest.$ac_ext
8354fi
8355
8356
8357		CFLAGS="$xorg_testset_save_CFLAGS"
8358
8359		eval supported=\$$cacheid
8360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8361$as_echo "$supported" >&6; }
8362		if test "$supported" = "yes" ; then
8363			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8364			found="yes"
8365		fi
8366	fi
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382xorg_testset_save_CFLAGS="$CFLAGS"
8383
8384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8389  $as_echo_n "(cached) " >&6
8390else
8391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392/* end confdefs.h.  */
8393int i;
8394_ACEOF
8395if ac_fn_c_try_compile "$LINENO"; then :
8396  xorg_cv_cc_flag_unknown_warning_option=yes
8397else
8398  xorg_cv_cc_flag_unknown_warning_option=no
8399fi
8400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401fi
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8404	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8405	CFLAGS="$xorg_testset_save_CFLAGS"
8406fi
8407
8408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8409	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8410		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8411	fi
8412	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8416  $as_echo_n "(cached) " >&6
8417else
8418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419/* end confdefs.h.  */
8420int i;
8421_ACEOF
8422if ac_fn_c_try_compile "$LINENO"; then :
8423  xorg_cv_cc_flag_unused_command_line_argument=yes
8424else
8425  xorg_cv_cc_flag_unused_command_line_argument=no
8426fi
8427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428fi
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8431	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8432	CFLAGS="$xorg_testset_save_CFLAGS"
8433fi
8434
8435found="no"
8436
8437	if test $found = "no" ; then
8438		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8439			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8440		fi
8441
8442		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8443			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8444		fi
8445
8446		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8447
8448		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8449$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8450		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8451		if eval \${$cacheid+:} false; then :
8452  $as_echo_n "(cached) " >&6
8453else
8454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455/* end confdefs.h.  */
8456int i;
8457int
8458main ()
8459{
8460
8461  ;
8462  return 0;
8463}
8464_ACEOF
8465if ac_fn_c_try_link "$LINENO"; then :
8466  eval $cacheid=yes
8467else
8468  eval $cacheid=no
8469fi
8470rm -f core conftest.err conftest.$ac_objext \
8471    conftest$ac_exeext conftest.$ac_ext
8472fi
8473
8474
8475		CFLAGS="$xorg_testset_save_CFLAGS"
8476
8477		eval supported=\$$cacheid
8478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8479$as_echo "$supported" >&6; }
8480		if test "$supported" = "yes" ; then
8481			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8482			found="yes"
8483		fi
8484	fi
8485
8486	if test $found = "no" ; then
8487		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8488			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8489		fi
8490
8491		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8492			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8493		fi
8494
8495		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8496
8497		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8498$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8499		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8500		if eval \${$cacheid+:} false; then :
8501  $as_echo_n "(cached) " >&6
8502else
8503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504/* end confdefs.h.  */
8505int i;
8506int
8507main ()
8508{
8509
8510  ;
8511  return 0;
8512}
8513_ACEOF
8514if ac_fn_c_try_link "$LINENO"; then :
8515  eval $cacheid=yes
8516else
8517  eval $cacheid=no
8518fi
8519rm -f core conftest.err conftest.$ac_objext \
8520    conftest$ac_exeext conftest.$ac_ext
8521fi
8522
8523
8524		CFLAGS="$xorg_testset_save_CFLAGS"
8525
8526		eval supported=\$$cacheid
8527		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8528$as_echo "$supported" >&6; }
8529		if test "$supported" = "yes" ; then
8530			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8531			found="yes"
8532		fi
8533	fi
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549xorg_testset_save_CFLAGS="$CFLAGS"
8550
8551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8552	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8556  $as_echo_n "(cached) " >&6
8557else
8558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h.  */
8560int i;
8561_ACEOF
8562if ac_fn_c_try_compile "$LINENO"; then :
8563  xorg_cv_cc_flag_unknown_warning_option=yes
8564else
8565  xorg_cv_cc_flag_unknown_warning_option=no
8566fi
8567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568fi
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8571	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8572	CFLAGS="$xorg_testset_save_CFLAGS"
8573fi
8574
8575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8576	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8577		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8578	fi
8579	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8583  $as_echo_n "(cached) " >&6
8584else
8585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586/* end confdefs.h.  */
8587int i;
8588_ACEOF
8589if ac_fn_c_try_compile "$LINENO"; then :
8590  xorg_cv_cc_flag_unused_command_line_argument=yes
8591else
8592  xorg_cv_cc_flag_unused_command_line_argument=no
8593fi
8594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595fi
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8598	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8599	CFLAGS="$xorg_testset_save_CFLAGS"
8600fi
8601
8602found="no"
8603
8604	if test $found = "no" ; then
8605		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8606			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8607		fi
8608
8609		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8610			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8611		fi
8612
8613		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8614
8615		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8616$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8617		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8618		if eval \${$cacheid+:} false; then :
8619  $as_echo_n "(cached) " >&6
8620else
8621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622/* end confdefs.h.  */
8623int i;
8624int
8625main ()
8626{
8627
8628  ;
8629  return 0;
8630}
8631_ACEOF
8632if ac_fn_c_try_link "$LINENO"; then :
8633  eval $cacheid=yes
8634else
8635  eval $cacheid=no
8636fi
8637rm -f core conftest.err conftest.$ac_objext \
8638    conftest$ac_exeext conftest.$ac_ext
8639fi
8640
8641
8642		CFLAGS="$xorg_testset_save_CFLAGS"
8643
8644		eval supported=\$$cacheid
8645		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8646$as_echo "$supported" >&6; }
8647		if test "$supported" = "yes" ; then
8648			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8649			found="yes"
8650		fi
8651	fi
8652
8653 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8654else
8655{ $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
8656$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;}
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670xorg_testset_save_CFLAGS="$CFLAGS"
8671
8672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8675$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8676if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h.  */
8681int i;
8682_ACEOF
8683if ac_fn_c_try_compile "$LINENO"; then :
8684  xorg_cv_cc_flag_unknown_warning_option=yes
8685else
8686  xorg_cv_cc_flag_unknown_warning_option=no
8687fi
8688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689fi
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8691$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8693	CFLAGS="$xorg_testset_save_CFLAGS"
8694fi
8695
8696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8699	fi
8700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8702$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8703if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8704  $as_echo_n "(cached) " >&6
8705else
8706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707/* end confdefs.h.  */
8708int i;
8709_ACEOF
8710if ac_fn_c_try_compile "$LINENO"; then :
8711  xorg_cv_cc_flag_unused_command_line_argument=yes
8712else
8713  xorg_cv_cc_flag_unused_command_line_argument=no
8714fi
8715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716fi
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8718$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8719	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8720	CFLAGS="$xorg_testset_save_CFLAGS"
8721fi
8722
8723found="no"
8724
8725	if test $found = "no" ; then
8726		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8728		fi
8729
8730		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8732		fi
8733
8734		CFLAGS="$CFLAGS -Wimplicit"
8735
8736		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8737$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8738		cacheid=xorg_cv_cc_flag__Wimplicit
8739		if eval \${$cacheid+:} false; then :
8740  $as_echo_n "(cached) " >&6
8741else
8742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743/* end confdefs.h.  */
8744int i;
8745int
8746main ()
8747{
8748
8749  ;
8750  return 0;
8751}
8752_ACEOF
8753if ac_fn_c_try_link "$LINENO"; then :
8754  eval $cacheid=yes
8755else
8756  eval $cacheid=no
8757fi
8758rm -f core conftest.err conftest.$ac_objext \
8759    conftest$ac_exeext conftest.$ac_ext
8760fi
8761
8762
8763		CFLAGS="$xorg_testset_save_CFLAGS"
8764
8765		eval supported=\$$cacheid
8766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8767$as_echo "$supported" >&6; }
8768		if test "$supported" = "yes" ; then
8769			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8770			found="yes"
8771		fi
8772	fi
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788xorg_testset_save_CFLAGS="$CFLAGS"
8789
8790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8792	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8793$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8794if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8795  $as_echo_n "(cached) " >&6
8796else
8797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798/* end confdefs.h.  */
8799int i;
8800_ACEOF
8801if ac_fn_c_try_compile "$LINENO"; then :
8802  xorg_cv_cc_flag_unknown_warning_option=yes
8803else
8804  xorg_cv_cc_flag_unknown_warning_option=no
8805fi
8806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807fi
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8809$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8810	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8811	CFLAGS="$xorg_testset_save_CFLAGS"
8812fi
8813
8814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8815	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8817	fi
8818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8820$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8821if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8822  $as_echo_n "(cached) " >&6
8823else
8824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825/* end confdefs.h.  */
8826int i;
8827_ACEOF
8828if ac_fn_c_try_compile "$LINENO"; then :
8829  xorg_cv_cc_flag_unused_command_line_argument=yes
8830else
8831  xorg_cv_cc_flag_unused_command_line_argument=no
8832fi
8833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834fi
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8836$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8837	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8838	CFLAGS="$xorg_testset_save_CFLAGS"
8839fi
8840
8841found="no"
8842
8843	if test $found = "no" ; then
8844		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8846		fi
8847
8848		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8850		fi
8851
8852		CFLAGS="$CFLAGS -Wnonnull"
8853
8854		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8855$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8856		cacheid=xorg_cv_cc_flag__Wnonnull
8857		if eval \${$cacheid+:} false; then :
8858  $as_echo_n "(cached) " >&6
8859else
8860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861/* end confdefs.h.  */
8862int i;
8863int
8864main ()
8865{
8866
8867  ;
8868  return 0;
8869}
8870_ACEOF
8871if ac_fn_c_try_link "$LINENO"; then :
8872  eval $cacheid=yes
8873else
8874  eval $cacheid=no
8875fi
8876rm -f core conftest.err conftest.$ac_objext \
8877    conftest$ac_exeext conftest.$ac_ext
8878fi
8879
8880
8881		CFLAGS="$xorg_testset_save_CFLAGS"
8882
8883		eval supported=\$$cacheid
8884		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8885$as_echo "$supported" >&6; }
8886		if test "$supported" = "yes" ; then
8887			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8888			found="yes"
8889		fi
8890	fi
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906xorg_testset_save_CFLAGS="$CFLAGS"
8907
8908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h.  */
8917int i;
8918_ACEOF
8919if ac_fn_c_try_compile "$LINENO"; then :
8920  xorg_cv_cc_flag_unknown_warning_option=yes
8921else
8922  xorg_cv_cc_flag_unknown_warning_option=no
8923fi
8924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925fi
8926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8928	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8929	CFLAGS="$xorg_testset_save_CFLAGS"
8930fi
8931
8932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8933	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8935	fi
8936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8940  $as_echo_n "(cached) " >&6
8941else
8942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943/* end confdefs.h.  */
8944int i;
8945_ACEOF
8946if ac_fn_c_try_compile "$LINENO"; then :
8947  xorg_cv_cc_flag_unused_command_line_argument=yes
8948else
8949  xorg_cv_cc_flag_unused_command_line_argument=no
8950fi
8951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952fi
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8956	CFLAGS="$xorg_testset_save_CFLAGS"
8957fi
8958
8959found="no"
8960
8961	if test $found = "no" ; then
8962		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8964		fi
8965
8966		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8968		fi
8969
8970		CFLAGS="$CFLAGS -Winit-self"
8971
8972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8973$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8974		cacheid=xorg_cv_cc_flag__Winit_self
8975		if eval \${$cacheid+:} false; then :
8976  $as_echo_n "(cached) " >&6
8977else
8978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979/* end confdefs.h.  */
8980int i;
8981int
8982main ()
8983{
8984
8985  ;
8986  return 0;
8987}
8988_ACEOF
8989if ac_fn_c_try_link "$LINENO"; then :
8990  eval $cacheid=yes
8991else
8992  eval $cacheid=no
8993fi
8994rm -f core conftest.err conftest.$ac_objext \
8995    conftest$ac_exeext conftest.$ac_ext
8996fi
8997
8998
8999		CFLAGS="$xorg_testset_save_CFLAGS"
9000
9001		eval supported=\$$cacheid
9002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9003$as_echo "$supported" >&6; }
9004		if test "$supported" = "yes" ; then
9005			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9006			found="yes"
9007		fi
9008	fi
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024xorg_testset_save_CFLAGS="$CFLAGS"
9025
9026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9031  $as_echo_n "(cached) " >&6
9032else
9033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034/* end confdefs.h.  */
9035int i;
9036_ACEOF
9037if ac_fn_c_try_compile "$LINENO"; then :
9038  xorg_cv_cc_flag_unknown_warning_option=yes
9039else
9040  xorg_cv_cc_flag_unknown_warning_option=no
9041fi
9042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043fi
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9047	CFLAGS="$xorg_testset_save_CFLAGS"
9048fi
9049
9050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9053	fi
9054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9058  $as_echo_n "(cached) " >&6
9059else
9060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061/* end confdefs.h.  */
9062int i;
9063_ACEOF
9064if ac_fn_c_try_compile "$LINENO"; then :
9065  xorg_cv_cc_flag_unused_command_line_argument=yes
9066else
9067  xorg_cv_cc_flag_unused_command_line_argument=no
9068fi
9069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9074	CFLAGS="$xorg_testset_save_CFLAGS"
9075fi
9076
9077found="no"
9078
9079	if test $found = "no" ; then
9080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9082		fi
9083
9084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9086		fi
9087
9088		CFLAGS="$CFLAGS -Wmain"
9089
9090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9091$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9092		cacheid=xorg_cv_cc_flag__Wmain
9093		if eval \${$cacheid+:} false; then :
9094  $as_echo_n "(cached) " >&6
9095else
9096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097/* end confdefs.h.  */
9098int i;
9099int
9100main ()
9101{
9102
9103  ;
9104  return 0;
9105}
9106_ACEOF
9107if ac_fn_c_try_link "$LINENO"; then :
9108  eval $cacheid=yes
9109else
9110  eval $cacheid=no
9111fi
9112rm -f core conftest.err conftest.$ac_objext \
9113    conftest$ac_exeext conftest.$ac_ext
9114fi
9115
9116
9117		CFLAGS="$xorg_testset_save_CFLAGS"
9118
9119		eval supported=\$$cacheid
9120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9121$as_echo "$supported" >&6; }
9122		if test "$supported" = "yes" ; then
9123			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9124			found="yes"
9125		fi
9126	fi
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142xorg_testset_save_CFLAGS="$CFLAGS"
9143
9144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9149  $as_echo_n "(cached) " >&6
9150else
9151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152/* end confdefs.h.  */
9153int i;
9154_ACEOF
9155if ac_fn_c_try_compile "$LINENO"; then :
9156  xorg_cv_cc_flag_unknown_warning_option=yes
9157else
9158  xorg_cv_cc_flag_unknown_warning_option=no
9159fi
9160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161fi
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9165	CFLAGS="$xorg_testset_save_CFLAGS"
9166fi
9167
9168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9171	fi
9172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9176  $as_echo_n "(cached) " >&6
9177else
9178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179/* end confdefs.h.  */
9180int i;
9181_ACEOF
9182if ac_fn_c_try_compile "$LINENO"; then :
9183  xorg_cv_cc_flag_unused_command_line_argument=yes
9184else
9185  xorg_cv_cc_flag_unused_command_line_argument=no
9186fi
9187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188fi
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9192	CFLAGS="$xorg_testset_save_CFLAGS"
9193fi
9194
9195found="no"
9196
9197	if test $found = "no" ; then
9198		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9200		fi
9201
9202		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9204		fi
9205
9206		CFLAGS="$CFLAGS -Wmissing-braces"
9207
9208		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9209$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9210		cacheid=xorg_cv_cc_flag__Wmissing_braces
9211		if eval \${$cacheid+:} false; then :
9212  $as_echo_n "(cached) " >&6
9213else
9214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215/* end confdefs.h.  */
9216int i;
9217int
9218main ()
9219{
9220
9221  ;
9222  return 0;
9223}
9224_ACEOF
9225if ac_fn_c_try_link "$LINENO"; then :
9226  eval $cacheid=yes
9227else
9228  eval $cacheid=no
9229fi
9230rm -f core conftest.err conftest.$ac_objext \
9231    conftest$ac_exeext conftest.$ac_ext
9232fi
9233
9234
9235		CFLAGS="$xorg_testset_save_CFLAGS"
9236
9237		eval supported=\$$cacheid
9238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9239$as_echo "$supported" >&6; }
9240		if test "$supported" = "yes" ; then
9241			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9242			found="yes"
9243		fi
9244	fi
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260xorg_testset_save_CFLAGS="$CFLAGS"
9261
9262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9267  $as_echo_n "(cached) " >&6
9268else
9269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270/* end confdefs.h.  */
9271int i;
9272_ACEOF
9273if ac_fn_c_try_compile "$LINENO"; then :
9274  xorg_cv_cc_flag_unknown_warning_option=yes
9275else
9276  xorg_cv_cc_flag_unknown_warning_option=no
9277fi
9278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279fi
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9283	CFLAGS="$xorg_testset_save_CFLAGS"
9284fi
9285
9286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9289	fi
9290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9294  $as_echo_n "(cached) " >&6
9295else
9296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297/* end confdefs.h.  */
9298int i;
9299_ACEOF
9300if ac_fn_c_try_compile "$LINENO"; then :
9301  xorg_cv_cc_flag_unused_command_line_argument=yes
9302else
9303  xorg_cv_cc_flag_unused_command_line_argument=no
9304fi
9305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306fi
9307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9310	CFLAGS="$xorg_testset_save_CFLAGS"
9311fi
9312
9313found="no"
9314
9315	if test $found = "no" ; then
9316		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9318		fi
9319
9320		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9322		fi
9323
9324		CFLAGS="$CFLAGS -Wsequence-point"
9325
9326		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9327$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9328		cacheid=xorg_cv_cc_flag__Wsequence_point
9329		if eval \${$cacheid+:} false; then :
9330  $as_echo_n "(cached) " >&6
9331else
9332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h.  */
9334int i;
9335int
9336main ()
9337{
9338
9339  ;
9340  return 0;
9341}
9342_ACEOF
9343if ac_fn_c_try_link "$LINENO"; then :
9344  eval $cacheid=yes
9345else
9346  eval $cacheid=no
9347fi
9348rm -f core conftest.err conftest.$ac_objext \
9349    conftest$ac_exeext conftest.$ac_ext
9350fi
9351
9352
9353		CFLAGS="$xorg_testset_save_CFLAGS"
9354
9355		eval supported=\$$cacheid
9356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9357$as_echo "$supported" >&6; }
9358		if test "$supported" = "yes" ; then
9359			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9360			found="yes"
9361		fi
9362	fi
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378xorg_testset_save_CFLAGS="$CFLAGS"
9379
9380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9381	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9385  $as_echo_n "(cached) " >&6
9386else
9387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388/* end confdefs.h.  */
9389int i;
9390_ACEOF
9391if ac_fn_c_try_compile "$LINENO"; then :
9392  xorg_cv_cc_flag_unknown_warning_option=yes
9393else
9394  xorg_cv_cc_flag_unknown_warning_option=no
9395fi
9396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397fi
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9401	CFLAGS="$xorg_testset_save_CFLAGS"
9402fi
9403
9404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9407	fi
9408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9412  $as_echo_n "(cached) " >&6
9413else
9414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415/* end confdefs.h.  */
9416int i;
9417_ACEOF
9418if ac_fn_c_try_compile "$LINENO"; then :
9419  xorg_cv_cc_flag_unused_command_line_argument=yes
9420else
9421  xorg_cv_cc_flag_unused_command_line_argument=no
9422fi
9423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424fi
9425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9428	CFLAGS="$xorg_testset_save_CFLAGS"
9429fi
9430
9431found="no"
9432
9433	if test $found = "no" ; then
9434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9436		fi
9437
9438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9440		fi
9441
9442		CFLAGS="$CFLAGS -Wreturn-type"
9443
9444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9445$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9446		cacheid=xorg_cv_cc_flag__Wreturn_type
9447		if eval \${$cacheid+:} false; then :
9448  $as_echo_n "(cached) " >&6
9449else
9450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451/* end confdefs.h.  */
9452int i;
9453int
9454main ()
9455{
9456
9457  ;
9458  return 0;
9459}
9460_ACEOF
9461if ac_fn_c_try_link "$LINENO"; then :
9462  eval $cacheid=yes
9463else
9464  eval $cacheid=no
9465fi
9466rm -f core conftest.err conftest.$ac_objext \
9467    conftest$ac_exeext conftest.$ac_ext
9468fi
9469
9470
9471		CFLAGS="$xorg_testset_save_CFLAGS"
9472
9473		eval supported=\$$cacheid
9474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9475$as_echo "$supported" >&6; }
9476		if test "$supported" = "yes" ; then
9477			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9478			found="yes"
9479		fi
9480	fi
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496xorg_testset_save_CFLAGS="$CFLAGS"
9497
9498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9503  $as_echo_n "(cached) " >&6
9504else
9505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506/* end confdefs.h.  */
9507int i;
9508_ACEOF
9509if ac_fn_c_try_compile "$LINENO"; then :
9510  xorg_cv_cc_flag_unknown_warning_option=yes
9511else
9512  xorg_cv_cc_flag_unknown_warning_option=no
9513fi
9514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9515fi
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9519	CFLAGS="$xorg_testset_save_CFLAGS"
9520fi
9521
9522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9525	fi
9526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9530  $as_echo_n "(cached) " >&6
9531else
9532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533/* end confdefs.h.  */
9534int i;
9535_ACEOF
9536if ac_fn_c_try_compile "$LINENO"; then :
9537  xorg_cv_cc_flag_unused_command_line_argument=yes
9538else
9539  xorg_cv_cc_flag_unused_command_line_argument=no
9540fi
9541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542fi
9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9546	CFLAGS="$xorg_testset_save_CFLAGS"
9547fi
9548
9549found="no"
9550
9551	if test $found = "no" ; then
9552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9554		fi
9555
9556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9558		fi
9559
9560		CFLAGS="$CFLAGS -Wtrigraphs"
9561
9562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9563$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9564		cacheid=xorg_cv_cc_flag__Wtrigraphs
9565		if eval \${$cacheid+:} false; then :
9566  $as_echo_n "(cached) " >&6
9567else
9568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569/* end confdefs.h.  */
9570int i;
9571int
9572main ()
9573{
9574
9575  ;
9576  return 0;
9577}
9578_ACEOF
9579if ac_fn_c_try_link "$LINENO"; then :
9580  eval $cacheid=yes
9581else
9582  eval $cacheid=no
9583fi
9584rm -f core conftest.err conftest.$ac_objext \
9585    conftest$ac_exeext conftest.$ac_ext
9586fi
9587
9588
9589		CFLAGS="$xorg_testset_save_CFLAGS"
9590
9591		eval supported=\$$cacheid
9592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9593$as_echo "$supported" >&6; }
9594		if test "$supported" = "yes" ; then
9595			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9596			found="yes"
9597		fi
9598	fi
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614xorg_testset_save_CFLAGS="$CFLAGS"
9615
9616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9621  $as_echo_n "(cached) " >&6
9622else
9623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624/* end confdefs.h.  */
9625int i;
9626_ACEOF
9627if ac_fn_c_try_compile "$LINENO"; then :
9628  xorg_cv_cc_flag_unknown_warning_option=yes
9629else
9630  xorg_cv_cc_flag_unknown_warning_option=no
9631fi
9632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633fi
9634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9637	CFLAGS="$xorg_testset_save_CFLAGS"
9638fi
9639
9640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9643	fi
9644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9648  $as_echo_n "(cached) " >&6
9649else
9650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651/* end confdefs.h.  */
9652int i;
9653_ACEOF
9654if ac_fn_c_try_compile "$LINENO"; then :
9655  xorg_cv_cc_flag_unused_command_line_argument=yes
9656else
9657  xorg_cv_cc_flag_unused_command_line_argument=no
9658fi
9659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660fi
9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9664	CFLAGS="$xorg_testset_save_CFLAGS"
9665fi
9666
9667found="no"
9668
9669	if test $found = "no" ; then
9670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672		fi
9673
9674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676		fi
9677
9678		CFLAGS="$CFLAGS -Warray-bounds"
9679
9680		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9681$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9682		cacheid=xorg_cv_cc_flag__Warray_bounds
9683		if eval \${$cacheid+:} false; then :
9684  $as_echo_n "(cached) " >&6
9685else
9686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687/* end confdefs.h.  */
9688int i;
9689int
9690main ()
9691{
9692
9693  ;
9694  return 0;
9695}
9696_ACEOF
9697if ac_fn_c_try_link "$LINENO"; then :
9698  eval $cacheid=yes
9699else
9700  eval $cacheid=no
9701fi
9702rm -f core conftest.err conftest.$ac_objext \
9703    conftest$ac_exeext conftest.$ac_ext
9704fi
9705
9706
9707		CFLAGS="$xorg_testset_save_CFLAGS"
9708
9709		eval supported=\$$cacheid
9710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9711$as_echo "$supported" >&6; }
9712		if test "$supported" = "yes" ; then
9713			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9714			found="yes"
9715		fi
9716	fi
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732xorg_testset_save_CFLAGS="$CFLAGS"
9733
9734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9739  $as_echo_n "(cached) " >&6
9740else
9741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h.  */
9743int i;
9744_ACEOF
9745if ac_fn_c_try_compile "$LINENO"; then :
9746  xorg_cv_cc_flag_unknown_warning_option=yes
9747else
9748  xorg_cv_cc_flag_unknown_warning_option=no
9749fi
9750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751fi
9752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9754	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9755	CFLAGS="$xorg_testset_save_CFLAGS"
9756fi
9757
9758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9759	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9760		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9761	fi
9762	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9766  $as_echo_n "(cached) " >&6
9767else
9768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769/* end confdefs.h.  */
9770int i;
9771_ACEOF
9772if ac_fn_c_try_compile "$LINENO"; then :
9773  xorg_cv_cc_flag_unused_command_line_argument=yes
9774else
9775  xorg_cv_cc_flag_unused_command_line_argument=no
9776fi
9777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778fi
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9781	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9782	CFLAGS="$xorg_testset_save_CFLAGS"
9783fi
9784
9785found="no"
9786
9787	if test $found = "no" ; then
9788		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9789			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9790		fi
9791
9792		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9793			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9794		fi
9795
9796		CFLAGS="$CFLAGS -Wwrite-strings"
9797
9798		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9799$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9800		cacheid=xorg_cv_cc_flag__Wwrite_strings
9801		if eval \${$cacheid+:} false; then :
9802  $as_echo_n "(cached) " >&6
9803else
9804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805/* end confdefs.h.  */
9806int i;
9807int
9808main ()
9809{
9810
9811  ;
9812  return 0;
9813}
9814_ACEOF
9815if ac_fn_c_try_link "$LINENO"; then :
9816  eval $cacheid=yes
9817else
9818  eval $cacheid=no
9819fi
9820rm -f core conftest.err conftest.$ac_objext \
9821    conftest$ac_exeext conftest.$ac_ext
9822fi
9823
9824
9825		CFLAGS="$xorg_testset_save_CFLAGS"
9826
9827		eval supported=\$$cacheid
9828		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9829$as_echo "$supported" >&6; }
9830		if test "$supported" = "yes" ; then
9831			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9832			found="yes"
9833		fi
9834	fi
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850xorg_testset_save_CFLAGS="$CFLAGS"
9851
9852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9853	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9855$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9856if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9857  $as_echo_n "(cached) " >&6
9858else
9859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860/* end confdefs.h.  */
9861int i;
9862_ACEOF
9863if ac_fn_c_try_compile "$LINENO"; then :
9864  xorg_cv_cc_flag_unknown_warning_option=yes
9865else
9866  xorg_cv_cc_flag_unknown_warning_option=no
9867fi
9868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869fi
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9871$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9872	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9873	CFLAGS="$xorg_testset_save_CFLAGS"
9874fi
9875
9876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9877	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9878		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9879	fi
9880	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9882$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9883if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9884  $as_echo_n "(cached) " >&6
9885else
9886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887/* end confdefs.h.  */
9888int i;
9889_ACEOF
9890if ac_fn_c_try_compile "$LINENO"; then :
9891  xorg_cv_cc_flag_unused_command_line_argument=yes
9892else
9893  xorg_cv_cc_flag_unused_command_line_argument=no
9894fi
9895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896fi
9897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9898$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9899	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9900	CFLAGS="$xorg_testset_save_CFLAGS"
9901fi
9902
9903found="no"
9904
9905	if test $found = "no" ; then
9906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9908		fi
9909
9910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9912		fi
9913
9914		CFLAGS="$CFLAGS -Waddress"
9915
9916		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9917$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9918		cacheid=xorg_cv_cc_flag__Waddress
9919		if eval \${$cacheid+:} false; then :
9920  $as_echo_n "(cached) " >&6
9921else
9922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923/* end confdefs.h.  */
9924int i;
9925int
9926main ()
9927{
9928
9929  ;
9930  return 0;
9931}
9932_ACEOF
9933if ac_fn_c_try_link "$LINENO"; then :
9934  eval $cacheid=yes
9935else
9936  eval $cacheid=no
9937fi
9938rm -f core conftest.err conftest.$ac_objext \
9939    conftest$ac_exeext conftest.$ac_ext
9940fi
9941
9942
9943		CFLAGS="$xorg_testset_save_CFLAGS"
9944
9945		eval supported=\$$cacheid
9946		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9947$as_echo "$supported" >&6; }
9948		if test "$supported" = "yes" ; then
9949			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9950			found="yes"
9951		fi
9952	fi
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968xorg_testset_save_CFLAGS="$CFLAGS"
9969
9970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9971	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9975  $as_echo_n "(cached) " >&6
9976else
9977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h.  */
9979int i;
9980_ACEOF
9981if ac_fn_c_try_compile "$LINENO"; then :
9982  xorg_cv_cc_flag_unknown_warning_option=yes
9983else
9984  xorg_cv_cc_flag_unknown_warning_option=no
9985fi
9986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987fi
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9991	CFLAGS="$xorg_testset_save_CFLAGS"
9992fi
9993
9994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9997	fi
9998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10001if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
10010else
10011  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
10016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10017	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10018	CFLAGS="$xorg_testset_save_CFLAGS"
10019fi
10020
10021found="no"
10022
10023	if test $found = "no" ; then
10024		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10025			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10026		fi
10027
10028		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10029			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10030		fi
10031
10032		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10033
10034		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10035$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10036		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10037		if eval \${$cacheid+:} false; then :
10038  $as_echo_n "(cached) " >&6
10039else
10040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h.  */
10042int i;
10043int
10044main ()
10045{
10046
10047  ;
10048  return 0;
10049}
10050_ACEOF
10051if ac_fn_c_try_link "$LINENO"; then :
10052  eval $cacheid=yes
10053else
10054  eval $cacheid=no
10055fi
10056rm -f core conftest.err conftest.$ac_objext \
10057    conftest$ac_exeext conftest.$ac_ext
10058fi
10059
10060
10061		CFLAGS="$xorg_testset_save_CFLAGS"
10062
10063		eval supported=\$$cacheid
10064		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10065$as_echo "$supported" >&6; }
10066		if test "$supported" = "yes" ; then
10067			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10068			found="yes"
10069		fi
10070	fi
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086xorg_testset_save_CFLAGS="$CFLAGS"
10087
10088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10091$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10092if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10093  $as_echo_n "(cached) " >&6
10094else
10095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096/* end confdefs.h.  */
10097int i;
10098_ACEOF
10099if ac_fn_c_try_compile "$LINENO"; then :
10100  xorg_cv_cc_flag_unknown_warning_option=yes
10101else
10102  xorg_cv_cc_flag_unknown_warning_option=no
10103fi
10104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105fi
10106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10107$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10108	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10109	CFLAGS="$xorg_testset_save_CFLAGS"
10110fi
10111
10112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10113	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10114		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10115	fi
10116	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10118$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10119if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
10128else
10129  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
10134$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10135	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10136	CFLAGS="$xorg_testset_save_CFLAGS"
10137fi
10138
10139found="no"
10140
10141	if test $found = "no" ; then
10142		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10143			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10144		fi
10145
10146		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10147			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10148		fi
10149
10150		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10151
10152		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10153$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10154		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10155		if eval \${$cacheid+:} false; then :
10156  $as_echo_n "(cached) " >&6
10157else
10158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159/* end confdefs.h.  */
10160int i;
10161int
10162main ()
10163{
10164
10165  ;
10166  return 0;
10167}
10168_ACEOF
10169if ac_fn_c_try_link "$LINENO"; then :
10170  eval $cacheid=yes
10171else
10172  eval $cacheid=no
10173fi
10174rm -f core conftest.err conftest.$ac_objext \
10175    conftest$ac_exeext conftest.$ac_ext
10176fi
10177
10178
10179		CFLAGS="$xorg_testset_save_CFLAGS"
10180
10181		eval supported=\$$cacheid
10182		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10183$as_echo "$supported" >&6; }
10184		if test "$supported" = "yes" ; then
10185			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10186			found="yes"
10187		fi
10188	fi
10189
10190
10191fi
10192
10193
10194
10195
10196
10197
10198
10199		CWARNFLAGS="$BASE_CFLAGS"
10200		if  test "x$GCC" = xyes ; then
10201		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10202		fi
10203
10204
10205
10206
10207
10208
10209
10210
10211# Check whether --enable-strict-compilation was given.
10212if test "${enable_strict_compilation+set}" = set; then :
10213  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10214else
10215  STRICT_COMPILE=no
10216fi
10217
10218
10219
10220
10221
10222
10223STRICT_CFLAGS=""
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237xorg_testset_save_CFLAGS="$CFLAGS"
10238
10239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10242$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10243if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10244  $as_echo_n "(cached) " >&6
10245else
10246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247/* end confdefs.h.  */
10248int i;
10249_ACEOF
10250if ac_fn_c_try_compile "$LINENO"; then :
10251  xorg_cv_cc_flag_unknown_warning_option=yes
10252else
10253  xorg_cv_cc_flag_unknown_warning_option=no
10254fi
10255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10256fi
10257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10258$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10260	CFLAGS="$xorg_testset_save_CFLAGS"
10261fi
10262
10263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266	fi
10267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10269$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10270if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10271  $as_echo_n "(cached) " >&6
10272else
10273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274/* end confdefs.h.  */
10275int i;
10276_ACEOF
10277if ac_fn_c_try_compile "$LINENO"; then :
10278  xorg_cv_cc_flag_unused_command_line_argument=yes
10279else
10280  xorg_cv_cc_flag_unused_command_line_argument=no
10281fi
10282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10283fi
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10285$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10287	CFLAGS="$xorg_testset_save_CFLAGS"
10288fi
10289
10290found="no"
10291
10292	if test $found = "no" ; then
10293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10295		fi
10296
10297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10299		fi
10300
10301		CFLAGS="$CFLAGS -pedantic"
10302
10303		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10304$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10305		cacheid=xorg_cv_cc_flag__pedantic
10306		if eval \${$cacheid+:} false; then :
10307  $as_echo_n "(cached) " >&6
10308else
10309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310/* end confdefs.h.  */
10311int i;
10312int
10313main ()
10314{
10315
10316  ;
10317  return 0;
10318}
10319_ACEOF
10320if ac_fn_c_try_link "$LINENO"; then :
10321  eval $cacheid=yes
10322else
10323  eval $cacheid=no
10324fi
10325rm -f core conftest.err conftest.$ac_objext \
10326    conftest$ac_exeext conftest.$ac_ext
10327fi
10328
10329
10330		CFLAGS="$xorg_testset_save_CFLAGS"
10331
10332		eval supported=\$$cacheid
10333		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10334$as_echo "$supported" >&6; }
10335		if test "$supported" = "yes" ; then
10336			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10337			found="yes"
10338		fi
10339	fi
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355xorg_testset_save_CFLAGS="$CFLAGS"
10356
10357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10358	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10360$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10361if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10362  $as_echo_n "(cached) " >&6
10363else
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366int i;
10367_ACEOF
10368if ac_fn_c_try_compile "$LINENO"; then :
10369  xorg_cv_cc_flag_unknown_warning_option=yes
10370else
10371  xorg_cv_cc_flag_unknown_warning_option=no
10372fi
10373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10374fi
10375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10376$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10377	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10378	CFLAGS="$xorg_testset_save_CFLAGS"
10379fi
10380
10381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10382	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10383		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10384	fi
10385	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10387$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10388if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10389  $as_echo_n "(cached) " >&6
10390else
10391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392/* end confdefs.h.  */
10393int i;
10394_ACEOF
10395if ac_fn_c_try_compile "$LINENO"; then :
10396  xorg_cv_cc_flag_unused_command_line_argument=yes
10397else
10398  xorg_cv_cc_flag_unused_command_line_argument=no
10399fi
10400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401fi
10402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10403$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10404	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10405	CFLAGS="$xorg_testset_save_CFLAGS"
10406fi
10407
10408found="no"
10409
10410	if test $found = "no" ; then
10411		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10412			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10413		fi
10414
10415		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10416			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10417		fi
10418
10419		CFLAGS="$CFLAGS -Werror"
10420
10421		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10422$as_echo_n "checking if $CC supports -Werror... " >&6; }
10423		cacheid=xorg_cv_cc_flag__Werror
10424		if eval \${$cacheid+:} false; then :
10425  $as_echo_n "(cached) " >&6
10426else
10427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428/* end confdefs.h.  */
10429int i;
10430int
10431main ()
10432{
10433
10434  ;
10435  return 0;
10436}
10437_ACEOF
10438if ac_fn_c_try_link "$LINENO"; then :
10439  eval $cacheid=yes
10440else
10441  eval $cacheid=no
10442fi
10443rm -f core conftest.err conftest.$ac_objext \
10444    conftest$ac_exeext conftest.$ac_ext
10445fi
10446
10447
10448		CFLAGS="$xorg_testset_save_CFLAGS"
10449
10450		eval supported=\$$cacheid
10451		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10452$as_echo "$supported" >&6; }
10453		if test "$supported" = "yes" ; then
10454			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10455			found="yes"
10456		fi
10457	fi
10458
10459	if test $found = "no" ; then
10460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10462		fi
10463
10464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10466		fi
10467
10468		CFLAGS="$CFLAGS -errwarn"
10469
10470		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10471$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10472		cacheid=xorg_cv_cc_flag__errwarn
10473		if eval \${$cacheid+:} false; then :
10474  $as_echo_n "(cached) " >&6
10475else
10476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477/* end confdefs.h.  */
10478int i;
10479int
10480main ()
10481{
10482
10483  ;
10484  return 0;
10485}
10486_ACEOF
10487if ac_fn_c_try_link "$LINENO"; then :
10488  eval $cacheid=yes
10489else
10490  eval $cacheid=no
10491fi
10492rm -f core conftest.err conftest.$ac_objext \
10493    conftest$ac_exeext conftest.$ac_ext
10494fi
10495
10496
10497		CFLAGS="$xorg_testset_save_CFLAGS"
10498
10499		eval supported=\$$cacheid
10500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10501$as_echo "$supported" >&6; }
10502		if test "$supported" = "yes" ; then
10503			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10504			found="yes"
10505		fi
10506	fi
10507
10508
10509
10510# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10511# activate it with -Werror, so we add it here explicitly.
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525xorg_testset_save_CFLAGS="$CFLAGS"
10526
10527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10528	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10530$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10531if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10532  $as_echo_n "(cached) " >&6
10533else
10534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535/* end confdefs.h.  */
10536int i;
10537_ACEOF
10538if ac_fn_c_try_compile "$LINENO"; then :
10539  xorg_cv_cc_flag_unknown_warning_option=yes
10540else
10541  xorg_cv_cc_flag_unknown_warning_option=no
10542fi
10543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544fi
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10546$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10547	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10548	CFLAGS="$xorg_testset_save_CFLAGS"
10549fi
10550
10551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10552	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10553		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10554	fi
10555	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10556	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10557$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10558if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10559  $as_echo_n "(cached) " >&6
10560else
10561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562/* end confdefs.h.  */
10563int i;
10564_ACEOF
10565if ac_fn_c_try_compile "$LINENO"; then :
10566  xorg_cv_cc_flag_unused_command_line_argument=yes
10567else
10568  xorg_cv_cc_flag_unused_command_line_argument=no
10569fi
10570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10571fi
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10573$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10575	CFLAGS="$xorg_testset_save_CFLAGS"
10576fi
10577
10578found="no"
10579
10580	if test $found = "no" ; then
10581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10583		fi
10584
10585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10587		fi
10588
10589		CFLAGS="$CFLAGS -Werror=attributes"
10590
10591		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10592$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10593		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10594		if eval \${$cacheid+:} false; then :
10595  $as_echo_n "(cached) " >&6
10596else
10597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598/* end confdefs.h.  */
10599int i;
10600int
10601main ()
10602{
10603
10604  ;
10605  return 0;
10606}
10607_ACEOF
10608if ac_fn_c_try_link "$LINENO"; then :
10609  eval $cacheid=yes
10610else
10611  eval $cacheid=no
10612fi
10613rm -f core conftest.err conftest.$ac_objext \
10614    conftest$ac_exeext conftest.$ac_ext
10615fi
10616
10617
10618		CFLAGS="$xorg_testset_save_CFLAGS"
10619
10620		eval supported=\$$cacheid
10621		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10622$as_echo "$supported" >&6; }
10623		if test "$supported" = "yes" ; then
10624			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10625			found="yes"
10626		fi
10627	fi
10628
10629
10630
10631if test "x$STRICT_COMPILE" = "xyes"; then
10632    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10633    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10634fi
10635
10636
10637
10638
10639
10640
10641cat >>confdefs.h <<_ACEOF
10642#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10643_ACEOF
10644
10645	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10646	if test "x$PVM" = "x"; then
10647		PVM="0"
10648	fi
10649
10650cat >>confdefs.h <<_ACEOF
10651#define PACKAGE_VERSION_MINOR $PVM
10652_ACEOF
10653
10654	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10655	if test "x$PVP" = "x"; then
10656		PVP="0"
10657	fi
10658
10659cat >>confdefs.h <<_ACEOF
10660#define PACKAGE_VERSION_PATCHLEVEL $PVP
10661_ACEOF
10662
10663
10664
10665CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10666mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10667|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10668echo 'git directory not found: installing possibly empty changelog.' >&2)"
10669
10670
10671
10672
10673macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10674INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10675mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10676|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10677echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10678
10679
10680
10681
10682
10683
10684if test x$APP_MAN_SUFFIX = x    ; then
10685    APP_MAN_SUFFIX=1
10686fi
10687if test x$APP_MAN_DIR = x    ; then
10688    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10689fi
10690
10691if test x$LIB_MAN_SUFFIX = x    ; then
10692    LIB_MAN_SUFFIX=3
10693fi
10694if test x$LIB_MAN_DIR = x    ; then
10695    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10696fi
10697
10698if test x$FILE_MAN_SUFFIX = x    ; then
10699    case $host_os in
10700	solaris*)	FILE_MAN_SUFFIX=4  ;;
10701	*)		FILE_MAN_SUFFIX=5  ;;
10702    esac
10703fi
10704if test x$FILE_MAN_DIR = x    ; then
10705    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10706fi
10707
10708if test x$MISC_MAN_SUFFIX = x    ; then
10709    case $host_os in
10710	solaris*)	MISC_MAN_SUFFIX=5  ;;
10711	*)		MISC_MAN_SUFFIX=7  ;;
10712    esac
10713fi
10714if test x$MISC_MAN_DIR = x    ; then
10715    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10716fi
10717
10718if test x$DRIVER_MAN_SUFFIX = x    ; then
10719    case $host_os in
10720	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10721	*)		DRIVER_MAN_SUFFIX=4  ;;
10722    esac
10723fi
10724if test x$DRIVER_MAN_DIR = x    ; then
10725    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10726fi
10727
10728if test x$ADMIN_MAN_SUFFIX = x    ; then
10729    case $host_os in
10730	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10731	*)		ADMIN_MAN_SUFFIX=8  ;;
10732    esac
10733fi
10734if test x$ADMIN_MAN_DIR = x    ; then
10735    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10736fi
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752XORG_MAN_PAGE="X Version 11"
10753
10754MAN_SUBSTS="\
10755	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10756	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10757	-e 's|__xservername__|Xorg|g' \
10758	-e 's|__xconfigfile__|xorg.conf|g' \
10759	-e 's|__projectroot__|\$(prefix)|g' \
10760	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10761	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10762	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10763	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10764	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10765	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10766	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10767
10768
10769
10770# Check whether --enable-silent-rules was given.
10771if test "${enable_silent_rules+set}" = set; then :
10772  enableval=$enable_silent_rules;
10773fi
10774
10775case $enable_silent_rules in # (((
10776  yes) AM_DEFAULT_VERBOSITY=0;;
10777   no) AM_DEFAULT_VERBOSITY=1;;
10778    *) AM_DEFAULT_VERBOSITY=0;;
10779esac
10780am_make=${MAKE-make}
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10782$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10783if ${am_cv_make_support_nested_variables+:} false; then :
10784  $as_echo_n "(cached) " >&6
10785else
10786  if $as_echo 'TRUE=$(BAR$(V))
10787BAR0=false
10788BAR1=true
10789V=1
10790am__doit:
10791	@$(TRUE)
10792.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10793  am_cv_make_support_nested_variables=yes
10794else
10795  am_cv_make_support_nested_variables=no
10796fi
10797fi
10798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10799$as_echo "$am_cv_make_support_nested_variables" >&6; }
10800if test $am_cv_make_support_nested_variables = yes; then
10801    AM_V='$(V)'
10802  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10803else
10804  AM_V=$AM_DEFAULT_VERBOSITY
10805  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10806fi
10807AM_BACKSLASH='\'
10808
10809
10810
10811for ac_func in asprintf
10812do :
10813  ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
10814if test "x$ac_cv_func_asprintf" = xyes; then :
10815  cat >>confdefs.h <<_ACEOF
10816#define HAVE_ASPRINTF 1
10817_ACEOF
10818
10819fi
10820done
10821
10822
10823
10824pkg_failed=no
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RGB" >&5
10826$as_echo_n "checking for RGB... " >&6; }
10827
10828if test -n "$RGB_CFLAGS"; then
10829    pkg_cv_RGB_CFLAGS="$RGB_CFLAGS"
10830 elif test -n "$PKG_CONFIG"; then
10831    if test -n "$PKG_CONFIG" && \
10832    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10833  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10834  ac_status=$?
10835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10836  test $ac_status = 0; }; then
10837  pkg_cv_RGB_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
10838else
10839  pkg_failed=yes
10840fi
10841 else
10842    pkg_failed=untried
10843fi
10844if test -n "$RGB_LIBS"; then
10845    pkg_cv_RGB_LIBS="$RGB_LIBS"
10846 elif test -n "$PKG_CONFIG"; then
10847    if test -n "$PKG_CONFIG" && \
10848    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10849  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10850  ac_status=$?
10851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10852  test $ac_status = 0; }; then
10853  pkg_cv_RGB_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
10854else
10855  pkg_failed=yes
10856fi
10857 else
10858    pkg_failed=untried
10859fi
10860
10861
10862
10863if test $pkg_failed = yes; then
10864
10865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10866        _pkg_short_errors_supported=yes
10867else
10868        _pkg_short_errors_supported=no
10869fi
10870        if test $_pkg_short_errors_supported = yes; then
10871	        RGB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
10872        else
10873	        RGB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
10874        fi
10875	# Put the nasty error message in config.log where it belongs
10876	echo "$RGB_PKG_ERRORS" >&5
10877
10878	as_fn_error $? "Package requirements (xproto) were not met:
10879
10880$RGB_PKG_ERRORS
10881
10882Consider adjusting the PKG_CONFIG_PATH environment variable if you
10883installed software in a non-standard prefix.
10884
10885Alternatively, you may set the environment variables RGB_CFLAGS
10886and RGB_LIBS to avoid the need to call pkg-config.
10887See the pkg-config man page for more details.
10888" "$LINENO" 5
10889elif test $pkg_failed = untried; then
10890	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10892as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10893is in your PATH or set the PKG_CONFIG environment variable to the full
10894path to pkg-config.
10895
10896Alternatively, you may set the environment variables RGB_CFLAGS
10897and RGB_LIBS to avoid the need to call pkg-config.
10898See the pkg-config man page for more details.
10899
10900To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10901See \`config.log' for more details" "$LINENO" 5; }
10902else
10903	RGB_CFLAGS=$pkg_cv_RGB_CFLAGS
10904	RGB_LIBS=$pkg_cv_RGB_LIBS
10905        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10906$as_echo "yes" >&6; }
10907	:
10908fi
10909
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rgb database location" >&5
10911$as_echo_n "checking for rgb database location... " >&6; }
10912
10913# Check whether --with-rgb-db-dir was given.
10914if test "${with_rgb_db_dir+set}" = set; then :
10915  withval=$with_rgb_db_dir; db_path=$withval
10916else
10917  db_path=${datadir}/X11/rgb
10918fi
10919
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_path" >&5
10921$as_echo "$db_path" >&6; }
10922db_file=`basename $db_path`
10923db_dir=`dirname $db_path`
10924
10925
10926
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rgb database format" >&5
10928$as_echo_n "checking for rgb database format... " >&6; }
10929
10930# Check whether --with-rgb-db-type was given.
10931if test "${with_rgb_db_type+set}" = set; then :
10932  withval=$with_rgb_db_type; db_type=$withval
10933else
10934  db_type="text"
10935fi
10936
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_type" >&5
10938$as_echo "$db_type" >&6; }
10939
10940RGB_DB_TYPE=$db_type
10941
10942case $db_type in
10943	text)
10944		RGB_DB_FILES=""
10945
10946$as_echo "#define USE_RGB_TXT 1" >>confdefs.h
10947
10948		;;
10949	dbm)
10950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbminit" >&5
10951$as_echo_n "checking for library containing dbminit... " >&6; }
10952if ${ac_cv_search_dbminit+:} false; then :
10953  $as_echo_n "(cached) " >&6
10954else
10955  ac_func_search_save_LIBS=$LIBS
10956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957/* end confdefs.h.  */
10958
10959/* Override any GCC internal prototype to avoid an error.
10960   Use char because int might match the return type of a GCC
10961   builtin and then its argument prototype would still apply.  */
10962#ifdef __cplusplus
10963extern "C"
10964#endif
10965char dbminit ();
10966int
10967main ()
10968{
10969return dbminit ();
10970  ;
10971  return 0;
10972}
10973_ACEOF
10974for ac_lib in '' db dbm nsl; do
10975  if test -z "$ac_lib"; then
10976    ac_res="none required"
10977  else
10978    ac_res=-l$ac_lib
10979    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10980  fi
10981  if ac_fn_c_try_link "$LINENO"; then :
10982  ac_cv_search_dbminit=$ac_res
10983fi
10984rm -f core conftest.err conftest.$ac_objext \
10985    conftest$ac_exeext
10986  if ${ac_cv_search_dbminit+:} false; then :
10987  break
10988fi
10989done
10990if ${ac_cv_search_dbminit+:} false; then :
10991
10992else
10993  ac_cv_search_dbminit=no
10994fi
10995rm conftest.$ac_ext
10996LIBS=$ac_func_search_save_LIBS
10997fi
10998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbminit" >&5
10999$as_echo "$ac_cv_search_dbminit" >&6; }
11000ac_res=$ac_cv_search_dbminit
11001if test "$ac_res" != no; then :
11002  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11003
11004else
11005  as_fn_error $? "dbm requested but dbminit() not found in any libraries" "$LINENO" 5
11006fi
11007
11008		ac_fn_c_check_header_mongrel "$LINENO" "dbm.h" "ac_cv_header_dbm_h" "$ac_includes_default"
11009if test "x$ac_cv_header_dbm_h" = xyes; then :
11010  DBM_HEADER='<dbm.h>'
11011else
11012  ac_fn_c_check_header_mongrel "$LINENO" "rpcsvc/dbm.h" "ac_cv_header_rpcsvc_dbm_h" "$ac_includes_default"
11013if test "x$ac_cv_header_rpcsvc_dbm_h" = xyes; then :
11014  DBM_HEADER='<rpcsvc/dbm.h>'
11015else
11016  as_fn_error $? "dbm requested but dbm.h not found" "$LINENO" 5
11017fi
11018
11019
11020fi
11021
11022
11023
11024pkg_failed=no
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11026$as_echo_n "checking for XORG... " >&6; }
11027
11028if test -n "$XORG_CFLAGS"; then
11029    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11030 elif test -n "$PKG_CONFIG"; then
11031    if test -n "$PKG_CONFIG" && \
11032    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
11033  ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
11034  ac_status=$?
11035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11036  test $ac_status = 0; }; then
11037  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null`
11038else
11039  pkg_failed=yes
11040fi
11041 else
11042    pkg_failed=untried
11043fi
11044if test -n "$XORG_LIBS"; then
11045    pkg_cv_XORG_LIBS="$XORG_LIBS"
11046 elif test -n "$PKG_CONFIG"; then
11047    if test -n "$PKG_CONFIG" && \
11048    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
11049  ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
11050  ac_status=$?
11051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11052  test $ac_status = 0; }; then
11053  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null`
11054else
11055  pkg_failed=yes
11056fi
11057 else
11058    pkg_failed=untried
11059fi
11060
11061
11062
11063if test $pkg_failed = yes; then
11064
11065if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11066        _pkg_short_errors_supported=yes
11067else
11068        _pkg_short_errors_supported=no
11069fi
11070        if test $_pkg_short_errors_supported = yes; then
11071	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server" 2>&1`
11072        else
11073	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server" 2>&1`
11074        fi
11075	# Put the nasty error message in config.log where it belongs
11076	echo "$XORG_PKG_ERRORS" >&5
11077
11078	as_fn_error $? "Package requirements (xorg-server) were not met:
11079
11080$XORG_PKG_ERRORS
11081
11082Consider adjusting the PKG_CONFIG_PATH environment variable if you
11083installed software in a non-standard prefix.
11084
11085Alternatively, you may set the environment variables XORG_CFLAGS
11086and XORG_LIBS to avoid the need to call pkg-config.
11087See the pkg-config man page for more details.
11088" "$LINENO" 5
11089elif test $pkg_failed = untried; then
11090	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11092as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11093is in your PATH or set the PKG_CONFIG environment variable to the full
11094path to pkg-config.
11095
11096Alternatively, you may set the environment variables XORG_CFLAGS
11097and XORG_LIBS to avoid the need to call pkg-config.
11098See the pkg-config man page for more details.
11099
11100To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11101See \`config.log' for more details" "$LINENO" 5; }
11102else
11103	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11104	XORG_LIBS=$pkg_cv_XORG_LIBS
11105        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11106$as_echo "yes" >&6; }
11107	:
11108fi
11109		RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
11110		RGB_DB_FILES='$(db_file).dir $(db_file).pag'
11111		;;
11112	ndbm)
11113		# Find a dbm or ndbm implementation
11114		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
11115$as_echo_n "checking for library containing dbm_open... " >&6; }
11116if ${ac_cv_search_dbm_open+:} false; then :
11117  $as_echo_n "(cached) " >&6
11118else
11119  ac_func_search_save_LIBS=$LIBS
11120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121/* end confdefs.h.  */
11122
11123/* Override any GCC internal prototype to avoid an error.
11124   Use char because int might match the return type of a GCC
11125   builtin and then its argument prototype would still apply.  */
11126#ifdef __cplusplus
11127extern "C"
11128#endif
11129char dbm_open ();
11130int
11131main ()
11132{
11133return dbm_open ();
11134  ;
11135  return 0;
11136}
11137_ACEOF
11138for ac_lib in '' db ndbm dbm; do
11139  if test -z "$ac_lib"; then
11140    ac_res="none required"
11141  else
11142    ac_res=-l$ac_lib
11143    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11144  fi
11145  if ac_fn_c_try_link "$LINENO"; then :
11146  ac_cv_search_dbm_open=$ac_res
11147fi
11148rm -f core conftest.err conftest.$ac_objext \
11149    conftest$ac_exeext
11150  if ${ac_cv_search_dbm_open+:} false; then :
11151  break
11152fi
11153done
11154if ${ac_cv_search_dbm_open+:} false; then :
11155
11156else
11157  ac_cv_search_dbm_open=no
11158fi
11159rm conftest.$ac_ext
11160LIBS=$ac_func_search_save_LIBS
11161fi
11162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
11163$as_echo "$ac_cv_search_dbm_open" >&6; }
11164ac_res=$ac_cv_search_dbm_open
11165if test "$ac_res" != no; then :
11166  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11167
11168$as_echo "#define NDBM 1" >>confdefs.h
11169
11170else
11171  as_fn_error $? "ndbm requested but dbm_open() not found in any libraries" "$LINENO" 5
11172fi
11173
11174		DBM_HEADER='<ndbm.h>'
11175
11176pkg_failed=no
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11178$as_echo_n "checking for XORG... " >&6; }
11179
11180if test -n "$XORG_CFLAGS"; then
11181    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11182 elif test -n "$PKG_CONFIG"; then
11183    if test -n "$PKG_CONFIG" && \
11184    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
11185  ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
11186  ac_status=$?
11187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11188  test $ac_status = 0; }; then
11189  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null`
11190else
11191  pkg_failed=yes
11192fi
11193 else
11194    pkg_failed=untried
11195fi
11196if test -n "$XORG_LIBS"; then
11197    pkg_cv_XORG_LIBS="$XORG_LIBS"
11198 elif test -n "$PKG_CONFIG"; then
11199    if test -n "$PKG_CONFIG" && \
11200    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
11201  ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
11202  ac_status=$?
11203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11204  test $ac_status = 0; }; then
11205  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null`
11206else
11207  pkg_failed=yes
11208fi
11209 else
11210    pkg_failed=untried
11211fi
11212
11213
11214
11215if test $pkg_failed = yes; then
11216
11217if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11218        _pkg_short_errors_supported=yes
11219else
11220        _pkg_short_errors_supported=no
11221fi
11222        if test $_pkg_short_errors_supported = yes; then
11223	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server" 2>&1`
11224        else
11225	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server" 2>&1`
11226        fi
11227	# Put the nasty error message in config.log where it belongs
11228	echo "$XORG_PKG_ERRORS" >&5
11229
11230	as_fn_error $? "Package requirements (xorg-server) were not met:
11231
11232$XORG_PKG_ERRORS
11233
11234Consider adjusting the PKG_CONFIG_PATH environment variable if you
11235installed software in a non-standard prefix.
11236
11237Alternatively, you may set the environment variables XORG_CFLAGS
11238and XORG_LIBS to avoid the need to call pkg-config.
11239See the pkg-config man page for more details.
11240" "$LINENO" 5
11241elif test $pkg_failed = untried; then
11242	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11244as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11245is in your PATH or set the PKG_CONFIG environment variable to the full
11246path to pkg-config.
11247
11248Alternatively, you may set the environment variables XORG_CFLAGS
11249and XORG_LIBS to avoid the need to call pkg-config.
11250See the pkg-config man page for more details.
11251
11252To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11253See \`config.log' for more details" "$LINENO" 5; }
11254else
11255	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11256	XORG_LIBS=$pkg_cv_XORG_LIBS
11257        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11258$as_echo "yes" >&6; }
11259	:
11260fi
11261		RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
11262		RGB_DB_FILES='$(db_file).dir $(db_file).pag'
11263		;;
11264esac
11265if test x$DBM_HEADER != x ; then
11266
11267cat >>confdefs.h <<_ACEOF
11268#define DBM_HEADER $DBM_HEADER
11269_ACEOF
11270
11271fi
11272
11273
11274 if test x$db_type != xtext; then
11275  RGB_DB_TRUE=
11276  RGB_DB_FALSE='#'
11277else
11278  RGB_DB_TRUE='#'
11279  RGB_DB_FALSE=
11280fi
11281
11282
11283ac_config_files="$ac_config_files Makefile man/Makefile"
11284
11285
11286cat >confcache <<\_ACEOF
11287# This file is a shell script that caches the results of configure
11288# tests run on this system so they can be shared between configure
11289# scripts and configure runs, see configure's option --config-cache.
11290# It is not useful on other systems.  If it contains results you don't
11291# want to keep, you may remove or edit it.
11292#
11293# config.status only pays attention to the cache file if you give it
11294# the --recheck option to rerun configure.
11295#
11296# `ac_cv_env_foo' variables (set or unset) will be overridden when
11297# loading this file, other *unset* `ac_cv_foo' will be assigned the
11298# following values.
11299
11300_ACEOF
11301
11302# The following way of writing the cache mishandles newlines in values,
11303# but we know of no workaround that is simple, portable, and efficient.
11304# So, we kill variables containing newlines.
11305# Ultrix sh set writes to stderr and can't be redirected directly,
11306# and sets the high bit in the cache file unless we assign to the vars.
11307(
11308  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11309    eval ac_val=\$$ac_var
11310    case $ac_val in #(
11311    *${as_nl}*)
11312      case $ac_var in #(
11313      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11314$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11315      esac
11316      case $ac_var in #(
11317      _ | IFS | as_nl) ;; #(
11318      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11319      *) { eval $ac_var=; unset $ac_var;} ;;
11320      esac ;;
11321    esac
11322  done
11323
11324  (set) 2>&1 |
11325    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11326    *${as_nl}ac_space=\ *)
11327      # `set' does not quote correctly, so add quotes: double-quote
11328      # substitution turns \\\\ into \\, and sed turns \\ into \.
11329      sed -n \
11330	"s/'/'\\\\''/g;
11331	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11332      ;; #(
11333    *)
11334      # `set' quotes correctly as required by POSIX, so do not add quotes.
11335      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11336      ;;
11337    esac |
11338    sort
11339) |
11340  sed '
11341     /^ac_cv_env_/b end
11342     t clear
11343     :clear
11344     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11345     t end
11346     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11347     :end' >>confcache
11348if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11349  if test -w "$cache_file"; then
11350    if test "x$cache_file" != "x/dev/null"; then
11351      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11352$as_echo "$as_me: updating cache $cache_file" >&6;}
11353      if test ! -f "$cache_file" || test -h "$cache_file"; then
11354	cat confcache >"$cache_file"
11355      else
11356        case $cache_file in #(
11357        */* | ?:*)
11358	  mv -f confcache "$cache_file"$$ &&
11359	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11360        *)
11361	  mv -f confcache "$cache_file" ;;
11362	esac
11363      fi
11364    fi
11365  else
11366    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11367$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11368  fi
11369fi
11370rm -f confcache
11371
11372test "x$prefix" = xNONE && prefix=$ac_default_prefix
11373# Let make expand exec_prefix.
11374test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11375
11376DEFS=-DHAVE_CONFIG_H
11377
11378ac_libobjs=
11379ac_ltlibobjs=
11380U=
11381for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11382  # 1. Remove the extension, and $U if already installed.
11383  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11384  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11385  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11386  #    will be set to the directory where LIBOBJS objects are built.
11387  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11388  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11389done
11390LIBOBJS=$ac_libobjs
11391
11392LTLIBOBJS=$ac_ltlibobjs
11393
11394
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11396$as_echo_n "checking that generated files are newer than configure... " >&6; }
11397   if test -n "$am_sleep_pid"; then
11398     # Hide warnings about reused PIDs.
11399     wait $am_sleep_pid 2>/dev/null
11400   fi
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11402$as_echo "done" >&6; }
11403if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11404  as_fn_error $? "conditional \"AMDEP\" was never defined.
11405Usually this means the macro was only invoked conditionally." "$LINENO" 5
11406fi
11407if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11408  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11409Usually this means the macro was only invoked conditionally." "$LINENO" 5
11410fi
11411 if test -n "$EXEEXT"; then
11412  am__EXEEXT_TRUE=
11413  am__EXEEXT_FALSE='#'
11414else
11415  am__EXEEXT_TRUE='#'
11416  am__EXEEXT_FALSE=
11417fi
11418
11419if test -z "${RGB_DB_TRUE}" && test -z "${RGB_DB_FALSE}"; then
11420  as_fn_error $? "conditional \"RGB_DB\" was never defined.
11421Usually this means the macro was only invoked conditionally." "$LINENO" 5
11422fi
11423
11424: "${CONFIG_STATUS=./config.status}"
11425ac_write_fail=0
11426ac_clean_files_save=$ac_clean_files
11427ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11429$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11430as_write_fail=0
11431cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11432#! $SHELL
11433# Generated by $as_me.
11434# Run this file to recreate the current configuration.
11435# Compiler output produced by configure, useful for debugging
11436# configure, is in config.log if it exists.
11437
11438debug=false
11439ac_cs_recheck=false
11440ac_cs_silent=false
11441
11442SHELL=\${CONFIG_SHELL-$SHELL}
11443export SHELL
11444_ASEOF
11445cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11446## -------------------- ##
11447## M4sh Initialization. ##
11448## -------------------- ##
11449
11450# Be more Bourne compatible
11451DUALCASE=1; export DUALCASE # for MKS sh
11452if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11453  emulate sh
11454  NULLCMD=:
11455  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11456  # is contrary to our usage.  Disable this feature.
11457  alias -g '${1+"$@"}'='"$@"'
11458  setopt NO_GLOB_SUBST
11459else
11460  case `(set -o) 2>/dev/null` in #(
11461  *posix*) :
11462    set -o posix ;; #(
11463  *) :
11464     ;;
11465esac
11466fi
11467
11468
11469as_nl='
11470'
11471export as_nl
11472# Printing a long string crashes Solaris 7 /usr/bin/printf.
11473as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11474as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11475as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11476# Prefer a ksh shell builtin over an external printf program on Solaris,
11477# but without wasting forks for bash or zsh.
11478if test -z "$BASH_VERSION$ZSH_VERSION" \
11479    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11480  as_echo='print -r --'
11481  as_echo_n='print -rn --'
11482elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11483  as_echo='printf %s\n'
11484  as_echo_n='printf %s'
11485else
11486  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11487    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11488    as_echo_n='/usr/ucb/echo -n'
11489  else
11490    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11491    as_echo_n_body='eval
11492      arg=$1;
11493      case $arg in #(
11494      *"$as_nl"*)
11495	expr "X$arg" : "X\\(.*\\)$as_nl";
11496	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11497      esac;
11498      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11499    '
11500    export as_echo_n_body
11501    as_echo_n='sh -c $as_echo_n_body as_echo'
11502  fi
11503  export as_echo_body
11504  as_echo='sh -c $as_echo_body as_echo'
11505fi
11506
11507# The user is always right.
11508if test "${PATH_SEPARATOR+set}" != set; then
11509  PATH_SEPARATOR=:
11510  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11511    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11512      PATH_SEPARATOR=';'
11513  }
11514fi
11515
11516
11517# IFS
11518# We need space, tab and new line, in precisely that order.  Quoting is
11519# there to prevent editors from complaining about space-tab.
11520# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11521# splitting by setting IFS to empty value.)
11522IFS=" ""	$as_nl"
11523
11524# Find who we are.  Look in the path if we contain no directory separator.
11525as_myself=
11526case $0 in #((
11527  *[\\/]* ) as_myself=$0 ;;
11528  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529for as_dir in $PATH
11530do
11531  IFS=$as_save_IFS
11532  test -z "$as_dir" && as_dir=.
11533    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11534  done
11535IFS=$as_save_IFS
11536
11537     ;;
11538esac
11539# We did not find ourselves, most probably we were run as `sh COMMAND'
11540# in which case we are not to be found in the path.
11541if test "x$as_myself" = x; then
11542  as_myself=$0
11543fi
11544if test ! -f "$as_myself"; then
11545  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11546  exit 1
11547fi
11548
11549# Unset variables that we do not need and which cause bugs (e.g. in
11550# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11551# suppresses any "Segmentation fault" message there.  '((' could
11552# trigger a bug in pdksh 5.2.14.
11553for as_var in BASH_ENV ENV MAIL MAILPATH
11554do eval test x\${$as_var+set} = xset \
11555  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11556done
11557PS1='$ '
11558PS2='> '
11559PS4='+ '
11560
11561# NLS nuisances.
11562LC_ALL=C
11563export LC_ALL
11564LANGUAGE=C
11565export LANGUAGE
11566
11567# CDPATH.
11568(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11569
11570
11571# as_fn_error STATUS ERROR [LINENO LOG_FD]
11572# ----------------------------------------
11573# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11574# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11575# script with STATUS, using 1 if that was 0.
11576as_fn_error ()
11577{
11578  as_status=$1; test $as_status -eq 0 && as_status=1
11579  if test "$4"; then
11580    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11581    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11582  fi
11583  $as_echo "$as_me: error: $2" >&2
11584  as_fn_exit $as_status
11585} # as_fn_error
11586
11587
11588# as_fn_set_status STATUS
11589# -----------------------
11590# Set $? to STATUS, without forking.
11591as_fn_set_status ()
11592{
11593  return $1
11594} # as_fn_set_status
11595
11596# as_fn_exit STATUS
11597# -----------------
11598# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11599as_fn_exit ()
11600{
11601  set +e
11602  as_fn_set_status $1
11603  exit $1
11604} # as_fn_exit
11605
11606# as_fn_unset VAR
11607# ---------------
11608# Portably unset VAR.
11609as_fn_unset ()
11610{
11611  { eval $1=; unset $1;}
11612}
11613as_unset=as_fn_unset
11614# as_fn_append VAR VALUE
11615# ----------------------
11616# Append the text in VALUE to the end of the definition contained in VAR. Take
11617# advantage of any shell optimizations that allow amortized linear growth over
11618# repeated appends, instead of the typical quadratic growth present in naive
11619# implementations.
11620if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11621  eval 'as_fn_append ()
11622  {
11623    eval $1+=\$2
11624  }'
11625else
11626  as_fn_append ()
11627  {
11628    eval $1=\$$1\$2
11629  }
11630fi # as_fn_append
11631
11632# as_fn_arith ARG...
11633# ------------------
11634# Perform arithmetic evaluation on the ARGs, and store the result in the
11635# global $as_val. Take advantage of shells that can avoid forks. The arguments
11636# must be portable across $(()) and expr.
11637if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11638  eval 'as_fn_arith ()
11639  {
11640    as_val=$(( $* ))
11641  }'
11642else
11643  as_fn_arith ()
11644  {
11645    as_val=`expr "$@" || test $? -eq 1`
11646  }
11647fi # as_fn_arith
11648
11649
11650if expr a : '\(a\)' >/dev/null 2>&1 &&
11651   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11652  as_expr=expr
11653else
11654  as_expr=false
11655fi
11656
11657if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11658  as_basename=basename
11659else
11660  as_basename=false
11661fi
11662
11663if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11664  as_dirname=dirname
11665else
11666  as_dirname=false
11667fi
11668
11669as_me=`$as_basename -- "$0" ||
11670$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11671	 X"$0" : 'X\(//\)$' \| \
11672	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11673$as_echo X/"$0" |
11674    sed '/^.*\/\([^/][^/]*\)\/*$/{
11675	    s//\1/
11676	    q
11677	  }
11678	  /^X\/\(\/\/\)$/{
11679	    s//\1/
11680	    q
11681	  }
11682	  /^X\/\(\/\).*/{
11683	    s//\1/
11684	    q
11685	  }
11686	  s/.*/./; q'`
11687
11688# Avoid depending upon Character Ranges.
11689as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11690as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11691as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11692as_cr_digits='0123456789'
11693as_cr_alnum=$as_cr_Letters$as_cr_digits
11694
11695ECHO_C= ECHO_N= ECHO_T=
11696case `echo -n x` in #(((((
11697-n*)
11698  case `echo 'xy\c'` in
11699  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11700  xy)  ECHO_C='\c';;
11701  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11702       ECHO_T='	';;
11703  esac;;
11704*)
11705  ECHO_N='-n';;
11706esac
11707
11708rm -f conf$$ conf$$.exe conf$$.file
11709if test -d conf$$.dir; then
11710  rm -f conf$$.dir/conf$$.file
11711else
11712  rm -f conf$$.dir
11713  mkdir conf$$.dir 2>/dev/null
11714fi
11715if (echo >conf$$.file) 2>/dev/null; then
11716  if ln -s conf$$.file conf$$ 2>/dev/null; then
11717    as_ln_s='ln -s'
11718    # ... but there are two gotchas:
11719    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11720    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11721    # In both cases, we have to default to `cp -p'.
11722    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11723      as_ln_s='cp -p'
11724  elif ln conf$$.file conf$$ 2>/dev/null; then
11725    as_ln_s=ln
11726  else
11727    as_ln_s='cp -p'
11728  fi
11729else
11730  as_ln_s='cp -p'
11731fi
11732rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11733rmdir conf$$.dir 2>/dev/null
11734
11735
11736# as_fn_mkdir_p
11737# -------------
11738# Create "$as_dir" as a directory, including parents if necessary.
11739as_fn_mkdir_p ()
11740{
11741
11742  case $as_dir in #(
11743  -*) as_dir=./$as_dir;;
11744  esac
11745  test -d "$as_dir" || eval $as_mkdir_p || {
11746    as_dirs=
11747    while :; do
11748      case $as_dir in #(
11749      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11750      *) as_qdir=$as_dir;;
11751      esac
11752      as_dirs="'$as_qdir' $as_dirs"
11753      as_dir=`$as_dirname -- "$as_dir" ||
11754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11755	 X"$as_dir" : 'X\(//\)[^/]' \| \
11756	 X"$as_dir" : 'X\(//\)$' \| \
11757	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11758$as_echo X"$as_dir" |
11759    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11760	    s//\1/
11761	    q
11762	  }
11763	  /^X\(\/\/\)[^/].*/{
11764	    s//\1/
11765	    q
11766	  }
11767	  /^X\(\/\/\)$/{
11768	    s//\1/
11769	    q
11770	  }
11771	  /^X\(\/\).*/{
11772	    s//\1/
11773	    q
11774	  }
11775	  s/.*/./; q'`
11776      test -d "$as_dir" && break
11777    done
11778    test -z "$as_dirs" || eval "mkdir $as_dirs"
11779  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11780
11781
11782} # as_fn_mkdir_p
11783if mkdir -p . 2>/dev/null; then
11784  as_mkdir_p='mkdir -p "$as_dir"'
11785else
11786  test -d ./-p && rmdir ./-p
11787  as_mkdir_p=false
11788fi
11789
11790if test -x / >/dev/null 2>&1; then
11791  as_test_x='test -x'
11792else
11793  if ls -dL / >/dev/null 2>&1; then
11794    as_ls_L_option=L
11795  else
11796    as_ls_L_option=
11797  fi
11798  as_test_x='
11799    eval sh -c '\''
11800      if test -d "$1"; then
11801	test -d "$1/.";
11802      else
11803	case $1 in #(
11804	-*)set "./$1";;
11805	esac;
11806	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11807	???[sx]*):;;*)false;;esac;fi
11808    '\'' sh
11809  '
11810fi
11811as_executable_p=$as_test_x
11812
11813# Sed expression to map a string onto a valid CPP name.
11814as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11815
11816# Sed expression to map a string onto a valid variable name.
11817as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11818
11819
11820exec 6>&1
11821## ----------------------------------- ##
11822## Main body of $CONFIG_STATUS script. ##
11823## ----------------------------------- ##
11824_ASEOF
11825test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11826
11827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11828# Save the log message, to keep $0 and so on meaningful, and to
11829# report actual input values of CONFIG_FILES etc. instead of their
11830# values after options handling.
11831ac_log="
11832This file was extended by rgb $as_me 1.0.6, which was
11833generated by GNU Autoconf 2.68.  Invocation command line was
11834
11835  CONFIG_FILES    = $CONFIG_FILES
11836  CONFIG_HEADERS  = $CONFIG_HEADERS
11837  CONFIG_LINKS    = $CONFIG_LINKS
11838  CONFIG_COMMANDS = $CONFIG_COMMANDS
11839  $ $0 $@
11840
11841on `(hostname || uname -n) 2>/dev/null | sed 1q`
11842"
11843
11844_ACEOF
11845
11846case $ac_config_files in *"
11847"*) set x $ac_config_files; shift; ac_config_files=$*;;
11848esac
11849
11850case $ac_config_headers in *"
11851"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11852esac
11853
11854
11855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11856# Files that config.status was made for.
11857config_files="$ac_config_files"
11858config_headers="$ac_config_headers"
11859config_commands="$ac_config_commands"
11860
11861_ACEOF
11862
11863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11864ac_cs_usage="\
11865\`$as_me' instantiates files and other configuration actions
11866from templates according to the current configuration.  Unless the files
11867and actions are specified as TAGs, all are instantiated by default.
11868
11869Usage: $0 [OPTION]... [TAG]...
11870
11871  -h, --help       print this help, then exit
11872  -V, --version    print version number and configuration settings, then exit
11873      --config     print configuration, then exit
11874  -q, --quiet, --silent
11875                   do not print progress messages
11876  -d, --debug      don't remove temporary files
11877      --recheck    update $as_me by reconfiguring in the same conditions
11878      --file=FILE[:TEMPLATE]
11879                   instantiate the configuration file FILE
11880      --header=FILE[:TEMPLATE]
11881                   instantiate the configuration header FILE
11882
11883Configuration files:
11884$config_files
11885
11886Configuration headers:
11887$config_headers
11888
11889Configuration commands:
11890$config_commands
11891
11892Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11893
11894_ACEOF
11895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11896ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11897ac_cs_version="\\
11898rgb config.status 1.0.6
11899configured by $0, generated by GNU Autoconf 2.68,
11900  with options \\"\$ac_cs_config\\"
11901
11902Copyright (C) 2010 Free Software Foundation, Inc.
11903This config.status script is free software; the Free Software Foundation
11904gives unlimited permission to copy, distribute and modify it."
11905
11906ac_pwd='$ac_pwd'
11907srcdir='$srcdir'
11908INSTALL='$INSTALL'
11909MKDIR_P='$MKDIR_P'
11910AWK='$AWK'
11911test -n "\$AWK" || AWK=awk
11912_ACEOF
11913
11914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11915# The default lists apply if the user does not specify any file.
11916ac_need_defaults=:
11917while test $# != 0
11918do
11919  case $1 in
11920  --*=?*)
11921    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11922    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11923    ac_shift=:
11924    ;;
11925  --*=)
11926    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11927    ac_optarg=
11928    ac_shift=:
11929    ;;
11930  *)
11931    ac_option=$1
11932    ac_optarg=$2
11933    ac_shift=shift
11934    ;;
11935  esac
11936
11937  case $ac_option in
11938  # Handling of the options.
11939  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11940    ac_cs_recheck=: ;;
11941  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11942    $as_echo "$ac_cs_version"; exit ;;
11943  --config | --confi | --conf | --con | --co | --c )
11944    $as_echo "$ac_cs_config"; exit ;;
11945  --debug | --debu | --deb | --de | --d | -d )
11946    debug=: ;;
11947  --file | --fil | --fi | --f )
11948    $ac_shift
11949    case $ac_optarg in
11950    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11951    '') as_fn_error $? "missing file argument" ;;
11952    esac
11953    as_fn_append CONFIG_FILES " '$ac_optarg'"
11954    ac_need_defaults=false;;
11955  --header | --heade | --head | --hea )
11956    $ac_shift
11957    case $ac_optarg in
11958    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11959    esac
11960    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11961    ac_need_defaults=false;;
11962  --he | --h)
11963    # Conflict between --help and --header
11964    as_fn_error $? "ambiguous option: \`$1'
11965Try \`$0 --help' for more information.";;
11966  --help | --hel | -h )
11967    $as_echo "$ac_cs_usage"; exit ;;
11968  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11969  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11970    ac_cs_silent=: ;;
11971
11972  # This is an error.
11973  -*) as_fn_error $? "unrecognized option: \`$1'
11974Try \`$0 --help' for more information." ;;
11975
11976  *) as_fn_append ac_config_targets " $1"
11977     ac_need_defaults=false ;;
11978
11979  esac
11980  shift
11981done
11982
11983ac_configure_extra_args=
11984
11985if $ac_cs_silent; then
11986  exec 6>/dev/null
11987  ac_configure_extra_args="$ac_configure_extra_args --silent"
11988fi
11989
11990_ACEOF
11991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11992if \$ac_cs_recheck; then
11993  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11994  shift
11995  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11996  CONFIG_SHELL='$SHELL'
11997  export CONFIG_SHELL
11998  exec "\$@"
11999fi
12000
12001_ACEOF
12002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12003exec 5>>config.log
12004{
12005  echo
12006  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12007## Running $as_me. ##
12008_ASBOX
12009  $as_echo "$ac_log"
12010} >&5
12011
12012_ACEOF
12013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12014#
12015# INIT-COMMANDS
12016#
12017AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12018
12019_ACEOF
12020
12021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12022
12023# Handling of arguments.
12024for ac_config_target in $ac_config_targets
12025do
12026  case $ac_config_target in
12027    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12028    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12029    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12030    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12031
12032  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12033  esac
12034done
12035
12036
12037# If the user did not use the arguments to specify the items to instantiate,
12038# then the envvar interface is used.  Set only those that are not.
12039# We use the long form for the default assignment because of an extremely
12040# bizarre bug on SunOS 4.1.3.
12041if $ac_need_defaults; then
12042  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12043  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12044  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12045fi
12046
12047# Have a temporary directory for convenience.  Make it in the build tree
12048# simply because there is no reason against having it here, and in addition,
12049# creating and moving files from /tmp can sometimes cause problems.
12050# Hook for its removal unless debugging.
12051# Note that there is a small window in which the directory will not be cleaned:
12052# after its creation but before its name has been assigned to `$tmp'.
12053$debug ||
12054{
12055  tmp= ac_tmp=
12056  trap 'exit_status=$?
12057  : "${ac_tmp:=$tmp}"
12058  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12059' 0
12060  trap 'as_fn_exit 1' 1 2 13 15
12061}
12062# Create a (secure) tmp directory for tmp files.
12063
12064{
12065  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12066  test -d "$tmp"
12067}  ||
12068{
12069  tmp=./conf$$-$RANDOM
12070  (umask 077 && mkdir "$tmp")
12071} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12072ac_tmp=$tmp
12073
12074# Set up the scripts for CONFIG_FILES section.
12075# No need to generate them if there are no CONFIG_FILES.
12076# This happens for instance with `./config.status config.h'.
12077if test -n "$CONFIG_FILES"; then
12078
12079
12080ac_cr=`echo X | tr X '\015'`
12081# On cygwin, bash can eat \r inside `` if the user requested igncr.
12082# But we know of no other shell where ac_cr would be empty at this
12083# point, so we can use a bashism as a fallback.
12084if test "x$ac_cr" = x; then
12085  eval ac_cr=\$\'\\r\'
12086fi
12087ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12088if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12089  ac_cs_awk_cr='\\r'
12090else
12091  ac_cs_awk_cr=$ac_cr
12092fi
12093
12094echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12095_ACEOF
12096
12097
12098{
12099  echo "cat >conf$$subs.awk <<_ACEOF" &&
12100  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12101  echo "_ACEOF"
12102} >conf$$subs.sh ||
12103  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12104ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12105ac_delim='%!_!# '
12106for ac_last_try in false false false false false :; do
12107  . ./conf$$subs.sh ||
12108    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12109
12110  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12111  if test $ac_delim_n = $ac_delim_num; then
12112    break
12113  elif $ac_last_try; then
12114    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12115  else
12116    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12117  fi
12118done
12119rm -f conf$$subs.sh
12120
12121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12122cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12123_ACEOF
12124sed -n '
12125h
12126s/^/S["/; s/!.*/"]=/
12127p
12128g
12129s/^[^!]*!//
12130:repl
12131t repl
12132s/'"$ac_delim"'$//
12133t delim
12134:nl
12135h
12136s/\(.\{148\}\)..*/\1/
12137t more1
12138s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12139p
12140n
12141b repl
12142:more1
12143s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12144p
12145g
12146s/.\{148\}//
12147t nl
12148:delim
12149h
12150s/\(.\{148\}\)..*/\1/
12151t more2
12152s/["\\]/\\&/g; s/^/"/; s/$/"/
12153p
12154b
12155:more2
12156s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12157p
12158g
12159s/.\{148\}//
12160t delim
12161' <conf$$subs.awk | sed '
12162/^[^""]/{
12163  N
12164  s/\n//
12165}
12166' >>$CONFIG_STATUS || ac_write_fail=1
12167rm -f conf$$subs.awk
12168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12169_ACAWK
12170cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12171  for (key in S) S_is_set[key] = 1
12172  FS = ""
12173
12174}
12175{
12176  line = $ 0
12177  nfields = split(line, field, "@")
12178  substed = 0
12179  len = length(field[1])
12180  for (i = 2; i < nfields; i++) {
12181    key = field[i]
12182    keylen = length(key)
12183    if (S_is_set[key]) {
12184      value = S[key]
12185      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12186      len += length(value) + length(field[++i])
12187      substed = 1
12188    } else
12189      len += 1 + keylen
12190  }
12191
12192  print line
12193}
12194
12195_ACAWK
12196_ACEOF
12197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12198if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12199  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12200else
12201  cat
12202fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12203  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12204_ACEOF
12205
12206# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12207# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12208# trailing colons and then remove the whole line if VPATH becomes empty
12209# (actually we leave an empty line to preserve line numbers).
12210if test "x$srcdir" = x.; then
12211  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12212h
12213s///
12214s/^/:/
12215s/[	 ]*$/:/
12216s/:\$(srcdir):/:/g
12217s/:\${srcdir}:/:/g
12218s/:@srcdir@:/:/g
12219s/^:*//
12220s/:*$//
12221x
12222s/\(=[	 ]*\).*/\1/
12223G
12224s/\n//
12225s/^[^=]*=[	 ]*$//
12226}'
12227fi
12228
12229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12230fi # test -n "$CONFIG_FILES"
12231
12232# Set up the scripts for CONFIG_HEADERS section.
12233# No need to generate them if there are no CONFIG_HEADERS.
12234# This happens for instance with `./config.status Makefile'.
12235if test -n "$CONFIG_HEADERS"; then
12236cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12237BEGIN {
12238_ACEOF
12239
12240# Transform confdefs.h into an awk script `defines.awk', embedded as
12241# here-document in config.status, that substitutes the proper values into
12242# config.h.in to produce config.h.
12243
12244# Create a delimiter string that does not exist in confdefs.h, to ease
12245# handling of long lines.
12246ac_delim='%!_!# '
12247for ac_last_try in false false :; do
12248  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12249  if test -z "$ac_tt"; then
12250    break
12251  elif $ac_last_try; then
12252    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12253  else
12254    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12255  fi
12256done
12257
12258# For the awk script, D is an array of macro values keyed by name,
12259# likewise P contains macro parameters if any.  Preserve backslash
12260# newline sequences.
12261
12262ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12263sed -n '
12264s/.\{148\}/&'"$ac_delim"'/g
12265t rset
12266:rset
12267s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12268t def
12269d
12270:def
12271s/\\$//
12272t bsnl
12273s/["\\]/\\&/g
12274s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12275D["\1"]=" \3"/p
12276s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12277d
12278:bsnl
12279s/["\\]/\\&/g
12280s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12281D["\1"]=" \3\\\\\\n"\\/p
12282t cont
12283s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12284t cont
12285d
12286:cont
12287n
12288s/.\{148\}/&'"$ac_delim"'/g
12289t clear
12290:clear
12291s/\\$//
12292t bsnlc
12293s/["\\]/\\&/g; s/^/"/; s/$/"/p
12294d
12295:bsnlc
12296s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12297b cont
12298' <confdefs.h | sed '
12299s/'"$ac_delim"'/"\\\
12300"/g' >>$CONFIG_STATUS || ac_write_fail=1
12301
12302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12303  for (key in D) D_is_set[key] = 1
12304  FS = ""
12305}
12306/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12307  line = \$ 0
12308  split(line, arg, " ")
12309  if (arg[1] == "#") {
12310    defundef = arg[2]
12311    mac1 = arg[3]
12312  } else {
12313    defundef = substr(arg[1], 2)
12314    mac1 = arg[2]
12315  }
12316  split(mac1, mac2, "(") #)
12317  macro = mac2[1]
12318  prefix = substr(line, 1, index(line, defundef) - 1)
12319  if (D_is_set[macro]) {
12320    # Preserve the white space surrounding the "#".
12321    print prefix "define", macro P[macro] D[macro]
12322    next
12323  } else {
12324    # Replace #undef with comments.  This is necessary, for example,
12325    # in the case of _POSIX_SOURCE, which is predefined and required
12326    # on some systems where configure will not decide to define it.
12327    if (defundef == "undef") {
12328      print "/*", prefix defundef, macro, "*/"
12329      next
12330    }
12331  }
12332}
12333{ print }
12334_ACAWK
12335_ACEOF
12336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12337  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12338fi # test -n "$CONFIG_HEADERS"
12339
12340
12341eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12342shift
12343for ac_tag
12344do
12345  case $ac_tag in
12346  :[FHLC]) ac_mode=$ac_tag; continue;;
12347  esac
12348  case $ac_mode$ac_tag in
12349  :[FHL]*:*);;
12350  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12351  :[FH]-) ac_tag=-:-;;
12352  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12353  esac
12354  ac_save_IFS=$IFS
12355  IFS=:
12356  set x $ac_tag
12357  IFS=$ac_save_IFS
12358  shift
12359  ac_file=$1
12360  shift
12361
12362  case $ac_mode in
12363  :L) ac_source=$1;;
12364  :[FH])
12365    ac_file_inputs=
12366    for ac_f
12367    do
12368      case $ac_f in
12369      -) ac_f="$ac_tmp/stdin";;
12370      *) # Look for the file first in the build tree, then in the source tree
12371	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12372	 # because $ac_f cannot contain `:'.
12373	 test -f "$ac_f" ||
12374	   case $ac_f in
12375	   [\\/$]*) false;;
12376	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12377	   esac ||
12378	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12379      esac
12380      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12381      as_fn_append ac_file_inputs " '$ac_f'"
12382    done
12383
12384    # Let's still pretend it is `configure' which instantiates (i.e., don't
12385    # use $as_me), people would be surprised to read:
12386    #    /* config.h.  Generated by config.status.  */
12387    configure_input='Generated from '`
12388	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12389	`' by configure.'
12390    if test x"$ac_file" != x-; then
12391      configure_input="$ac_file.  $configure_input"
12392      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12393$as_echo "$as_me: creating $ac_file" >&6;}
12394    fi
12395    # Neutralize special characters interpreted by sed in replacement strings.
12396    case $configure_input in #(
12397    *\&* | *\|* | *\\* )
12398       ac_sed_conf_input=`$as_echo "$configure_input" |
12399       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12400    *) ac_sed_conf_input=$configure_input;;
12401    esac
12402
12403    case $ac_tag in
12404    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12405      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12406    esac
12407    ;;
12408  esac
12409
12410  ac_dir=`$as_dirname -- "$ac_file" ||
12411$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12412	 X"$ac_file" : 'X\(//\)[^/]' \| \
12413	 X"$ac_file" : 'X\(//\)$' \| \
12414	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12415$as_echo X"$ac_file" |
12416    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12417	    s//\1/
12418	    q
12419	  }
12420	  /^X\(\/\/\)[^/].*/{
12421	    s//\1/
12422	    q
12423	  }
12424	  /^X\(\/\/\)$/{
12425	    s//\1/
12426	    q
12427	  }
12428	  /^X\(\/\).*/{
12429	    s//\1/
12430	    q
12431	  }
12432	  s/.*/./; q'`
12433  as_dir="$ac_dir"; as_fn_mkdir_p
12434  ac_builddir=.
12435
12436case "$ac_dir" in
12437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12438*)
12439  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12440  # A ".." for each directory in $ac_dir_suffix.
12441  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12442  case $ac_top_builddir_sub in
12443  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12444  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12445  esac ;;
12446esac
12447ac_abs_top_builddir=$ac_pwd
12448ac_abs_builddir=$ac_pwd$ac_dir_suffix
12449# for backward compatibility:
12450ac_top_builddir=$ac_top_build_prefix
12451
12452case $srcdir in
12453  .)  # We are building in place.
12454    ac_srcdir=.
12455    ac_top_srcdir=$ac_top_builddir_sub
12456    ac_abs_top_srcdir=$ac_pwd ;;
12457  [\\/]* | ?:[\\/]* )  # Absolute name.
12458    ac_srcdir=$srcdir$ac_dir_suffix;
12459    ac_top_srcdir=$srcdir
12460    ac_abs_top_srcdir=$srcdir ;;
12461  *) # Relative name.
12462    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12463    ac_top_srcdir=$ac_top_build_prefix$srcdir
12464    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12465esac
12466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12467
12468
12469  case $ac_mode in
12470  :F)
12471  #
12472  # CONFIG_FILE
12473  #
12474
12475  case $INSTALL in
12476  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12477  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12478  esac
12479  ac_MKDIR_P=$MKDIR_P
12480  case $MKDIR_P in
12481  [\\/$]* | ?:[\\/]* ) ;;
12482  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12483  esac
12484_ACEOF
12485
12486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12487# If the template does not know about datarootdir, expand it.
12488# FIXME: This hack should be removed a few years after 2.60.
12489ac_datarootdir_hack=; ac_datarootdir_seen=
12490ac_sed_dataroot='
12491/datarootdir/ {
12492  p
12493  q
12494}
12495/@datadir@/p
12496/@docdir@/p
12497/@infodir@/p
12498/@localedir@/p
12499/@mandir@/p'
12500case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12501*datarootdir*) ac_datarootdir_seen=yes;;
12502*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12503  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12504$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12505_ACEOF
12506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12507  ac_datarootdir_hack='
12508  s&@datadir@&$datadir&g
12509  s&@docdir@&$docdir&g
12510  s&@infodir@&$infodir&g
12511  s&@localedir@&$localedir&g
12512  s&@mandir@&$mandir&g
12513  s&\\\${datarootdir}&$datarootdir&g' ;;
12514esac
12515_ACEOF
12516
12517# Neutralize VPATH when `$srcdir' = `.'.
12518# Shell code in configure.ac might set extrasub.
12519# FIXME: do we really want to maintain this feature?
12520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12521ac_sed_extra="$ac_vpsub
12522$extrasub
12523_ACEOF
12524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12525:t
12526/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12527s|@configure_input@|$ac_sed_conf_input|;t t
12528s&@top_builddir@&$ac_top_builddir_sub&;t t
12529s&@top_build_prefix@&$ac_top_build_prefix&;t t
12530s&@srcdir@&$ac_srcdir&;t t
12531s&@abs_srcdir@&$ac_abs_srcdir&;t t
12532s&@top_srcdir@&$ac_top_srcdir&;t t
12533s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12534s&@builddir@&$ac_builddir&;t t
12535s&@abs_builddir@&$ac_abs_builddir&;t t
12536s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12537s&@INSTALL@&$ac_INSTALL&;t t
12538s&@MKDIR_P@&$ac_MKDIR_P&;t t
12539$ac_datarootdir_hack
12540"
12541eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12542  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12543
12544test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12545  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12546  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12547      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12548  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12549which seems to be undefined.  Please make sure it is defined" >&5
12550$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12551which seems to be undefined.  Please make sure it is defined" >&2;}
12552
12553  rm -f "$ac_tmp/stdin"
12554  case $ac_file in
12555  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12556  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12557  esac \
12558  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12559 ;;
12560  :H)
12561  #
12562  # CONFIG_HEADER
12563  #
12564  if test x"$ac_file" != x-; then
12565    {
12566      $as_echo "/* $configure_input  */" \
12567      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12568    } >"$ac_tmp/config.h" \
12569      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12570    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12571      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12572$as_echo "$as_me: $ac_file is unchanged" >&6;}
12573    else
12574      rm -f "$ac_file"
12575      mv "$ac_tmp/config.h" "$ac_file" \
12576	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12577    fi
12578  else
12579    $as_echo "/* $configure_input  */" \
12580      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12581      || as_fn_error $? "could not create -" "$LINENO" 5
12582  fi
12583# Compute "$ac_file"'s index in $config_headers.
12584_am_arg="$ac_file"
12585_am_stamp_count=1
12586for _am_header in $config_headers :; do
12587  case $_am_header in
12588    $_am_arg | $_am_arg:* )
12589      break ;;
12590    * )
12591      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12592  esac
12593done
12594echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12595$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12596	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12597	 X"$_am_arg" : 'X\(//\)$' \| \
12598	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12599$as_echo X"$_am_arg" |
12600    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12601	    s//\1/
12602	    q
12603	  }
12604	  /^X\(\/\/\)[^/].*/{
12605	    s//\1/
12606	    q
12607	  }
12608	  /^X\(\/\/\)$/{
12609	    s//\1/
12610	    q
12611	  }
12612	  /^X\(\/\).*/{
12613	    s//\1/
12614	    q
12615	  }
12616	  s/.*/./; q'`/stamp-h$_am_stamp_count
12617 ;;
12618
12619  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12620$as_echo "$as_me: executing $ac_file commands" >&6;}
12621 ;;
12622  esac
12623
12624
12625  case $ac_file$ac_mode in
12626    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12627  # Older Autoconf quotes --file arguments for eval, but not when files
12628  # are listed without --file.  Let's play safe and only enable the eval
12629  # if we detect the quoting.
12630  case $CONFIG_FILES in
12631  *\'*) eval set x "$CONFIG_FILES" ;;
12632  *)   set x $CONFIG_FILES ;;
12633  esac
12634  shift
12635  for mf
12636  do
12637    # Strip MF so we end up with the name of the file.
12638    mf=`echo "$mf" | sed -e 's/:.*$//'`
12639    # Check whether this is an Automake generated Makefile or not.
12640    # We used to match only the files named 'Makefile.in', but
12641    # some people rename them; so instead we look at the file content.
12642    # Grep'ing the first line is not enough: some people post-process
12643    # each Makefile.in and add a new line on top of each file to say so.
12644    # Grep'ing the whole file is not good either: AIX grep has a line
12645    # limit of 2048, but all sed's we know have understand at least 4000.
12646    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12647      dirpart=`$as_dirname -- "$mf" ||
12648$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12649	 X"$mf" : 'X\(//\)[^/]' \| \
12650	 X"$mf" : 'X\(//\)$' \| \
12651	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12652$as_echo X"$mf" |
12653    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12654	    s//\1/
12655	    q
12656	  }
12657	  /^X\(\/\/\)[^/].*/{
12658	    s//\1/
12659	    q
12660	  }
12661	  /^X\(\/\/\)$/{
12662	    s//\1/
12663	    q
12664	  }
12665	  /^X\(\/\).*/{
12666	    s//\1/
12667	    q
12668	  }
12669	  s/.*/./; q'`
12670    else
12671      continue
12672    fi
12673    # Extract the definition of DEPDIR, am__include, and am__quote
12674    # from the Makefile without running 'make'.
12675    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12676    test -z "$DEPDIR" && continue
12677    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12678    test -z "$am__include" && continue
12679    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12680    # Find all dependency output files, they are included files with
12681    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12682    # simplest approach to changing $(DEPDIR) to its actual value in the
12683    # expansion.
12684    for file in `sed -n "
12685      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12686	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12687      # Make sure the directory exists.
12688      test -f "$dirpart/$file" && continue
12689      fdir=`$as_dirname -- "$file" ||
12690$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12691	 X"$file" : 'X\(//\)[^/]' \| \
12692	 X"$file" : 'X\(//\)$' \| \
12693	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12694$as_echo X"$file" |
12695    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12696	    s//\1/
12697	    q
12698	  }
12699	  /^X\(\/\/\)[^/].*/{
12700	    s//\1/
12701	    q
12702	  }
12703	  /^X\(\/\/\)$/{
12704	    s//\1/
12705	    q
12706	  }
12707	  /^X\(\/\).*/{
12708	    s//\1/
12709	    q
12710	  }
12711	  s/.*/./; q'`
12712      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12713      # echo "creating $dirpart/$file"
12714      echo '# dummy' > "$dirpart/$file"
12715    done
12716  done
12717}
12718 ;;
12719
12720  esac
12721done # for ac_tag
12722
12723
12724as_fn_exit 0
12725_ACEOF
12726ac_clean_files=$ac_clean_files_save
12727
12728test $ac_write_fail = 0 ||
12729  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12730
12731
12732# configure is writing to config.log, and then calls config.status.
12733# config.status does its own redirection, appending to config.log.
12734# Unfortunately, on DOS this fails, as config.log is still kept open
12735# by configure, so config.status won't be able to write to it; its
12736# output is simply discarded.  So we exec the FD to /dev/null,
12737# effectively closing config.log, so it can be properly (re)opened and
12738# appended to by config.status.  When coming back to configure, we
12739# need to make the FD available again.
12740if test "$no_create" != yes; then
12741  ac_cs_success=:
12742  ac_config_status_args=
12743  test "$silent" = yes &&
12744    ac_config_status_args="$ac_config_status_args --quiet"
12745  exec 5>/dev/null
12746  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12747  exec 5>>config.log
12748  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12749  # would make configure fail if this is the last instruction.
12750  $ac_cs_success || as_fn_exit 1
12751fi
12752if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12753  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12754$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12755fi
12756
12757