configure revision f931275d
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for font-util 1.3.0.
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='font-util'
563PACKAGE_TARNAME='font-util'
564PACKAGE_VERSION='1.3.0'
565PACKAGE_STRING='font-util 1.3.0'
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
610MAPDIR
611fontrootdir
612AM_BACKSLASH
613AM_DEFAULT_VERBOSITY
614MAN_SUBSTS
615XORG_MAN_PAGE
616ADMIN_MAN_DIR
617DRIVER_MAN_DIR
618MISC_MAN_DIR
619FILE_MAN_DIR
620LIB_MAN_DIR
621APP_MAN_DIR
622ADMIN_MAN_SUFFIX
623DRIVER_MAN_SUFFIX
624MISC_MAN_SUFFIX
625FILE_MAN_SUFFIX
626LIB_MAN_SUFFIX
627APP_MAN_SUFFIX
628SED
629host_os
630host_vendor
631host_cpu
632host
633build_os
634build_vendor
635build_cpu
636build
637INSTALL_CMD
638PKG_CONFIG
639CHANGELOG_CMD
640STRICT_CFLAGS
641CWARNFLAGS
642BASE_CFLAGS
643EGREP
644GREP
645CPP
646am__fastdepCC_FALSE
647am__fastdepCC_TRUE
648CCDEPMODE
649AMDEPBACKSLASH
650AMDEP_FALSE
651AMDEP_TRUE
652am__quote
653am__include
654DEPDIR
655OBJEXT
656EXEEXT
657ac_ct_CC
658CPPFLAGS
659LDFLAGS
660CFLAGS
661CC
662MAINT
663MAINTAINER_MODE_FALSE
664MAINTAINER_MODE_TRUE
665am__untar
666am__tar
667AMTAR
668am__leading_dot
669SET_MAKE
670AWK
671mkdir_p
672MKDIR_P
673INSTALL_STRIP_PROGRAM
674STRIP
675install_sh
676MAKEINFO
677AUTOHEADER
678AUTOMAKE
679AUTOCONF
680ACLOCAL
681VERSION
682PACKAGE
683CYGPATH_W
684am__isrc
685INSTALL_DATA
686INSTALL_SCRIPT
687INSTALL_PROGRAM
688target_alias
689host_alias
690build_alias
691LIBS
692ECHO_T
693ECHO_N
694ECHO_C
695DEFS
696mandir
697localedir
698libdir
699psdir
700pdfdir
701dvidir
702htmldir
703infodir
704docdir
705oldincludedir
706includedir
707localstatedir
708sharedstatedir
709sysconfdir
710datadir
711datarootdir
712libexecdir
713sbindir
714bindir
715program_transform_name
716prefix
717exec_prefix
718PACKAGE_URL
719PACKAGE_BUGREPORT
720PACKAGE_STRING
721PACKAGE_VERSION
722PACKAGE_TARNAME
723PACKAGE_NAME
724PATH_SEPARATOR
725SHELL'
726ac_subst_files=''
727ac_user_opts='
728enable_option_checking
729enable_maintainer_mode
730enable_dependency_tracking
731enable_selective_werror
732enable_strict_compilation
733enable_silent_rules
734with_fontrootdir
735with_mapdir
736'
737      ac_precious_vars='build_alias
738host_alias
739target_alias
740CC
741CFLAGS
742LDFLAGS
743LIBS
744CPPFLAGS
745CPP
746PKG_CONFIG'
747
748
749# Initialize some variables set by options.
750ac_init_help=
751ac_init_version=false
752ac_unrecognized_opts=
753ac_unrecognized_sep=
754# The variables have the same names as the options, with
755# dashes changed to underlines.
756cache_file=/dev/null
757exec_prefix=NONE
758no_create=
759no_recursion=
760prefix=NONE
761program_prefix=NONE
762program_suffix=NONE
763program_transform_name=s,x,x,
764silent=
765site=
766srcdir=
767verbose=
768x_includes=NONE
769x_libraries=NONE
770
771# Installation directory options.
772# These are left unexpanded so users can "make install exec_prefix=/foo"
773# and all the variables that are supposed to be based on exec_prefix
774# by default will actually change.
775# Use braces instead of parens because sh, perl, etc. also accept them.
776# (The list follows the same order as the GNU Coding Standards.)
777bindir='${exec_prefix}/bin'
778sbindir='${exec_prefix}/sbin'
779libexecdir='${exec_prefix}/libexec'
780datarootdir='${prefix}/share'
781datadir='${datarootdir}'
782sysconfdir='${prefix}/etc'
783sharedstatedir='${prefix}/com'
784localstatedir='${prefix}/var'
785includedir='${prefix}/include'
786oldincludedir='/usr/include'
787docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788infodir='${datarootdir}/info'
789htmldir='${docdir}'
790dvidir='${docdir}'
791pdfdir='${docdir}'
792psdir='${docdir}'
793libdir='${exec_prefix}/lib'
794localedir='${datarootdir}/locale'
795mandir='${datarootdir}/man'
796
797ac_prev=
798ac_dashdash=
799for ac_option
800do
801  # If the previous option needs an argument, assign it.
802  if test -n "$ac_prev"; then
803    eval $ac_prev=\$ac_option
804    ac_prev=
805    continue
806  fi
807
808  case $ac_option in
809  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810  *=)   ac_optarg= ;;
811  *)    ac_optarg=yes ;;
812  esac
813
814  # Accept the important Cygnus configure options, so we can diagnose typos.
815
816  case $ac_dashdash$ac_option in
817  --)
818    ac_dashdash=yes ;;
819
820  -bindir | --bindir | --bindi | --bind | --bin | --bi)
821    ac_prev=bindir ;;
822  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823    bindir=$ac_optarg ;;
824
825  -build | --build | --buil | --bui | --bu)
826    ac_prev=build_alias ;;
827  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828    build_alias=$ac_optarg ;;
829
830  -cache-file | --cache-file | --cache-fil | --cache-fi \
831  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832    ac_prev=cache_file ;;
833  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835    cache_file=$ac_optarg ;;
836
837  --config-cache | -C)
838    cache_file=config.cache ;;
839
840  -datadir | --datadir | --datadi | --datad)
841    ac_prev=datadir ;;
842  -datadir=* | --datadir=* | --datadi=* | --datad=*)
843    datadir=$ac_optarg ;;
844
845  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846  | --dataroo | --dataro | --datar)
847    ac_prev=datarootdir ;;
848  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850    datarootdir=$ac_optarg ;;
851
852  -disable-* | --disable-*)
853    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854    # Reject names that are not valid shell variable names.
855    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856      as_fn_error $? "invalid feature name: $ac_useropt"
857    ac_useropt_orig=$ac_useropt
858    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859    case $ac_user_opts in
860      *"
861"enable_$ac_useropt"
862"*) ;;
863      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864	 ac_unrecognized_sep=', ';;
865    esac
866    eval enable_$ac_useropt=no ;;
867
868  -docdir | --docdir | --docdi | --doc | --do)
869    ac_prev=docdir ;;
870  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871    docdir=$ac_optarg ;;
872
873  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874    ac_prev=dvidir ;;
875  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876    dvidir=$ac_optarg ;;
877
878  -enable-* | --enable-*)
879    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880    # Reject names that are not valid shell variable names.
881    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882      as_fn_error $? "invalid feature name: $ac_useropt"
883    ac_useropt_orig=$ac_useropt
884    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885    case $ac_user_opts in
886      *"
887"enable_$ac_useropt"
888"*) ;;
889      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890	 ac_unrecognized_sep=', ';;
891    esac
892    eval enable_$ac_useropt=\$ac_optarg ;;
893
894  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896  | --exec | --exe | --ex)
897    ac_prev=exec_prefix ;;
898  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900  | --exec=* | --exe=* | --ex=*)
901    exec_prefix=$ac_optarg ;;
902
903  -gas | --gas | --ga | --g)
904    # Obsolete; use --with-gas.
905    with_gas=yes ;;
906
907  -help | --help | --hel | --he | -h)
908    ac_init_help=long ;;
909  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910    ac_init_help=recursive ;;
911  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912    ac_init_help=short ;;
913
914  -host | --host | --hos | --ho)
915    ac_prev=host_alias ;;
916  -host=* | --host=* | --hos=* | --ho=*)
917    host_alias=$ac_optarg ;;
918
919  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920    ac_prev=htmldir ;;
921  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922  | --ht=*)
923    htmldir=$ac_optarg ;;
924
925  -includedir | --includedir | --includedi | --included | --include \
926  | --includ | --inclu | --incl | --inc)
927    ac_prev=includedir ;;
928  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929  | --includ=* | --inclu=* | --incl=* | --inc=*)
930    includedir=$ac_optarg ;;
931
932  -infodir | --infodir | --infodi | --infod | --info | --inf)
933    ac_prev=infodir ;;
934  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935    infodir=$ac_optarg ;;
936
937  -libdir | --libdir | --libdi | --libd)
938    ac_prev=libdir ;;
939  -libdir=* | --libdir=* | --libdi=* | --libd=*)
940    libdir=$ac_optarg ;;
941
942  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943  | --libexe | --libex | --libe)
944    ac_prev=libexecdir ;;
945  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946  | --libexe=* | --libex=* | --libe=*)
947    libexecdir=$ac_optarg ;;
948
949  -localedir | --localedir | --localedi | --localed | --locale)
950    ac_prev=localedir ;;
951  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952    localedir=$ac_optarg ;;
953
954  -localstatedir | --localstatedir | --localstatedi | --localstated \
955  | --localstate | --localstat | --localsta | --localst | --locals)
956    ac_prev=localstatedir ;;
957  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959    localstatedir=$ac_optarg ;;
960
961  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962    ac_prev=mandir ;;
963  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964    mandir=$ac_optarg ;;
965
966  -nfp | --nfp | --nf)
967    # Obsolete; use --without-fp.
968    with_fp=no ;;
969
970  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971  | --no-cr | --no-c | -n)
972    no_create=yes ;;
973
974  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976    no_recursion=yes ;;
977
978  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980  | --oldin | --oldi | --old | --ol | --o)
981    ac_prev=oldincludedir ;;
982  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985    oldincludedir=$ac_optarg ;;
986
987  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988    ac_prev=prefix ;;
989  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990    prefix=$ac_optarg ;;
991
992  -program-prefix | --program-prefix | --program-prefi | --program-pref \
993  | --program-pre | --program-pr | --program-p)
994    ac_prev=program_prefix ;;
995  -program-prefix=* | --program-prefix=* | --program-prefi=* \
996  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997    program_prefix=$ac_optarg ;;
998
999  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000  | --program-suf | --program-su | --program-s)
1001    ac_prev=program_suffix ;;
1002  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004    program_suffix=$ac_optarg ;;
1005
1006  -program-transform-name | --program-transform-name \
1007  | --program-transform-nam | --program-transform-na \
1008  | --program-transform-n | --program-transform- \
1009  | --program-transform | --program-transfor \
1010  | --program-transfo | --program-transf \
1011  | --program-trans | --program-tran \
1012  | --progr-tra | --program-tr | --program-t)
1013    ac_prev=program_transform_name ;;
1014  -program-transform-name=* | --program-transform-name=* \
1015  | --program-transform-nam=* | --program-transform-na=* \
1016  | --program-transform-n=* | --program-transform-=* \
1017  | --program-transform=* | --program-transfor=* \
1018  | --program-transfo=* | --program-transf=* \
1019  | --program-trans=* | --program-tran=* \
1020  | --progr-tra=* | --program-tr=* | --program-t=*)
1021    program_transform_name=$ac_optarg ;;
1022
1023  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024    ac_prev=pdfdir ;;
1025  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026    pdfdir=$ac_optarg ;;
1027
1028  -psdir | --psdir | --psdi | --psd | --ps)
1029    ac_prev=psdir ;;
1030  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031    psdir=$ac_optarg ;;
1032
1033  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034  | -silent | --silent | --silen | --sile | --sil)
1035    silent=yes ;;
1036
1037  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038    ac_prev=sbindir ;;
1039  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040  | --sbi=* | --sb=*)
1041    sbindir=$ac_optarg ;;
1042
1043  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045  | --sharedst | --shareds | --shared | --share | --shar \
1046  | --sha | --sh)
1047    ac_prev=sharedstatedir ;;
1048  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051  | --sha=* | --sh=*)
1052    sharedstatedir=$ac_optarg ;;
1053
1054  -site | --site | --sit)
1055    ac_prev=site ;;
1056  -site=* | --site=* | --sit=*)
1057    site=$ac_optarg ;;
1058
1059  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060    ac_prev=srcdir ;;
1061  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062    srcdir=$ac_optarg ;;
1063
1064  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065  | --syscon | --sysco | --sysc | --sys | --sy)
1066    ac_prev=sysconfdir ;;
1067  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069    sysconfdir=$ac_optarg ;;
1070
1071  -target | --target | --targe | --targ | --tar | --ta | --t)
1072    ac_prev=target_alias ;;
1073  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074    target_alias=$ac_optarg ;;
1075
1076  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077    verbose=yes ;;
1078
1079  -version | --version | --versio | --versi | --vers | -V)
1080    ac_init_version=: ;;
1081
1082  -with-* | --with-*)
1083    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086      as_fn_error $? "invalid package name: $ac_useropt"
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"with_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval with_$ac_useropt=\$ac_optarg ;;
1097
1098  -without-* | --without-*)
1099    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100    # Reject names that are not valid shell variable names.
1101    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102      as_fn_error $? "invalid package name: $ac_useropt"
1103    ac_useropt_orig=$ac_useropt
1104    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105    case $ac_user_opts in
1106      *"
1107"with_$ac_useropt"
1108"*) ;;
1109      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110	 ac_unrecognized_sep=', ';;
1111    esac
1112    eval with_$ac_useropt=no ;;
1113
1114  --x)
1115    # Obsolete; use --with-x.
1116    with_x=yes ;;
1117
1118  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119  | --x-incl | --x-inc | --x-in | --x-i)
1120    ac_prev=x_includes ;;
1121  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123    x_includes=$ac_optarg ;;
1124
1125  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127    ac_prev=x_libraries ;;
1128  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130    x_libraries=$ac_optarg ;;
1131
1132  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1133Try \`$0 --help' for more information"
1134    ;;
1135
1136  *=*)
1137    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138    # Reject names that are not valid shell variable names.
1139    case $ac_envvar in #(
1140      '' | [0-9]* | *[!_$as_cr_alnum]* )
1141      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1142    esac
1143    eval $ac_envvar=\$ac_optarg
1144    export $ac_envvar ;;
1145
1146  *)
1147    # FIXME: should be removed in autoconf 3.0.
1148    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1152    ;;
1153
1154  esac
1155done
1156
1157if test -n "$ac_prev"; then
1158  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159  as_fn_error $? "missing argument to $ac_option"
1160fi
1161
1162if test -n "$ac_unrecognized_opts"; then
1163  case $enable_option_checking in
1164    no) ;;
1165    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1166    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167  esac
1168fi
1169
1170# Check all directory arguments for consistency.
1171for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172		datadir sysconfdir sharedstatedir localstatedir includedir \
1173		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174		libdir localedir mandir
1175do
1176  eval ac_val=\$$ac_var
1177  # Remove trailing slashes.
1178  case $ac_val in
1179    */ )
1180      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181      eval $ac_var=\$ac_val;;
1182  esac
1183  # Be sure to have absolute directory names.
1184  case $ac_val in
1185    [\\/$]* | ?:[\\/]* )  continue;;
1186    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187  esac
1188  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1189done
1190
1191# There might be people who depend on the old broken behavior: `$host'
1192# used to hold the argument of --host etc.
1193# FIXME: To remove some day.
1194build=$build_alias
1195host=$host_alias
1196target=$target_alias
1197
1198# FIXME: To remove some day.
1199if test "x$host_alias" != x; then
1200  if test "x$build_alias" = x; then
1201    cross_compiling=maybe
1202    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1203    If a cross compiler is detected then cross compile mode will be used" >&2
1204  elif test "x$build_alias" != "x$host_alias"; then
1205    cross_compiling=yes
1206  fi
1207fi
1208
1209ac_tool_prefix=
1210test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211
1212test "$silent" = yes && exec 6>/dev/null
1213
1214
1215ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216ac_ls_di=`ls -di .` &&
1217ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218  as_fn_error $? "working directory cannot be determined"
1219test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220  as_fn_error $? "pwd does not report name of working directory"
1221
1222
1223# Find the source files, if location was not specified.
1224if test -z "$srcdir"; then
1225  ac_srcdir_defaulted=yes
1226  # Try the directory containing this script, then the parent directory.
1227  ac_confdir=`$as_dirname -- "$as_myself" ||
1228$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229	 X"$as_myself" : 'X\(//\)[^/]' \| \
1230	 X"$as_myself" : 'X\(//\)$' \| \
1231	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232$as_echo X"$as_myself" |
1233    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234	    s//\1/
1235	    q
1236	  }
1237	  /^X\(\/\/\)[^/].*/{
1238	    s//\1/
1239	    q
1240	  }
1241	  /^X\(\/\/\)$/{
1242	    s//\1/
1243	    q
1244	  }
1245	  /^X\(\/\).*/{
1246	    s//\1/
1247	    q
1248	  }
1249	  s/.*/./; q'`
1250  srcdir=$ac_confdir
1251  if test ! -r "$srcdir/$ac_unique_file"; then
1252    srcdir=..
1253  fi
1254else
1255  ac_srcdir_defaulted=no
1256fi
1257if test ! -r "$srcdir/$ac_unique_file"; then
1258  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1260fi
1261ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262ac_abs_confdir=`(
1263	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1264	pwd)`
1265# When building in place, set srcdir=.
1266if test "$ac_abs_confdir" = "$ac_pwd"; then
1267  srcdir=.
1268fi
1269# Remove unnecessary trailing slashes from srcdir.
1270# Double slashes in file names in object file debugging info
1271# mess up M-x gdb in Emacs.
1272case $srcdir in
1273*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274esac
1275for ac_var in $ac_precious_vars; do
1276  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277  eval ac_env_${ac_var}_value=\$${ac_var}
1278  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280done
1281
1282#
1283# Report the --help message.
1284#
1285if test "$ac_init_help" = "long"; then
1286  # Omit some internal or obsolete options to make the list less imposing.
1287  # This message is too long to be a string in the A/UX 3.1 sh.
1288  cat <<_ACEOF
1289\`configure' configures font-util 1.3.0 to adapt to many kinds of systems.
1290
1291Usage: $0 [OPTION]... [VAR=VALUE]...
1292
1293To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294VAR=VALUE.  See below for descriptions of some of the useful variables.
1295
1296Defaults for the options are specified in brackets.
1297
1298Configuration:
1299  -h, --help              display this help and exit
1300      --help=short        display options specific to this package
1301      --help=recursive    display the short help of all the included packages
1302  -V, --version           display version information and exit
1303  -q, --quiet, --silent   do not print \`checking ...' messages
1304      --cache-file=FILE   cache test results in FILE [disabled]
1305  -C, --config-cache      alias for \`--cache-file=config.cache'
1306  -n, --no-create         do not create output files
1307      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1308
1309Installation directories:
1310  --prefix=PREFIX         install architecture-independent files in PREFIX
1311                          [$ac_default_prefix]
1312  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1313                          [PREFIX]
1314
1315By default, \`make install' will install all the files in
1316\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1317an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318for instance \`--prefix=\$HOME'.
1319
1320For better control, use the options below.
1321
1322Fine tuning of the installation directories:
1323  --bindir=DIR            user executables [EPREFIX/bin]
1324  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1325  --libexecdir=DIR        program executables [EPREFIX/libexec]
1326  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1327  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1328  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1329  --libdir=DIR            object code libraries [EPREFIX/lib]
1330  --includedir=DIR        C header files [PREFIX/include]
1331  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1332  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1333  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1334  --infodir=DIR           info documentation [DATAROOTDIR/info]
1335  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1336  --mandir=DIR            man documentation [DATAROOTDIR/man]
1337  --docdir=DIR            documentation root [DATAROOTDIR/doc/font-util]
1338  --htmldir=DIR           html documentation [DOCDIR]
1339  --dvidir=DIR            dvi documentation [DOCDIR]
1340  --pdfdir=DIR            pdf documentation [DOCDIR]
1341  --psdir=DIR             ps documentation [DOCDIR]
1342_ACEOF
1343
1344  cat <<\_ACEOF
1345
1346Program names:
1347  --program-prefix=PREFIX            prepend PREFIX to installed program names
1348  --program-suffix=SUFFIX            append SUFFIX to installed program names
1349  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1350
1351System types:
1352  --build=BUILD     configure for building on BUILD [guessed]
1353  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1354_ACEOF
1355fi
1356
1357if test -n "$ac_init_help"; then
1358  case $ac_init_help in
1359     short | recursive ) echo "Configuration of font-util 1.3.0:";;
1360   esac
1361  cat <<\_ACEOF
1362
1363Optional Features:
1364  --disable-option-checking  ignore unrecognized --enable/--with options
1365  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1366  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1367  --enable-maintainer-mode  enable make rules and dependencies not useful
1368			  (and sometimes confusing) to the casual installer
1369  --disable-dependency-tracking  speeds up one-time build
1370  --enable-dependency-tracking   do not reject slow dependency extractors
1371  --disable-selective-werror
1372                          Turn off selective compiler errors. (default:
1373                          enabled)
1374  --enable-strict-compilation
1375                          Enable all warnings from compiler and make them
1376                          errors (default: disabled)
1377  --enable-silent-rules          less verbose build output (undo: `make V=1')
1378  --disable-silent-rules         verbose build output (undo: `make V=0')
1379
1380Optional Packages:
1381  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1382  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1383  --with-fontrootdir=DIR  Path to parent of font subdirectories
1384                          [DATADIR/fonts/X11]
1385  --with-mapdir=DIR       Path to install font maps [FONTROOTDIR/util]
1386
1387Some influential environment variables:
1388  CC          C compiler command
1389  CFLAGS      C compiler flags
1390  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1391              nonstandard directory <lib dir>
1392  LIBS        libraries to pass to the linker, e.g. -l<library>
1393  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1394              you have headers in a nonstandard directory <include dir>
1395  CPP         C preprocessor
1396  PKG_CONFIG  path to pkg-config utility
1397
1398Use these variables to override the choices made by `configure' or to help
1399it to find libraries and programs with nonstandard names/locations.
1400
1401Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1402_ACEOF
1403ac_status=$?
1404fi
1405
1406if test "$ac_init_help" = "recursive"; then
1407  # If there are subdirs, report their specific --help.
1408  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409    test -d "$ac_dir" ||
1410      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411      continue
1412    ac_builddir=.
1413
1414case "$ac_dir" in
1415.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416*)
1417  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418  # A ".." for each directory in $ac_dir_suffix.
1419  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420  case $ac_top_builddir_sub in
1421  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423  esac ;;
1424esac
1425ac_abs_top_builddir=$ac_pwd
1426ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427# for backward compatibility:
1428ac_top_builddir=$ac_top_build_prefix
1429
1430case $srcdir in
1431  .)  # We are building in place.
1432    ac_srcdir=.
1433    ac_top_srcdir=$ac_top_builddir_sub
1434    ac_abs_top_srcdir=$ac_pwd ;;
1435  [\\/]* | ?:[\\/]* )  # Absolute name.
1436    ac_srcdir=$srcdir$ac_dir_suffix;
1437    ac_top_srcdir=$srcdir
1438    ac_abs_top_srcdir=$srcdir ;;
1439  *) # Relative name.
1440    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441    ac_top_srcdir=$ac_top_build_prefix$srcdir
1442    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443esac
1444ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445
1446    cd "$ac_dir" || { ac_status=$?; continue; }
1447    # Check for guested configure.
1448    if test -f "$ac_srcdir/configure.gnu"; then
1449      echo &&
1450      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451    elif test -f "$ac_srcdir/configure"; then
1452      echo &&
1453      $SHELL "$ac_srcdir/configure" --help=recursive
1454    else
1455      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456    fi || ac_status=$?
1457    cd "$ac_pwd" || { ac_status=$?; break; }
1458  done
1459fi
1460
1461test -n "$ac_init_help" && exit $ac_status
1462if $ac_init_version; then
1463  cat <<\_ACEOF
1464font-util configure 1.3.0
1465generated by GNU Autoconf 2.68
1466
1467Copyright (C) 2010 Free Software Foundation, Inc.
1468This configure script is free software; the Free Software Foundation
1469gives unlimited permission to copy, distribute and modify it.
1470_ACEOF
1471  exit
1472fi
1473
1474## ------------------------ ##
1475## Autoconf initialization. ##
1476## ------------------------ ##
1477
1478# ac_fn_c_try_compile LINENO
1479# --------------------------
1480# Try to compile conftest.$ac_ext, and return whether this succeeded.
1481ac_fn_c_try_compile ()
1482{
1483  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484  rm -f conftest.$ac_objext
1485  if { { ac_try="$ac_compile"
1486case "(($ac_try" in
1487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488  *) ac_try_echo=$ac_try;;
1489esac
1490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491$as_echo "$ac_try_echo"; } >&5
1492  (eval "$ac_compile") 2>conftest.err
1493  ac_status=$?
1494  if test -s conftest.err; then
1495    grep -v '^ *+' conftest.err >conftest.er1
1496    cat conftest.er1 >&5
1497    mv -f conftest.er1 conftest.err
1498  fi
1499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500  test $ac_status = 0; } && {
1501	 test -z "$ac_c_werror_flag" ||
1502	 test ! -s conftest.err
1503       } && test -s conftest.$ac_objext; then :
1504  ac_retval=0
1505else
1506  $as_echo "$as_me: failed program was:" >&5
1507sed 's/^/| /' conftest.$ac_ext >&5
1508
1509	ac_retval=1
1510fi
1511  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512  as_fn_set_status $ac_retval
1513
1514} # ac_fn_c_try_compile
1515
1516# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1517# ---------------------------------------------
1518# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1519# accordingly.
1520ac_fn_c_check_decl ()
1521{
1522  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523  as_decl_name=`echo $2|sed 's/ *(.*//'`
1524  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1526$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1527if eval \${$3+:} false; then :
1528  $as_echo_n "(cached) " >&6
1529else
1530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1531/* end confdefs.h.  */
1532$4
1533int
1534main ()
1535{
1536#ifndef $as_decl_name
1537#ifdef __cplusplus
1538  (void) $as_decl_use;
1539#else
1540  (void) $as_decl_name;
1541#endif
1542#endif
1543
1544  ;
1545  return 0;
1546}
1547_ACEOF
1548if ac_fn_c_try_compile "$LINENO"; then :
1549  eval "$3=yes"
1550else
1551  eval "$3=no"
1552fi
1553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1554fi
1555eval ac_res=\$$3
1556	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1557$as_echo "$ac_res" >&6; }
1558  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559
1560} # ac_fn_c_check_decl
1561
1562# ac_fn_c_try_cpp LINENO
1563# ----------------------
1564# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_cpp ()
1566{
1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568  if { { ac_try="$ac_cpp conftest.$ac_ext"
1569case "(($ac_try" in
1570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571  *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576  ac_status=$?
1577  if test -s conftest.err; then
1578    grep -v '^ *+' conftest.err >conftest.er1
1579    cat conftest.er1 >&5
1580    mv -f conftest.er1 conftest.err
1581  fi
1582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583  test $ac_status = 0; } > conftest.i && {
1584	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1585	 test ! -s conftest.err
1586       }; then :
1587  ac_retval=0
1588else
1589  $as_echo "$as_me: failed program was:" >&5
1590sed 's/^/| /' conftest.$ac_ext >&5
1591
1592    ac_retval=1
1593fi
1594  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595  as_fn_set_status $ac_retval
1596
1597} # ac_fn_c_try_cpp
1598
1599# ac_fn_c_try_run LINENO
1600# ----------------------
1601# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1602# that executables *can* be run.
1603ac_fn_c_try_run ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  if { { ac_try="$ac_link"
1607case "(($ac_try" in
1608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609  *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613  (eval "$ac_link") 2>&5
1614  ac_status=$?
1615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1617  { { case "(($ac_try" in
1618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619  *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623  (eval "$ac_try") 2>&5
1624  ac_status=$?
1625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626  test $ac_status = 0; }; }; then :
1627  ac_retval=0
1628else
1629  $as_echo "$as_me: program exited with status $ac_status" >&5
1630       $as_echo "$as_me: failed program was:" >&5
1631sed 's/^/| /' conftest.$ac_ext >&5
1632
1633       ac_retval=$ac_status
1634fi
1635  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637  as_fn_set_status $ac_retval
1638
1639} # ac_fn_c_try_run
1640
1641# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642# -------------------------------------------------------
1643# Tests whether HEADER exists and can be compiled using the include files in
1644# INCLUDES, setting the cache variable VAR accordingly.
1645ac_fn_c_check_header_compile ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649$as_echo_n "checking for $2... " >&6; }
1650if eval \${$3+:} false; then :
1651  $as_echo_n "(cached) " >&6
1652else
1653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h.  */
1655$4
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_compile "$LINENO"; then :
1659  eval "$3=yes"
1660else
1661  eval "$3=no"
1662fi
1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664fi
1665eval ac_res=\$$3
1666	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669
1670} # ac_fn_c_check_header_compile
1671
1672# ac_fn_c_try_link LINENO
1673# -----------------------
1674# Try to link conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_link ()
1676{
1677  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678  rm -f conftest.$ac_objext conftest$ac_exeext
1679  if { { ac_try="$ac_link"
1680case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_link") 2>conftest.err
1687  ac_status=$?
1688  if test -s conftest.err; then
1689    grep -v '^ *+' conftest.err >conftest.er1
1690    cat conftest.er1 >&5
1691    mv -f conftest.er1 conftest.err
1692  fi
1693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694  test $ac_status = 0; } && {
1695	 test -z "$ac_c_werror_flag" ||
1696	 test ! -s conftest.err
1697       } && test -s conftest$ac_exeext && {
1698	 test "$cross_compiling" = yes ||
1699	 $as_test_x conftest$ac_exeext
1700       }; then :
1701  ac_retval=0
1702else
1703  $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706	ac_retval=1
1707fi
1708  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710  # interfere with the next link command; also delete a directory that is
1711  # left behind by Apple's compiler.  We do this before executing the actions.
1712  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_link
1717cat >config.log <<_ACEOF
1718This file contains any messages produced by compilers while
1719running configure, to aid debugging if configure makes a mistake.
1720
1721It was created by font-util $as_me 1.3.0, which was
1722generated by GNU Autoconf 2.68.  Invocation command line was
1723
1724  $ $0 $@
1725
1726_ACEOF
1727exec 5>>config.log
1728{
1729cat <<_ASUNAME
1730## --------- ##
1731## Platform. ##
1732## --------- ##
1733
1734hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1735uname -m = `(uname -m) 2>/dev/null || echo unknown`
1736uname -r = `(uname -r) 2>/dev/null || echo unknown`
1737uname -s = `(uname -s) 2>/dev/null || echo unknown`
1738uname -v = `(uname -v) 2>/dev/null || echo unknown`
1739
1740/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1741/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1742
1743/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1744/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1745/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1746/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1747/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1748/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1749/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1750
1751_ASUNAME
1752
1753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754for as_dir in $PATH
1755do
1756  IFS=$as_save_IFS
1757  test -z "$as_dir" && as_dir=.
1758    $as_echo "PATH: $as_dir"
1759  done
1760IFS=$as_save_IFS
1761
1762} >&5
1763
1764cat >&5 <<_ACEOF
1765
1766
1767## ----------- ##
1768## Core tests. ##
1769## ----------- ##
1770
1771_ACEOF
1772
1773
1774# Keep a trace of the command line.
1775# Strip out --no-create and --no-recursion so they do not pile up.
1776# Strip out --silent because we don't want to record it for future runs.
1777# Also quote any args containing shell meta-characters.
1778# Make two passes to allow for proper duplicate-argument suppression.
1779ac_configure_args=
1780ac_configure_args0=
1781ac_configure_args1=
1782ac_must_keep_next=false
1783for ac_pass in 1 2
1784do
1785  for ac_arg
1786  do
1787    case $ac_arg in
1788    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1789    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1790    | -silent | --silent | --silen | --sile | --sil)
1791      continue ;;
1792    *\'*)
1793      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1794    esac
1795    case $ac_pass in
1796    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1797    2)
1798      as_fn_append ac_configure_args1 " '$ac_arg'"
1799      if test $ac_must_keep_next = true; then
1800	ac_must_keep_next=false # Got value, back to normal.
1801      else
1802	case $ac_arg in
1803	  *=* | --config-cache | -C | -disable-* | --disable-* \
1804	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1805	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1806	  | -with-* | --with-* | -without-* | --without-* | --x)
1807	    case "$ac_configure_args0 " in
1808	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1809	    esac
1810	    ;;
1811	  -* ) ac_must_keep_next=true ;;
1812	esac
1813      fi
1814      as_fn_append ac_configure_args " '$ac_arg'"
1815      ;;
1816    esac
1817  done
1818done
1819{ ac_configure_args0=; unset ac_configure_args0;}
1820{ ac_configure_args1=; unset ac_configure_args1;}
1821
1822# When interrupted or exit'd, cleanup temporary files, and complete
1823# config.log.  We remove comments because anyway the quotes in there
1824# would cause problems or look ugly.
1825# WARNING: Use '\'' to represent an apostrophe within the trap.
1826# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1827trap 'exit_status=$?
1828  # Save into config.log some information that might help in debugging.
1829  {
1830    echo
1831
1832    $as_echo "## ---------------- ##
1833## Cache variables. ##
1834## ---------------- ##"
1835    echo
1836    # The following way of writing the cache mishandles newlines in values,
1837(
1838  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1839    eval ac_val=\$$ac_var
1840    case $ac_val in #(
1841    *${as_nl}*)
1842      case $ac_var in #(
1843      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1844$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1845      esac
1846      case $ac_var in #(
1847      _ | IFS | as_nl) ;; #(
1848      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1849      *) { eval $ac_var=; unset $ac_var;} ;;
1850      esac ;;
1851    esac
1852  done
1853  (set) 2>&1 |
1854    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1855    *${as_nl}ac_space=\ *)
1856      sed -n \
1857	"s/'\''/'\''\\\\'\'''\''/g;
1858	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1859      ;; #(
1860    *)
1861      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1862      ;;
1863    esac |
1864    sort
1865)
1866    echo
1867
1868    $as_echo "## ----------------- ##
1869## Output variables. ##
1870## ----------------- ##"
1871    echo
1872    for ac_var in $ac_subst_vars
1873    do
1874      eval ac_val=\$$ac_var
1875      case $ac_val in
1876      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877      esac
1878      $as_echo "$ac_var='\''$ac_val'\''"
1879    done | sort
1880    echo
1881
1882    if test -n "$ac_subst_files"; then
1883      $as_echo "## ------------------- ##
1884## File substitutions. ##
1885## ------------------- ##"
1886      echo
1887      for ac_var in $ac_subst_files
1888      do
1889	eval ac_val=\$$ac_var
1890	case $ac_val in
1891	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1892	esac
1893	$as_echo "$ac_var='\''$ac_val'\''"
1894      done | sort
1895      echo
1896    fi
1897
1898    if test -s confdefs.h; then
1899      $as_echo "## ----------- ##
1900## confdefs.h. ##
1901## ----------- ##"
1902      echo
1903      cat confdefs.h
1904      echo
1905    fi
1906    test "$ac_signal" != 0 &&
1907      $as_echo "$as_me: caught signal $ac_signal"
1908    $as_echo "$as_me: exit $exit_status"
1909  } >&5
1910  rm -f core *.core core.conftest.* &&
1911    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1912    exit $exit_status
1913' 0
1914for ac_signal in 1 2 13 15; do
1915  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1916done
1917ac_signal=0
1918
1919# confdefs.h avoids OS command line length limits that DEFS can exceed.
1920rm -f -r conftest* confdefs.h
1921
1922$as_echo "/* confdefs.h */" > confdefs.h
1923
1924# Predefined preprocessor variables.
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_NAME "$PACKAGE_NAME"
1928_ACEOF
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1932_ACEOF
1933
1934cat >>confdefs.h <<_ACEOF
1935#define PACKAGE_VERSION "$PACKAGE_VERSION"
1936_ACEOF
1937
1938cat >>confdefs.h <<_ACEOF
1939#define PACKAGE_STRING "$PACKAGE_STRING"
1940_ACEOF
1941
1942cat >>confdefs.h <<_ACEOF
1943#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1944_ACEOF
1945
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_URL "$PACKAGE_URL"
1948_ACEOF
1949
1950
1951# Let the site file select an alternate cache file if it wants to.
1952# Prefer an explicitly selected file to automatically selected ones.
1953ac_site_file1=NONE
1954ac_site_file2=NONE
1955if test -n "$CONFIG_SITE"; then
1956  # We do not want a PATH search for config.site.
1957  case $CONFIG_SITE in #((
1958    -*)  ac_site_file1=./$CONFIG_SITE;;
1959    */*) ac_site_file1=$CONFIG_SITE;;
1960    *)   ac_site_file1=./$CONFIG_SITE;;
1961  esac
1962elif test "x$prefix" != xNONE; then
1963  ac_site_file1=$prefix/share/config.site
1964  ac_site_file2=$prefix/etc/config.site
1965else
1966  ac_site_file1=$ac_default_prefix/share/config.site
1967  ac_site_file2=$ac_default_prefix/etc/config.site
1968fi
1969for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1970do
1971  test "x$ac_site_file" = xNONE && continue
1972  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1973    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1974$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1975    sed 's/^/| /' "$ac_site_file" >&5
1976    . "$ac_site_file" \
1977      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1979as_fn_error $? "failed to load site script $ac_site_file
1980See \`config.log' for more details" "$LINENO" 5; }
1981  fi
1982done
1983
1984if test -r "$cache_file"; then
1985  # Some versions of bash will fail to source /dev/null (special files
1986  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1987  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1988    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1989$as_echo "$as_me: loading cache $cache_file" >&6;}
1990    case $cache_file in
1991      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1992      *)                      . "./$cache_file";;
1993    esac
1994  fi
1995else
1996  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1997$as_echo "$as_me: creating cache $cache_file" >&6;}
1998  >$cache_file
1999fi
2000
2001# Check that the precious variables saved in the cache have kept the same
2002# value.
2003ac_cache_corrupted=false
2004for ac_var in $ac_precious_vars; do
2005  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2006  eval ac_new_set=\$ac_env_${ac_var}_set
2007  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2008  eval ac_new_val=\$ac_env_${ac_var}_value
2009  case $ac_old_set,$ac_new_set in
2010    set,)
2011      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2012$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2013      ac_cache_corrupted=: ;;
2014    ,set)
2015      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2016$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2017      ac_cache_corrupted=: ;;
2018    ,);;
2019    *)
2020      if test "x$ac_old_val" != "x$ac_new_val"; then
2021	# differences in whitespace do not lead to failure.
2022	ac_old_val_w=`echo x $ac_old_val`
2023	ac_new_val_w=`echo x $ac_new_val`
2024	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2025	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2026$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2027	  ac_cache_corrupted=:
2028	else
2029	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2030$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2031	  eval $ac_var=\$ac_old_val
2032	fi
2033	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2034$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2035	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2036$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2037      fi;;
2038  esac
2039  # Pass precious variables to config.status.
2040  if test "$ac_new_set" = set; then
2041    case $ac_new_val in
2042    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2043    *) ac_arg=$ac_var=$ac_new_val ;;
2044    esac
2045    case " $ac_configure_args " in
2046      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2047      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2048    esac
2049  fi
2050done
2051if $ac_cache_corrupted; then
2052  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2054  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2055$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2056  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2057fi
2058## -------------------- ##
2059## Main body of script. ##
2060## -------------------- ##
2061
2062ac_ext=c
2063ac_cpp='$CPP $CPPFLAGS'
2064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067
2068
2069
2070ac_config_headers="$ac_config_headers config.h"
2071
2072
2073# Initialize Automake
2074am__api_version='1.11'
2075
2076ac_aux_dir=
2077for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2078  if test -f "$ac_dir/install-sh"; then
2079    ac_aux_dir=$ac_dir
2080    ac_install_sh="$ac_aux_dir/install-sh -c"
2081    break
2082  elif test -f "$ac_dir/install.sh"; then
2083    ac_aux_dir=$ac_dir
2084    ac_install_sh="$ac_aux_dir/install.sh -c"
2085    break
2086  elif test -f "$ac_dir/shtool"; then
2087    ac_aux_dir=$ac_dir
2088    ac_install_sh="$ac_aux_dir/shtool install -c"
2089    break
2090  fi
2091done
2092if test -z "$ac_aux_dir"; then
2093  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2094fi
2095
2096# These three variables are undocumented and unsupported,
2097# and are intended to be withdrawn in a future Autoconf release.
2098# They can cause serious problems if a builder's source tree is in a directory
2099# whose full name contains unusual characters.
2100ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2101ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2102ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2103
2104
2105# Find a good install program.  We prefer a C program (faster),
2106# so one script is as good as another.  But avoid the broken or
2107# incompatible versions:
2108# SysV /etc/install, /usr/sbin/install
2109# SunOS /usr/etc/install
2110# IRIX /sbin/install
2111# AIX /bin/install
2112# AmigaOS /C/install, which installs bootblocks on floppy discs
2113# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2114# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2115# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2116# OS/2's system install, which has a completely different semantic
2117# ./install, which can be erroneously created by make from ./install.sh.
2118# Reject install programs that cannot install multiple files.
2119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2120$as_echo_n "checking for a BSD-compatible install... " >&6; }
2121if test -z "$INSTALL"; then
2122if ${ac_cv_path_install+:} false; then :
2123  $as_echo_n "(cached) " >&6
2124else
2125  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126for as_dir in $PATH
2127do
2128  IFS=$as_save_IFS
2129  test -z "$as_dir" && as_dir=.
2130    # Account for people who put trailing slashes in PATH elements.
2131case $as_dir/ in #((
2132  ./ | .// | /[cC]/* | \
2133  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2134  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2135  /usr/ucb/* ) ;;
2136  *)
2137    # OSF1 and SCO ODT 3.0 have their own names for install.
2138    # Don't use installbsd from OSF since it installs stuff as root
2139    # by default.
2140    for ac_prog in ginstall scoinst install; do
2141      for ac_exec_ext in '' $ac_executable_extensions; do
2142	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2143	  if test $ac_prog = install &&
2144	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2145	    # AIX install.  It has an incompatible calling convention.
2146	    :
2147	  elif test $ac_prog = install &&
2148	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2149	    # program-specific install script used by HP pwplus--don't use.
2150	    :
2151	  else
2152	    rm -rf conftest.one conftest.two conftest.dir
2153	    echo one > conftest.one
2154	    echo two > conftest.two
2155	    mkdir conftest.dir
2156	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2157	      test -s conftest.one && test -s conftest.two &&
2158	      test -s conftest.dir/conftest.one &&
2159	      test -s conftest.dir/conftest.two
2160	    then
2161	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2162	      break 3
2163	    fi
2164	  fi
2165	fi
2166      done
2167    done
2168    ;;
2169esac
2170
2171  done
2172IFS=$as_save_IFS
2173
2174rm -rf conftest.one conftest.two conftest.dir
2175
2176fi
2177  if test "${ac_cv_path_install+set}" = set; then
2178    INSTALL=$ac_cv_path_install
2179  else
2180    # As a last resort, use the slow shell script.  Don't cache a
2181    # value for INSTALL within a source directory, because that will
2182    # break other packages using the cache if that directory is
2183    # removed, or if the value is a relative name.
2184    INSTALL=$ac_install_sh
2185  fi
2186fi
2187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2188$as_echo "$INSTALL" >&6; }
2189
2190# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2191# It thinks the first close brace ends the variable substitution.
2192test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2193
2194test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2195
2196test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2197
2198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2199$as_echo_n "checking whether build environment is sane... " >&6; }
2200# Just in case
2201sleep 1
2202echo timestamp > conftest.file
2203# Reject unsafe characters in $srcdir or the absolute working directory
2204# name.  Accept space and tab only in the latter.
2205am_lf='
2206'
2207case `pwd` in
2208  *[\\\"\#\$\&\'\`$am_lf]*)
2209    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2210esac
2211case $srcdir in
2212  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2213    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2214esac
2215
2216# Do `set' in a subshell so we don't clobber the current shell's
2217# arguments.  Must try -L first in case configure is actually a
2218# symlink; some systems play weird games with the mod time of symlinks
2219# (eg FreeBSD returns the mod time of the symlink's containing
2220# directory).
2221if (
2222   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2223   if test "$*" = "X"; then
2224      # -L didn't work.
2225      set X `ls -t "$srcdir/configure" conftest.file`
2226   fi
2227   rm -f conftest.file
2228   if test "$*" != "X $srcdir/configure conftest.file" \
2229      && test "$*" != "X conftest.file $srcdir/configure"; then
2230
2231      # If neither matched, then we have a broken ls.  This can happen
2232      # if, for instance, CONFIG_SHELL is bash and it inherits a
2233      # broken ls alias from the environment.  This has actually
2234      # happened.  Such a system could not be considered "sane".
2235      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2236alias in your environment" "$LINENO" 5
2237   fi
2238
2239   test "$2" = conftest.file
2240   )
2241then
2242   # Ok.
2243   :
2244else
2245   as_fn_error $? "newly created file is older than distributed files!
2246Check your system clock" "$LINENO" 5
2247fi
2248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2249$as_echo "yes" >&6; }
2250test "$program_prefix" != NONE &&
2251  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2252# Use a double $ so make ignores it.
2253test "$program_suffix" != NONE &&
2254  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2255# Double any \ or $.
2256# By default was `s,x,x', remove it if useless.
2257ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2258program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2259
2260# expand $ac_aux_dir to an absolute path
2261am_aux_dir=`cd $ac_aux_dir && pwd`
2262
2263if test x"${MISSING+set}" != xset; then
2264  case $am_aux_dir in
2265  *\ * | *\	*)
2266    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2267  *)
2268    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2269  esac
2270fi
2271# Use eval to expand $SHELL
2272if eval "$MISSING --run true"; then
2273  am_missing_run="$MISSING --run "
2274else
2275  am_missing_run=
2276  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2277$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2278fi
2279
2280if test x"${install_sh}" != xset; then
2281  case $am_aux_dir in
2282  *\ * | *\	*)
2283    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2284  *)
2285    install_sh="\${SHELL} $am_aux_dir/install-sh"
2286  esac
2287fi
2288
2289# Installed binaries are usually stripped using `strip' when the user
2290# run `make install-strip'.  However `strip' might not be the right
2291# tool to use in cross-compilation environments, therefore Automake
2292# will honor the `STRIP' environment variable to overrule this program.
2293if test "$cross_compiling" != no; then
2294  if test -n "$ac_tool_prefix"; then
2295  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2296set dummy ${ac_tool_prefix}strip; ac_word=$2
2297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2298$as_echo_n "checking for $ac_word... " >&6; }
2299if ${ac_cv_prog_STRIP+:} false; then :
2300  $as_echo_n "(cached) " >&6
2301else
2302  if test -n "$STRIP"; then
2303  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2304else
2305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306for as_dir in $PATH
2307do
2308  IFS=$as_save_IFS
2309  test -z "$as_dir" && as_dir=.
2310    for ac_exec_ext in '' $ac_executable_extensions; do
2311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2314    break 2
2315  fi
2316done
2317  done
2318IFS=$as_save_IFS
2319
2320fi
2321fi
2322STRIP=$ac_cv_prog_STRIP
2323if test -n "$STRIP"; then
2324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2325$as_echo "$STRIP" >&6; }
2326else
2327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2328$as_echo "no" >&6; }
2329fi
2330
2331
2332fi
2333if test -z "$ac_cv_prog_STRIP"; then
2334  ac_ct_STRIP=$STRIP
2335  # Extract the first word of "strip", so it can be a program name with args.
2336set dummy strip; ac_word=$2
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2338$as_echo_n "checking for $ac_word... " >&6; }
2339if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2340  $as_echo_n "(cached) " >&6
2341else
2342  if test -n "$ac_ct_STRIP"; then
2343  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2344else
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348  IFS=$as_save_IFS
2349  test -z "$as_dir" && as_dir=.
2350    for ac_exec_ext in '' $ac_executable_extensions; do
2351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352    ac_cv_prog_ac_ct_STRIP="strip"
2353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2354    break 2
2355  fi
2356done
2357  done
2358IFS=$as_save_IFS
2359
2360fi
2361fi
2362ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2363if test -n "$ac_ct_STRIP"; then
2364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2365$as_echo "$ac_ct_STRIP" >&6; }
2366else
2367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2368$as_echo "no" >&6; }
2369fi
2370
2371  if test "x$ac_ct_STRIP" = x; then
2372    STRIP=":"
2373  else
2374    case $cross_compiling:$ac_tool_warned in
2375yes:)
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2378ac_tool_warned=yes ;;
2379esac
2380    STRIP=$ac_ct_STRIP
2381  fi
2382else
2383  STRIP="$ac_cv_prog_STRIP"
2384fi
2385
2386fi
2387INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2388
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2390$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2391if test -z "$MKDIR_P"; then
2392  if ${ac_cv_path_mkdir+:} false; then :
2393  $as_echo_n "(cached) " >&6
2394else
2395  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2397do
2398  IFS=$as_save_IFS
2399  test -z "$as_dir" && as_dir=.
2400    for ac_prog in mkdir gmkdir; do
2401	 for ac_exec_ext in '' $ac_executable_extensions; do
2402	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2403	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2404	     'mkdir (GNU coreutils) '* | \
2405	     'mkdir (coreutils) '* | \
2406	     'mkdir (fileutils) '4.1*)
2407	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2408	       break 3;;
2409	   esac
2410	 done
2411       done
2412  done
2413IFS=$as_save_IFS
2414
2415fi
2416
2417  test -d ./--version && rmdir ./--version
2418  if test "${ac_cv_path_mkdir+set}" = set; then
2419    MKDIR_P="$ac_cv_path_mkdir -p"
2420  else
2421    # As a last resort, use the slow shell script.  Don't cache a
2422    # value for MKDIR_P within a source directory, because that will
2423    # break other packages using the cache if that directory is
2424    # removed, or if the value is a relative name.
2425    MKDIR_P="$ac_install_sh -d"
2426  fi
2427fi
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2429$as_echo "$MKDIR_P" >&6; }
2430
2431mkdir_p="$MKDIR_P"
2432case $mkdir_p in
2433  [\\/$]* | ?:[\\/]*) ;;
2434  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2435esac
2436
2437for ac_prog in gawk mawk nawk awk
2438do
2439  # Extract the first word of "$ac_prog", so it can be a program name with args.
2440set dummy $ac_prog; ac_word=$2
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442$as_echo_n "checking for $ac_word... " >&6; }
2443if ${ac_cv_prog_AWK+:} false; then :
2444  $as_echo_n "(cached) " >&6
2445else
2446  if test -n "$AWK"; then
2447  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2448else
2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450for as_dir in $PATH
2451do
2452  IFS=$as_save_IFS
2453  test -z "$as_dir" && as_dir=.
2454    for ac_exec_ext in '' $ac_executable_extensions; do
2455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456    ac_cv_prog_AWK="$ac_prog"
2457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458    break 2
2459  fi
2460done
2461  done
2462IFS=$as_save_IFS
2463
2464fi
2465fi
2466AWK=$ac_cv_prog_AWK
2467if test -n "$AWK"; then
2468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2469$as_echo "$AWK" >&6; }
2470else
2471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472$as_echo "no" >&6; }
2473fi
2474
2475
2476  test -n "$AWK" && break
2477done
2478
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2480$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2481set x ${MAKE-make}
2482ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2483if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2484  $as_echo_n "(cached) " >&6
2485else
2486  cat >conftest.make <<\_ACEOF
2487SHELL = /bin/sh
2488all:
2489	@echo '@@@%%%=$(MAKE)=@@@%%%'
2490_ACEOF
2491# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2492case `${MAKE-make} -f conftest.make 2>/dev/null` in
2493  *@@@%%%=?*=@@@%%%*)
2494    eval ac_cv_prog_make_${ac_make}_set=yes;;
2495  *)
2496    eval ac_cv_prog_make_${ac_make}_set=no;;
2497esac
2498rm -f conftest.make
2499fi
2500if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2502$as_echo "yes" >&6; }
2503  SET_MAKE=
2504else
2505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506$as_echo "no" >&6; }
2507  SET_MAKE="MAKE=${MAKE-make}"
2508fi
2509
2510rm -rf .tst 2>/dev/null
2511mkdir .tst 2>/dev/null
2512if test -d .tst; then
2513  am__leading_dot=.
2514else
2515  am__leading_dot=_
2516fi
2517rmdir .tst 2>/dev/null
2518
2519if test "`cd $srcdir && pwd`" != "`pwd`"; then
2520  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2521  # is not polluted with repeated "-I."
2522  am__isrc=' -I$(srcdir)'
2523  # test to see if srcdir already configured
2524  if test -f $srcdir/config.status; then
2525    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2526  fi
2527fi
2528
2529# test whether we have cygpath
2530if test -z "$CYGPATH_W"; then
2531  if (cygpath --version) >/dev/null 2>/dev/null; then
2532    CYGPATH_W='cygpath -w'
2533  else
2534    CYGPATH_W=echo
2535  fi
2536fi
2537
2538
2539# Define the identity of the package.
2540 PACKAGE='font-util'
2541 VERSION='1.3.0'
2542
2543
2544cat >>confdefs.h <<_ACEOF
2545#define PACKAGE "$PACKAGE"
2546_ACEOF
2547
2548
2549cat >>confdefs.h <<_ACEOF
2550#define VERSION "$VERSION"
2551_ACEOF
2552
2553# Some tools Automake needs.
2554
2555ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2556
2557
2558AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2559
2560
2561AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2562
2563
2564AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2565
2566
2567MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2568
2569# We need awk for the "check" target.  The system "awk" is bad on
2570# some platforms.
2571# Always define AMTAR for backward compatibility.
2572
2573AMTAR=${AMTAR-"${am_missing_run}tar"}
2574
2575am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2576
2577
2578
2579
2580
2581
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2583$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2584    # Check whether --enable-maintainer-mode was given.
2585if test "${enable_maintainer_mode+set}" = set; then :
2586  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2587else
2588  USE_MAINTAINER_MODE=no
2589fi
2590
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2592$as_echo "$USE_MAINTAINER_MODE" >&6; }
2593   if test $USE_MAINTAINER_MODE = yes; then
2594  MAINTAINER_MODE_TRUE=
2595  MAINTAINER_MODE_FALSE='#'
2596else
2597  MAINTAINER_MODE_TRUE='#'
2598  MAINTAINER_MODE_FALSE=
2599fi
2600
2601  MAINT=$MAINTAINER_MODE_TRUE
2602
2603
2604
2605# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617DEPDIR="${am__leading_dot}deps"
2618
2619ac_config_commands="$ac_config_commands depfiles"
2620
2621
2622am_make=${MAKE-make}
2623cat > confinc << 'END'
2624am__doit:
2625	@echo this is the am__doit target
2626.PHONY: am__doit
2627END
2628# If we don't find an include directive, just comment out the code.
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2630$as_echo_n "checking for style of include used by $am_make... " >&6; }
2631am__include="#"
2632am__quote=
2633_am_result=none
2634# First try GNU make style include.
2635echo "include confinc" > confmf
2636# Ignore all kinds of additional output from `make'.
2637case `$am_make -s -f confmf 2> /dev/null` in #(
2638*the\ am__doit\ target*)
2639  am__include=include
2640  am__quote=
2641  _am_result=GNU
2642  ;;
2643esac
2644# Now try BSD make style include.
2645if test "$am__include" = "#"; then
2646   echo '.include "confinc"' > confmf
2647   case `$am_make -s -f confmf 2> /dev/null` in #(
2648   *the\ am__doit\ target*)
2649     am__include=.include
2650     am__quote="\""
2651     _am_result=BSD
2652     ;;
2653   esac
2654fi
2655
2656
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2658$as_echo "$_am_result" >&6; }
2659rm -f confinc confmf
2660
2661# Check whether --enable-dependency-tracking was given.
2662if test "${enable_dependency_tracking+set}" = set; then :
2663  enableval=$enable_dependency_tracking;
2664fi
2665
2666if test "x$enable_dependency_tracking" != xno; then
2667  am_depcomp="$ac_aux_dir/depcomp"
2668  AMDEPBACKSLASH='\'
2669fi
2670 if test "x$enable_dependency_tracking" != xno; then
2671  AMDEP_TRUE=
2672  AMDEP_FALSE='#'
2673else
2674  AMDEP_TRUE='#'
2675  AMDEP_FALSE=
2676fi
2677
2678
2679ac_ext=c
2680ac_cpp='$CPP $CPPFLAGS'
2681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684if test -n "$ac_tool_prefix"; then
2685  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2686set dummy ${ac_tool_prefix}gcc; ac_word=$2
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
2689if ${ac_cv_prog_CC+:} false; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  if test -n "$CC"; then
2693  ac_cv_prog_CC="$CC" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698  IFS=$as_save_IFS
2699  test -z "$as_dir" && as_dir=.
2700    for ac_exec_ext in '' $ac_executable_extensions; do
2701  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704    break 2
2705  fi
2706done
2707  done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712CC=$ac_cv_prog_CC
2713if test -n "$CC"; then
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715$as_echo "$CC" >&6; }
2716else
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
2721
2722fi
2723if test -z "$ac_cv_prog_CC"; then
2724  ac_ct_CC=$CC
2725  # Extract the first word of "gcc", so it can be a program name with args.
2726set dummy gcc; ac_word=$2
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728$as_echo_n "checking for $ac_word... " >&6; }
2729if ${ac_cv_prog_ac_ct_CC+:} false; then :
2730  $as_echo_n "(cached) " >&6
2731else
2732  if test -n "$ac_ct_CC"; then
2733  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738  IFS=$as_save_IFS
2739  test -z "$as_dir" && as_dir=.
2740    for ac_exec_ext in '' $ac_executable_extensions; do
2741  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742    ac_cv_prog_ac_ct_CC="gcc"
2743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744    break 2
2745  fi
2746done
2747  done
2748IFS=$as_save_IFS
2749
2750fi
2751fi
2752ac_ct_CC=$ac_cv_prog_ac_ct_CC
2753if test -n "$ac_ct_CC"; then
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2755$as_echo "$ac_ct_CC" >&6; }
2756else
2757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758$as_echo "no" >&6; }
2759fi
2760
2761  if test "x$ac_ct_CC" = x; then
2762    CC=""
2763  else
2764    case $cross_compiling:$ac_tool_warned in
2765yes:)
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768ac_tool_warned=yes ;;
2769esac
2770    CC=$ac_ct_CC
2771  fi
2772else
2773  CC="$ac_cv_prog_CC"
2774fi
2775
2776if test -z "$CC"; then
2777          if test -n "$ac_tool_prefix"; then
2778    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2779set dummy ${ac_tool_prefix}cc; ac_word=$2
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781$as_echo_n "checking for $ac_word... " >&6; }
2782if ${ac_cv_prog_CC+:} false; then :
2783  $as_echo_n "(cached) " >&6
2784else
2785  if test -n "$CC"; then
2786  ac_cv_prog_CC="$CC" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791  IFS=$as_save_IFS
2792  test -z "$as_dir" && as_dir=.
2793    for ac_exec_ext in '' $ac_executable_extensions; do
2794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795    ac_cv_prog_CC="${ac_tool_prefix}cc"
2796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797    break 2
2798  fi
2799done
2800  done
2801IFS=$as_save_IFS
2802
2803fi
2804fi
2805CC=$ac_cv_prog_CC
2806if test -n "$CC"; then
2807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808$as_echo "$CC" >&6; }
2809else
2810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811$as_echo "no" >&6; }
2812fi
2813
2814
2815  fi
2816fi
2817if test -z "$CC"; then
2818  # Extract the first word of "cc", so it can be a program name with args.
2819set dummy cc; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if ${ac_cv_prog_CC+:} false; then :
2823  $as_echo_n "(cached) " >&6
2824else
2825  if test -n "$CC"; then
2826  ac_cv_prog_CC="$CC" # Let the user override the test.
2827else
2828  ac_prog_rejected=no
2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH
2831do
2832  IFS=$as_save_IFS
2833  test -z "$as_dir" && as_dir=.
2834    for ac_exec_ext in '' $ac_executable_extensions; do
2835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2837       ac_prog_rejected=yes
2838       continue
2839     fi
2840    ac_cv_prog_CC="cc"
2841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842    break 2
2843  fi
2844done
2845  done
2846IFS=$as_save_IFS
2847
2848if test $ac_prog_rejected = yes; then
2849  # We found a bogon in the path, so make sure we never use it.
2850  set dummy $ac_cv_prog_CC
2851  shift
2852  if test $# != 0; then
2853    # We chose a different compiler from the bogus one.
2854    # However, it has the same basename, so the bogon will be chosen
2855    # first if we set CC to just the basename; use the full file name.
2856    shift
2857    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2858  fi
2859fi
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865$as_echo "$CC" >&6; }
2866else
2867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868$as_echo "no" >&6; }
2869fi
2870
2871
2872fi
2873if test -z "$CC"; then
2874  if test -n "$ac_tool_prefix"; then
2875  for ac_prog in cl.exe
2876  do
2877    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2878set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880$as_echo_n "checking for $ac_word... " >&6; }
2881if ${ac_cv_prog_CC+:} false; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  if test -n "$CC"; then
2885  ac_cv_prog_CC="$CC" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892    for ac_exec_ext in '' $ac_executable_extensions; do
2893  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899  done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904CC=$ac_cv_prog_CC
2905if test -n "$CC"; then
2906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907$as_echo "$CC" >&6; }
2908else
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910$as_echo "no" >&6; }
2911fi
2912
2913
2914    test -n "$CC" && break
2915  done
2916fi
2917if test -z "$CC"; then
2918  ac_ct_CC=$CC
2919  for ac_prog in cl.exe
2920do
2921  # Extract the first word of "$ac_prog", so it can be a program name with args.
2922set dummy $ac_prog; ac_word=$2
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924$as_echo_n "checking for $ac_word... " >&6; }
2925if ${ac_cv_prog_ac_ct_CC+:} false; then :
2926  $as_echo_n "(cached) " >&6
2927else
2928  if test -n "$ac_ct_CC"; then
2929  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930else
2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934  IFS=$as_save_IFS
2935  test -z "$as_dir" && as_dir=.
2936    for ac_exec_ext in '' $ac_executable_extensions; do
2937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938    ac_cv_prog_ac_ct_CC="$ac_prog"
2939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940    break 2
2941  fi
2942done
2943  done
2944IFS=$as_save_IFS
2945
2946fi
2947fi
2948ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949if test -n "$ac_ct_CC"; then
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2951$as_echo "$ac_ct_CC" >&6; }
2952else
2953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954$as_echo "no" >&6; }
2955fi
2956
2957
2958  test -n "$ac_ct_CC" && break
2959done
2960
2961  if test "x$ac_ct_CC" = x; then
2962    CC=""
2963  else
2964    case $cross_compiling:$ac_tool_warned in
2965yes:)
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968ac_tool_warned=yes ;;
2969esac
2970    CC=$ac_ct_CC
2971  fi
2972fi
2973
2974fi
2975
2976
2977test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979as_fn_error $? "no acceptable C compiler found in \$PATH
2980See \`config.log' for more details" "$LINENO" 5; }
2981
2982# Provide some information about the compiler.
2983$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2984set X $ac_compile
2985ac_compiler=$2
2986for ac_option in --version -v -V -qversion; do
2987  { { ac_try="$ac_compiler $ac_option >&5"
2988case "(($ac_try" in
2989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990  *) ac_try_echo=$ac_try;;
2991esac
2992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993$as_echo "$ac_try_echo"; } >&5
2994  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2995  ac_status=$?
2996  if test -s conftest.err; then
2997    sed '10a\
2998... rest of stderr output deleted ...
2999         10q' conftest.err >conftest.er1
3000    cat conftest.er1 >&5
3001  fi
3002  rm -f conftest.er1 conftest.err
3003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004  test $ac_status = 0; }
3005done
3006
3007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008/* end confdefs.h.  */
3009
3010int
3011main ()
3012{
3013
3014  ;
3015  return 0;
3016}
3017_ACEOF
3018ac_clean_files_save=$ac_clean_files
3019ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3020# Try to create an executable without -o first, disregard a.out.
3021# It will help us diagnose broken compilers, and finding out an intuition
3022# of exeext.
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3024$as_echo_n "checking whether the C compiler works... " >&6; }
3025ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3026
3027# The possible output files:
3028ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3029
3030ac_rmfiles=
3031for ac_file in $ac_files
3032do
3033  case $ac_file in
3034    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3035    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3036  esac
3037done
3038rm -f $ac_rmfiles
3039
3040if { { ac_try="$ac_link_default"
3041case "(($ac_try" in
3042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043  *) ac_try_echo=$ac_try;;
3044esac
3045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046$as_echo "$ac_try_echo"; } >&5
3047  (eval "$ac_link_default") 2>&5
3048  ac_status=$?
3049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050  test $ac_status = 0; }; then :
3051  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3052# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3053# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3054# so that the user can short-circuit this test for compilers unknown to
3055# Autoconf.
3056for ac_file in $ac_files ''
3057do
3058  test -f "$ac_file" || continue
3059  case $ac_file in
3060    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3061	;;
3062    [ab].out )
3063	# We found the default executable, but exeext='' is most
3064	# certainly right.
3065	break;;
3066    *.* )
3067	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3068	then :; else
3069	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070	fi
3071	# We set ac_cv_exeext here because the later test for it is not
3072	# safe: cross compilers may not add the suffix if given an `-o'
3073	# argument, so we may need to know it at that point already.
3074	# Even if this section looks crufty: it has the advantage of
3075	# actually working.
3076	break;;
3077    * )
3078	break;;
3079  esac
3080done
3081test "$ac_cv_exeext" = no && ac_cv_exeext=
3082
3083else
3084  ac_file=''
3085fi
3086if test -z "$ac_file"; then :
3087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088$as_echo "no" >&6; }
3089$as_echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094as_fn_error 77 "C compiler cannot create executables
3095See \`config.log' for more details" "$LINENO" 5; }
3096else
3097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098$as_echo "yes" >&6; }
3099fi
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3101$as_echo_n "checking for C compiler default output file name... " >&6; }
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3103$as_echo "$ac_file" >&6; }
3104ac_exeext=$ac_cv_exeext
3105
3106rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3107ac_clean_files=$ac_clean_files_save
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3109$as_echo_n "checking for suffix of executables... " >&6; }
3110if { { ac_try="$ac_link"
3111case "(($ac_try" in
3112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113  *) ac_try_echo=$ac_try;;
3114esac
3115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116$as_echo "$ac_try_echo"; } >&5
3117  (eval "$ac_link") 2>&5
3118  ac_status=$?
3119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120  test $ac_status = 0; }; then :
3121  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3122# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3123# work properly (i.e., refer to `conftest.exe'), while it won't with
3124# `rm'.
3125for ac_file in conftest.exe conftest conftest.*; do
3126  test -f "$ac_file" || continue
3127  case $ac_file in
3128    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3129    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130	  break;;
3131    * ) break;;
3132  esac
3133done
3134else
3135  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3138See \`config.log' for more details" "$LINENO" 5; }
3139fi
3140rm -f conftest conftest$ac_cv_exeext
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3142$as_echo "$ac_cv_exeext" >&6; }
3143
3144rm -f conftest.$ac_ext
3145EXEEXT=$ac_cv_exeext
3146ac_exeext=$EXEEXT
3147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148/* end confdefs.h.  */
3149#include <stdio.h>
3150int
3151main ()
3152{
3153FILE *f = fopen ("conftest.out", "w");
3154 return ferror (f) || fclose (f) != 0;
3155
3156  ;
3157  return 0;
3158}
3159_ACEOF
3160ac_clean_files="$ac_clean_files conftest.out"
3161# Check that the compiler produces executables we can run.  If not, either
3162# the compiler is broken, or we cross compile.
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3164$as_echo_n "checking whether we are cross compiling... " >&6; }
3165if test "$cross_compiling" != yes; then
3166  { { ac_try="$ac_link"
3167case "(($ac_try" in
3168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169  *) ac_try_echo=$ac_try;;
3170esac
3171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172$as_echo "$ac_try_echo"; } >&5
3173  (eval "$ac_link") 2>&5
3174  ac_status=$?
3175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176  test $ac_status = 0; }
3177  if { ac_try='./conftest$ac_cv_exeext'
3178  { { case "(($ac_try" in
3179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180  *) ac_try_echo=$ac_try;;
3181esac
3182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183$as_echo "$ac_try_echo"; } >&5
3184  (eval "$ac_try") 2>&5
3185  ac_status=$?
3186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187  test $ac_status = 0; }; }; then
3188    cross_compiling=no
3189  else
3190    if test "$cross_compiling" = maybe; then
3191	cross_compiling=yes
3192    else
3193	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195as_fn_error $? "cannot run C compiled programs.
3196If you meant to cross compile, use \`--host'.
3197See \`config.log' for more details" "$LINENO" 5; }
3198    fi
3199  fi
3200fi
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3202$as_echo "$cross_compiling" >&6; }
3203
3204rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3205ac_clean_files=$ac_clean_files_save
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3207$as_echo_n "checking for suffix of object files... " >&6; }
3208if ${ac_cv_objext+:} false; then :
3209  $as_echo_n "(cached) " >&6
3210else
3211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212/* end confdefs.h.  */
3213
3214int
3215main ()
3216{
3217
3218  ;
3219  return 0;
3220}
3221_ACEOF
3222rm -f conftest.o conftest.obj
3223if { { ac_try="$ac_compile"
3224case "(($ac_try" in
3225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226  *) ac_try_echo=$ac_try;;
3227esac
3228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229$as_echo "$ac_try_echo"; } >&5
3230  (eval "$ac_compile") 2>&5
3231  ac_status=$?
3232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233  test $ac_status = 0; }; then :
3234  for ac_file in conftest.o conftest.obj conftest.*; do
3235  test -f "$ac_file" || continue;
3236  case $ac_file in
3237    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3238    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3239       break;;
3240  esac
3241done
3242else
3243  $as_echo "$as_me: failed program was:" >&5
3244sed 's/^/| /' conftest.$ac_ext >&5
3245
3246{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248as_fn_error $? "cannot compute suffix of object files: cannot compile
3249See \`config.log' for more details" "$LINENO" 5; }
3250fi
3251rm -f conftest.$ac_cv_objext conftest.$ac_ext
3252fi
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3254$as_echo "$ac_cv_objext" >&6; }
3255OBJEXT=$ac_cv_objext
3256ac_objext=$OBJEXT
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3258$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3259if ${ac_cv_c_compiler_gnu+:} false; then :
3260  $as_echo_n "(cached) " >&6
3261else
3262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263/* end confdefs.h.  */
3264
3265int
3266main ()
3267{
3268#ifndef __GNUC__
3269       choke me
3270#endif
3271
3272  ;
3273  return 0;
3274}
3275_ACEOF
3276if ac_fn_c_try_compile "$LINENO"; then :
3277  ac_compiler_gnu=yes
3278else
3279  ac_compiler_gnu=no
3280fi
3281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282ac_cv_c_compiler_gnu=$ac_compiler_gnu
3283
3284fi
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3286$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3287if test $ac_compiler_gnu = yes; then
3288  GCC=yes
3289else
3290  GCC=
3291fi
3292ac_test_CFLAGS=${CFLAGS+set}
3293ac_save_CFLAGS=$CFLAGS
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3295$as_echo_n "checking whether $CC accepts -g... " >&6; }
3296if ${ac_cv_prog_cc_g+:} false; then :
3297  $as_echo_n "(cached) " >&6
3298else
3299  ac_save_c_werror_flag=$ac_c_werror_flag
3300   ac_c_werror_flag=yes
3301   ac_cv_prog_cc_g=no
3302   CFLAGS="-g"
3303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304/* end confdefs.h.  */
3305
3306int
3307main ()
3308{
3309
3310  ;
3311  return 0;
3312}
3313_ACEOF
3314if ac_fn_c_try_compile "$LINENO"; then :
3315  ac_cv_prog_cc_g=yes
3316else
3317  CFLAGS=""
3318      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319/* end confdefs.h.  */
3320
3321int
3322main ()
3323{
3324
3325  ;
3326  return 0;
3327}
3328_ACEOF
3329if ac_fn_c_try_compile "$LINENO"; then :
3330
3331else
3332  ac_c_werror_flag=$ac_save_c_werror_flag
3333	 CFLAGS="-g"
3334	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335/* end confdefs.h.  */
3336
3337int
3338main ()
3339{
3340
3341  ;
3342  return 0;
3343}
3344_ACEOF
3345if ac_fn_c_try_compile "$LINENO"; then :
3346  ac_cv_prog_cc_g=yes
3347fi
3348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349fi
3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351fi
3352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353   ac_c_werror_flag=$ac_save_c_werror_flag
3354fi
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3356$as_echo "$ac_cv_prog_cc_g" >&6; }
3357if test "$ac_test_CFLAGS" = set; then
3358  CFLAGS=$ac_save_CFLAGS
3359elif test $ac_cv_prog_cc_g = yes; then
3360  if test "$GCC" = yes; then
3361    CFLAGS="-g -O2"
3362  else
3363    CFLAGS="-g"
3364  fi
3365else
3366  if test "$GCC" = yes; then
3367    CFLAGS="-O2"
3368  else
3369    CFLAGS=
3370  fi
3371fi
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3373$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3374if ${ac_cv_prog_cc_c89+:} false; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  ac_cv_prog_cc_c89=no
3378ac_save_CC=$CC
3379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380/* end confdefs.h.  */
3381#include <stdarg.h>
3382#include <stdio.h>
3383#include <sys/types.h>
3384#include <sys/stat.h>
3385/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3386struct buf { int x; };
3387FILE * (*rcsopen) (struct buf *, struct stat *, int);
3388static char *e (p, i)
3389     char **p;
3390     int i;
3391{
3392  return p[i];
3393}
3394static char *f (char * (*g) (char **, int), char **p, ...)
3395{
3396  char *s;
3397  va_list v;
3398  va_start (v,p);
3399  s = g (p, va_arg (v,int));
3400  va_end (v);
3401  return s;
3402}
3403
3404/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3405   function prototypes and stuff, but not '\xHH' hex character constants.
3406   These don't provoke an error unfortunately, instead are silently treated
3407   as 'x'.  The following induces an error, until -std is added to get
3408   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3409   array size at least.  It's necessary to write '\x00'==0 to get something
3410   that's true only with -std.  */
3411int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3412
3413/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3414   inside strings and character constants.  */
3415#define FOO(x) 'x'
3416int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3417
3418int test (int i, double x);
3419struct s1 {int (*f) (int a);};
3420struct s2 {int (*f) (double a);};
3421int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3422int argc;
3423char **argv;
3424int
3425main ()
3426{
3427return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3428  ;
3429  return 0;
3430}
3431_ACEOF
3432for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3433	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3434do
3435  CC="$ac_save_CC $ac_arg"
3436  if ac_fn_c_try_compile "$LINENO"; then :
3437  ac_cv_prog_cc_c89=$ac_arg
3438fi
3439rm -f core conftest.err conftest.$ac_objext
3440  test "x$ac_cv_prog_cc_c89" != "xno" && break
3441done
3442rm -f conftest.$ac_ext
3443CC=$ac_save_CC
3444
3445fi
3446# AC_CACHE_VAL
3447case "x$ac_cv_prog_cc_c89" in
3448  x)
3449    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3450$as_echo "none needed" >&6; } ;;
3451  xno)
3452    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3453$as_echo "unsupported" >&6; } ;;
3454  *)
3455    CC="$CC $ac_cv_prog_cc_c89"
3456    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3457$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3458esac
3459if test "x$ac_cv_prog_cc_c89" != xno; then :
3460
3461fi
3462
3463ac_ext=c
3464ac_cpp='$CPP $CPPFLAGS'
3465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468
3469depcc="$CC"   am_compiler_list=
3470
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3472$as_echo_n "checking dependency style of $depcc... " >&6; }
3473if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3474  $as_echo_n "(cached) " >&6
3475else
3476  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3477  # We make a subdir and do the tests there.  Otherwise we can end up
3478  # making bogus files that we don't know about and never remove.  For
3479  # instance it was reported that on HP-UX the gcc test will end up
3480  # making a dummy file named `D' -- because `-MD' means `put the output
3481  # in D'.
3482  mkdir conftest.dir
3483  # Copy depcomp to subdir because otherwise we won't find it if we're
3484  # using a relative directory.
3485  cp "$am_depcomp" conftest.dir
3486  cd conftest.dir
3487  # We will build objects and dependencies in a subdirectory because
3488  # it helps to detect inapplicable dependency modes.  For instance
3489  # both Tru64's cc and ICC support -MD to output dependencies as a
3490  # side effect of compilation, but ICC will put the dependencies in
3491  # the current directory while Tru64 will put them in the object
3492  # directory.
3493  mkdir sub
3494
3495  am_cv_CC_dependencies_compiler_type=none
3496  if test "$am_compiler_list" = ""; then
3497     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3498  fi
3499  am__universal=false
3500  case " $depcc " in #(
3501     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3502     esac
3503
3504  for depmode in $am_compiler_list; do
3505    # Setup a source with many dependencies, because some compilers
3506    # like to wrap large dependency lists on column 80 (with \), and
3507    # we should not choose a depcomp mode which is confused by this.
3508    #
3509    # We need to recreate these files for each test, as the compiler may
3510    # overwrite some of them when testing with obscure command lines.
3511    # This happens at least with the AIX C compiler.
3512    : > sub/conftest.c
3513    for i in 1 2 3 4 5 6; do
3514      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3515      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3516      # Solaris 8's {/usr,}/bin/sh.
3517      touch sub/conftst$i.h
3518    done
3519    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3520
3521    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3522    # mode.  It turns out that the SunPro C++ compiler does not properly
3523    # handle `-M -o', and we need to detect this.  Also, some Intel
3524    # versions had trouble with output in subdirs
3525    am__obj=sub/conftest.${OBJEXT-o}
3526    am__minus_obj="-o $am__obj"
3527    case $depmode in
3528    gcc)
3529      # This depmode causes a compiler race in universal mode.
3530      test "$am__universal" = false || continue
3531      ;;
3532    nosideeffect)
3533      # after this tag, mechanisms are not by side-effect, so they'll
3534      # only be used when explicitly requested
3535      if test "x$enable_dependency_tracking" = xyes; then
3536	continue
3537      else
3538	break
3539      fi
3540      ;;
3541    msvisualcpp | msvcmsys)
3542      # This compiler won't grok `-c -o', but also, the minuso test has
3543      # not run yet.  These depmodes are late enough in the game, and
3544      # so weak that their functioning should not be impacted.
3545      am__obj=conftest.${OBJEXT-o}
3546      am__minus_obj=
3547      ;;
3548    none) break ;;
3549    esac
3550    if depmode=$depmode \
3551       source=sub/conftest.c object=$am__obj \
3552       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3553       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3554         >/dev/null 2>conftest.err &&
3555       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3556       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3557       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3558       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3559      # icc doesn't choke on unknown options, it will just issue warnings
3560      # or remarks (even with -Werror).  So we grep stderr for any message
3561      # that says an option was ignored or not supported.
3562      # When given -MP, icc 7.0 and 7.1 complain thusly:
3563      #   icc: Command line warning: ignoring option '-M'; no argument required
3564      # The diagnosis changed in icc 8.0:
3565      #   icc: Command line remark: option '-MP' not supported
3566      if (grep 'ignoring option' conftest.err ||
3567          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3568        am_cv_CC_dependencies_compiler_type=$depmode
3569        break
3570      fi
3571    fi
3572  done
3573
3574  cd ..
3575  rm -rf conftest.dir
3576else
3577  am_cv_CC_dependencies_compiler_type=none
3578fi
3579
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3582$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3583CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3584
3585 if
3586  test "x$enable_dependency_tracking" != xno \
3587  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3588  am__fastdepCC_TRUE=
3589  am__fastdepCC_FALSE='#'
3590else
3591  am__fastdepCC_TRUE='#'
3592  am__fastdepCC_FALSE=
3593fi
3594
3595
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3597$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3598if ${ac_cv_prog_cc_c99+:} false; then :
3599  $as_echo_n "(cached) " >&6
3600else
3601  ac_cv_prog_cc_c99=no
3602ac_save_CC=$CC
3603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605#include <stdarg.h>
3606#include <stdbool.h>
3607#include <stdlib.h>
3608#include <wchar.h>
3609#include <stdio.h>
3610
3611// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3612#define debug(...) fprintf (stderr, __VA_ARGS__)
3613#define showlist(...) puts (#__VA_ARGS__)
3614#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3615static void
3616test_varargs_macros (void)
3617{
3618  int x = 1234;
3619  int y = 5678;
3620  debug ("Flag");
3621  debug ("X = %d\n", x);
3622  showlist (The first, second, and third items.);
3623  report (x>y, "x is %d but y is %d", x, y);
3624}
3625
3626// Check long long types.
3627#define BIG64 18446744073709551615ull
3628#define BIG32 4294967295ul
3629#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3630#if !BIG_OK
3631  your preprocessor is broken;
3632#endif
3633#if BIG_OK
3634#else
3635  your preprocessor is broken;
3636#endif
3637static long long int bignum = -9223372036854775807LL;
3638static unsigned long long int ubignum = BIG64;
3639
3640struct incomplete_array
3641{
3642  int datasize;
3643  double data[];
3644};
3645
3646struct named_init {
3647  int number;
3648  const wchar_t *name;
3649  double average;
3650};
3651
3652typedef const char *ccp;
3653
3654static inline int
3655test_restrict (ccp restrict text)
3656{
3657  // See if C++-style comments work.
3658  // Iterate through items via the restricted pointer.
3659  // Also check for declarations in for loops.
3660  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3661    continue;
3662  return 0;
3663}
3664
3665// Check varargs and va_copy.
3666static void
3667test_varargs (const char *format, ...)
3668{
3669  va_list args;
3670  va_start (args, format);
3671  va_list args_copy;
3672  va_copy (args_copy, args);
3673
3674  const char *str;
3675  int number;
3676  float fnumber;
3677
3678  while (*format)
3679    {
3680      switch (*format++)
3681	{
3682	case 's': // string
3683	  str = va_arg (args_copy, const char *);
3684	  break;
3685	case 'd': // int
3686	  number = va_arg (args_copy, int);
3687	  break;
3688	case 'f': // float
3689	  fnumber = va_arg (args_copy, double);
3690	  break;
3691	default:
3692	  break;
3693	}
3694    }
3695  va_end (args_copy);
3696  va_end (args);
3697}
3698
3699int
3700main ()
3701{
3702
3703  // Check bool.
3704  _Bool success = false;
3705
3706  // Check restrict.
3707  if (test_restrict ("String literal") == 0)
3708    success = true;
3709  char *restrict newvar = "Another string";
3710
3711  // Check varargs.
3712  test_varargs ("s, d' f .", "string", 65, 34.234);
3713  test_varargs_macros ();
3714
3715  // Check flexible array members.
3716  struct incomplete_array *ia =
3717    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3718  ia->datasize = 10;
3719  for (int i = 0; i < ia->datasize; ++i)
3720    ia->data[i] = i * 1.234;
3721
3722  // Check named initializers.
3723  struct named_init ni = {
3724    .number = 34,
3725    .name = L"Test wide string",
3726    .average = 543.34343,
3727  };
3728
3729  ni.number = 58;
3730
3731  int dynamic_array[ni.number];
3732  dynamic_array[ni.number - 1] = 543;
3733
3734  // work around unused variable warnings
3735  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3736	  || dynamic_array[ni.number - 1] != 543);
3737
3738  ;
3739  return 0;
3740}
3741_ACEOF
3742for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3743do
3744  CC="$ac_save_CC $ac_arg"
3745  if ac_fn_c_try_compile "$LINENO"; then :
3746  ac_cv_prog_cc_c99=$ac_arg
3747fi
3748rm -f core conftest.err conftest.$ac_objext
3749  test "x$ac_cv_prog_cc_c99" != "xno" && break
3750done
3751rm -f conftest.$ac_ext
3752CC=$ac_save_CC
3753
3754fi
3755# AC_CACHE_VAL
3756case "x$ac_cv_prog_cc_c99" in
3757  x)
3758    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3759$as_echo "none needed" >&6; } ;;
3760  xno)
3761    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3762$as_echo "unsupported" >&6; } ;;
3763  *)
3764    CC="$CC $ac_cv_prog_cc_c99"
3765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3766$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3767esac
3768if test "x$ac_cv_prog_cc_c99" != xno; then :
3769
3770fi
3771
3772
3773
3774ac_ext=c
3775ac_cpp='$CPP $CPPFLAGS'
3776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3780$as_echo_n "checking how to run the C preprocessor... " >&6; }
3781# On Suns, sometimes $CPP names a directory.
3782if test -n "$CPP" && test -d "$CPP"; then
3783  CPP=
3784fi
3785if test -z "$CPP"; then
3786  if ${ac_cv_prog_CPP+:} false; then :
3787  $as_echo_n "(cached) " >&6
3788else
3789      # Double quotes because CPP needs to be expanded
3790    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3791    do
3792      ac_preproc_ok=false
3793for ac_c_preproc_warn_flag in '' yes
3794do
3795  # Use a header file that comes with gcc, so configuring glibc
3796  # with a fresh cross-compiler works.
3797  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798  # <limits.h> exists even on freestanding compilers.
3799  # On the NeXT, cc -E runs the code through the compiler's parser,
3800  # not just through cpp. "Syntax error" is here to catch this case.
3801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h.  */
3803#ifdef __STDC__
3804# include <limits.h>
3805#else
3806# include <assert.h>
3807#endif
3808		     Syntax error
3809_ACEOF
3810if ac_fn_c_try_cpp "$LINENO"; then :
3811
3812else
3813  # Broken: fails on valid input.
3814continue
3815fi
3816rm -f conftest.err conftest.i conftest.$ac_ext
3817
3818  # OK, works on sane cases.  Now check whether nonexistent headers
3819  # can be detected and how.
3820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h.  */
3822#include <ac_nonexistent.h>
3823_ACEOF
3824if ac_fn_c_try_cpp "$LINENO"; then :
3825  # Broken: success on invalid input.
3826continue
3827else
3828  # Passes both tests.
3829ac_preproc_ok=:
3830break
3831fi
3832rm -f conftest.err conftest.i conftest.$ac_ext
3833
3834done
3835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836rm -f conftest.i conftest.err conftest.$ac_ext
3837if $ac_preproc_ok; then :
3838  break
3839fi
3840
3841    done
3842    ac_cv_prog_CPP=$CPP
3843
3844fi
3845  CPP=$ac_cv_prog_CPP
3846else
3847  ac_cv_prog_CPP=$CPP
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3850$as_echo "$CPP" >&6; }
3851ac_preproc_ok=false
3852for ac_c_preproc_warn_flag in '' yes
3853do
3854  # Use a header file that comes with gcc, so configuring glibc
3855  # with a fresh cross-compiler works.
3856  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857  # <limits.h> exists even on freestanding compilers.
3858  # On the NeXT, cc -E runs the code through the compiler's parser,
3859  # not just through cpp. "Syntax error" is here to catch this case.
3860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861/* end confdefs.h.  */
3862#ifdef __STDC__
3863# include <limits.h>
3864#else
3865# include <assert.h>
3866#endif
3867		     Syntax error
3868_ACEOF
3869if ac_fn_c_try_cpp "$LINENO"; then :
3870
3871else
3872  # Broken: fails on valid input.
3873continue
3874fi
3875rm -f conftest.err conftest.i conftest.$ac_ext
3876
3877  # OK, works on sane cases.  Now check whether nonexistent headers
3878  # can be detected and how.
3879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h.  */
3881#include <ac_nonexistent.h>
3882_ACEOF
3883if ac_fn_c_try_cpp "$LINENO"; then :
3884  # Broken: success on invalid input.
3885continue
3886else
3887  # Passes both tests.
3888ac_preproc_ok=:
3889break
3890fi
3891rm -f conftest.err conftest.i conftest.$ac_ext
3892
3893done
3894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3895rm -f conftest.i conftest.err conftest.$ac_ext
3896if $ac_preproc_ok; then :
3897
3898else
3899  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3902See \`config.log' for more details" "$LINENO" 5; }
3903fi
3904
3905ac_ext=c
3906ac_cpp='$CPP $CPPFLAGS'
3907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910
3911
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3913$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3914if ${ac_cv_path_GREP+:} false; then :
3915  $as_echo_n "(cached) " >&6
3916else
3917  if test -z "$GREP"; then
3918  ac_path_GREP_found=false
3919  # Loop through the user's path and test for each of PROGNAME-LIST
3920  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3922do
3923  IFS=$as_save_IFS
3924  test -z "$as_dir" && as_dir=.
3925    for ac_prog in grep ggrep; do
3926    for ac_exec_ext in '' $ac_executable_extensions; do
3927      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3928      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3929# Check for GNU ac_path_GREP and select it if it is found.
3930  # Check for GNU $ac_path_GREP
3931case `"$ac_path_GREP" --version 2>&1` in
3932*GNU*)
3933  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3934*)
3935  ac_count=0
3936  $as_echo_n 0123456789 >"conftest.in"
3937  while :
3938  do
3939    cat "conftest.in" "conftest.in" >"conftest.tmp"
3940    mv "conftest.tmp" "conftest.in"
3941    cp "conftest.in" "conftest.nl"
3942    $as_echo 'GREP' >> "conftest.nl"
3943    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945    as_fn_arith $ac_count + 1 && ac_count=$as_val
3946    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3947      # Best one so far, save it but keep looking for a better one
3948      ac_cv_path_GREP="$ac_path_GREP"
3949      ac_path_GREP_max=$ac_count
3950    fi
3951    # 10*(2^10) chars as input seems more than enough
3952    test $ac_count -gt 10 && break
3953  done
3954  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955esac
3956
3957      $ac_path_GREP_found && break 3
3958    done
3959  done
3960  done
3961IFS=$as_save_IFS
3962  if test -z "$ac_cv_path_GREP"; then
3963    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3964  fi
3965else
3966  ac_cv_path_GREP=$GREP
3967fi
3968
3969fi
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3971$as_echo "$ac_cv_path_GREP" >&6; }
3972 GREP="$ac_cv_path_GREP"
3973
3974
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3976$as_echo_n "checking for egrep... " >&6; }
3977if ${ac_cv_path_EGREP+:} false; then :
3978  $as_echo_n "(cached) " >&6
3979else
3980  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3981   then ac_cv_path_EGREP="$GREP -E"
3982   else
3983     if test -z "$EGREP"; then
3984  ac_path_EGREP_found=false
3985  # Loop through the user's path and test for each of PROGNAME-LIST
3986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988do
3989  IFS=$as_save_IFS
3990  test -z "$as_dir" && as_dir=.
3991    for ac_prog in egrep; do
3992    for ac_exec_ext in '' $ac_executable_extensions; do
3993      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3994      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3995# Check for GNU ac_path_EGREP and select it if it is found.
3996  # Check for GNU $ac_path_EGREP
3997case `"$ac_path_EGREP" --version 2>&1` in
3998*GNU*)
3999  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4000*)
4001  ac_count=0
4002  $as_echo_n 0123456789 >"conftest.in"
4003  while :
4004  do
4005    cat "conftest.in" "conftest.in" >"conftest.tmp"
4006    mv "conftest.tmp" "conftest.in"
4007    cp "conftest.in" "conftest.nl"
4008    $as_echo 'EGREP' >> "conftest.nl"
4009    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011    as_fn_arith $ac_count + 1 && ac_count=$as_val
4012    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4013      # Best one so far, save it but keep looking for a better one
4014      ac_cv_path_EGREP="$ac_path_EGREP"
4015      ac_path_EGREP_max=$ac_count
4016    fi
4017    # 10*(2^10) chars as input seems more than enough
4018    test $ac_count -gt 10 && break
4019  done
4020  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021esac
4022
4023      $ac_path_EGREP_found && break 3
4024    done
4025  done
4026  done
4027IFS=$as_save_IFS
4028  if test -z "$ac_cv_path_EGREP"; then
4029    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4030  fi
4031else
4032  ac_cv_path_EGREP=$EGREP
4033fi
4034
4035   fi
4036fi
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4038$as_echo "$ac_cv_path_EGREP" >&6; }
4039 EGREP="$ac_cv_path_EGREP"
4040
4041
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4043$as_echo_n "checking for ANSI C header files... " >&6; }
4044if ${ac_cv_header_stdc+:} false; then :
4045  $as_echo_n "(cached) " >&6
4046else
4047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048/* end confdefs.h.  */
4049#include <stdlib.h>
4050#include <stdarg.h>
4051#include <string.h>
4052#include <float.h>
4053
4054int
4055main ()
4056{
4057
4058  ;
4059  return 0;
4060}
4061_ACEOF
4062if ac_fn_c_try_compile "$LINENO"; then :
4063  ac_cv_header_stdc=yes
4064else
4065  ac_cv_header_stdc=no
4066fi
4067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068
4069if test $ac_cv_header_stdc = yes; then
4070  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072/* end confdefs.h.  */
4073#include <string.h>
4074
4075_ACEOF
4076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4077  $EGREP "memchr" >/dev/null 2>&1; then :
4078
4079else
4080  ac_cv_header_stdc=no
4081fi
4082rm -f conftest*
4083
4084fi
4085
4086if test $ac_cv_header_stdc = yes; then
4087  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089/* end confdefs.h.  */
4090#include <stdlib.h>
4091
4092_ACEOF
4093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094  $EGREP "free" >/dev/null 2>&1; then :
4095
4096else
4097  ac_cv_header_stdc=no
4098fi
4099rm -f conftest*
4100
4101fi
4102
4103if test $ac_cv_header_stdc = yes; then
4104  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4105  if test "$cross_compiling" = yes; then :
4106  :
4107else
4108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h.  */
4110#include <ctype.h>
4111#include <stdlib.h>
4112#if ((' ' & 0x0FF) == 0x020)
4113# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4114# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4115#else
4116# define ISLOWER(c) \
4117		   (('a' <= (c) && (c) <= 'i') \
4118		     || ('j' <= (c) && (c) <= 'r') \
4119		     || ('s' <= (c) && (c) <= 'z'))
4120# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4121#endif
4122
4123#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4124int
4125main ()
4126{
4127  int i;
4128  for (i = 0; i < 256; i++)
4129    if (XOR (islower (i), ISLOWER (i))
4130	|| toupper (i) != TOUPPER (i))
4131      return 2;
4132  return 0;
4133}
4134_ACEOF
4135if ac_fn_c_try_run "$LINENO"; then :
4136
4137else
4138  ac_cv_header_stdc=no
4139fi
4140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4141  conftest.$ac_objext conftest.beam conftest.$ac_ext
4142fi
4143
4144fi
4145fi
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4147$as_echo "$ac_cv_header_stdc" >&6; }
4148if test $ac_cv_header_stdc = yes; then
4149
4150$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4151
4152fi
4153
4154# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4155for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4156		  inttypes.h stdint.h unistd.h
4157do :
4158  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4159ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4160"
4161if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4162  cat >>confdefs.h <<_ACEOF
4163#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4164_ACEOF
4165
4166fi
4167
4168done
4169
4170
4171
4172
4173ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4174if test "x$ac_cv_have_decl___clang__" = xyes; then :
4175  CLANGCC="yes"
4176else
4177  CLANGCC="no"
4178fi
4179
4180ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4181if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4182  INTELCC="yes"
4183else
4184  INTELCC="no"
4185fi
4186
4187ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4188if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4189  SUNCC="yes"
4190else
4191  SUNCC="no"
4192fi
4193
4194
4195
4196
4197if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4198	if test -n "$ac_tool_prefix"; then
4199  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4200set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202$as_echo_n "checking for $ac_word... " >&6; }
4203if ${ac_cv_path_PKG_CONFIG+:} false; then :
4204  $as_echo_n "(cached) " >&6
4205else
4206  case $PKG_CONFIG in
4207  [\\/]* | ?:[\\/]*)
4208  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4209  ;;
4210  *)
4211  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214  IFS=$as_save_IFS
4215  test -z "$as_dir" && as_dir=.
4216    for ac_exec_ext in '' $ac_executable_extensions; do
4217  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220    break 2
4221  fi
4222done
4223  done
4224IFS=$as_save_IFS
4225
4226  ;;
4227esac
4228fi
4229PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4230if test -n "$PKG_CONFIG"; then
4231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4232$as_echo "$PKG_CONFIG" >&6; }
4233else
4234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235$as_echo "no" >&6; }
4236fi
4237
4238
4239fi
4240if test -z "$ac_cv_path_PKG_CONFIG"; then
4241  ac_pt_PKG_CONFIG=$PKG_CONFIG
4242  # Extract the first word of "pkg-config", so it can be a program name with args.
4243set dummy pkg-config; ac_word=$2
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245$as_echo_n "checking for $ac_word... " >&6; }
4246if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249  case $ac_pt_PKG_CONFIG in
4250  [\\/]* | ?:[\\/]*)
4251  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4252  ;;
4253  *)
4254  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH
4256do
4257  IFS=$as_save_IFS
4258  test -z "$as_dir" && as_dir=.
4259    for ac_exec_ext in '' $ac_executable_extensions; do
4260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263    break 2
4264  fi
4265done
4266  done
4267IFS=$as_save_IFS
4268
4269  ;;
4270esac
4271fi
4272ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4273if test -n "$ac_pt_PKG_CONFIG"; then
4274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4275$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4276else
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278$as_echo "no" >&6; }
4279fi
4280
4281  if test "x$ac_pt_PKG_CONFIG" = x; then
4282    PKG_CONFIG=""
4283  else
4284    case $cross_compiling:$ac_tool_warned in
4285yes:)
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4288ac_tool_warned=yes ;;
4289esac
4290    PKG_CONFIG=$ac_pt_PKG_CONFIG
4291  fi
4292else
4293  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4294fi
4295
4296fi
4297if test -n "$PKG_CONFIG"; then
4298	_pkg_min_version=0.9.0
4299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4300$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4301	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4302		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4303$as_echo "yes" >&6; }
4304	else
4305		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306$as_echo "no" >&6; }
4307		PKG_CONFIG=""
4308	fi
4309
4310fi
4311# Make sure we can run config.sub.
4312$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4313  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4314
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4316$as_echo_n "checking build system type... " >&6; }
4317if ${ac_cv_build+:} false; then :
4318  $as_echo_n "(cached) " >&6
4319else
4320  ac_build_alias=$build_alias
4321test "x$ac_build_alias" = x &&
4322  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4323test "x$ac_build_alias" = x &&
4324  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4325ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4326  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4327
4328fi
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4330$as_echo "$ac_cv_build" >&6; }
4331case $ac_cv_build in
4332*-*-*) ;;
4333*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4334esac
4335build=$ac_cv_build
4336ac_save_IFS=$IFS; IFS='-'
4337set x $ac_cv_build
4338shift
4339build_cpu=$1
4340build_vendor=$2
4341shift; shift
4342# Remember, the first character of IFS is used to create $*,
4343# except with old shells:
4344build_os=$*
4345IFS=$ac_save_IFS
4346case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4347
4348
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4350$as_echo_n "checking host system type... " >&6; }
4351if ${ac_cv_host+:} false; then :
4352  $as_echo_n "(cached) " >&6
4353else
4354  if test "x$host_alias" = x; then
4355  ac_cv_host=$ac_cv_build
4356else
4357  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4358    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4359fi
4360
4361fi
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4363$as_echo "$ac_cv_host" >&6; }
4364case $ac_cv_host in
4365*-*-*) ;;
4366*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4367esac
4368host=$ac_cv_host
4369ac_save_IFS=$IFS; IFS='-'
4370set x $ac_cv_host
4371shift
4372host_cpu=$1
4373host_vendor=$2
4374shift; shift
4375# Remember, the first character of IFS is used to create $*,
4376# except with old shells:
4377host_os=$*
4378IFS=$ac_save_IFS
4379case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4380
4381
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4383$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4384if ${ac_cv_path_SED+:} false; then :
4385  $as_echo_n "(cached) " >&6
4386else
4387            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4388     for ac_i in 1 2 3 4 5 6 7; do
4389       ac_script="$ac_script$as_nl$ac_script"
4390     done
4391     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4392     { ac_script=; unset ac_script;}
4393     if test -z "$SED"; then
4394  ac_path_SED_found=false
4395  # Loop through the user's path and test for each of PROGNAME-LIST
4396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH
4398do
4399  IFS=$as_save_IFS
4400  test -z "$as_dir" && as_dir=.
4401    for ac_prog in sed gsed; do
4402    for ac_exec_ext in '' $ac_executable_extensions; do
4403      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4404      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4405# Check for GNU ac_path_SED and select it if it is found.
4406  # Check for GNU $ac_path_SED
4407case `"$ac_path_SED" --version 2>&1` in
4408*GNU*)
4409  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4410*)
4411  ac_count=0
4412  $as_echo_n 0123456789 >"conftest.in"
4413  while :
4414  do
4415    cat "conftest.in" "conftest.in" >"conftest.tmp"
4416    mv "conftest.tmp" "conftest.in"
4417    cp "conftest.in" "conftest.nl"
4418    $as_echo '' >> "conftest.nl"
4419    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4420    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4421    as_fn_arith $ac_count + 1 && ac_count=$as_val
4422    if test $ac_count -gt ${ac_path_SED_max-0}; then
4423      # Best one so far, save it but keep looking for a better one
4424      ac_cv_path_SED="$ac_path_SED"
4425      ac_path_SED_max=$ac_count
4426    fi
4427    # 10*(2^10) chars as input seems more than enough
4428    test $ac_count -gt 10 && break
4429  done
4430  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4431esac
4432
4433      $ac_path_SED_found && break 3
4434    done
4435  done
4436  done
4437IFS=$as_save_IFS
4438  if test -z "$ac_cv_path_SED"; then
4439    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4440  fi
4441else
4442  ac_cv_path_SED=$SED
4443fi
4444
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4447$as_echo "$ac_cv_path_SED" >&6; }
4448 SED="$ac_cv_path_SED"
4449  rm -f conftest.sed
4450
4451
4452
4453
4454
4455
4456# Check whether --enable-selective-werror was given.
4457if test "${enable_selective_werror+set}" = set; then :
4458  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4459else
4460  SELECTIVE_WERROR=yes
4461fi
4462
4463
4464# -v is too short to test reliably with XORG_TESTSET_CFLAG
4465if test "x$SUNCC" = "xyes"; then
4466    BASE_CFLAGS="-v"
4467else
4468    BASE_CFLAGS=""
4469fi
4470
4471# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4472
4473
4474
4475
4476
4477xorg_testset_save_CFLAGS="$CFLAGS"
4478
4479if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4480	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h.  */
4488int i;
4489_ACEOF
4490if ac_fn_c_try_compile "$LINENO"; then :
4491  xorg_cv_cc_flag_unknown_warning_option=yes
4492else
4493  xorg_cv_cc_flag_unknown_warning_option=no
4494fi
4495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4499	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4500	CFLAGS="$xorg_testset_save_CFLAGS"
4501fi
4502
4503if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4504	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4506	fi
4507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4511  $as_echo_n "(cached) " >&6
4512else
4513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514/* end confdefs.h.  */
4515int i;
4516_ACEOF
4517if ac_fn_c_try_compile "$LINENO"; then :
4518  xorg_cv_cc_flag_unused_command_line_argument=yes
4519else
4520  xorg_cv_cc_flag_unused_command_line_argument=no
4521fi
4522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523fi
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4526	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4527	CFLAGS="$xorg_testset_save_CFLAGS"
4528fi
4529
4530found="no"
4531
4532	if test $found = "no" ; then
4533		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4535		fi
4536
4537		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4539		fi
4540
4541		CFLAGS="$CFLAGS -Wall"
4542
4543		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4544$as_echo_n "checking if $CC supports -Wall... " >&6; }
4545		cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
4546		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h.  */
4551int i;
4552int
4553main ()
4554{
4555
4556  ;
4557  return 0;
4558}
4559_ACEOF
4560if ac_fn_c_try_link "$LINENO"; then :
4561  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4562else
4563  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4564fi
4565rm -f core conftest.err conftest.$ac_objext \
4566    conftest$ac_exeext conftest.$ac_ext
4567fi
4568
4569
4570		CFLAGS="$xorg_testset_save_CFLAGS"
4571
4572		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4573		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4574$as_echo "$supported" >&6; }
4575		if test "$supported" = "yes" ; then
4576			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4577			found="yes"
4578		fi
4579	fi
4580
4581
4582
4583
4584
4585
4586
4587xorg_testset_save_CFLAGS="$CFLAGS"
4588
4589if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4590	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4592$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4593if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4594  $as_echo_n "(cached) " >&6
4595else
4596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h.  */
4598int i;
4599_ACEOF
4600if ac_fn_c_try_compile "$LINENO"; then :
4601  xorg_cv_cc_flag_unknown_warning_option=yes
4602else
4603  xorg_cv_cc_flag_unknown_warning_option=no
4604fi
4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606fi
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4608$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4609	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4610	CFLAGS="$xorg_testset_save_CFLAGS"
4611fi
4612
4613if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4614	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4616	fi
4617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4619$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4620if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4621  $as_echo_n "(cached) " >&6
4622else
4623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624/* end confdefs.h.  */
4625int i;
4626_ACEOF
4627if ac_fn_c_try_compile "$LINENO"; then :
4628  xorg_cv_cc_flag_unused_command_line_argument=yes
4629else
4630  xorg_cv_cc_flag_unused_command_line_argument=no
4631fi
4632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633fi
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4635$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4636	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4637	CFLAGS="$xorg_testset_save_CFLAGS"
4638fi
4639
4640found="no"
4641
4642	if test $found = "no" ; then
4643		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4645		fi
4646
4647		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4649		fi
4650
4651		CFLAGS="$CFLAGS -Wpointer-arith"
4652
4653		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4654$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4655		cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
4656		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4657  $as_echo_n "(cached) " >&6
4658else
4659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h.  */
4661int i;
4662int
4663main ()
4664{
4665
4666  ;
4667  return 0;
4668}
4669_ACEOF
4670if ac_fn_c_try_link "$LINENO"; then :
4671  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4672else
4673  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4674fi
4675rm -f core conftest.err conftest.$ac_objext \
4676    conftest$ac_exeext conftest.$ac_ext
4677fi
4678
4679
4680		CFLAGS="$xorg_testset_save_CFLAGS"
4681
4682		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4683		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4684$as_echo "$supported" >&6; }
4685		if test "$supported" = "yes" ; then
4686			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4687			found="yes"
4688		fi
4689	fi
4690
4691
4692
4693
4694
4695
4696
4697xorg_testset_save_CFLAGS="$CFLAGS"
4698
4699if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4704  $as_echo_n "(cached) " >&6
4705else
4706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707/* end confdefs.h.  */
4708int i;
4709_ACEOF
4710if ac_fn_c_try_compile "$LINENO"; then :
4711  xorg_cv_cc_flag_unknown_warning_option=yes
4712else
4713  xorg_cv_cc_flag_unknown_warning_option=no
4714fi
4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716fi
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4719	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4720	CFLAGS="$xorg_testset_save_CFLAGS"
4721fi
4722
4723if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4724	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4725		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4726	fi
4727	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4731  $as_echo_n "(cached) " >&6
4732else
4733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734/* end confdefs.h.  */
4735int i;
4736_ACEOF
4737if ac_fn_c_try_compile "$LINENO"; then :
4738  xorg_cv_cc_flag_unused_command_line_argument=yes
4739else
4740  xorg_cv_cc_flag_unused_command_line_argument=no
4741fi
4742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743fi
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4746	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4747	CFLAGS="$xorg_testset_save_CFLAGS"
4748fi
4749
4750found="no"
4751
4752	if test $found = "no" ; then
4753		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4754			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4755		fi
4756
4757		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4758			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4759		fi
4760
4761		CFLAGS="$CFLAGS -Wstrict-prototypes"
4762
4763		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4764$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4765		cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
4766		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4767  $as_echo_n "(cached) " >&6
4768else
4769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h.  */
4771int i;
4772int
4773main ()
4774{
4775
4776  ;
4777  return 0;
4778}
4779_ACEOF
4780if ac_fn_c_try_link "$LINENO"; then :
4781  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4782else
4783  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4784fi
4785rm -f core conftest.err conftest.$ac_objext \
4786    conftest$ac_exeext conftest.$ac_ext
4787fi
4788
4789
4790		CFLAGS="$xorg_testset_save_CFLAGS"
4791
4792		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4793		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4794$as_echo "$supported" >&6; }
4795		if test "$supported" = "yes" ; then
4796			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4797			found="yes"
4798		fi
4799	fi
4800
4801
4802
4803
4804
4805
4806
4807xorg_testset_save_CFLAGS="$CFLAGS"
4808
4809if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4810	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4811	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4812$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4813if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4814  $as_echo_n "(cached) " >&6
4815else
4816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817/* end confdefs.h.  */
4818int i;
4819_ACEOF
4820if ac_fn_c_try_compile "$LINENO"; then :
4821  xorg_cv_cc_flag_unknown_warning_option=yes
4822else
4823  xorg_cv_cc_flag_unknown_warning_option=no
4824fi
4825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4828$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4829	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4830	CFLAGS="$xorg_testset_save_CFLAGS"
4831fi
4832
4833if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4834	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4835		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4836	fi
4837	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4839$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4840if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4841  $as_echo_n "(cached) " >&6
4842else
4843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844/* end confdefs.h.  */
4845int i;
4846_ACEOF
4847if ac_fn_c_try_compile "$LINENO"; then :
4848  xorg_cv_cc_flag_unused_command_line_argument=yes
4849else
4850  xorg_cv_cc_flag_unused_command_line_argument=no
4851fi
4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4855$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4856	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4857	CFLAGS="$xorg_testset_save_CFLAGS"
4858fi
4859
4860found="no"
4861
4862	if test $found = "no" ; then
4863		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4864			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4865		fi
4866
4867		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4868			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4869		fi
4870
4871		CFLAGS="$CFLAGS -Wmissing-prototypes"
4872
4873		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4874$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4875		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
4876		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4877  $as_echo_n "(cached) " >&6
4878else
4879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h.  */
4881int i;
4882int
4883main ()
4884{
4885
4886  ;
4887  return 0;
4888}
4889_ACEOF
4890if ac_fn_c_try_link "$LINENO"; then :
4891  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4892else
4893  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4894fi
4895rm -f core conftest.err conftest.$ac_objext \
4896    conftest$ac_exeext conftest.$ac_ext
4897fi
4898
4899
4900		CFLAGS="$xorg_testset_save_CFLAGS"
4901
4902		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4903		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4904$as_echo "$supported" >&6; }
4905		if test "$supported" = "yes" ; then
4906			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4907			found="yes"
4908		fi
4909	fi
4910
4911
4912
4913
4914
4915
4916
4917xorg_testset_save_CFLAGS="$CFLAGS"
4918
4919if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928int i;
4929_ACEOF
4930if ac_fn_c_try_compile "$LINENO"; then :
4931  xorg_cv_cc_flag_unknown_warning_option=yes
4932else
4933  xorg_cv_cc_flag_unknown_warning_option=no
4934fi
4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936fi
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4939	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4940	CFLAGS="$xorg_testset_save_CFLAGS"
4941fi
4942
4943if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4944	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4946	fi
4947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4951  $as_echo_n "(cached) " >&6
4952else
4953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954/* end confdefs.h.  */
4955int i;
4956_ACEOF
4957if ac_fn_c_try_compile "$LINENO"; then :
4958  xorg_cv_cc_flag_unused_command_line_argument=yes
4959else
4960  xorg_cv_cc_flag_unused_command_line_argument=no
4961fi
4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963fi
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4966	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4967	CFLAGS="$xorg_testset_save_CFLAGS"
4968fi
4969
4970found="no"
4971
4972	if test $found = "no" ; then
4973		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4975		fi
4976
4977		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4979		fi
4980
4981		CFLAGS="$CFLAGS -Wmissing-declarations"
4982
4983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4984$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4985		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
4986		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4987  $as_echo_n "(cached) " >&6
4988else
4989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h.  */
4991int i;
4992int
4993main ()
4994{
4995
4996  ;
4997  return 0;
4998}
4999_ACEOF
5000if ac_fn_c_try_link "$LINENO"; then :
5001  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5002else
5003  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5004fi
5005rm -f core conftest.err conftest.$ac_objext \
5006    conftest$ac_exeext conftest.$ac_ext
5007fi
5008
5009
5010		CFLAGS="$xorg_testset_save_CFLAGS"
5011
5012		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5014$as_echo "$supported" >&6; }
5015		if test "$supported" = "yes" ; then
5016			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5017			found="yes"
5018		fi
5019	fi
5020
5021
5022
5023
5024
5025
5026
5027xorg_testset_save_CFLAGS="$CFLAGS"
5028
5029if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5030	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5032$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5033if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5034  $as_echo_n "(cached) " >&6
5035else
5036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h.  */
5038int i;
5039_ACEOF
5040if ac_fn_c_try_compile "$LINENO"; then :
5041  xorg_cv_cc_flag_unknown_warning_option=yes
5042else
5043  xorg_cv_cc_flag_unknown_warning_option=no
5044fi
5045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046fi
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5048$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5049	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5050	CFLAGS="$xorg_testset_save_CFLAGS"
5051fi
5052
5053if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5054	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5055		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5056	fi
5057	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5059$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5060if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5061  $as_echo_n "(cached) " >&6
5062else
5063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065int i;
5066_ACEOF
5067if ac_fn_c_try_compile "$LINENO"; then :
5068  xorg_cv_cc_flag_unused_command_line_argument=yes
5069else
5070  xorg_cv_cc_flag_unused_command_line_argument=no
5071fi
5072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073fi
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5075$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5076	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5077	CFLAGS="$xorg_testset_save_CFLAGS"
5078fi
5079
5080found="no"
5081
5082	if test $found = "no" ; then
5083		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5085		fi
5086
5087		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5089		fi
5090
5091		CFLAGS="$CFLAGS -Wnested-externs"
5092
5093		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5094$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5095		cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
5096		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5097  $as_echo_n "(cached) " >&6
5098else
5099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100/* end confdefs.h.  */
5101int i;
5102int
5103main ()
5104{
5105
5106  ;
5107  return 0;
5108}
5109_ACEOF
5110if ac_fn_c_try_link "$LINENO"; then :
5111  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5112else
5113  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5114fi
5115rm -f core conftest.err conftest.$ac_objext \
5116    conftest$ac_exeext conftest.$ac_ext
5117fi
5118
5119
5120		CFLAGS="$xorg_testset_save_CFLAGS"
5121
5122		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5123		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5124$as_echo "$supported" >&6; }
5125		if test "$supported" = "yes" ; then
5126			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5127			found="yes"
5128		fi
5129	fi
5130
5131
5132
5133
5134
5135
5136
5137xorg_testset_save_CFLAGS="$CFLAGS"
5138
5139if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5140	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5142$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5143if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5144  $as_echo_n "(cached) " >&6
5145else
5146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147/* end confdefs.h.  */
5148int i;
5149_ACEOF
5150if ac_fn_c_try_compile "$LINENO"; then :
5151  xorg_cv_cc_flag_unknown_warning_option=yes
5152else
5153  xorg_cv_cc_flag_unknown_warning_option=no
5154fi
5155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156fi
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5158$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5159	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5160	CFLAGS="$xorg_testset_save_CFLAGS"
5161fi
5162
5163if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5164	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5166	fi
5167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5169$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5170if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5171  $as_echo_n "(cached) " >&6
5172else
5173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174/* end confdefs.h.  */
5175int i;
5176_ACEOF
5177if ac_fn_c_try_compile "$LINENO"; then :
5178  xorg_cv_cc_flag_unused_command_line_argument=yes
5179else
5180  xorg_cv_cc_flag_unused_command_line_argument=no
5181fi
5182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183fi
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5185$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5186	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5187	CFLAGS="$xorg_testset_save_CFLAGS"
5188fi
5189
5190found="no"
5191
5192	if test $found = "no" ; then
5193		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5195		fi
5196
5197		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5199		fi
5200
5201		CFLAGS="$CFLAGS -Wbad-function-cast"
5202
5203		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5204$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5205		cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
5206		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5207  $as_echo_n "(cached) " >&6
5208else
5209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210/* end confdefs.h.  */
5211int i;
5212int
5213main ()
5214{
5215
5216  ;
5217  return 0;
5218}
5219_ACEOF
5220if ac_fn_c_try_link "$LINENO"; then :
5221  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5222else
5223  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5224fi
5225rm -f core conftest.err conftest.$ac_objext \
5226    conftest$ac_exeext conftest.$ac_ext
5227fi
5228
5229
5230		CFLAGS="$xorg_testset_save_CFLAGS"
5231
5232		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5233		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5234$as_echo "$supported" >&6; }
5235		if test "$supported" = "yes" ; then
5236			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5237			found="yes"
5238		fi
5239	fi
5240
5241
5242
5243
5244
5245
5246
5247xorg_testset_save_CFLAGS="$CFLAGS"
5248
5249if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5250	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5251	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5252$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5253if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5254  $as_echo_n "(cached) " >&6
5255else
5256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h.  */
5258int i;
5259_ACEOF
5260if ac_fn_c_try_compile "$LINENO"; then :
5261  xorg_cv_cc_flag_unknown_warning_option=yes
5262else
5263  xorg_cv_cc_flag_unknown_warning_option=no
5264fi
5265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266fi
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5268$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5269	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5270	CFLAGS="$xorg_testset_save_CFLAGS"
5271fi
5272
5273if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5274	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5275		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5276	fi
5277	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5279$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5280if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5281  $as_echo_n "(cached) " >&6
5282else
5283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284/* end confdefs.h.  */
5285int i;
5286_ACEOF
5287if ac_fn_c_try_compile "$LINENO"; then :
5288  xorg_cv_cc_flag_unused_command_line_argument=yes
5289else
5290  xorg_cv_cc_flag_unused_command_line_argument=no
5291fi
5292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5295$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5296	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5297	CFLAGS="$xorg_testset_save_CFLAGS"
5298fi
5299
5300found="no"
5301
5302	if test $found = "no" ; then
5303		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5305		fi
5306
5307		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5309		fi
5310
5311		CFLAGS="$CFLAGS -Wformat=2"
5312
5313		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5314$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5315		cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
5316		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5317  $as_echo_n "(cached) " >&6
5318else
5319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321int i;
5322int
5323main ()
5324{
5325
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330if ac_fn_c_try_link "$LINENO"; then :
5331  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5332else
5333  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5334fi
5335rm -f core conftest.err conftest.$ac_objext \
5336    conftest$ac_exeext conftest.$ac_ext
5337fi
5338
5339
5340		CFLAGS="$xorg_testset_save_CFLAGS"
5341
5342		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5343		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5344$as_echo "$supported" >&6; }
5345		if test "$supported" = "yes" ; then
5346			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5347			found="yes"
5348		fi
5349	fi
5350
5351	if test $found = "no" ; then
5352		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5354		fi
5355
5356		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5358		fi
5359
5360		CFLAGS="$CFLAGS -Wformat"
5361
5362		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5363$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5364		cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
5365		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h.  */
5370int i;
5371int
5372main ()
5373{
5374
5375  ;
5376  return 0;
5377}
5378_ACEOF
5379if ac_fn_c_try_link "$LINENO"; then :
5380  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5381else
5382  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5383fi
5384rm -f core conftest.err conftest.$ac_objext \
5385    conftest$ac_exeext conftest.$ac_ext
5386fi
5387
5388
5389		CFLAGS="$xorg_testset_save_CFLAGS"
5390
5391		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5392		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5393$as_echo "$supported" >&6; }
5394		if test "$supported" = "yes" ; then
5395			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5396			found="yes"
5397		fi
5398	fi
5399
5400
5401
5402
5403
5404
5405
5406xorg_testset_save_CFLAGS="$CFLAGS"
5407
5408if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5409	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5413  $as_echo_n "(cached) " >&6
5414else
5415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416/* end confdefs.h.  */
5417int i;
5418_ACEOF
5419if ac_fn_c_try_compile "$LINENO"; then :
5420  xorg_cv_cc_flag_unknown_warning_option=yes
5421else
5422  xorg_cv_cc_flag_unknown_warning_option=no
5423fi
5424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425fi
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5428	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5429	CFLAGS="$xorg_testset_save_CFLAGS"
5430fi
5431
5432if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5433	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5435	fi
5436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5440  $as_echo_n "(cached) " >&6
5441else
5442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h.  */
5444int i;
5445_ACEOF
5446if ac_fn_c_try_compile "$LINENO"; then :
5447  xorg_cv_cc_flag_unused_command_line_argument=yes
5448else
5449  xorg_cv_cc_flag_unused_command_line_argument=no
5450fi
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452fi
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5455	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5456	CFLAGS="$xorg_testset_save_CFLAGS"
5457fi
5458
5459found="no"
5460
5461	if test $found = "no" ; then
5462		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5464		fi
5465
5466		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5468		fi
5469
5470		CFLAGS="$CFLAGS -Wold-style-definition"
5471
5472		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5473$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5474		cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
5475		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5476  $as_echo_n "(cached) " >&6
5477else
5478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h.  */
5480int i;
5481int
5482main ()
5483{
5484
5485  ;
5486  return 0;
5487}
5488_ACEOF
5489if ac_fn_c_try_link "$LINENO"; then :
5490  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5491else
5492  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5493fi
5494rm -f core conftest.err conftest.$ac_objext \
5495    conftest$ac_exeext conftest.$ac_ext
5496fi
5497
5498
5499		CFLAGS="$xorg_testset_save_CFLAGS"
5500
5501		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5502		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5503$as_echo "$supported" >&6; }
5504		if test "$supported" = "yes" ; then
5505			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5506			found="yes"
5507		fi
5508	fi
5509
5510
5511
5512
5513
5514
5515
5516xorg_testset_save_CFLAGS="$CFLAGS"
5517
5518if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5519	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5521$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5522if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5523  $as_echo_n "(cached) " >&6
5524else
5525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h.  */
5527int i;
5528_ACEOF
5529if ac_fn_c_try_compile "$LINENO"; then :
5530  xorg_cv_cc_flag_unknown_warning_option=yes
5531else
5532  xorg_cv_cc_flag_unknown_warning_option=no
5533fi
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535fi
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5537$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5538	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5539	CFLAGS="$xorg_testset_save_CFLAGS"
5540fi
5541
5542if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5543	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5544		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545	fi
5546	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5548$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5549if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5550  $as_echo_n "(cached) " >&6
5551else
5552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h.  */
5554int i;
5555_ACEOF
5556if ac_fn_c_try_compile "$LINENO"; then :
5557  xorg_cv_cc_flag_unused_command_line_argument=yes
5558else
5559  xorg_cv_cc_flag_unused_command_line_argument=no
5560fi
5561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562fi
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5564$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5565	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5566	CFLAGS="$xorg_testset_save_CFLAGS"
5567fi
5568
5569found="no"
5570
5571	if test $found = "no" ; then
5572		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5573			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574		fi
5575
5576		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5577			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5578		fi
5579
5580		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5581
5582		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5583$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5584		cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
5585		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5586  $as_echo_n "(cached) " >&6
5587else
5588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h.  */
5590int i;
5591int
5592main ()
5593{
5594
5595  ;
5596  return 0;
5597}
5598_ACEOF
5599if ac_fn_c_try_link "$LINENO"; then :
5600  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5601else
5602  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5603fi
5604rm -f core conftest.err conftest.$ac_objext \
5605    conftest$ac_exeext conftest.$ac_ext
5606fi
5607
5608
5609		CFLAGS="$xorg_testset_save_CFLAGS"
5610
5611		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5612		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5613$as_echo "$supported" >&6; }
5614		if test "$supported" = "yes" ; then
5615			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5616			found="yes"
5617		fi
5618	fi
5619
5620
5621
5622# This chunk adds additional warnings that could catch undesired effects.
5623
5624
5625
5626
5627
5628xorg_testset_save_CFLAGS="$CFLAGS"
5629
5630if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5631	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5633$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5634if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5635  $as_echo_n "(cached) " >&6
5636else
5637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638/* end confdefs.h.  */
5639int i;
5640_ACEOF
5641if ac_fn_c_try_compile "$LINENO"; then :
5642  xorg_cv_cc_flag_unknown_warning_option=yes
5643else
5644  xorg_cv_cc_flag_unknown_warning_option=no
5645fi
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647fi
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5649$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5650	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5651	CFLAGS="$xorg_testset_save_CFLAGS"
5652fi
5653
5654if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5655	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5656		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5657	fi
5658	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5660$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5661if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5662  $as_echo_n "(cached) " >&6
5663else
5664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665/* end confdefs.h.  */
5666int i;
5667_ACEOF
5668if ac_fn_c_try_compile "$LINENO"; then :
5669  xorg_cv_cc_flag_unused_command_line_argument=yes
5670else
5671  xorg_cv_cc_flag_unused_command_line_argument=no
5672fi
5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674fi
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5676$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5677	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5678	CFLAGS="$xorg_testset_save_CFLAGS"
5679fi
5680
5681found="no"
5682
5683	if test $found = "no" ; then
5684		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5685			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686		fi
5687
5688		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5689			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5690		fi
5691
5692		CFLAGS="$CFLAGS -Wunused"
5693
5694		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5695$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5696		cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
5697		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5698  $as_echo_n "(cached) " >&6
5699else
5700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701/* end confdefs.h.  */
5702int i;
5703int
5704main ()
5705{
5706
5707  ;
5708  return 0;
5709}
5710_ACEOF
5711if ac_fn_c_try_link "$LINENO"; then :
5712  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5713else
5714  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5715fi
5716rm -f core conftest.err conftest.$ac_objext \
5717    conftest$ac_exeext conftest.$ac_ext
5718fi
5719
5720
5721		CFLAGS="$xorg_testset_save_CFLAGS"
5722
5723		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5724		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5725$as_echo "$supported" >&6; }
5726		if test "$supported" = "yes" ; then
5727			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5728			found="yes"
5729		fi
5730	fi
5731
5732
5733
5734
5735
5736
5737
5738xorg_testset_save_CFLAGS="$CFLAGS"
5739
5740if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5745  $as_echo_n "(cached) " >&6
5746else
5747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748/* end confdefs.h.  */
5749int i;
5750_ACEOF
5751if ac_fn_c_try_compile "$LINENO"; then :
5752  xorg_cv_cc_flag_unknown_warning_option=yes
5753else
5754  xorg_cv_cc_flag_unknown_warning_option=no
5755fi
5756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5760	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5761	CFLAGS="$xorg_testset_save_CFLAGS"
5762fi
5763
5764if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5765	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767	fi
5768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5772  $as_echo_n "(cached) " >&6
5773else
5774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775/* end confdefs.h.  */
5776int i;
5777_ACEOF
5778if ac_fn_c_try_compile "$LINENO"; then :
5779  xorg_cv_cc_flag_unused_command_line_argument=yes
5780else
5781  xorg_cv_cc_flag_unused_command_line_argument=no
5782fi
5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784fi
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5787	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5788	CFLAGS="$xorg_testset_save_CFLAGS"
5789fi
5790
5791found="no"
5792
5793	if test $found = "no" ; then
5794		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5796		fi
5797
5798		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5800		fi
5801
5802		CFLAGS="$CFLAGS -Wuninitialized"
5803
5804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5805$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5806		cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
5807		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5808  $as_echo_n "(cached) " >&6
5809else
5810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811/* end confdefs.h.  */
5812int i;
5813int
5814main ()
5815{
5816
5817  ;
5818  return 0;
5819}
5820_ACEOF
5821if ac_fn_c_try_link "$LINENO"; then :
5822  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5823else
5824  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5825fi
5826rm -f core conftest.err conftest.$ac_objext \
5827    conftest$ac_exeext conftest.$ac_ext
5828fi
5829
5830
5831		CFLAGS="$xorg_testset_save_CFLAGS"
5832
5833		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5835$as_echo "$supported" >&6; }
5836		if test "$supported" = "yes" ; then
5837			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5838			found="yes"
5839		fi
5840	fi
5841
5842
5843
5844
5845
5846
5847
5848xorg_testset_save_CFLAGS="$CFLAGS"
5849
5850if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5851	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5853$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5854if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5855  $as_echo_n "(cached) " >&6
5856else
5857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858/* end confdefs.h.  */
5859int i;
5860_ACEOF
5861if ac_fn_c_try_compile "$LINENO"; then :
5862  xorg_cv_cc_flag_unknown_warning_option=yes
5863else
5864  xorg_cv_cc_flag_unknown_warning_option=no
5865fi
5866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867fi
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5869$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5870	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5871	CFLAGS="$xorg_testset_save_CFLAGS"
5872fi
5873
5874if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5875	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5877	fi
5878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5880$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5881if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5882  $as_echo_n "(cached) " >&6
5883else
5884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885/* end confdefs.h.  */
5886int i;
5887_ACEOF
5888if ac_fn_c_try_compile "$LINENO"; then :
5889  xorg_cv_cc_flag_unused_command_line_argument=yes
5890else
5891  xorg_cv_cc_flag_unused_command_line_argument=no
5892fi
5893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894fi
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5896$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5897	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5898	CFLAGS="$xorg_testset_save_CFLAGS"
5899fi
5900
5901found="no"
5902
5903	if test $found = "no" ; then
5904		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5905			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5906		fi
5907
5908		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5909			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5910		fi
5911
5912		CFLAGS="$CFLAGS -Wshadow"
5913
5914		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5915$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5916		cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
5917		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5918  $as_echo_n "(cached) " >&6
5919else
5920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h.  */
5922int i;
5923int
5924main ()
5925{
5926
5927  ;
5928  return 0;
5929}
5930_ACEOF
5931if ac_fn_c_try_link "$LINENO"; then :
5932  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5933else
5934  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5935fi
5936rm -f core conftest.err conftest.$ac_objext \
5937    conftest$ac_exeext conftest.$ac_ext
5938fi
5939
5940
5941		CFLAGS="$xorg_testset_save_CFLAGS"
5942
5943		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5944		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5945$as_echo "$supported" >&6; }
5946		if test "$supported" = "yes" ; then
5947			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5948			found="yes"
5949		fi
5950	fi
5951
5952
5953
5954
5955
5956
5957
5958xorg_testset_save_CFLAGS="$CFLAGS"
5959
5960if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5965  $as_echo_n "(cached) " >&6
5966else
5967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968/* end confdefs.h.  */
5969int i;
5970_ACEOF
5971if ac_fn_c_try_compile "$LINENO"; then :
5972  xorg_cv_cc_flag_unknown_warning_option=yes
5973else
5974  xorg_cv_cc_flag_unknown_warning_option=no
5975fi
5976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977fi
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5980	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5981	CFLAGS="$xorg_testset_save_CFLAGS"
5982fi
5983
5984if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5985	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5987	fi
5988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5992  $as_echo_n "(cached) " >&6
5993else
5994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995/* end confdefs.h.  */
5996int i;
5997_ACEOF
5998if ac_fn_c_try_compile "$LINENO"; then :
5999  xorg_cv_cc_flag_unused_command_line_argument=yes
6000else
6001  xorg_cv_cc_flag_unused_command_line_argument=no
6002fi
6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004fi
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6007	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6008	CFLAGS="$xorg_testset_save_CFLAGS"
6009fi
6010
6011found="no"
6012
6013	if test $found = "no" ; then
6014		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6016		fi
6017
6018		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6020		fi
6021
6022		CFLAGS="$CFLAGS -Wcast-qual"
6023
6024		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6025$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6026		cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
6027		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6028  $as_echo_n "(cached) " >&6
6029else
6030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031/* end confdefs.h.  */
6032int i;
6033int
6034main ()
6035{
6036
6037  ;
6038  return 0;
6039}
6040_ACEOF
6041if ac_fn_c_try_link "$LINENO"; then :
6042  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6043else
6044  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6045fi
6046rm -f core conftest.err conftest.$ac_objext \
6047    conftest$ac_exeext conftest.$ac_ext
6048fi
6049
6050
6051		CFLAGS="$xorg_testset_save_CFLAGS"
6052
6053		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6055$as_echo "$supported" >&6; }
6056		if test "$supported" = "yes" ; then
6057			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6058			found="yes"
6059		fi
6060	fi
6061
6062
6063
6064
6065
6066
6067
6068xorg_testset_save_CFLAGS="$CFLAGS"
6069
6070if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6071	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6073$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6074if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6075  $as_echo_n "(cached) " >&6
6076else
6077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078/* end confdefs.h.  */
6079int i;
6080_ACEOF
6081if ac_fn_c_try_compile "$LINENO"; then :
6082  xorg_cv_cc_flag_unknown_warning_option=yes
6083else
6084  xorg_cv_cc_flag_unknown_warning_option=no
6085fi
6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087fi
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6089$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6090	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6091	CFLAGS="$xorg_testset_save_CFLAGS"
6092fi
6093
6094if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6095	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6096		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097	fi
6098	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6100$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6101if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6102  $as_echo_n "(cached) " >&6
6103else
6104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105/* end confdefs.h.  */
6106int i;
6107_ACEOF
6108if ac_fn_c_try_compile "$LINENO"; then :
6109  xorg_cv_cc_flag_unused_command_line_argument=yes
6110else
6111  xorg_cv_cc_flag_unused_command_line_argument=no
6112fi
6113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114fi
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6116$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6117	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6118	CFLAGS="$xorg_testset_save_CFLAGS"
6119fi
6120
6121found="no"
6122
6123	if test $found = "no" ; then
6124		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6125			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6126		fi
6127
6128		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6129			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6130		fi
6131
6132		CFLAGS="$CFLAGS -Wmissing-noreturn"
6133
6134		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6135$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6136		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
6137		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6138  $as_echo_n "(cached) " >&6
6139else
6140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141/* end confdefs.h.  */
6142int i;
6143int
6144main ()
6145{
6146
6147  ;
6148  return 0;
6149}
6150_ACEOF
6151if ac_fn_c_try_link "$LINENO"; then :
6152  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6153else
6154  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6155fi
6156rm -f core conftest.err conftest.$ac_objext \
6157    conftest$ac_exeext conftest.$ac_ext
6158fi
6159
6160
6161		CFLAGS="$xorg_testset_save_CFLAGS"
6162
6163		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6164		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6165$as_echo "$supported" >&6; }
6166		if test "$supported" = "yes" ; then
6167			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6168			found="yes"
6169		fi
6170	fi
6171
6172
6173
6174
6175
6176
6177
6178xorg_testset_save_CFLAGS="$CFLAGS"
6179
6180if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6181	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6183$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6184if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6185  $as_echo_n "(cached) " >&6
6186else
6187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188/* end confdefs.h.  */
6189int i;
6190_ACEOF
6191if ac_fn_c_try_compile "$LINENO"; then :
6192  xorg_cv_cc_flag_unknown_warning_option=yes
6193else
6194  xorg_cv_cc_flag_unknown_warning_option=no
6195fi
6196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197fi
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6199$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6200	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6201	CFLAGS="$xorg_testset_save_CFLAGS"
6202fi
6203
6204if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6205	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6206		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6207	fi
6208	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6210$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6211if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6212  $as_echo_n "(cached) " >&6
6213else
6214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h.  */
6216int i;
6217_ACEOF
6218if ac_fn_c_try_compile "$LINENO"; then :
6219  xorg_cv_cc_flag_unused_command_line_argument=yes
6220else
6221  xorg_cv_cc_flag_unused_command_line_argument=no
6222fi
6223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224fi
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6226$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6227	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6228	CFLAGS="$xorg_testset_save_CFLAGS"
6229fi
6230
6231found="no"
6232
6233	if test $found = "no" ; then
6234		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6236		fi
6237
6238		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6240		fi
6241
6242		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6243
6244		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6245$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6246		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
6247		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251/* end confdefs.h.  */
6252int i;
6253int
6254main ()
6255{
6256
6257  ;
6258  return 0;
6259}
6260_ACEOF
6261if ac_fn_c_try_link "$LINENO"; then :
6262  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6263else
6264  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6265fi
6266rm -f core conftest.err conftest.$ac_objext \
6267    conftest$ac_exeext conftest.$ac_ext
6268fi
6269
6270
6271		CFLAGS="$xorg_testset_save_CFLAGS"
6272
6273		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6274		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6275$as_echo "$supported" >&6; }
6276		if test "$supported" = "yes" ; then
6277			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6278			found="yes"
6279		fi
6280	fi
6281
6282
6283
6284
6285
6286
6287
6288xorg_testset_save_CFLAGS="$CFLAGS"
6289
6290if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6295  $as_echo_n "(cached) " >&6
6296else
6297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299int i;
6300_ACEOF
6301if ac_fn_c_try_compile "$LINENO"; then :
6302  xorg_cv_cc_flag_unknown_warning_option=yes
6303else
6304  xorg_cv_cc_flag_unknown_warning_option=no
6305fi
6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307fi
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6310	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6311	CFLAGS="$xorg_testset_save_CFLAGS"
6312fi
6313
6314if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6315	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6316		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6317	fi
6318	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6322  $as_echo_n "(cached) " >&6
6323else
6324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h.  */
6326int i;
6327_ACEOF
6328if ac_fn_c_try_compile "$LINENO"; then :
6329  xorg_cv_cc_flag_unused_command_line_argument=yes
6330else
6331  xorg_cv_cc_flag_unused_command_line_argument=no
6332fi
6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6337	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6338	CFLAGS="$xorg_testset_save_CFLAGS"
6339fi
6340
6341found="no"
6342
6343	if test $found = "no" ; then
6344		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346		fi
6347
6348		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6350		fi
6351
6352		CFLAGS="$CFLAGS -Wredundant-decls"
6353
6354		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6355$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6356		cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
6357		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362int i;
6363int
6364main ()
6365{
6366
6367  ;
6368  return 0;
6369}
6370_ACEOF
6371if ac_fn_c_try_link "$LINENO"; then :
6372  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6373else
6374  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6375fi
6376rm -f core conftest.err conftest.$ac_objext \
6377    conftest$ac_exeext conftest.$ac_ext
6378fi
6379
6380
6381		CFLAGS="$xorg_testset_save_CFLAGS"
6382
6383		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6384		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6385$as_echo "$supported" >&6; }
6386		if test "$supported" = "yes" ; then
6387			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6388			found="yes"
6389		fi
6390	fi
6391
6392
6393
6394# These are currently disabled because they are noisy.  They will be enabled
6395# in the future once the codebase is sufficiently modernized to silence
6396# them.  For now, I don't want them to drown out the other warnings.
6397# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6398# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6399# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6400
6401# Turn some warnings into errors, so we don't accidently get successful builds
6402# when there are problems that should be fixed.
6403
6404if test "x$SELECTIVE_WERROR" = "xyes" ; then
6405
6406
6407
6408
6409
6410xorg_testset_save_CFLAGS="$CFLAGS"
6411
6412if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6417  $as_echo_n "(cached) " >&6
6418else
6419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420/* end confdefs.h.  */
6421int i;
6422_ACEOF
6423if ac_fn_c_try_compile "$LINENO"; then :
6424  xorg_cv_cc_flag_unknown_warning_option=yes
6425else
6426  xorg_cv_cc_flag_unknown_warning_option=no
6427fi
6428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6432	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6433	CFLAGS="$xorg_testset_save_CFLAGS"
6434fi
6435
6436if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6437	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6438		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6439	fi
6440	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6444  $as_echo_n "(cached) " >&6
6445else
6446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h.  */
6448int i;
6449_ACEOF
6450if ac_fn_c_try_compile "$LINENO"; then :
6451  xorg_cv_cc_flag_unused_command_line_argument=yes
6452else
6453  xorg_cv_cc_flag_unused_command_line_argument=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456fi
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6459	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6460	CFLAGS="$xorg_testset_save_CFLAGS"
6461fi
6462
6463found="no"
6464
6465	if test $found = "no" ; then
6466		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468		fi
6469
6470		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6472		fi
6473
6474		CFLAGS="$CFLAGS -Werror=implicit"
6475
6476		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6477$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6478		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
6479		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6480  $as_echo_n "(cached) " >&6
6481else
6482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h.  */
6484int i;
6485int
6486main ()
6487{
6488
6489  ;
6490  return 0;
6491}
6492_ACEOF
6493if ac_fn_c_try_link "$LINENO"; then :
6494  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6495else
6496  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6497fi
6498rm -f core conftest.err conftest.$ac_objext \
6499    conftest$ac_exeext conftest.$ac_ext
6500fi
6501
6502
6503		CFLAGS="$xorg_testset_save_CFLAGS"
6504
6505		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6507$as_echo "$supported" >&6; }
6508		if test "$supported" = "yes" ; then
6509			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6510			found="yes"
6511		fi
6512	fi
6513
6514	if test $found = "no" ; then
6515		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6517		fi
6518
6519		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6521		fi
6522
6523		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6524
6525		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6526$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6527		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6528		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6529  $as_echo_n "(cached) " >&6
6530else
6531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532/* end confdefs.h.  */
6533int i;
6534int
6535main ()
6536{
6537
6538  ;
6539  return 0;
6540}
6541_ACEOF
6542if ac_fn_c_try_link "$LINENO"; then :
6543  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6544else
6545  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6546fi
6547rm -f core conftest.err conftest.$ac_objext \
6548    conftest$ac_exeext conftest.$ac_ext
6549fi
6550
6551
6552		CFLAGS="$xorg_testset_save_CFLAGS"
6553
6554		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6555		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6556$as_echo "$supported" >&6; }
6557		if test "$supported" = "yes" ; then
6558			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6559			found="yes"
6560		fi
6561	fi
6562
6563
6564
6565
6566
6567
6568
6569xorg_testset_save_CFLAGS="$CFLAGS"
6570
6571if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6572	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6573	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6574$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6575if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6576  $as_echo_n "(cached) " >&6
6577else
6578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h.  */
6580int i;
6581_ACEOF
6582if ac_fn_c_try_compile "$LINENO"; then :
6583  xorg_cv_cc_flag_unknown_warning_option=yes
6584else
6585  xorg_cv_cc_flag_unknown_warning_option=no
6586fi
6587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588fi
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6590$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6591	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6592	CFLAGS="$xorg_testset_save_CFLAGS"
6593fi
6594
6595if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6596	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6597		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6598	fi
6599	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6600	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6601$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6602if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6603  $as_echo_n "(cached) " >&6
6604else
6605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606/* end confdefs.h.  */
6607int i;
6608_ACEOF
6609if ac_fn_c_try_compile "$LINENO"; then :
6610  xorg_cv_cc_flag_unused_command_line_argument=yes
6611else
6612  xorg_cv_cc_flag_unused_command_line_argument=no
6613fi
6614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615fi
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6617$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6618	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6619	CFLAGS="$xorg_testset_save_CFLAGS"
6620fi
6621
6622found="no"
6623
6624	if test $found = "no" ; then
6625		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6626			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627		fi
6628
6629		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6630			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6631		fi
6632
6633		CFLAGS="$CFLAGS -Werror=nonnull"
6634
6635		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6636$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6637		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
6638		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6639  $as_echo_n "(cached) " >&6
6640else
6641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642/* end confdefs.h.  */
6643int i;
6644int
6645main ()
6646{
6647
6648  ;
6649  return 0;
6650}
6651_ACEOF
6652if ac_fn_c_try_link "$LINENO"; then :
6653  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6654else
6655  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6656fi
6657rm -f core conftest.err conftest.$ac_objext \
6658    conftest$ac_exeext conftest.$ac_ext
6659fi
6660
6661
6662		CFLAGS="$xorg_testset_save_CFLAGS"
6663
6664		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6665		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6666$as_echo "$supported" >&6; }
6667		if test "$supported" = "yes" ; then
6668			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6669			found="yes"
6670		fi
6671	fi
6672
6673
6674
6675
6676
6677
6678
6679xorg_testset_save_CFLAGS="$CFLAGS"
6680
6681if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6682	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6686  $as_echo_n "(cached) " >&6
6687else
6688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689/* end confdefs.h.  */
6690int i;
6691_ACEOF
6692if ac_fn_c_try_compile "$LINENO"; then :
6693  xorg_cv_cc_flag_unknown_warning_option=yes
6694else
6695  xorg_cv_cc_flag_unknown_warning_option=no
6696fi
6697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698fi
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6701	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6702	CFLAGS="$xorg_testset_save_CFLAGS"
6703fi
6704
6705if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6706	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6708	fi
6709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6713  $as_echo_n "(cached) " >&6
6714else
6715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716/* end confdefs.h.  */
6717int i;
6718_ACEOF
6719if ac_fn_c_try_compile "$LINENO"; then :
6720  xorg_cv_cc_flag_unused_command_line_argument=yes
6721else
6722  xorg_cv_cc_flag_unused_command_line_argument=no
6723fi
6724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725fi
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6728	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6729	CFLAGS="$xorg_testset_save_CFLAGS"
6730fi
6731
6732found="no"
6733
6734	if test $found = "no" ; then
6735		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6736			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6737		fi
6738
6739		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6740			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6741		fi
6742
6743		CFLAGS="$CFLAGS -Werror=init-self"
6744
6745		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6746$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6747		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
6748		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752/* end confdefs.h.  */
6753int i;
6754int
6755main ()
6756{
6757
6758  ;
6759  return 0;
6760}
6761_ACEOF
6762if ac_fn_c_try_link "$LINENO"; then :
6763  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6764else
6765  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6766fi
6767rm -f core conftest.err conftest.$ac_objext \
6768    conftest$ac_exeext conftest.$ac_ext
6769fi
6770
6771
6772		CFLAGS="$xorg_testset_save_CFLAGS"
6773
6774		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6775		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6776$as_echo "$supported" >&6; }
6777		if test "$supported" = "yes" ; then
6778			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6779			found="yes"
6780		fi
6781	fi
6782
6783
6784
6785
6786
6787
6788
6789xorg_testset_save_CFLAGS="$CFLAGS"
6790
6791if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799/* end confdefs.h.  */
6800int i;
6801_ACEOF
6802if ac_fn_c_try_compile "$LINENO"; then :
6803  xorg_cv_cc_flag_unknown_warning_option=yes
6804else
6805  xorg_cv_cc_flag_unknown_warning_option=no
6806fi
6807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808fi
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6811	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6812	CFLAGS="$xorg_testset_save_CFLAGS"
6813fi
6814
6815if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6816	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6818	fi
6819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6823  $as_echo_n "(cached) " >&6
6824else
6825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826/* end confdefs.h.  */
6827int i;
6828_ACEOF
6829if ac_fn_c_try_compile "$LINENO"; then :
6830  xorg_cv_cc_flag_unused_command_line_argument=yes
6831else
6832  xorg_cv_cc_flag_unused_command_line_argument=no
6833fi
6834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835fi
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6838	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6839	CFLAGS="$xorg_testset_save_CFLAGS"
6840fi
6841
6842found="no"
6843
6844	if test $found = "no" ; then
6845		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6847		fi
6848
6849		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6851		fi
6852
6853		CFLAGS="$CFLAGS -Werror=main"
6854
6855		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6856$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6857		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
6858		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6859  $as_echo_n "(cached) " >&6
6860else
6861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862/* end confdefs.h.  */
6863int i;
6864int
6865main ()
6866{
6867
6868  ;
6869  return 0;
6870}
6871_ACEOF
6872if ac_fn_c_try_link "$LINENO"; then :
6873  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6874else
6875  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6876fi
6877rm -f core conftest.err conftest.$ac_objext \
6878    conftest$ac_exeext conftest.$ac_ext
6879fi
6880
6881
6882		CFLAGS="$xorg_testset_save_CFLAGS"
6883
6884		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6885		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6886$as_echo "$supported" >&6; }
6887		if test "$supported" = "yes" ; then
6888			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6889			found="yes"
6890		fi
6891	fi
6892
6893
6894
6895
6896
6897
6898
6899xorg_testset_save_CFLAGS="$CFLAGS"
6900
6901if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6906  $as_echo_n "(cached) " >&6
6907else
6908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909/* end confdefs.h.  */
6910int i;
6911_ACEOF
6912if ac_fn_c_try_compile "$LINENO"; then :
6913  xorg_cv_cc_flag_unknown_warning_option=yes
6914else
6915  xorg_cv_cc_flag_unknown_warning_option=no
6916fi
6917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918fi
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6921	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6922	CFLAGS="$xorg_testset_save_CFLAGS"
6923fi
6924
6925if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6926	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6928	fi
6929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h.  */
6937int i;
6938_ACEOF
6939if ac_fn_c_try_compile "$LINENO"; then :
6940  xorg_cv_cc_flag_unused_command_line_argument=yes
6941else
6942  xorg_cv_cc_flag_unused_command_line_argument=no
6943fi
6944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945fi
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6948	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6949	CFLAGS="$xorg_testset_save_CFLAGS"
6950fi
6951
6952found="no"
6953
6954	if test $found = "no" ; then
6955		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6957		fi
6958
6959		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6961		fi
6962
6963		CFLAGS="$CFLAGS -Werror=missing-braces"
6964
6965		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6966$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6967		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
6968		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6969  $as_echo_n "(cached) " >&6
6970else
6971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972/* end confdefs.h.  */
6973int i;
6974int
6975main ()
6976{
6977
6978  ;
6979  return 0;
6980}
6981_ACEOF
6982if ac_fn_c_try_link "$LINENO"; then :
6983  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6984else
6985  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6986fi
6987rm -f core conftest.err conftest.$ac_objext \
6988    conftest$ac_exeext conftest.$ac_ext
6989fi
6990
6991
6992		CFLAGS="$xorg_testset_save_CFLAGS"
6993
6994		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6995		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6996$as_echo "$supported" >&6; }
6997		if test "$supported" = "yes" ; then
6998			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6999			found="yes"
7000		fi
7001	fi
7002
7003
7004
7005
7006
7007
7008
7009xorg_testset_save_CFLAGS="$CFLAGS"
7010
7011if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7016  $as_echo_n "(cached) " >&6
7017else
7018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019/* end confdefs.h.  */
7020int i;
7021_ACEOF
7022if ac_fn_c_try_compile "$LINENO"; then :
7023  xorg_cv_cc_flag_unknown_warning_option=yes
7024else
7025  xorg_cv_cc_flag_unknown_warning_option=no
7026fi
7027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028fi
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7031	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7032	CFLAGS="$xorg_testset_save_CFLAGS"
7033fi
7034
7035if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7036	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7038	fi
7039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7043  $as_echo_n "(cached) " >&6
7044else
7045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046/* end confdefs.h.  */
7047int i;
7048_ACEOF
7049if ac_fn_c_try_compile "$LINENO"; then :
7050  xorg_cv_cc_flag_unused_command_line_argument=yes
7051else
7052  xorg_cv_cc_flag_unused_command_line_argument=no
7053fi
7054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055fi
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7058	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7059	CFLAGS="$xorg_testset_save_CFLAGS"
7060fi
7061
7062found="no"
7063
7064	if test $found = "no" ; then
7065		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7067		fi
7068
7069		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7071		fi
7072
7073		CFLAGS="$CFLAGS -Werror=sequence-point"
7074
7075		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7076$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7077		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
7078		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7079  $as_echo_n "(cached) " >&6
7080else
7081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082/* end confdefs.h.  */
7083int i;
7084int
7085main ()
7086{
7087
7088  ;
7089  return 0;
7090}
7091_ACEOF
7092if ac_fn_c_try_link "$LINENO"; then :
7093  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7094else
7095  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7096fi
7097rm -f core conftest.err conftest.$ac_objext \
7098    conftest$ac_exeext conftest.$ac_ext
7099fi
7100
7101
7102		CFLAGS="$xorg_testset_save_CFLAGS"
7103
7104		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7105		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7106$as_echo "$supported" >&6; }
7107		if test "$supported" = "yes" ; then
7108			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7109			found="yes"
7110		fi
7111	fi
7112
7113
7114
7115
7116
7117
7118
7119xorg_testset_save_CFLAGS="$CFLAGS"
7120
7121if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7122	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7124$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7125if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7126  $as_echo_n "(cached) " >&6
7127else
7128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129/* end confdefs.h.  */
7130int i;
7131_ACEOF
7132if ac_fn_c_try_compile "$LINENO"; then :
7133  xorg_cv_cc_flag_unknown_warning_option=yes
7134else
7135  xorg_cv_cc_flag_unknown_warning_option=no
7136fi
7137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7138fi
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7140$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7141	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7142	CFLAGS="$xorg_testset_save_CFLAGS"
7143fi
7144
7145if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7146	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148	fi
7149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7152if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7153  $as_echo_n "(cached) " >&6
7154else
7155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156/* end confdefs.h.  */
7157int i;
7158_ACEOF
7159if ac_fn_c_try_compile "$LINENO"; then :
7160  xorg_cv_cc_flag_unused_command_line_argument=yes
7161else
7162  xorg_cv_cc_flag_unused_command_line_argument=no
7163fi
7164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165fi
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7167$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7168	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7169	CFLAGS="$xorg_testset_save_CFLAGS"
7170fi
7171
7172found="no"
7173
7174	if test $found = "no" ; then
7175		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7176			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7177		fi
7178
7179		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7180			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7181		fi
7182
7183		CFLAGS="$CFLAGS -Werror=return-type"
7184
7185		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7186$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7187		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
7188		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7189  $as_echo_n "(cached) " >&6
7190else
7191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192/* end confdefs.h.  */
7193int i;
7194int
7195main ()
7196{
7197
7198  ;
7199  return 0;
7200}
7201_ACEOF
7202if ac_fn_c_try_link "$LINENO"; then :
7203  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7204else
7205  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7206fi
7207rm -f core conftest.err conftest.$ac_objext \
7208    conftest$ac_exeext conftest.$ac_ext
7209fi
7210
7211
7212		CFLAGS="$xorg_testset_save_CFLAGS"
7213
7214		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7215		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7216$as_echo "$supported" >&6; }
7217		if test "$supported" = "yes" ; then
7218			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7219			found="yes"
7220		fi
7221	fi
7222
7223	if test $found = "no" ; then
7224		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226		fi
7227
7228		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7230		fi
7231
7232		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7233
7234		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7235$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7236		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7237		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241/* end confdefs.h.  */
7242int i;
7243int
7244main ()
7245{
7246
7247  ;
7248  return 0;
7249}
7250_ACEOF
7251if ac_fn_c_try_link "$LINENO"; then :
7252  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7253else
7254  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7255fi
7256rm -f core conftest.err conftest.$ac_objext \
7257    conftest$ac_exeext conftest.$ac_ext
7258fi
7259
7260
7261		CFLAGS="$xorg_testset_save_CFLAGS"
7262
7263		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7264		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7265$as_echo "$supported" >&6; }
7266		if test "$supported" = "yes" ; then
7267			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7268			found="yes"
7269		fi
7270	fi
7271
7272
7273
7274
7275
7276
7277
7278xorg_testset_save_CFLAGS="$CFLAGS"
7279
7280if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7281	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7282	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7283$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7284if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7285  $as_echo_n "(cached) " >&6
7286else
7287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288/* end confdefs.h.  */
7289int i;
7290_ACEOF
7291if ac_fn_c_try_compile "$LINENO"; then :
7292  xorg_cv_cc_flag_unknown_warning_option=yes
7293else
7294  xorg_cv_cc_flag_unknown_warning_option=no
7295fi
7296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297fi
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7299$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7300	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7301	CFLAGS="$xorg_testset_save_CFLAGS"
7302fi
7303
7304if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7305	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7306		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7307	fi
7308	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7310$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7311if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7312  $as_echo_n "(cached) " >&6
7313else
7314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315/* end confdefs.h.  */
7316int i;
7317_ACEOF
7318if ac_fn_c_try_compile "$LINENO"; then :
7319  xorg_cv_cc_flag_unused_command_line_argument=yes
7320else
7321  xorg_cv_cc_flag_unused_command_line_argument=no
7322fi
7323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324fi
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7326$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7327	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7328	CFLAGS="$xorg_testset_save_CFLAGS"
7329fi
7330
7331found="no"
7332
7333	if test $found = "no" ; then
7334		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7336		fi
7337
7338		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7340		fi
7341
7342		CFLAGS="$CFLAGS -Werror=trigraphs"
7343
7344		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7345$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7346		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
7347		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7348  $as_echo_n "(cached) " >&6
7349else
7350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351/* end confdefs.h.  */
7352int i;
7353int
7354main ()
7355{
7356
7357  ;
7358  return 0;
7359}
7360_ACEOF
7361if ac_fn_c_try_link "$LINENO"; then :
7362  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7363else
7364  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7365fi
7366rm -f core conftest.err conftest.$ac_objext \
7367    conftest$ac_exeext conftest.$ac_ext
7368fi
7369
7370
7371		CFLAGS="$xorg_testset_save_CFLAGS"
7372
7373		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7374		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7375$as_echo "$supported" >&6; }
7376		if test "$supported" = "yes" ; then
7377			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7378			found="yes"
7379		fi
7380	fi
7381
7382
7383
7384
7385
7386
7387
7388xorg_testset_save_CFLAGS="$CFLAGS"
7389
7390if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398/* end confdefs.h.  */
7399int i;
7400_ACEOF
7401if ac_fn_c_try_compile "$LINENO"; then :
7402  xorg_cv_cc_flag_unknown_warning_option=yes
7403else
7404  xorg_cv_cc_flag_unknown_warning_option=no
7405fi
7406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407fi
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7410	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7411	CFLAGS="$xorg_testset_save_CFLAGS"
7412fi
7413
7414if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7415	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7416		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7417	fi
7418	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h.  */
7426int i;
7427_ACEOF
7428if ac_fn_c_try_compile "$LINENO"; then :
7429  xorg_cv_cc_flag_unused_command_line_argument=yes
7430else
7431  xorg_cv_cc_flag_unused_command_line_argument=no
7432fi
7433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434fi
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7437	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7438	CFLAGS="$xorg_testset_save_CFLAGS"
7439fi
7440
7441found="no"
7442
7443	if test $found = "no" ; then
7444		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7445			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7446		fi
7447
7448		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7449			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7450		fi
7451
7452		CFLAGS="$CFLAGS -Werror=array-bounds"
7453
7454		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7455$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7456		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
7457		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7458  $as_echo_n "(cached) " >&6
7459else
7460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h.  */
7462int i;
7463int
7464main ()
7465{
7466
7467  ;
7468  return 0;
7469}
7470_ACEOF
7471if ac_fn_c_try_link "$LINENO"; then :
7472  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7473else
7474  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7475fi
7476rm -f core conftest.err conftest.$ac_objext \
7477    conftest$ac_exeext conftest.$ac_ext
7478fi
7479
7480
7481		CFLAGS="$xorg_testset_save_CFLAGS"
7482
7483		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7484		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7485$as_echo "$supported" >&6; }
7486		if test "$supported" = "yes" ; then
7487			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7488			found="yes"
7489		fi
7490	fi
7491
7492
7493
7494
7495
7496
7497
7498xorg_testset_save_CFLAGS="$CFLAGS"
7499
7500if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7502	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7505  $as_echo_n "(cached) " >&6
7506else
7507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h.  */
7509int i;
7510_ACEOF
7511if ac_fn_c_try_compile "$LINENO"; then :
7512  xorg_cv_cc_flag_unknown_warning_option=yes
7513else
7514  xorg_cv_cc_flag_unknown_warning_option=no
7515fi
7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517fi
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7520	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7521	CFLAGS="$xorg_testset_save_CFLAGS"
7522fi
7523
7524if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7525	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527	fi
7528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7532  $as_echo_n "(cached) " >&6
7533else
7534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h.  */
7536int i;
7537_ACEOF
7538if ac_fn_c_try_compile "$LINENO"; then :
7539  xorg_cv_cc_flag_unused_command_line_argument=yes
7540else
7541  xorg_cv_cc_flag_unused_command_line_argument=no
7542fi
7543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544fi
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7547	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7548	CFLAGS="$xorg_testset_save_CFLAGS"
7549fi
7550
7551found="no"
7552
7553	if test $found = "no" ; then
7554		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7556		fi
7557
7558		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560		fi
7561
7562		CFLAGS="$CFLAGS -Werror=write-strings"
7563
7564		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7565$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7566		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
7567		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7568  $as_echo_n "(cached) " >&6
7569else
7570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572int i;
7573int
7574main ()
7575{
7576
7577  ;
7578  return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_link "$LINENO"; then :
7582  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7583else
7584  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext \
7587    conftest$ac_exeext conftest.$ac_ext
7588fi
7589
7590
7591		CFLAGS="$xorg_testset_save_CFLAGS"
7592
7593		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7594		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7595$as_echo "$supported" >&6; }
7596		if test "$supported" = "yes" ; then
7597			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7598			found="yes"
7599		fi
7600	fi
7601
7602
7603
7604
7605
7606
7607
7608xorg_testset_save_CFLAGS="$CFLAGS"
7609
7610if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7615  $as_echo_n "(cached) " >&6
7616else
7617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h.  */
7619int i;
7620_ACEOF
7621if ac_fn_c_try_compile "$LINENO"; then :
7622  xorg_cv_cc_flag_unknown_warning_option=yes
7623else
7624  xorg_cv_cc_flag_unknown_warning_option=no
7625fi
7626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627fi
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7630	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7631	CFLAGS="$xorg_testset_save_CFLAGS"
7632fi
7633
7634if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7635	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7636		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7637	fi
7638	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7642  $as_echo_n "(cached) " >&6
7643else
7644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645/* end confdefs.h.  */
7646int i;
7647_ACEOF
7648if ac_fn_c_try_compile "$LINENO"; then :
7649  xorg_cv_cc_flag_unused_command_line_argument=yes
7650else
7651  xorg_cv_cc_flag_unused_command_line_argument=no
7652fi
7653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7657	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7658	CFLAGS="$xorg_testset_save_CFLAGS"
7659fi
7660
7661found="no"
7662
7663	if test $found = "no" ; then
7664		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7666		fi
7667
7668		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7670		fi
7671
7672		CFLAGS="$CFLAGS -Werror=address"
7673
7674		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7675$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7676		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
7677		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7678  $as_echo_n "(cached) " >&6
7679else
7680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681/* end confdefs.h.  */
7682int i;
7683int
7684main ()
7685{
7686
7687  ;
7688  return 0;
7689}
7690_ACEOF
7691if ac_fn_c_try_link "$LINENO"; then :
7692  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7693else
7694  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7695fi
7696rm -f core conftest.err conftest.$ac_objext \
7697    conftest$ac_exeext conftest.$ac_ext
7698fi
7699
7700
7701		CFLAGS="$xorg_testset_save_CFLAGS"
7702
7703		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7704		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7705$as_echo "$supported" >&6; }
7706		if test "$supported" = "yes" ; then
7707			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7708			found="yes"
7709		fi
7710	fi
7711
7712
7713
7714
7715
7716
7717
7718xorg_testset_save_CFLAGS="$CFLAGS"
7719
7720if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7722	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7723$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7724if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7725  $as_echo_n "(cached) " >&6
7726else
7727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728/* end confdefs.h.  */
7729int i;
7730_ACEOF
7731if ac_fn_c_try_compile "$LINENO"; then :
7732  xorg_cv_cc_flag_unknown_warning_option=yes
7733else
7734  xorg_cv_cc_flag_unknown_warning_option=no
7735fi
7736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737fi
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7739$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7740	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7741	CFLAGS="$xorg_testset_save_CFLAGS"
7742fi
7743
7744if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7745	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7746		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7747	fi
7748	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7750$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7751if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7752  $as_echo_n "(cached) " >&6
7753else
7754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h.  */
7756int i;
7757_ACEOF
7758if ac_fn_c_try_compile "$LINENO"; then :
7759  xorg_cv_cc_flag_unused_command_line_argument=yes
7760else
7761  xorg_cv_cc_flag_unused_command_line_argument=no
7762fi
7763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764fi
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7766$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7767	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7768	CFLAGS="$xorg_testset_save_CFLAGS"
7769fi
7770
7771found="no"
7772
7773	if test $found = "no" ; then
7774		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7776		fi
7777
7778		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7780		fi
7781
7782		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7783
7784		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7785$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7786		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
7787		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791/* end confdefs.h.  */
7792int i;
7793int
7794main ()
7795{
7796
7797  ;
7798  return 0;
7799}
7800_ACEOF
7801if ac_fn_c_try_link "$LINENO"; then :
7802  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7803else
7804  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7805fi
7806rm -f core conftest.err conftest.$ac_objext \
7807    conftest$ac_exeext conftest.$ac_ext
7808fi
7809
7810
7811		CFLAGS="$xorg_testset_save_CFLAGS"
7812
7813		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7814		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7815$as_echo "$supported" >&6; }
7816		if test "$supported" = "yes" ; then
7817			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7818			found="yes"
7819		fi
7820	fi
7821
7822	if test $found = "no" ; then
7823		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7824			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7825		fi
7826
7827		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7828			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7829		fi
7830
7831		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7832
7833		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7834$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7835		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
7836		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7837  $as_echo_n "(cached) " >&6
7838else
7839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840/* end confdefs.h.  */
7841int i;
7842int
7843main ()
7844{
7845
7846  ;
7847  return 0;
7848}
7849_ACEOF
7850if ac_fn_c_try_link "$LINENO"; then :
7851  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7852else
7853  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7854fi
7855rm -f core conftest.err conftest.$ac_objext \
7856    conftest$ac_exeext conftest.$ac_ext
7857fi
7858
7859
7860		CFLAGS="$xorg_testset_save_CFLAGS"
7861
7862		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7863		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7864$as_echo "$supported" >&6; }
7865		if test "$supported" = "yes" ; then
7866			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7867			found="yes"
7868		fi
7869	fi
7870
7871
7872
7873
7874
7875
7876
7877xorg_testset_save_CFLAGS="$CFLAGS"
7878
7879if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7884  $as_echo_n "(cached) " >&6
7885else
7886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887/* end confdefs.h.  */
7888int i;
7889_ACEOF
7890if ac_fn_c_try_compile "$LINENO"; then :
7891  xorg_cv_cc_flag_unknown_warning_option=yes
7892else
7893  xorg_cv_cc_flag_unknown_warning_option=no
7894fi
7895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896fi
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7899	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7900	CFLAGS="$xorg_testset_save_CFLAGS"
7901fi
7902
7903if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7904	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7905		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7906	fi
7907	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7911  $as_echo_n "(cached) " >&6
7912else
7913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h.  */
7915int i;
7916_ACEOF
7917if ac_fn_c_try_compile "$LINENO"; then :
7918  xorg_cv_cc_flag_unused_command_line_argument=yes
7919else
7920  xorg_cv_cc_flag_unused_command_line_argument=no
7921fi
7922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7926	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7927	CFLAGS="$xorg_testset_save_CFLAGS"
7928fi
7929
7930found="no"
7931
7932	if test $found = "no" ; then
7933		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7935		fi
7936
7937		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7939		fi
7940
7941		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7942
7943		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7944$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7945		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
7946		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7947  $as_echo_n "(cached) " >&6
7948else
7949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950/* end confdefs.h.  */
7951int i;
7952int
7953main ()
7954{
7955
7956  ;
7957  return 0;
7958}
7959_ACEOF
7960if ac_fn_c_try_link "$LINENO"; then :
7961  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7962else
7963  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7964fi
7965rm -f core conftest.err conftest.$ac_objext \
7966    conftest$ac_exeext conftest.$ac_ext
7967fi
7968
7969
7970		CFLAGS="$xorg_testset_save_CFLAGS"
7971
7972		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7973		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7974$as_echo "$supported" >&6; }
7975		if test "$supported" = "yes" ; then
7976			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7977			found="yes"
7978		fi
7979	fi
7980
7981 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7982else
7983{ $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
7984$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;}
7985
7986
7987
7988
7989
7990xorg_testset_save_CFLAGS="$CFLAGS"
7991
7992if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7993	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7995$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7996if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7997  $as_echo_n "(cached) " >&6
7998else
7999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h.  */
8001int i;
8002_ACEOF
8003if ac_fn_c_try_compile "$LINENO"; then :
8004  xorg_cv_cc_flag_unknown_warning_option=yes
8005else
8006  xorg_cv_cc_flag_unknown_warning_option=no
8007fi
8008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009fi
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8011$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8012	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8013	CFLAGS="$xorg_testset_save_CFLAGS"
8014fi
8015
8016if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8017	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8019	fi
8020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8022$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8023if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8024  $as_echo_n "(cached) " >&6
8025else
8026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027/* end confdefs.h.  */
8028int i;
8029_ACEOF
8030if ac_fn_c_try_compile "$LINENO"; then :
8031  xorg_cv_cc_flag_unused_command_line_argument=yes
8032else
8033  xorg_cv_cc_flag_unused_command_line_argument=no
8034fi
8035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036fi
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8038$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8039	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8040	CFLAGS="$xorg_testset_save_CFLAGS"
8041fi
8042
8043found="no"
8044
8045	if test $found = "no" ; then
8046		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8047			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048		fi
8049
8050		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8051			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8052		fi
8053
8054		CFLAGS="$CFLAGS -Wimplicit"
8055
8056		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8057$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8058		cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
8059		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8060  $as_echo_n "(cached) " >&6
8061else
8062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h.  */
8064int i;
8065int
8066main ()
8067{
8068
8069  ;
8070  return 0;
8071}
8072_ACEOF
8073if ac_fn_c_try_link "$LINENO"; then :
8074  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8075else
8076  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8077fi
8078rm -f core conftest.err conftest.$ac_objext \
8079    conftest$ac_exeext conftest.$ac_ext
8080fi
8081
8082
8083		CFLAGS="$xorg_testset_save_CFLAGS"
8084
8085		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8086		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8087$as_echo "$supported" >&6; }
8088		if test "$supported" = "yes" ; then
8089			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8090			found="yes"
8091		fi
8092	fi
8093
8094
8095
8096
8097
8098
8099
8100xorg_testset_save_CFLAGS="$CFLAGS"
8101
8102if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h.  */
8111int i;
8112_ACEOF
8113if ac_fn_c_try_compile "$LINENO"; then :
8114  xorg_cv_cc_flag_unknown_warning_option=yes
8115else
8116  xorg_cv_cc_flag_unknown_warning_option=no
8117fi
8118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119fi
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8122	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8123	CFLAGS="$xorg_testset_save_CFLAGS"
8124fi
8125
8126if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8127	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8129	fi
8130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137/* end confdefs.h.  */
8138int i;
8139_ACEOF
8140if ac_fn_c_try_compile "$LINENO"; then :
8141  xorg_cv_cc_flag_unused_command_line_argument=yes
8142else
8143  xorg_cv_cc_flag_unused_command_line_argument=no
8144fi
8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146fi
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8149	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8150	CFLAGS="$xorg_testset_save_CFLAGS"
8151fi
8152
8153found="no"
8154
8155	if test $found = "no" ; then
8156		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8158		fi
8159
8160		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8162		fi
8163
8164		CFLAGS="$CFLAGS -Wnonnull"
8165
8166		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8167$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8168		cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
8169		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8170  $as_echo_n "(cached) " >&6
8171else
8172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173/* end confdefs.h.  */
8174int i;
8175int
8176main ()
8177{
8178
8179  ;
8180  return 0;
8181}
8182_ACEOF
8183if ac_fn_c_try_link "$LINENO"; then :
8184  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8185else
8186  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8187fi
8188rm -f core conftest.err conftest.$ac_objext \
8189    conftest$ac_exeext conftest.$ac_ext
8190fi
8191
8192
8193		CFLAGS="$xorg_testset_save_CFLAGS"
8194
8195		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8196		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8197$as_echo "$supported" >&6; }
8198		if test "$supported" = "yes" ; then
8199			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8200			found="yes"
8201		fi
8202	fi
8203
8204
8205
8206
8207
8208
8209
8210xorg_testset_save_CFLAGS="$CFLAGS"
8211
8212if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8215$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8216if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220/* end confdefs.h.  */
8221int i;
8222_ACEOF
8223if ac_fn_c_try_compile "$LINENO"; then :
8224  xorg_cv_cc_flag_unknown_warning_option=yes
8225else
8226  xorg_cv_cc_flag_unknown_warning_option=no
8227fi
8228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229fi
8230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8231$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8232	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8233	CFLAGS="$xorg_testset_save_CFLAGS"
8234fi
8235
8236if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8237	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8238		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8239	fi
8240	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8242$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8243if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h.  */
8248int i;
8249_ACEOF
8250if ac_fn_c_try_compile "$LINENO"; then :
8251  xorg_cv_cc_flag_unused_command_line_argument=yes
8252else
8253  xorg_cv_cc_flag_unused_command_line_argument=no
8254fi
8255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256fi
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8258$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8259	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8260	CFLAGS="$xorg_testset_save_CFLAGS"
8261fi
8262
8263found="no"
8264
8265	if test $found = "no" ; then
8266		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8268		fi
8269
8270		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8272		fi
8273
8274		CFLAGS="$CFLAGS -Winit-self"
8275
8276		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8277$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8278		cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
8279		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8280  $as_echo_n "(cached) " >&6
8281else
8282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283/* end confdefs.h.  */
8284int i;
8285int
8286main ()
8287{
8288
8289  ;
8290  return 0;
8291}
8292_ACEOF
8293if ac_fn_c_try_link "$LINENO"; then :
8294  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8295else
8296  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8297fi
8298rm -f core conftest.err conftest.$ac_objext \
8299    conftest$ac_exeext conftest.$ac_ext
8300fi
8301
8302
8303		CFLAGS="$xorg_testset_save_CFLAGS"
8304
8305		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8306		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8307$as_echo "$supported" >&6; }
8308		if test "$supported" = "yes" ; then
8309			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8310			found="yes"
8311		fi
8312	fi
8313
8314
8315
8316
8317
8318
8319
8320xorg_testset_save_CFLAGS="$CFLAGS"
8321
8322if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8327  $as_echo_n "(cached) " >&6
8328else
8329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330/* end confdefs.h.  */
8331int i;
8332_ACEOF
8333if ac_fn_c_try_compile "$LINENO"; then :
8334  xorg_cv_cc_flag_unknown_warning_option=yes
8335else
8336  xorg_cv_cc_flag_unknown_warning_option=no
8337fi
8338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339fi
8340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8342	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8343	CFLAGS="$xorg_testset_save_CFLAGS"
8344fi
8345
8346if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8347	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8348		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8349	fi
8350	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8354  $as_echo_n "(cached) " >&6
8355else
8356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357/* end confdefs.h.  */
8358int i;
8359_ACEOF
8360if ac_fn_c_try_compile "$LINENO"; then :
8361  xorg_cv_cc_flag_unused_command_line_argument=yes
8362else
8363  xorg_cv_cc_flag_unused_command_line_argument=no
8364fi
8365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366fi
8367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8369	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8370	CFLAGS="$xorg_testset_save_CFLAGS"
8371fi
8372
8373found="no"
8374
8375	if test $found = "no" ; then
8376		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378		fi
8379
8380		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8382		fi
8383
8384		CFLAGS="$CFLAGS -Wmain"
8385
8386		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8387$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8388		cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
8389		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8390  $as_echo_n "(cached) " >&6
8391else
8392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393/* end confdefs.h.  */
8394int i;
8395int
8396main ()
8397{
8398
8399  ;
8400  return 0;
8401}
8402_ACEOF
8403if ac_fn_c_try_link "$LINENO"; then :
8404  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8405else
8406  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8407fi
8408rm -f core conftest.err conftest.$ac_objext \
8409    conftest$ac_exeext conftest.$ac_ext
8410fi
8411
8412
8413		CFLAGS="$xorg_testset_save_CFLAGS"
8414
8415		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8416		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8417$as_echo "$supported" >&6; }
8418		if test "$supported" = "yes" ; then
8419			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8420			found="yes"
8421		fi
8422	fi
8423
8424
8425
8426
8427
8428
8429
8430xorg_testset_save_CFLAGS="$CFLAGS"
8431
8432if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8437  $as_echo_n "(cached) " >&6
8438else
8439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440/* end confdefs.h.  */
8441int i;
8442_ACEOF
8443if ac_fn_c_try_compile "$LINENO"; then :
8444  xorg_cv_cc_flag_unknown_warning_option=yes
8445else
8446  xorg_cv_cc_flag_unknown_warning_option=no
8447fi
8448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449fi
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8452	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8453	CFLAGS="$xorg_testset_save_CFLAGS"
8454fi
8455
8456if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8457	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8459	fi
8460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8464  $as_echo_n "(cached) " >&6
8465else
8466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467/* end confdefs.h.  */
8468int i;
8469_ACEOF
8470if ac_fn_c_try_compile "$LINENO"; then :
8471  xorg_cv_cc_flag_unused_command_line_argument=yes
8472else
8473  xorg_cv_cc_flag_unused_command_line_argument=no
8474fi
8475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476fi
8477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8479	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8480	CFLAGS="$xorg_testset_save_CFLAGS"
8481fi
8482
8483found="no"
8484
8485	if test $found = "no" ; then
8486		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8488		fi
8489
8490		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8492		fi
8493
8494		CFLAGS="$CFLAGS -Wmissing-braces"
8495
8496		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8497$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8498		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
8499		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8500  $as_echo_n "(cached) " >&6
8501else
8502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503/* end confdefs.h.  */
8504int i;
8505int
8506main ()
8507{
8508
8509  ;
8510  return 0;
8511}
8512_ACEOF
8513if ac_fn_c_try_link "$LINENO"; then :
8514  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8515else
8516  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8517fi
8518rm -f core conftest.err conftest.$ac_objext \
8519    conftest$ac_exeext conftest.$ac_ext
8520fi
8521
8522
8523		CFLAGS="$xorg_testset_save_CFLAGS"
8524
8525		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8526		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8527$as_echo "$supported" >&6; }
8528		if test "$supported" = "yes" ; then
8529			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8530			found="yes"
8531		fi
8532	fi
8533
8534
8535
8536
8537
8538
8539
8540xorg_testset_save_CFLAGS="$CFLAGS"
8541
8542if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8545$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8546if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8547  $as_echo_n "(cached) " >&6
8548else
8549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550/* end confdefs.h.  */
8551int i;
8552_ACEOF
8553if ac_fn_c_try_compile "$LINENO"; then :
8554  xorg_cv_cc_flag_unknown_warning_option=yes
8555else
8556  xorg_cv_cc_flag_unknown_warning_option=no
8557fi
8558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559fi
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8561$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8562	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8563	CFLAGS="$xorg_testset_save_CFLAGS"
8564fi
8565
8566if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8567	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8569	fi
8570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8572$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8573if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8574  $as_echo_n "(cached) " >&6
8575else
8576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577/* end confdefs.h.  */
8578int i;
8579_ACEOF
8580if ac_fn_c_try_compile "$LINENO"; then :
8581  xorg_cv_cc_flag_unused_command_line_argument=yes
8582else
8583  xorg_cv_cc_flag_unused_command_line_argument=no
8584fi
8585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8586fi
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8588$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8589	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8590	CFLAGS="$xorg_testset_save_CFLAGS"
8591fi
8592
8593found="no"
8594
8595	if test $found = "no" ; then
8596		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8597			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8598		fi
8599
8600		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8601			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8602		fi
8603
8604		CFLAGS="$CFLAGS -Wsequence-point"
8605
8606		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8607$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8608		cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
8609		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8610  $as_echo_n "(cached) " >&6
8611else
8612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613/* end confdefs.h.  */
8614int i;
8615int
8616main ()
8617{
8618
8619  ;
8620  return 0;
8621}
8622_ACEOF
8623if ac_fn_c_try_link "$LINENO"; then :
8624  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8625else
8626  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8627fi
8628rm -f core conftest.err conftest.$ac_objext \
8629    conftest$ac_exeext conftest.$ac_ext
8630fi
8631
8632
8633		CFLAGS="$xorg_testset_save_CFLAGS"
8634
8635		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8636		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8637$as_echo "$supported" >&6; }
8638		if test "$supported" = "yes" ; then
8639			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8640			found="yes"
8641		fi
8642	fi
8643
8644
8645
8646
8647
8648
8649
8650xorg_testset_save_CFLAGS="$CFLAGS"
8651
8652if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8657  $as_echo_n "(cached) " >&6
8658else
8659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660/* end confdefs.h.  */
8661int i;
8662_ACEOF
8663if ac_fn_c_try_compile "$LINENO"; then :
8664  xorg_cv_cc_flag_unknown_warning_option=yes
8665else
8666  xorg_cv_cc_flag_unknown_warning_option=no
8667fi
8668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669fi
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8672	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8673	CFLAGS="$xorg_testset_save_CFLAGS"
8674fi
8675
8676if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8677	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8678		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8679	fi
8680	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8684  $as_echo_n "(cached) " >&6
8685else
8686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687/* end confdefs.h.  */
8688int i;
8689_ACEOF
8690if ac_fn_c_try_compile "$LINENO"; then :
8691  xorg_cv_cc_flag_unused_command_line_argument=yes
8692else
8693  xorg_cv_cc_flag_unused_command_line_argument=no
8694fi
8695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696fi
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8699	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8700	CFLAGS="$xorg_testset_save_CFLAGS"
8701fi
8702
8703found="no"
8704
8705	if test $found = "no" ; then
8706		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708		fi
8709
8710		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8712		fi
8713
8714		CFLAGS="$CFLAGS -Wreturn-type"
8715
8716		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8717$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8718		cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
8719		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8720  $as_echo_n "(cached) " >&6
8721else
8722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723/* end confdefs.h.  */
8724int i;
8725int
8726main ()
8727{
8728
8729  ;
8730  return 0;
8731}
8732_ACEOF
8733if ac_fn_c_try_link "$LINENO"; then :
8734  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8735else
8736  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8737fi
8738rm -f core conftest.err conftest.$ac_objext \
8739    conftest$ac_exeext conftest.$ac_ext
8740fi
8741
8742
8743		CFLAGS="$xorg_testset_save_CFLAGS"
8744
8745		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8746		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8747$as_echo "$supported" >&6; }
8748		if test "$supported" = "yes" ; then
8749			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8750			found="yes"
8751		fi
8752	fi
8753
8754
8755
8756
8757
8758
8759
8760xorg_testset_save_CFLAGS="$CFLAGS"
8761
8762if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8767  $as_echo_n "(cached) " >&6
8768else
8769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770/* end confdefs.h.  */
8771int i;
8772_ACEOF
8773if ac_fn_c_try_compile "$LINENO"; then :
8774  xorg_cv_cc_flag_unknown_warning_option=yes
8775else
8776  xorg_cv_cc_flag_unknown_warning_option=no
8777fi
8778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779fi
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8782	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8783	CFLAGS="$xorg_testset_save_CFLAGS"
8784fi
8785
8786if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8787	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8789	fi
8790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8794  $as_echo_n "(cached) " >&6
8795else
8796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797/* end confdefs.h.  */
8798int i;
8799_ACEOF
8800if ac_fn_c_try_compile "$LINENO"; then :
8801  xorg_cv_cc_flag_unused_command_line_argument=yes
8802else
8803  xorg_cv_cc_flag_unused_command_line_argument=no
8804fi
8805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806fi
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8809	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8810	CFLAGS="$xorg_testset_save_CFLAGS"
8811fi
8812
8813found="no"
8814
8815	if test $found = "no" ; then
8816		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818		fi
8819
8820		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8822		fi
8823
8824		CFLAGS="$CFLAGS -Wtrigraphs"
8825
8826		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8827$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8828		cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
8829		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8830  $as_echo_n "(cached) " >&6
8831else
8832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833/* end confdefs.h.  */
8834int i;
8835int
8836main ()
8837{
8838
8839  ;
8840  return 0;
8841}
8842_ACEOF
8843if ac_fn_c_try_link "$LINENO"; then :
8844  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8845else
8846  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8847fi
8848rm -f core conftest.err conftest.$ac_objext \
8849    conftest$ac_exeext conftest.$ac_ext
8850fi
8851
8852
8853		CFLAGS="$xorg_testset_save_CFLAGS"
8854
8855		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8856		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8857$as_echo "$supported" >&6; }
8858		if test "$supported" = "yes" ; then
8859			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8860			found="yes"
8861		fi
8862	fi
8863
8864
8865
8866
8867
8868
8869
8870xorg_testset_save_CFLAGS="$CFLAGS"
8871
8872if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8873	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8875$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8876if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8877  $as_echo_n "(cached) " >&6
8878else
8879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880/* end confdefs.h.  */
8881int i;
8882_ACEOF
8883if ac_fn_c_try_compile "$LINENO"; then :
8884  xorg_cv_cc_flag_unknown_warning_option=yes
8885else
8886  xorg_cv_cc_flag_unknown_warning_option=no
8887fi
8888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889fi
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8891$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8892	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8893	CFLAGS="$xorg_testset_save_CFLAGS"
8894fi
8895
8896if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8897	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8898		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899	fi
8900	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8901	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8902$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8903if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8904  $as_echo_n "(cached) " >&6
8905else
8906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907/* end confdefs.h.  */
8908int i;
8909_ACEOF
8910if ac_fn_c_try_compile "$LINENO"; then :
8911  xorg_cv_cc_flag_unused_command_line_argument=yes
8912else
8913  xorg_cv_cc_flag_unused_command_line_argument=no
8914fi
8915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916fi
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8918$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8919	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8920	CFLAGS="$xorg_testset_save_CFLAGS"
8921fi
8922
8923found="no"
8924
8925	if test $found = "no" ; then
8926		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8927			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8928		fi
8929
8930		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8931			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8932		fi
8933
8934		CFLAGS="$CFLAGS -Warray-bounds"
8935
8936		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8937$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8938		cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
8939		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8940  $as_echo_n "(cached) " >&6
8941else
8942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943/* end confdefs.h.  */
8944int i;
8945int
8946main ()
8947{
8948
8949  ;
8950  return 0;
8951}
8952_ACEOF
8953if ac_fn_c_try_link "$LINENO"; then :
8954  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8955else
8956  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8957fi
8958rm -f core conftest.err conftest.$ac_objext \
8959    conftest$ac_exeext conftest.$ac_ext
8960fi
8961
8962
8963		CFLAGS="$xorg_testset_save_CFLAGS"
8964
8965		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8966		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8967$as_echo "$supported" >&6; }
8968		if test "$supported" = "yes" ; then
8969			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8970			found="yes"
8971		fi
8972	fi
8973
8974
8975
8976
8977
8978
8979
8980xorg_testset_save_CFLAGS="$CFLAGS"
8981
8982if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8983	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8985$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8986if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8987  $as_echo_n "(cached) " >&6
8988else
8989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990/* end confdefs.h.  */
8991int i;
8992_ACEOF
8993if ac_fn_c_try_compile "$LINENO"; then :
8994  xorg_cv_cc_flag_unknown_warning_option=yes
8995else
8996  xorg_cv_cc_flag_unknown_warning_option=no
8997fi
8998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999fi
9000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9001$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9002	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9003	CFLAGS="$xorg_testset_save_CFLAGS"
9004fi
9005
9006if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9007	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9008		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009	fi
9010	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9012$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9013if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9014  $as_echo_n "(cached) " >&6
9015else
9016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017/* end confdefs.h.  */
9018int i;
9019_ACEOF
9020if ac_fn_c_try_compile "$LINENO"; then :
9021  xorg_cv_cc_flag_unused_command_line_argument=yes
9022else
9023  xorg_cv_cc_flag_unused_command_line_argument=no
9024fi
9025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026fi
9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9028$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9029	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9030	CFLAGS="$xorg_testset_save_CFLAGS"
9031fi
9032
9033found="no"
9034
9035	if test $found = "no" ; then
9036		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9038		fi
9039
9040		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9042		fi
9043
9044		CFLAGS="$CFLAGS -Wwrite-strings"
9045
9046		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9047$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9048		cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
9049		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9050  $as_echo_n "(cached) " >&6
9051else
9052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053/* end confdefs.h.  */
9054int i;
9055int
9056main ()
9057{
9058
9059  ;
9060  return 0;
9061}
9062_ACEOF
9063if ac_fn_c_try_link "$LINENO"; then :
9064  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9065else
9066  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9067fi
9068rm -f core conftest.err conftest.$ac_objext \
9069    conftest$ac_exeext conftest.$ac_ext
9070fi
9071
9072
9073		CFLAGS="$xorg_testset_save_CFLAGS"
9074
9075		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9076		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9077$as_echo "$supported" >&6; }
9078		if test "$supported" = "yes" ; then
9079			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9080			found="yes"
9081		fi
9082	fi
9083
9084
9085
9086
9087
9088
9089
9090xorg_testset_save_CFLAGS="$CFLAGS"
9091
9092if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9097  $as_echo_n "(cached) " >&6
9098else
9099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100/* end confdefs.h.  */
9101int i;
9102_ACEOF
9103if ac_fn_c_try_compile "$LINENO"; then :
9104  xorg_cv_cc_flag_unknown_warning_option=yes
9105else
9106  xorg_cv_cc_flag_unknown_warning_option=no
9107fi
9108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109fi
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9112	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9113	CFLAGS="$xorg_testset_save_CFLAGS"
9114fi
9115
9116if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9117	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9118		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9119	fi
9120	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9124  $as_echo_n "(cached) " >&6
9125else
9126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127/* end confdefs.h.  */
9128int i;
9129_ACEOF
9130if ac_fn_c_try_compile "$LINENO"; then :
9131  xorg_cv_cc_flag_unused_command_line_argument=yes
9132else
9133  xorg_cv_cc_flag_unused_command_line_argument=no
9134fi
9135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136fi
9137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9139	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9140	CFLAGS="$xorg_testset_save_CFLAGS"
9141fi
9142
9143found="no"
9144
9145	if test $found = "no" ; then
9146		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9148		fi
9149
9150		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9152		fi
9153
9154		CFLAGS="$CFLAGS -Waddress"
9155
9156		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9157$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9158		cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
9159		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9160  $as_echo_n "(cached) " >&6
9161else
9162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163/* end confdefs.h.  */
9164int i;
9165int
9166main ()
9167{
9168
9169  ;
9170  return 0;
9171}
9172_ACEOF
9173if ac_fn_c_try_link "$LINENO"; then :
9174  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9175else
9176  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9177fi
9178rm -f core conftest.err conftest.$ac_objext \
9179    conftest$ac_exeext conftest.$ac_ext
9180fi
9181
9182
9183		CFLAGS="$xorg_testset_save_CFLAGS"
9184
9185		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9186		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9187$as_echo "$supported" >&6; }
9188		if test "$supported" = "yes" ; then
9189			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9190			found="yes"
9191		fi
9192	fi
9193
9194
9195
9196
9197
9198
9199
9200xorg_testset_save_CFLAGS="$CFLAGS"
9201
9202if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9207  $as_echo_n "(cached) " >&6
9208else
9209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210/* end confdefs.h.  */
9211int i;
9212_ACEOF
9213if ac_fn_c_try_compile "$LINENO"; then :
9214  xorg_cv_cc_flag_unknown_warning_option=yes
9215else
9216  xorg_cv_cc_flag_unknown_warning_option=no
9217fi
9218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219fi
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9222	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9223	CFLAGS="$xorg_testset_save_CFLAGS"
9224fi
9225
9226if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9227	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9229	fi
9230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9234  $as_echo_n "(cached) " >&6
9235else
9236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238int i;
9239_ACEOF
9240if ac_fn_c_try_compile "$LINENO"; then :
9241  xorg_cv_cc_flag_unused_command_line_argument=yes
9242else
9243  xorg_cv_cc_flag_unused_command_line_argument=no
9244fi
9245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246fi
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9249	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9250	CFLAGS="$xorg_testset_save_CFLAGS"
9251fi
9252
9253found="no"
9254
9255	if test $found = "no" ; then
9256		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9258		fi
9259
9260		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9262		fi
9263
9264		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9265
9266		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9267$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9268		cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
9269		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9270  $as_echo_n "(cached) " >&6
9271else
9272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273/* end confdefs.h.  */
9274int i;
9275int
9276main ()
9277{
9278
9279  ;
9280  return 0;
9281}
9282_ACEOF
9283if ac_fn_c_try_link "$LINENO"; then :
9284  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9285else
9286  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9287fi
9288rm -f core conftest.err conftest.$ac_objext \
9289    conftest$ac_exeext conftest.$ac_ext
9290fi
9291
9292
9293		CFLAGS="$xorg_testset_save_CFLAGS"
9294
9295		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9297$as_echo "$supported" >&6; }
9298		if test "$supported" = "yes" ; then
9299			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9300			found="yes"
9301		fi
9302	fi
9303
9304
9305
9306
9307
9308
9309
9310xorg_testset_save_CFLAGS="$CFLAGS"
9311
9312if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9317  $as_echo_n "(cached) " >&6
9318else
9319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320/* end confdefs.h.  */
9321int i;
9322_ACEOF
9323if ac_fn_c_try_compile "$LINENO"; then :
9324  xorg_cv_cc_flag_unknown_warning_option=yes
9325else
9326  xorg_cv_cc_flag_unknown_warning_option=no
9327fi
9328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329fi
9330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9332	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9333	CFLAGS="$xorg_testset_save_CFLAGS"
9334fi
9335
9336if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9337	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339	fi
9340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9344  $as_echo_n "(cached) " >&6
9345else
9346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347/* end confdefs.h.  */
9348int i;
9349_ACEOF
9350if ac_fn_c_try_compile "$LINENO"; then :
9351  xorg_cv_cc_flag_unused_command_line_argument=yes
9352else
9353  xorg_cv_cc_flag_unused_command_line_argument=no
9354fi
9355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356fi
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9359	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9360	CFLAGS="$xorg_testset_save_CFLAGS"
9361fi
9362
9363found="no"
9364
9365	if test $found = "no" ; then
9366		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368		fi
9369
9370		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9372		fi
9373
9374		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9375
9376		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9377$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9378		cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
9379		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9380  $as_echo_n "(cached) " >&6
9381else
9382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383/* end confdefs.h.  */
9384int i;
9385int
9386main ()
9387{
9388
9389  ;
9390  return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9395else
9396  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9397fi
9398rm -f core conftest.err conftest.$ac_objext \
9399    conftest$ac_exeext conftest.$ac_ext
9400fi
9401
9402
9403		CFLAGS="$xorg_testset_save_CFLAGS"
9404
9405		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9407$as_echo "$supported" >&6; }
9408		if test "$supported" = "yes" ; then
9409			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9410			found="yes"
9411		fi
9412	fi
9413
9414
9415fi
9416
9417
9418
9419
9420
9421
9422CWARNFLAGS="$BASE_CFLAGS"
9423if  test "x$GCC" = xyes ; then
9424    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9425fi
9426
9427
9428
9429
9430
9431
9432# Check whether --enable-strict-compilation was given.
9433if test "${enable_strict_compilation+set}" = set; then :
9434  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9435else
9436  STRICT_COMPILE=no
9437fi
9438
9439
9440STRICT_CFLAGS=""
9441
9442
9443
9444
9445
9446xorg_testset_save_CFLAGS="$CFLAGS"
9447
9448if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9449	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9451$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9452if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9453  $as_echo_n "(cached) " >&6
9454else
9455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456/* end confdefs.h.  */
9457int i;
9458_ACEOF
9459if ac_fn_c_try_compile "$LINENO"; then :
9460  xorg_cv_cc_flag_unknown_warning_option=yes
9461else
9462  xorg_cv_cc_flag_unknown_warning_option=no
9463fi
9464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465fi
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9467$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9468	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9469	CFLAGS="$xorg_testset_save_CFLAGS"
9470fi
9471
9472if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9473	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9474		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9475	fi
9476	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9478$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9479if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9480  $as_echo_n "(cached) " >&6
9481else
9482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483/* end confdefs.h.  */
9484int i;
9485_ACEOF
9486if ac_fn_c_try_compile "$LINENO"; then :
9487  xorg_cv_cc_flag_unused_command_line_argument=yes
9488else
9489  xorg_cv_cc_flag_unused_command_line_argument=no
9490fi
9491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492fi
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9494$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9495	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9496	CFLAGS="$xorg_testset_save_CFLAGS"
9497fi
9498
9499found="no"
9500
9501	if test $found = "no" ; then
9502		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9503			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9504		fi
9505
9506		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9507			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9508		fi
9509
9510		CFLAGS="$CFLAGS -pedantic"
9511
9512		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9513$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9514		cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
9515		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9516  $as_echo_n "(cached) " >&6
9517else
9518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519/* end confdefs.h.  */
9520int i;
9521int
9522main ()
9523{
9524
9525  ;
9526  return 0;
9527}
9528_ACEOF
9529if ac_fn_c_try_link "$LINENO"; then :
9530  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9531else
9532  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9533fi
9534rm -f core conftest.err conftest.$ac_objext \
9535    conftest$ac_exeext conftest.$ac_ext
9536fi
9537
9538
9539		CFLAGS="$xorg_testset_save_CFLAGS"
9540
9541		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9542		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9543$as_echo "$supported" >&6; }
9544		if test "$supported" = "yes" ; then
9545			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9546			found="yes"
9547		fi
9548	fi
9549
9550
9551
9552
9553
9554
9555
9556xorg_testset_save_CFLAGS="$CFLAGS"
9557
9558if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9563  $as_echo_n "(cached) " >&6
9564else
9565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566/* end confdefs.h.  */
9567int i;
9568_ACEOF
9569if ac_fn_c_try_compile "$LINENO"; then :
9570  xorg_cv_cc_flag_unknown_warning_option=yes
9571else
9572  xorg_cv_cc_flag_unknown_warning_option=no
9573fi
9574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9575fi
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9578	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9579	CFLAGS="$xorg_testset_save_CFLAGS"
9580fi
9581
9582if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9583	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9585	fi
9586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9590  $as_echo_n "(cached) " >&6
9591else
9592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593/* end confdefs.h.  */
9594int i;
9595_ACEOF
9596if ac_fn_c_try_compile "$LINENO"; then :
9597  xorg_cv_cc_flag_unused_command_line_argument=yes
9598else
9599  xorg_cv_cc_flag_unused_command_line_argument=no
9600fi
9601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602fi
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9605	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9606	CFLAGS="$xorg_testset_save_CFLAGS"
9607fi
9608
9609found="no"
9610
9611	if test $found = "no" ; then
9612		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614		fi
9615
9616		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9618		fi
9619
9620		CFLAGS="$CFLAGS -Werror"
9621
9622		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9623$as_echo_n "checking if $CC supports -Werror... " >&6; }
9624		cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
9625		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9626  $as_echo_n "(cached) " >&6
9627else
9628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629/* end confdefs.h.  */
9630int i;
9631int
9632main ()
9633{
9634
9635  ;
9636  return 0;
9637}
9638_ACEOF
9639if ac_fn_c_try_link "$LINENO"; then :
9640  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9641else
9642  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9643fi
9644rm -f core conftest.err conftest.$ac_objext \
9645    conftest$ac_exeext conftest.$ac_ext
9646fi
9647
9648
9649		CFLAGS="$xorg_testset_save_CFLAGS"
9650
9651		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9652		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9653$as_echo "$supported" >&6; }
9654		if test "$supported" = "yes" ; then
9655			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9656			found="yes"
9657		fi
9658	fi
9659
9660	if test $found = "no" ; then
9661		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9662			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9663		fi
9664
9665		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9666			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9667		fi
9668
9669		CFLAGS="$CFLAGS -errwarn"
9670
9671		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9672$as_echo_n "checking if $CC supports -errwarn... " >&6; }
9673		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
9674		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9675  $as_echo_n "(cached) " >&6
9676else
9677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678/* end confdefs.h.  */
9679int i;
9680int
9681main ()
9682{
9683
9684  ;
9685  return 0;
9686}
9687_ACEOF
9688if ac_fn_c_try_link "$LINENO"; then :
9689  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9690else
9691  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9692fi
9693rm -f core conftest.err conftest.$ac_objext \
9694    conftest$ac_exeext conftest.$ac_ext
9695fi
9696
9697
9698		CFLAGS="$xorg_testset_save_CFLAGS"
9699
9700		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9701		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9702$as_echo "$supported" >&6; }
9703		if test "$supported" = "yes" ; then
9704			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9705			found="yes"
9706		fi
9707	fi
9708
9709
9710
9711# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9712# activate it with -Werror, so we add it here explicitly.
9713
9714
9715
9716
9717
9718xorg_testset_save_CFLAGS="$CFLAGS"
9719
9720if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9723$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9724if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9725  $as_echo_n "(cached) " >&6
9726else
9727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728/* end confdefs.h.  */
9729int i;
9730_ACEOF
9731if ac_fn_c_try_compile "$LINENO"; then :
9732  xorg_cv_cc_flag_unknown_warning_option=yes
9733else
9734  xorg_cv_cc_flag_unknown_warning_option=no
9735fi
9736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737fi
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9739$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9740	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9741	CFLAGS="$xorg_testset_save_CFLAGS"
9742fi
9743
9744if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9745	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9746		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9747	fi
9748	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9750$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9751if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9752  $as_echo_n "(cached) " >&6
9753else
9754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755/* end confdefs.h.  */
9756int i;
9757_ACEOF
9758if ac_fn_c_try_compile "$LINENO"; then :
9759  xorg_cv_cc_flag_unused_command_line_argument=yes
9760else
9761  xorg_cv_cc_flag_unused_command_line_argument=no
9762fi
9763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764fi
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9766$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9767	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9768	CFLAGS="$xorg_testset_save_CFLAGS"
9769fi
9770
9771found="no"
9772
9773	if test $found = "no" ; then
9774		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9776		fi
9777
9778		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9780		fi
9781
9782		CFLAGS="$CFLAGS -Werror=attributes"
9783
9784		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9785$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9786		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
9787		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9788  $as_echo_n "(cached) " >&6
9789else
9790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792int i;
9793int
9794main ()
9795{
9796
9797  ;
9798  return 0;
9799}
9800_ACEOF
9801if ac_fn_c_try_link "$LINENO"; then :
9802  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9803else
9804  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9805fi
9806rm -f core conftest.err conftest.$ac_objext \
9807    conftest$ac_exeext conftest.$ac_ext
9808fi
9809
9810
9811		CFLAGS="$xorg_testset_save_CFLAGS"
9812
9813		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9814		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9815$as_echo "$supported" >&6; }
9816		if test "$supported" = "yes" ; then
9817			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9818			found="yes"
9819		fi
9820	fi
9821
9822
9823
9824if test "x$STRICT_COMPILE" = "xyes"; then
9825    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9826    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9827fi
9828
9829
9830
9831
9832
9833
9834cat >>confdefs.h <<_ACEOF
9835#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9836_ACEOF
9837
9838	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9839	if test "x$PVM" = "x"; then
9840		PVM="0"
9841	fi
9842
9843cat >>confdefs.h <<_ACEOF
9844#define PACKAGE_VERSION_MINOR $PVM
9845_ACEOF
9846
9847	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9848	if test "x$PVP" = "x"; then
9849		PVP="0"
9850	fi
9851
9852cat >>confdefs.h <<_ACEOF
9853#define PACKAGE_VERSION_PATCHLEVEL $PVP
9854_ACEOF
9855
9856
9857
9858CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9859mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9860|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9861echo 'git directory not found: installing possibly empty changelog.' >&2)"
9862
9863
9864
9865
9866macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9867INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9868mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9869|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9870echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9871
9872
9873
9874
9875
9876
9877if test x$APP_MAN_SUFFIX = x    ; then
9878    APP_MAN_SUFFIX=1
9879fi
9880if test x$APP_MAN_DIR = x    ; then
9881    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9882fi
9883
9884if test x$LIB_MAN_SUFFIX = x    ; then
9885    LIB_MAN_SUFFIX=3
9886fi
9887if test x$LIB_MAN_DIR = x    ; then
9888    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9889fi
9890
9891if test x$FILE_MAN_SUFFIX = x    ; then
9892    case $host_os in
9893	solaris*)	FILE_MAN_SUFFIX=4  ;;
9894	*)		FILE_MAN_SUFFIX=5  ;;
9895    esac
9896fi
9897if test x$FILE_MAN_DIR = x    ; then
9898    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9899fi
9900
9901if test x$MISC_MAN_SUFFIX = x    ; then
9902    case $host_os in
9903	solaris*)	MISC_MAN_SUFFIX=5  ;;
9904	*)		MISC_MAN_SUFFIX=7  ;;
9905    esac
9906fi
9907if test x$MISC_MAN_DIR = x    ; then
9908    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9909fi
9910
9911if test x$DRIVER_MAN_SUFFIX = x    ; then
9912    case $host_os in
9913	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
9914	*)		DRIVER_MAN_SUFFIX=4  ;;
9915    esac
9916fi
9917if test x$DRIVER_MAN_DIR = x    ; then
9918    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9919fi
9920
9921if test x$ADMIN_MAN_SUFFIX = x    ; then
9922    case $host_os in
9923	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
9924	*)		ADMIN_MAN_SUFFIX=8  ;;
9925    esac
9926fi
9927if test x$ADMIN_MAN_DIR = x    ; then
9928    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9929fi
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945XORG_MAN_PAGE="X Version 11"
9946
9947MAN_SUBSTS="\
9948	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9949	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9950	-e 's|__xservername__|Xorg|g' \
9951	-e 's|__xconfigfile__|xorg.conf|g' \
9952	-e 's|__projectroot__|\$(prefix)|g' \
9953	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
9954	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9955	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9956	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9957	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9958	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9959	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9960
9961
9962
9963# Check whether --enable-silent-rules was given.
9964if test "${enable_silent_rules+set}" = set; then :
9965  enableval=$enable_silent_rules;
9966fi
9967
9968case $enable_silent_rules in
9969yes) AM_DEFAULT_VERBOSITY=0;;
9970no)  AM_DEFAULT_VERBOSITY=1;;
9971*)   AM_DEFAULT_VERBOSITY=0;;
9972esac
9973AM_BACKSLASH='\'
9974
9975
9976
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
9978$as_echo_n "checking for root directory for font files... " >&6; }
9979fontrootdir='${datadir}/fonts/X11'
9980
9981# Check whether --with-fontrootdir was given.
9982if test "${with_fontrootdir+set}" = set; then :
9983  withval=$with_fontrootdir; fontrootdir="${withval}"
9984fi
9985
9986
9987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fontrootdir}" >&5
9988$as_echo "${fontrootdir}" >&6; }
9989
9990mapdir='${fontrootdir}/util'
9991
9992# Check whether --with-mapdir was given.
9993if test "${with_mapdir+set}" = set; then :
9994  withval=$with_mapdir; mapdir="${withval}"
9995fi
9996
9997MAPDIR="$mapdir"
9998
9999
10000ac_config_files="$ac_config_files Makefile man/Makefile fontutil.m4 fontutil.pc"
10001
10002
10003cat >confcache <<\_ACEOF
10004# This file is a shell script that caches the results of configure
10005# tests run on this system so they can be shared between configure
10006# scripts and configure runs, see configure's option --config-cache.
10007# It is not useful on other systems.  If it contains results you don't
10008# want to keep, you may remove or edit it.
10009#
10010# config.status only pays attention to the cache file if you give it
10011# the --recheck option to rerun configure.
10012#
10013# `ac_cv_env_foo' variables (set or unset) will be overridden when
10014# loading this file, other *unset* `ac_cv_foo' will be assigned the
10015# following values.
10016
10017_ACEOF
10018
10019# The following way of writing the cache mishandles newlines in values,
10020# but we know of no workaround that is simple, portable, and efficient.
10021# So, we kill variables containing newlines.
10022# Ultrix sh set writes to stderr and can't be redirected directly,
10023# and sets the high bit in the cache file unless we assign to the vars.
10024(
10025  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10026    eval ac_val=\$$ac_var
10027    case $ac_val in #(
10028    *${as_nl}*)
10029      case $ac_var in #(
10030      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10031$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10032      esac
10033      case $ac_var in #(
10034      _ | IFS | as_nl) ;; #(
10035      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10036      *) { eval $ac_var=; unset $ac_var;} ;;
10037      esac ;;
10038    esac
10039  done
10040
10041  (set) 2>&1 |
10042    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10043    *${as_nl}ac_space=\ *)
10044      # `set' does not quote correctly, so add quotes: double-quote
10045      # substitution turns \\\\ into \\, and sed turns \\ into \.
10046      sed -n \
10047	"s/'/'\\\\''/g;
10048	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10049      ;; #(
10050    *)
10051      # `set' quotes correctly as required by POSIX, so do not add quotes.
10052      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10053      ;;
10054    esac |
10055    sort
10056) |
10057  sed '
10058     /^ac_cv_env_/b end
10059     t clear
10060     :clear
10061     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10062     t end
10063     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10064     :end' >>confcache
10065if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10066  if test -w "$cache_file"; then
10067    if test "x$cache_file" != "x/dev/null"; then
10068      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10069$as_echo "$as_me: updating cache $cache_file" >&6;}
10070      if test ! -f "$cache_file" || test -h "$cache_file"; then
10071	cat confcache >"$cache_file"
10072      else
10073        case $cache_file in #(
10074        */* | ?:*)
10075	  mv -f confcache "$cache_file"$$ &&
10076	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10077        *)
10078	  mv -f confcache "$cache_file" ;;
10079	esac
10080      fi
10081    fi
10082  else
10083    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10084$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10085  fi
10086fi
10087rm -f confcache
10088
10089test "x$prefix" = xNONE && prefix=$ac_default_prefix
10090# Let make expand exec_prefix.
10091test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10092
10093DEFS=-DHAVE_CONFIG_H
10094
10095ac_libobjs=
10096ac_ltlibobjs=
10097U=
10098for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10099  # 1. Remove the extension, and $U if already installed.
10100  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10101  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10102  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10103  #    will be set to the directory where LIBOBJS objects are built.
10104  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10105  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10106done
10107LIBOBJS=$ac_libobjs
10108
10109LTLIBOBJS=$ac_ltlibobjs
10110
10111
10112 if test -n "$EXEEXT"; then
10113  am__EXEEXT_TRUE=
10114  am__EXEEXT_FALSE='#'
10115else
10116  am__EXEEXT_TRUE='#'
10117  am__EXEEXT_FALSE=
10118fi
10119
10120if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10121  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10122Usually this means the macro was only invoked conditionally." "$LINENO" 5
10123fi
10124if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10125  as_fn_error $? "conditional \"AMDEP\" was never defined.
10126Usually this means the macro was only invoked conditionally." "$LINENO" 5
10127fi
10128if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10129  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10130Usually this means the macro was only invoked conditionally." "$LINENO" 5
10131fi
10132
10133: "${CONFIG_STATUS=./config.status}"
10134ac_write_fail=0
10135ac_clean_files_save=$ac_clean_files
10136ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10138$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10139as_write_fail=0
10140cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10141#! $SHELL
10142# Generated by $as_me.
10143# Run this file to recreate the current configuration.
10144# Compiler output produced by configure, useful for debugging
10145# configure, is in config.log if it exists.
10146
10147debug=false
10148ac_cs_recheck=false
10149ac_cs_silent=false
10150
10151SHELL=\${CONFIG_SHELL-$SHELL}
10152export SHELL
10153_ASEOF
10154cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10155## -------------------- ##
10156## M4sh Initialization. ##
10157## -------------------- ##
10158
10159# Be more Bourne compatible
10160DUALCASE=1; export DUALCASE # for MKS sh
10161if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10162  emulate sh
10163  NULLCMD=:
10164  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10165  # is contrary to our usage.  Disable this feature.
10166  alias -g '${1+"$@"}'='"$@"'
10167  setopt NO_GLOB_SUBST
10168else
10169  case `(set -o) 2>/dev/null` in #(
10170  *posix*) :
10171    set -o posix ;; #(
10172  *) :
10173     ;;
10174esac
10175fi
10176
10177
10178as_nl='
10179'
10180export as_nl
10181# Printing a long string crashes Solaris 7 /usr/bin/printf.
10182as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10183as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10184as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10185# Prefer a ksh shell builtin over an external printf program on Solaris,
10186# but without wasting forks for bash or zsh.
10187if test -z "$BASH_VERSION$ZSH_VERSION" \
10188    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10189  as_echo='print -r --'
10190  as_echo_n='print -rn --'
10191elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10192  as_echo='printf %s\n'
10193  as_echo_n='printf %s'
10194else
10195  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10196    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10197    as_echo_n='/usr/ucb/echo -n'
10198  else
10199    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10200    as_echo_n_body='eval
10201      arg=$1;
10202      case $arg in #(
10203      *"$as_nl"*)
10204	expr "X$arg" : "X\\(.*\\)$as_nl";
10205	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10206      esac;
10207      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10208    '
10209    export as_echo_n_body
10210    as_echo_n='sh -c $as_echo_n_body as_echo'
10211  fi
10212  export as_echo_body
10213  as_echo='sh -c $as_echo_body as_echo'
10214fi
10215
10216# The user is always right.
10217if test "${PATH_SEPARATOR+set}" != set; then
10218  PATH_SEPARATOR=:
10219  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10220    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10221      PATH_SEPARATOR=';'
10222  }
10223fi
10224
10225
10226# IFS
10227# We need space, tab and new line, in precisely that order.  Quoting is
10228# there to prevent editors from complaining about space-tab.
10229# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10230# splitting by setting IFS to empty value.)
10231IFS=" ""	$as_nl"
10232
10233# Find who we are.  Look in the path if we contain no directory separator.
10234as_myself=
10235case $0 in #((
10236  *[\\/]* ) as_myself=$0 ;;
10237  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238for as_dir in $PATH
10239do
10240  IFS=$as_save_IFS
10241  test -z "$as_dir" && as_dir=.
10242    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10243  done
10244IFS=$as_save_IFS
10245
10246     ;;
10247esac
10248# We did not find ourselves, most probably we were run as `sh COMMAND'
10249# in which case we are not to be found in the path.
10250if test "x$as_myself" = x; then
10251  as_myself=$0
10252fi
10253if test ! -f "$as_myself"; then
10254  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10255  exit 1
10256fi
10257
10258# Unset variables that we do not need and which cause bugs (e.g. in
10259# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10260# suppresses any "Segmentation fault" message there.  '((' could
10261# trigger a bug in pdksh 5.2.14.
10262for as_var in BASH_ENV ENV MAIL MAILPATH
10263do eval test x\${$as_var+set} = xset \
10264  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10265done
10266PS1='$ '
10267PS2='> '
10268PS4='+ '
10269
10270# NLS nuisances.
10271LC_ALL=C
10272export LC_ALL
10273LANGUAGE=C
10274export LANGUAGE
10275
10276# CDPATH.
10277(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10278
10279
10280# as_fn_error STATUS ERROR [LINENO LOG_FD]
10281# ----------------------------------------
10282# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10283# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10284# script with STATUS, using 1 if that was 0.
10285as_fn_error ()
10286{
10287  as_status=$1; test $as_status -eq 0 && as_status=1
10288  if test "$4"; then
10289    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10290    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10291  fi
10292  $as_echo "$as_me: error: $2" >&2
10293  as_fn_exit $as_status
10294} # as_fn_error
10295
10296
10297# as_fn_set_status STATUS
10298# -----------------------
10299# Set $? to STATUS, without forking.
10300as_fn_set_status ()
10301{
10302  return $1
10303} # as_fn_set_status
10304
10305# as_fn_exit STATUS
10306# -----------------
10307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10308as_fn_exit ()
10309{
10310  set +e
10311  as_fn_set_status $1
10312  exit $1
10313} # as_fn_exit
10314
10315# as_fn_unset VAR
10316# ---------------
10317# Portably unset VAR.
10318as_fn_unset ()
10319{
10320  { eval $1=; unset $1;}
10321}
10322as_unset=as_fn_unset
10323# as_fn_append VAR VALUE
10324# ----------------------
10325# Append the text in VALUE to the end of the definition contained in VAR. Take
10326# advantage of any shell optimizations that allow amortized linear growth over
10327# repeated appends, instead of the typical quadratic growth present in naive
10328# implementations.
10329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10330  eval 'as_fn_append ()
10331  {
10332    eval $1+=\$2
10333  }'
10334else
10335  as_fn_append ()
10336  {
10337    eval $1=\$$1\$2
10338  }
10339fi # as_fn_append
10340
10341# as_fn_arith ARG...
10342# ------------------
10343# Perform arithmetic evaluation on the ARGs, and store the result in the
10344# global $as_val. Take advantage of shells that can avoid forks. The arguments
10345# must be portable across $(()) and expr.
10346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10347  eval 'as_fn_arith ()
10348  {
10349    as_val=$(( $* ))
10350  }'
10351else
10352  as_fn_arith ()
10353  {
10354    as_val=`expr "$@" || test $? -eq 1`
10355  }
10356fi # as_fn_arith
10357
10358
10359if expr a : '\(a\)' >/dev/null 2>&1 &&
10360   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10361  as_expr=expr
10362else
10363  as_expr=false
10364fi
10365
10366if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10367  as_basename=basename
10368else
10369  as_basename=false
10370fi
10371
10372if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10373  as_dirname=dirname
10374else
10375  as_dirname=false
10376fi
10377
10378as_me=`$as_basename -- "$0" ||
10379$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10380	 X"$0" : 'X\(//\)$' \| \
10381	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10382$as_echo X/"$0" |
10383    sed '/^.*\/\([^/][^/]*\)\/*$/{
10384	    s//\1/
10385	    q
10386	  }
10387	  /^X\/\(\/\/\)$/{
10388	    s//\1/
10389	    q
10390	  }
10391	  /^X\/\(\/\).*/{
10392	    s//\1/
10393	    q
10394	  }
10395	  s/.*/./; q'`
10396
10397# Avoid depending upon Character Ranges.
10398as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10399as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10400as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10401as_cr_digits='0123456789'
10402as_cr_alnum=$as_cr_Letters$as_cr_digits
10403
10404ECHO_C= ECHO_N= ECHO_T=
10405case `echo -n x` in #(((((
10406-n*)
10407  case `echo 'xy\c'` in
10408  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10409  xy)  ECHO_C='\c';;
10410  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10411       ECHO_T='	';;
10412  esac;;
10413*)
10414  ECHO_N='-n';;
10415esac
10416
10417rm -f conf$$ conf$$.exe conf$$.file
10418if test -d conf$$.dir; then
10419  rm -f conf$$.dir/conf$$.file
10420else
10421  rm -f conf$$.dir
10422  mkdir conf$$.dir 2>/dev/null
10423fi
10424if (echo >conf$$.file) 2>/dev/null; then
10425  if ln -s conf$$.file conf$$ 2>/dev/null; then
10426    as_ln_s='ln -s'
10427    # ... but there are two gotchas:
10428    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10429    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10430    # In both cases, we have to default to `cp -p'.
10431    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10432      as_ln_s='cp -p'
10433  elif ln conf$$.file conf$$ 2>/dev/null; then
10434    as_ln_s=ln
10435  else
10436    as_ln_s='cp -p'
10437  fi
10438else
10439  as_ln_s='cp -p'
10440fi
10441rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10442rmdir conf$$.dir 2>/dev/null
10443
10444
10445# as_fn_mkdir_p
10446# -------------
10447# Create "$as_dir" as a directory, including parents if necessary.
10448as_fn_mkdir_p ()
10449{
10450
10451  case $as_dir in #(
10452  -*) as_dir=./$as_dir;;
10453  esac
10454  test -d "$as_dir" || eval $as_mkdir_p || {
10455    as_dirs=
10456    while :; do
10457      case $as_dir in #(
10458      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10459      *) as_qdir=$as_dir;;
10460      esac
10461      as_dirs="'$as_qdir' $as_dirs"
10462      as_dir=`$as_dirname -- "$as_dir" ||
10463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10464	 X"$as_dir" : 'X\(//\)[^/]' \| \
10465	 X"$as_dir" : 'X\(//\)$' \| \
10466	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10467$as_echo X"$as_dir" |
10468    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10469	    s//\1/
10470	    q
10471	  }
10472	  /^X\(\/\/\)[^/].*/{
10473	    s//\1/
10474	    q
10475	  }
10476	  /^X\(\/\/\)$/{
10477	    s//\1/
10478	    q
10479	  }
10480	  /^X\(\/\).*/{
10481	    s//\1/
10482	    q
10483	  }
10484	  s/.*/./; q'`
10485      test -d "$as_dir" && break
10486    done
10487    test -z "$as_dirs" || eval "mkdir $as_dirs"
10488  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10489
10490
10491} # as_fn_mkdir_p
10492if mkdir -p . 2>/dev/null; then
10493  as_mkdir_p='mkdir -p "$as_dir"'
10494else
10495  test -d ./-p && rmdir ./-p
10496  as_mkdir_p=false
10497fi
10498
10499if test -x / >/dev/null 2>&1; then
10500  as_test_x='test -x'
10501else
10502  if ls -dL / >/dev/null 2>&1; then
10503    as_ls_L_option=L
10504  else
10505    as_ls_L_option=
10506  fi
10507  as_test_x='
10508    eval sh -c '\''
10509      if test -d "$1"; then
10510	test -d "$1/.";
10511      else
10512	case $1 in #(
10513	-*)set "./$1";;
10514	esac;
10515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10516	???[sx]*):;;*)false;;esac;fi
10517    '\'' sh
10518  '
10519fi
10520as_executable_p=$as_test_x
10521
10522# Sed expression to map a string onto a valid CPP name.
10523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10524
10525# Sed expression to map a string onto a valid variable name.
10526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10527
10528
10529exec 6>&1
10530## ----------------------------------- ##
10531## Main body of $CONFIG_STATUS script. ##
10532## ----------------------------------- ##
10533_ASEOF
10534test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10535
10536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10537# Save the log message, to keep $0 and so on meaningful, and to
10538# report actual input values of CONFIG_FILES etc. instead of their
10539# values after options handling.
10540ac_log="
10541This file was extended by font-util $as_me 1.3.0, which was
10542generated by GNU Autoconf 2.68.  Invocation command line was
10543
10544  CONFIG_FILES    = $CONFIG_FILES
10545  CONFIG_HEADERS  = $CONFIG_HEADERS
10546  CONFIG_LINKS    = $CONFIG_LINKS
10547  CONFIG_COMMANDS = $CONFIG_COMMANDS
10548  $ $0 $@
10549
10550on `(hostname || uname -n) 2>/dev/null | sed 1q`
10551"
10552
10553_ACEOF
10554
10555case $ac_config_files in *"
10556"*) set x $ac_config_files; shift; ac_config_files=$*;;
10557esac
10558
10559case $ac_config_headers in *"
10560"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10561esac
10562
10563
10564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10565# Files that config.status was made for.
10566config_files="$ac_config_files"
10567config_headers="$ac_config_headers"
10568config_commands="$ac_config_commands"
10569
10570_ACEOF
10571
10572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10573ac_cs_usage="\
10574\`$as_me' instantiates files and other configuration actions
10575from templates according to the current configuration.  Unless the files
10576and actions are specified as TAGs, all are instantiated by default.
10577
10578Usage: $0 [OPTION]... [TAG]...
10579
10580  -h, --help       print this help, then exit
10581  -V, --version    print version number and configuration settings, then exit
10582      --config     print configuration, then exit
10583  -q, --quiet, --silent
10584                   do not print progress messages
10585  -d, --debug      don't remove temporary files
10586      --recheck    update $as_me by reconfiguring in the same conditions
10587      --file=FILE[:TEMPLATE]
10588                   instantiate the configuration file FILE
10589      --header=FILE[:TEMPLATE]
10590                   instantiate the configuration header FILE
10591
10592Configuration files:
10593$config_files
10594
10595Configuration headers:
10596$config_headers
10597
10598Configuration commands:
10599$config_commands
10600
10601Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
10602
10603_ACEOF
10604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10605ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10606ac_cs_version="\\
10607font-util config.status 1.3.0
10608configured by $0, generated by GNU Autoconf 2.68,
10609  with options \\"\$ac_cs_config\\"
10610
10611Copyright (C) 2010 Free Software Foundation, Inc.
10612This config.status script is free software; the Free Software Foundation
10613gives unlimited permission to copy, distribute and modify it."
10614
10615ac_pwd='$ac_pwd'
10616srcdir='$srcdir'
10617INSTALL='$INSTALL'
10618MKDIR_P='$MKDIR_P'
10619AWK='$AWK'
10620test -n "\$AWK" || AWK=awk
10621_ACEOF
10622
10623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10624# The default lists apply if the user does not specify any file.
10625ac_need_defaults=:
10626while test $# != 0
10627do
10628  case $1 in
10629  --*=?*)
10630    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10631    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10632    ac_shift=:
10633    ;;
10634  --*=)
10635    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10636    ac_optarg=
10637    ac_shift=:
10638    ;;
10639  *)
10640    ac_option=$1
10641    ac_optarg=$2
10642    ac_shift=shift
10643    ;;
10644  esac
10645
10646  case $ac_option in
10647  # Handling of the options.
10648  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10649    ac_cs_recheck=: ;;
10650  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10651    $as_echo "$ac_cs_version"; exit ;;
10652  --config | --confi | --conf | --con | --co | --c )
10653    $as_echo "$ac_cs_config"; exit ;;
10654  --debug | --debu | --deb | --de | --d | -d )
10655    debug=: ;;
10656  --file | --fil | --fi | --f )
10657    $ac_shift
10658    case $ac_optarg in
10659    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10660    '') as_fn_error $? "missing file argument" ;;
10661    esac
10662    as_fn_append CONFIG_FILES " '$ac_optarg'"
10663    ac_need_defaults=false;;
10664  --header | --heade | --head | --hea )
10665    $ac_shift
10666    case $ac_optarg in
10667    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10668    esac
10669    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10670    ac_need_defaults=false;;
10671  --he | --h)
10672    # Conflict between --help and --header
10673    as_fn_error $? "ambiguous option: \`$1'
10674Try \`$0 --help' for more information.";;
10675  --help | --hel | -h )
10676    $as_echo "$ac_cs_usage"; exit ;;
10677  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10678  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10679    ac_cs_silent=: ;;
10680
10681  # This is an error.
10682  -*) as_fn_error $? "unrecognized option: \`$1'
10683Try \`$0 --help' for more information." ;;
10684
10685  *) as_fn_append ac_config_targets " $1"
10686     ac_need_defaults=false ;;
10687
10688  esac
10689  shift
10690done
10691
10692ac_configure_extra_args=
10693
10694if $ac_cs_silent; then
10695  exec 6>/dev/null
10696  ac_configure_extra_args="$ac_configure_extra_args --silent"
10697fi
10698
10699_ACEOF
10700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10701if \$ac_cs_recheck; then
10702  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10703  shift
10704  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10705  CONFIG_SHELL='$SHELL'
10706  export CONFIG_SHELL
10707  exec "\$@"
10708fi
10709
10710_ACEOF
10711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10712exec 5>>config.log
10713{
10714  echo
10715  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10716## Running $as_me. ##
10717_ASBOX
10718  $as_echo "$ac_log"
10719} >&5
10720
10721_ACEOF
10722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10723#
10724# INIT-COMMANDS
10725#
10726AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10727
10728_ACEOF
10729
10730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10731
10732# Handling of arguments.
10733for ac_config_target in $ac_config_targets
10734do
10735  case $ac_config_target in
10736    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10737    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10738    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10739    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10740    "fontutil.m4") CONFIG_FILES="$CONFIG_FILES fontutil.m4" ;;
10741    "fontutil.pc") CONFIG_FILES="$CONFIG_FILES fontutil.pc" ;;
10742
10743  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10744  esac
10745done
10746
10747
10748# If the user did not use the arguments to specify the items to instantiate,
10749# then the envvar interface is used.  Set only those that are not.
10750# We use the long form for the default assignment because of an extremely
10751# bizarre bug on SunOS 4.1.3.
10752if $ac_need_defaults; then
10753  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10754  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10755  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10756fi
10757
10758# Have a temporary directory for convenience.  Make it in the build tree
10759# simply because there is no reason against having it here, and in addition,
10760# creating and moving files from /tmp can sometimes cause problems.
10761# Hook for its removal unless debugging.
10762# Note that there is a small window in which the directory will not be cleaned:
10763# after its creation but before its name has been assigned to `$tmp'.
10764$debug ||
10765{
10766  tmp= ac_tmp=
10767  trap 'exit_status=$?
10768  : "${ac_tmp:=$tmp}"
10769  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10770' 0
10771  trap 'as_fn_exit 1' 1 2 13 15
10772}
10773# Create a (secure) tmp directory for tmp files.
10774
10775{
10776  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10777  test -d "$tmp"
10778}  ||
10779{
10780  tmp=./conf$$-$RANDOM
10781  (umask 077 && mkdir "$tmp")
10782} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10783ac_tmp=$tmp
10784
10785# Set up the scripts for CONFIG_FILES section.
10786# No need to generate them if there are no CONFIG_FILES.
10787# This happens for instance with `./config.status config.h'.
10788if test -n "$CONFIG_FILES"; then
10789
10790
10791ac_cr=`echo X | tr X '\015'`
10792# On cygwin, bash can eat \r inside `` if the user requested igncr.
10793# But we know of no other shell where ac_cr would be empty at this
10794# point, so we can use a bashism as a fallback.
10795if test "x$ac_cr" = x; then
10796  eval ac_cr=\$\'\\r\'
10797fi
10798ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10799if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10800  ac_cs_awk_cr='\\r'
10801else
10802  ac_cs_awk_cr=$ac_cr
10803fi
10804
10805echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10806_ACEOF
10807
10808
10809{
10810  echo "cat >conf$$subs.awk <<_ACEOF" &&
10811  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10812  echo "_ACEOF"
10813} >conf$$subs.sh ||
10814  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10815ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10816ac_delim='%!_!# '
10817for ac_last_try in false false false false false :; do
10818  . ./conf$$subs.sh ||
10819    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10820
10821  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10822  if test $ac_delim_n = $ac_delim_num; then
10823    break
10824  elif $ac_last_try; then
10825    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10826  else
10827    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10828  fi
10829done
10830rm -f conf$$subs.sh
10831
10832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10833cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10834_ACEOF
10835sed -n '
10836h
10837s/^/S["/; s/!.*/"]=/
10838p
10839g
10840s/^[^!]*!//
10841:repl
10842t repl
10843s/'"$ac_delim"'$//
10844t delim
10845:nl
10846h
10847s/\(.\{148\}\)..*/\1/
10848t more1
10849s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10850p
10851n
10852b repl
10853:more1
10854s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10855p
10856g
10857s/.\{148\}//
10858t nl
10859:delim
10860h
10861s/\(.\{148\}\)..*/\1/
10862t more2
10863s/["\\]/\\&/g; s/^/"/; s/$/"/
10864p
10865b
10866:more2
10867s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10868p
10869g
10870s/.\{148\}//
10871t delim
10872' <conf$$subs.awk | sed '
10873/^[^""]/{
10874  N
10875  s/\n//
10876}
10877' >>$CONFIG_STATUS || ac_write_fail=1
10878rm -f conf$$subs.awk
10879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10880_ACAWK
10881cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10882  for (key in S) S_is_set[key] = 1
10883  FS = ""
10884
10885}
10886{
10887  line = $ 0
10888  nfields = split(line, field, "@")
10889  substed = 0
10890  len = length(field[1])
10891  for (i = 2; i < nfields; i++) {
10892    key = field[i]
10893    keylen = length(key)
10894    if (S_is_set[key]) {
10895      value = S[key]
10896      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10897      len += length(value) + length(field[++i])
10898      substed = 1
10899    } else
10900      len += 1 + keylen
10901  }
10902
10903  print line
10904}
10905
10906_ACAWK
10907_ACEOF
10908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10909if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10910  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10911else
10912  cat
10913fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10914  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10915_ACEOF
10916
10917# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10918# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10919# trailing colons and then remove the whole line if VPATH becomes empty
10920# (actually we leave an empty line to preserve line numbers).
10921if test "x$srcdir" = x.; then
10922  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
10923h
10924s///
10925s/^/:/
10926s/[	 ]*$/:/
10927s/:\$(srcdir):/:/g
10928s/:\${srcdir}:/:/g
10929s/:@srcdir@:/:/g
10930s/^:*//
10931s/:*$//
10932x
10933s/\(=[	 ]*\).*/\1/
10934G
10935s/\n//
10936s/^[^=]*=[	 ]*$//
10937}'
10938fi
10939
10940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10941fi # test -n "$CONFIG_FILES"
10942
10943# Set up the scripts for CONFIG_HEADERS section.
10944# No need to generate them if there are no CONFIG_HEADERS.
10945# This happens for instance with `./config.status Makefile'.
10946if test -n "$CONFIG_HEADERS"; then
10947cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10948BEGIN {
10949_ACEOF
10950
10951# Transform confdefs.h into an awk script `defines.awk', embedded as
10952# here-document in config.status, that substitutes the proper values into
10953# config.h.in to produce config.h.
10954
10955# Create a delimiter string that does not exist in confdefs.h, to ease
10956# handling of long lines.
10957ac_delim='%!_!# '
10958for ac_last_try in false false :; do
10959  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10960  if test -z "$ac_tt"; then
10961    break
10962  elif $ac_last_try; then
10963    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10964  else
10965    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10966  fi
10967done
10968
10969# For the awk script, D is an array of macro values keyed by name,
10970# likewise P contains macro parameters if any.  Preserve backslash
10971# newline sequences.
10972
10973ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10974sed -n '
10975s/.\{148\}/&'"$ac_delim"'/g
10976t rset
10977:rset
10978s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
10979t def
10980d
10981:def
10982s/\\$//
10983t bsnl
10984s/["\\]/\\&/g
10985s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10986D["\1"]=" \3"/p
10987s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
10988d
10989:bsnl
10990s/["\\]/\\&/g
10991s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10992D["\1"]=" \3\\\\\\n"\\/p
10993t cont
10994s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10995t cont
10996d
10997:cont
10998n
10999s/.\{148\}/&'"$ac_delim"'/g
11000t clear
11001:clear
11002s/\\$//
11003t bsnlc
11004s/["\\]/\\&/g; s/^/"/; s/$/"/p
11005d
11006:bsnlc
11007s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11008b cont
11009' <confdefs.h | sed '
11010s/'"$ac_delim"'/"\\\
11011"/g' >>$CONFIG_STATUS || ac_write_fail=1
11012
11013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11014  for (key in D) D_is_set[key] = 1
11015  FS = ""
11016}
11017/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11018  line = \$ 0
11019  split(line, arg, " ")
11020  if (arg[1] == "#") {
11021    defundef = arg[2]
11022    mac1 = arg[3]
11023  } else {
11024    defundef = substr(arg[1], 2)
11025    mac1 = arg[2]
11026  }
11027  split(mac1, mac2, "(") #)
11028  macro = mac2[1]
11029  prefix = substr(line, 1, index(line, defundef) - 1)
11030  if (D_is_set[macro]) {
11031    # Preserve the white space surrounding the "#".
11032    print prefix "define", macro P[macro] D[macro]
11033    next
11034  } else {
11035    # Replace #undef with comments.  This is necessary, for example,
11036    # in the case of _POSIX_SOURCE, which is predefined and required
11037    # on some systems where configure will not decide to define it.
11038    if (defundef == "undef") {
11039      print "/*", prefix defundef, macro, "*/"
11040      next
11041    }
11042  }
11043}
11044{ print }
11045_ACAWK
11046_ACEOF
11047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11048  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11049fi # test -n "$CONFIG_HEADERS"
11050
11051
11052eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11053shift
11054for ac_tag
11055do
11056  case $ac_tag in
11057  :[FHLC]) ac_mode=$ac_tag; continue;;
11058  esac
11059  case $ac_mode$ac_tag in
11060  :[FHL]*:*);;
11061  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11062  :[FH]-) ac_tag=-:-;;
11063  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11064  esac
11065  ac_save_IFS=$IFS
11066  IFS=:
11067  set x $ac_tag
11068  IFS=$ac_save_IFS
11069  shift
11070  ac_file=$1
11071  shift
11072
11073  case $ac_mode in
11074  :L) ac_source=$1;;
11075  :[FH])
11076    ac_file_inputs=
11077    for ac_f
11078    do
11079      case $ac_f in
11080      -) ac_f="$ac_tmp/stdin";;
11081      *) # Look for the file first in the build tree, then in the source tree
11082	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11083	 # because $ac_f cannot contain `:'.
11084	 test -f "$ac_f" ||
11085	   case $ac_f in
11086	   [\\/$]*) false;;
11087	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11088	   esac ||
11089	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11090      esac
11091      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11092      as_fn_append ac_file_inputs " '$ac_f'"
11093    done
11094
11095    # Let's still pretend it is `configure' which instantiates (i.e., don't
11096    # use $as_me), people would be surprised to read:
11097    #    /* config.h.  Generated by config.status.  */
11098    configure_input='Generated from '`
11099	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11100	`' by configure.'
11101    if test x"$ac_file" != x-; then
11102      configure_input="$ac_file.  $configure_input"
11103      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11104$as_echo "$as_me: creating $ac_file" >&6;}
11105    fi
11106    # Neutralize special characters interpreted by sed in replacement strings.
11107    case $configure_input in #(
11108    *\&* | *\|* | *\\* )
11109       ac_sed_conf_input=`$as_echo "$configure_input" |
11110       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11111    *) ac_sed_conf_input=$configure_input;;
11112    esac
11113
11114    case $ac_tag in
11115    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11116      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11117    esac
11118    ;;
11119  esac
11120
11121  ac_dir=`$as_dirname -- "$ac_file" ||
11122$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11123	 X"$ac_file" : 'X\(//\)[^/]' \| \
11124	 X"$ac_file" : 'X\(//\)$' \| \
11125	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11126$as_echo X"$ac_file" |
11127    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11128	    s//\1/
11129	    q
11130	  }
11131	  /^X\(\/\/\)[^/].*/{
11132	    s//\1/
11133	    q
11134	  }
11135	  /^X\(\/\/\)$/{
11136	    s//\1/
11137	    q
11138	  }
11139	  /^X\(\/\).*/{
11140	    s//\1/
11141	    q
11142	  }
11143	  s/.*/./; q'`
11144  as_dir="$ac_dir"; as_fn_mkdir_p
11145  ac_builddir=.
11146
11147case "$ac_dir" in
11148.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11149*)
11150  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11151  # A ".." for each directory in $ac_dir_suffix.
11152  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11153  case $ac_top_builddir_sub in
11154  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11155  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11156  esac ;;
11157esac
11158ac_abs_top_builddir=$ac_pwd
11159ac_abs_builddir=$ac_pwd$ac_dir_suffix
11160# for backward compatibility:
11161ac_top_builddir=$ac_top_build_prefix
11162
11163case $srcdir in
11164  .)  # We are building in place.
11165    ac_srcdir=.
11166    ac_top_srcdir=$ac_top_builddir_sub
11167    ac_abs_top_srcdir=$ac_pwd ;;
11168  [\\/]* | ?:[\\/]* )  # Absolute name.
11169    ac_srcdir=$srcdir$ac_dir_suffix;
11170    ac_top_srcdir=$srcdir
11171    ac_abs_top_srcdir=$srcdir ;;
11172  *) # Relative name.
11173    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11174    ac_top_srcdir=$ac_top_build_prefix$srcdir
11175    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11176esac
11177ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11178
11179
11180  case $ac_mode in
11181  :F)
11182  #
11183  # CONFIG_FILE
11184  #
11185
11186  case $INSTALL in
11187  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11188  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11189  esac
11190  ac_MKDIR_P=$MKDIR_P
11191  case $MKDIR_P in
11192  [\\/$]* | ?:[\\/]* ) ;;
11193  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11194  esac
11195_ACEOF
11196
11197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11198# If the template does not know about datarootdir, expand it.
11199# FIXME: This hack should be removed a few years after 2.60.
11200ac_datarootdir_hack=; ac_datarootdir_seen=
11201ac_sed_dataroot='
11202/datarootdir/ {
11203  p
11204  q
11205}
11206/@datadir@/p
11207/@docdir@/p
11208/@infodir@/p
11209/@localedir@/p
11210/@mandir@/p'
11211case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11212*datarootdir*) ac_datarootdir_seen=yes;;
11213*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11214  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11215$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11216_ACEOF
11217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11218  ac_datarootdir_hack='
11219  s&@datadir@&$datadir&g
11220  s&@docdir@&$docdir&g
11221  s&@infodir@&$infodir&g
11222  s&@localedir@&$localedir&g
11223  s&@mandir@&$mandir&g
11224  s&\\\${datarootdir}&$datarootdir&g' ;;
11225esac
11226_ACEOF
11227
11228# Neutralize VPATH when `$srcdir' = `.'.
11229# Shell code in configure.ac might set extrasub.
11230# FIXME: do we really want to maintain this feature?
11231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11232ac_sed_extra="$ac_vpsub
11233$extrasub
11234_ACEOF
11235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11236:t
11237/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11238s|@configure_input@|$ac_sed_conf_input|;t t
11239s&@top_builddir@&$ac_top_builddir_sub&;t t
11240s&@top_build_prefix@&$ac_top_build_prefix&;t t
11241s&@srcdir@&$ac_srcdir&;t t
11242s&@abs_srcdir@&$ac_abs_srcdir&;t t
11243s&@top_srcdir@&$ac_top_srcdir&;t t
11244s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11245s&@builddir@&$ac_builddir&;t t
11246s&@abs_builddir@&$ac_abs_builddir&;t t
11247s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11248s&@INSTALL@&$ac_INSTALL&;t t
11249s&@MKDIR_P@&$ac_MKDIR_P&;t t
11250$ac_datarootdir_hack
11251"
11252eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11253  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11254
11255test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11256  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11257  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11258      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11259  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11260which seems to be undefined.  Please make sure it is defined" >&5
11261$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11262which seems to be undefined.  Please make sure it is defined" >&2;}
11263
11264  rm -f "$ac_tmp/stdin"
11265  case $ac_file in
11266  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11267  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11268  esac \
11269  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11270 ;;
11271  :H)
11272  #
11273  # CONFIG_HEADER
11274  #
11275  if test x"$ac_file" != x-; then
11276    {
11277      $as_echo "/* $configure_input  */" \
11278      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11279    } >"$ac_tmp/config.h" \
11280      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11281    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11282      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11283$as_echo "$as_me: $ac_file is unchanged" >&6;}
11284    else
11285      rm -f "$ac_file"
11286      mv "$ac_tmp/config.h" "$ac_file" \
11287	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11288    fi
11289  else
11290    $as_echo "/* $configure_input  */" \
11291      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11292      || as_fn_error $? "could not create -" "$LINENO" 5
11293  fi
11294# Compute "$ac_file"'s index in $config_headers.
11295_am_arg="$ac_file"
11296_am_stamp_count=1
11297for _am_header in $config_headers :; do
11298  case $_am_header in
11299    $_am_arg | $_am_arg:* )
11300      break ;;
11301    * )
11302      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11303  esac
11304done
11305echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11306$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11307	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11308	 X"$_am_arg" : 'X\(//\)$' \| \
11309	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11310$as_echo X"$_am_arg" |
11311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11312	    s//\1/
11313	    q
11314	  }
11315	  /^X\(\/\/\)[^/].*/{
11316	    s//\1/
11317	    q
11318	  }
11319	  /^X\(\/\/\)$/{
11320	    s//\1/
11321	    q
11322	  }
11323	  /^X\(\/\).*/{
11324	    s//\1/
11325	    q
11326	  }
11327	  s/.*/./; q'`/stamp-h$_am_stamp_count
11328 ;;
11329
11330  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11331$as_echo "$as_me: executing $ac_file commands" >&6;}
11332 ;;
11333  esac
11334
11335
11336  case $ac_file$ac_mode in
11337    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11338  # Autoconf 2.62 quotes --file arguments for eval, but not when files
11339  # are listed without --file.  Let's play safe and only enable the eval
11340  # if we detect the quoting.
11341  case $CONFIG_FILES in
11342  *\'*) eval set x "$CONFIG_FILES" ;;
11343  *)   set x $CONFIG_FILES ;;
11344  esac
11345  shift
11346  for mf
11347  do
11348    # Strip MF so we end up with the name of the file.
11349    mf=`echo "$mf" | sed -e 's/:.*$//'`
11350    # Check whether this is an Automake generated Makefile or not.
11351    # We used to match only the files named `Makefile.in', but
11352    # some people rename them; so instead we look at the file content.
11353    # Grep'ing the first line is not enough: some people post-process
11354    # each Makefile.in and add a new line on top of each file to say so.
11355    # Grep'ing the whole file is not good either: AIX grep has a line
11356    # limit of 2048, but all sed's we know have understand at least 4000.
11357    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11358      dirpart=`$as_dirname -- "$mf" ||
11359$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11360	 X"$mf" : 'X\(//\)[^/]' \| \
11361	 X"$mf" : 'X\(//\)$' \| \
11362	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11363$as_echo X"$mf" |
11364    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11365	    s//\1/
11366	    q
11367	  }
11368	  /^X\(\/\/\)[^/].*/{
11369	    s//\1/
11370	    q
11371	  }
11372	  /^X\(\/\/\)$/{
11373	    s//\1/
11374	    q
11375	  }
11376	  /^X\(\/\).*/{
11377	    s//\1/
11378	    q
11379	  }
11380	  s/.*/./; q'`
11381    else
11382      continue
11383    fi
11384    # Extract the definition of DEPDIR, am__include, and am__quote
11385    # from the Makefile without running `make'.
11386    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11387    test -z "$DEPDIR" && continue
11388    am__include=`sed -n 's/^am__include = //p' < "$mf"`
11389    test -z "am__include" && continue
11390    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11391    # When using ansi2knr, U may be empty or an underscore; expand it
11392    U=`sed -n 's/^U = //p' < "$mf"`
11393    # Find all dependency output files, they are included files with
11394    # $(DEPDIR) in their names.  We invoke sed twice because it is the
11395    # simplest approach to changing $(DEPDIR) to its actual value in the
11396    # expansion.
11397    for file in `sed -n "
11398      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11399	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11400      # Make sure the directory exists.
11401      test -f "$dirpart/$file" && continue
11402      fdir=`$as_dirname -- "$file" ||
11403$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11404	 X"$file" : 'X\(//\)[^/]' \| \
11405	 X"$file" : 'X\(//\)$' \| \
11406	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11407$as_echo X"$file" |
11408    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11409	    s//\1/
11410	    q
11411	  }
11412	  /^X\(\/\/\)[^/].*/{
11413	    s//\1/
11414	    q
11415	  }
11416	  /^X\(\/\/\)$/{
11417	    s//\1/
11418	    q
11419	  }
11420	  /^X\(\/\).*/{
11421	    s//\1/
11422	    q
11423	  }
11424	  s/.*/./; q'`
11425      as_dir=$dirpart/$fdir; as_fn_mkdir_p
11426      # echo "creating $dirpart/$file"
11427      echo '# dummy' > "$dirpart/$file"
11428    done
11429  done
11430}
11431 ;;
11432
11433  esac
11434done # for ac_tag
11435
11436
11437as_fn_exit 0
11438_ACEOF
11439ac_clean_files=$ac_clean_files_save
11440
11441test $ac_write_fail = 0 ||
11442  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11443
11444
11445# configure is writing to config.log, and then calls config.status.
11446# config.status does its own redirection, appending to config.log.
11447# Unfortunately, on DOS this fails, as config.log is still kept open
11448# by configure, so config.status won't be able to write to it; its
11449# output is simply discarded.  So we exec the FD to /dev/null,
11450# effectively closing config.log, so it can be properly (re)opened and
11451# appended to by config.status.  When coming back to configure, we
11452# need to make the FD available again.
11453if test "$no_create" != yes; then
11454  ac_cs_success=:
11455  ac_config_status_args=
11456  test "$silent" = yes &&
11457    ac_config_status_args="$ac_config_status_args --quiet"
11458  exec 5>/dev/null
11459  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11460  exec 5>>config.log
11461  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11462  # would make configure fail if this is the last instruction.
11463  $ac_cs_success || as_fn_exit 1
11464fi
11465if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11466  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11467$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11468fi
11469
11470