configure revision 663cdc11
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for mkfontscale 1.1.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='mkfontscale'
563PACKAGE_TARNAME='mkfontscale'
564PACKAGE_VERSION='1.1.0'
565PACKAGE_STRING='mkfontscale 1.1.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
610LINT_FALSE
611LINT_TRUE
612LINT_FLAGS
613LINT
614X11_LIBS
615X11_CFLAGS
616MKFONTSCALE_LIBS
617MKFONTSCALE_CFLAGS
618AM_BACKSLASH
619AM_DEFAULT_VERBOSITY
620MAN_SUBSTS
621XORG_MAN_PAGE
622ADMIN_MAN_DIR
623DRIVER_MAN_DIR
624MISC_MAN_DIR
625FILE_MAN_DIR
626LIB_MAN_DIR
627APP_MAN_DIR
628ADMIN_MAN_SUFFIX
629DRIVER_MAN_SUFFIX
630MISC_MAN_SUFFIX
631FILE_MAN_SUFFIX
632LIB_MAN_SUFFIX
633APP_MAN_SUFFIX
634SED
635host_os
636host_vendor
637host_cpu
638host
639build_os
640build_vendor
641build_cpu
642build
643INSTALL_CMD
644PKG_CONFIG
645CHANGELOG_CMD
646STRICT_CFLAGS
647CWARNFLAGS
648BASE_CFLAGS
649EGREP
650GREP
651CPP
652am__fastdepCC_FALSE
653am__fastdepCC_TRUE
654CCDEPMODE
655AMDEPBACKSLASH
656AMDEP_FALSE
657AMDEP_TRUE
658am__quote
659am__include
660DEPDIR
661OBJEXT
662EXEEXT
663ac_ct_CC
664CPPFLAGS
665LDFLAGS
666CFLAGS
667CC
668MAINT
669MAINTAINER_MODE_FALSE
670MAINTAINER_MODE_TRUE
671am__untar
672am__tar
673AMTAR
674am__leading_dot
675SET_MAKE
676AWK
677mkdir_p
678MKDIR_P
679INSTALL_STRIP_PROGRAM
680STRIP
681install_sh
682MAKEINFO
683AUTOHEADER
684AUTOMAKE
685AUTOCONF
686ACLOCAL
687VERSION
688PACKAGE
689CYGPATH_W
690am__isrc
691INSTALL_DATA
692INSTALL_SCRIPT
693INSTALL_PROGRAM
694target_alias
695host_alias
696build_alias
697LIBS
698ECHO_T
699ECHO_N
700ECHO_C
701DEFS
702mandir
703localedir
704libdir
705psdir
706pdfdir
707dvidir
708htmldir
709infodir
710docdir
711oldincludedir
712includedir
713localstatedir
714sharedstatedir
715sysconfdir
716datadir
717datarootdir
718libexecdir
719sbindir
720bindir
721program_transform_name
722prefix
723exec_prefix
724PACKAGE_URL
725PACKAGE_BUGREPORT
726PACKAGE_STRING
727PACKAGE_VERSION
728PACKAGE_TARNAME
729PACKAGE_NAME
730PATH_SEPARATOR
731SHELL'
732ac_subst_files=''
733ac_user_opts='
734enable_option_checking
735enable_maintainer_mode
736enable_dependency_tracking
737enable_selective_werror
738enable_strict_compilation
739enable_silent_rules
740with_bzip2
741with_lint
742'
743      ac_precious_vars='build_alias
744host_alias
745target_alias
746CC
747CFLAGS
748LDFLAGS
749LIBS
750CPPFLAGS
751CPP
752PKG_CONFIG
753MKFONTSCALE_CFLAGS
754MKFONTSCALE_LIBS
755X11_CFLAGS
756X11_LIBS
757LINT
758LINT_FLAGS'
759
760
761# Initialize some variables set by options.
762ac_init_help=
763ac_init_version=false
764ac_unrecognized_opts=
765ac_unrecognized_sep=
766# The variables have the same names as the options, with
767# dashes changed to underlines.
768cache_file=/dev/null
769exec_prefix=NONE
770no_create=
771no_recursion=
772prefix=NONE
773program_prefix=NONE
774program_suffix=NONE
775program_transform_name=s,x,x,
776silent=
777site=
778srcdir=
779verbose=
780x_includes=NONE
781x_libraries=NONE
782
783# Installation directory options.
784# These are left unexpanded so users can "make install exec_prefix=/foo"
785# and all the variables that are supposed to be based on exec_prefix
786# by default will actually change.
787# Use braces instead of parens because sh, perl, etc. also accept them.
788# (The list follows the same order as the GNU Coding Standards.)
789bindir='${exec_prefix}/bin'
790sbindir='${exec_prefix}/sbin'
791libexecdir='${exec_prefix}/libexec'
792datarootdir='${prefix}/share'
793datadir='${datarootdir}'
794sysconfdir='${prefix}/etc'
795sharedstatedir='${prefix}/com'
796localstatedir='${prefix}/var'
797includedir='${prefix}/include'
798oldincludedir='/usr/include'
799docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800infodir='${datarootdir}/info'
801htmldir='${docdir}'
802dvidir='${docdir}'
803pdfdir='${docdir}'
804psdir='${docdir}'
805libdir='${exec_prefix}/lib'
806localedir='${datarootdir}/locale'
807mandir='${datarootdir}/man'
808
809ac_prev=
810ac_dashdash=
811for ac_option
812do
813  # If the previous option needs an argument, assign it.
814  if test -n "$ac_prev"; then
815    eval $ac_prev=\$ac_option
816    ac_prev=
817    continue
818  fi
819
820  case $ac_option in
821  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822  *=)   ac_optarg= ;;
823  *)    ac_optarg=yes ;;
824  esac
825
826  # Accept the important Cygnus configure options, so we can diagnose typos.
827
828  case $ac_dashdash$ac_option in
829  --)
830    ac_dashdash=yes ;;
831
832  -bindir | --bindir | --bindi | --bind | --bin | --bi)
833    ac_prev=bindir ;;
834  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835    bindir=$ac_optarg ;;
836
837  -build | --build | --buil | --bui | --bu)
838    ac_prev=build_alias ;;
839  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840    build_alias=$ac_optarg ;;
841
842  -cache-file | --cache-file | --cache-fil | --cache-fi \
843  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844    ac_prev=cache_file ;;
845  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847    cache_file=$ac_optarg ;;
848
849  --config-cache | -C)
850    cache_file=config.cache ;;
851
852  -datadir | --datadir | --datadi | --datad)
853    ac_prev=datadir ;;
854  -datadir=* | --datadir=* | --datadi=* | --datad=*)
855    datadir=$ac_optarg ;;
856
857  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858  | --dataroo | --dataro | --datar)
859    ac_prev=datarootdir ;;
860  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862    datarootdir=$ac_optarg ;;
863
864  -disable-* | --disable-*)
865    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866    # Reject names that are not valid shell variable names.
867    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868      as_fn_error $? "invalid feature name: $ac_useropt"
869    ac_useropt_orig=$ac_useropt
870    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871    case $ac_user_opts in
872      *"
873"enable_$ac_useropt"
874"*) ;;
875      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876	 ac_unrecognized_sep=', ';;
877    esac
878    eval enable_$ac_useropt=no ;;
879
880  -docdir | --docdir | --docdi | --doc | --do)
881    ac_prev=docdir ;;
882  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883    docdir=$ac_optarg ;;
884
885  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886    ac_prev=dvidir ;;
887  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888    dvidir=$ac_optarg ;;
889
890  -enable-* | --enable-*)
891    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892    # Reject names that are not valid shell variable names.
893    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894      as_fn_error $? "invalid feature name: $ac_useropt"
895    ac_useropt_orig=$ac_useropt
896    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897    case $ac_user_opts in
898      *"
899"enable_$ac_useropt"
900"*) ;;
901      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902	 ac_unrecognized_sep=', ';;
903    esac
904    eval enable_$ac_useropt=\$ac_optarg ;;
905
906  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908  | --exec | --exe | --ex)
909    ac_prev=exec_prefix ;;
910  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912  | --exec=* | --exe=* | --ex=*)
913    exec_prefix=$ac_optarg ;;
914
915  -gas | --gas | --ga | --g)
916    # Obsolete; use --with-gas.
917    with_gas=yes ;;
918
919  -help | --help | --hel | --he | -h)
920    ac_init_help=long ;;
921  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922    ac_init_help=recursive ;;
923  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924    ac_init_help=short ;;
925
926  -host | --host | --hos | --ho)
927    ac_prev=host_alias ;;
928  -host=* | --host=* | --hos=* | --ho=*)
929    host_alias=$ac_optarg ;;
930
931  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932    ac_prev=htmldir ;;
933  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934  | --ht=*)
935    htmldir=$ac_optarg ;;
936
937  -includedir | --includedir | --includedi | --included | --include \
938  | --includ | --inclu | --incl | --inc)
939    ac_prev=includedir ;;
940  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941  | --includ=* | --inclu=* | --incl=* | --inc=*)
942    includedir=$ac_optarg ;;
943
944  -infodir | --infodir | --infodi | --infod | --info | --inf)
945    ac_prev=infodir ;;
946  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947    infodir=$ac_optarg ;;
948
949  -libdir | --libdir | --libdi | --libd)
950    ac_prev=libdir ;;
951  -libdir=* | --libdir=* | --libdi=* | --libd=*)
952    libdir=$ac_optarg ;;
953
954  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955  | --libexe | --libex | --libe)
956    ac_prev=libexecdir ;;
957  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958  | --libexe=* | --libex=* | --libe=*)
959    libexecdir=$ac_optarg ;;
960
961  -localedir | --localedir | --localedi | --localed | --locale)
962    ac_prev=localedir ;;
963  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964    localedir=$ac_optarg ;;
965
966  -localstatedir | --localstatedir | --localstatedi | --localstated \
967  | --localstate | --localstat | --localsta | --localst | --locals)
968    ac_prev=localstatedir ;;
969  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971    localstatedir=$ac_optarg ;;
972
973  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974    ac_prev=mandir ;;
975  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976    mandir=$ac_optarg ;;
977
978  -nfp | --nfp | --nf)
979    # Obsolete; use --without-fp.
980    with_fp=no ;;
981
982  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983  | --no-cr | --no-c | -n)
984    no_create=yes ;;
985
986  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988    no_recursion=yes ;;
989
990  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992  | --oldin | --oldi | --old | --ol | --o)
993    ac_prev=oldincludedir ;;
994  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997    oldincludedir=$ac_optarg ;;
998
999  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000    ac_prev=prefix ;;
1001  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002    prefix=$ac_optarg ;;
1003
1004  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005  | --program-pre | --program-pr | --program-p)
1006    ac_prev=program_prefix ;;
1007  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009    program_prefix=$ac_optarg ;;
1010
1011  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012  | --program-suf | --program-su | --program-s)
1013    ac_prev=program_suffix ;;
1014  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016    program_suffix=$ac_optarg ;;
1017
1018  -program-transform-name | --program-transform-name \
1019  | --program-transform-nam | --program-transform-na \
1020  | --program-transform-n | --program-transform- \
1021  | --program-transform | --program-transfor \
1022  | --program-transfo | --program-transf \
1023  | --program-trans | --program-tran \
1024  | --progr-tra | --program-tr | --program-t)
1025    ac_prev=program_transform_name ;;
1026  -program-transform-name=* | --program-transform-name=* \
1027  | --program-transform-nam=* | --program-transform-na=* \
1028  | --program-transform-n=* | --program-transform-=* \
1029  | --program-transform=* | --program-transfor=* \
1030  | --program-transfo=* | --program-transf=* \
1031  | --program-trans=* | --program-tran=* \
1032  | --progr-tra=* | --program-tr=* | --program-t=*)
1033    program_transform_name=$ac_optarg ;;
1034
1035  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036    ac_prev=pdfdir ;;
1037  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038    pdfdir=$ac_optarg ;;
1039
1040  -psdir | --psdir | --psdi | --psd | --ps)
1041    ac_prev=psdir ;;
1042  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043    psdir=$ac_optarg ;;
1044
1045  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046  | -silent | --silent | --silen | --sile | --sil)
1047    silent=yes ;;
1048
1049  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050    ac_prev=sbindir ;;
1051  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052  | --sbi=* | --sb=*)
1053    sbindir=$ac_optarg ;;
1054
1055  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057  | --sharedst | --shareds | --shared | --share | --shar \
1058  | --sha | --sh)
1059    ac_prev=sharedstatedir ;;
1060  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063  | --sha=* | --sh=*)
1064    sharedstatedir=$ac_optarg ;;
1065
1066  -site | --site | --sit)
1067    ac_prev=site ;;
1068  -site=* | --site=* | --sit=*)
1069    site=$ac_optarg ;;
1070
1071  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072    ac_prev=srcdir ;;
1073  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074    srcdir=$ac_optarg ;;
1075
1076  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077  | --syscon | --sysco | --sysc | --sys | --sy)
1078    ac_prev=sysconfdir ;;
1079  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081    sysconfdir=$ac_optarg ;;
1082
1083  -target | --target | --targe | --targ | --tar | --ta | --t)
1084    ac_prev=target_alias ;;
1085  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086    target_alias=$ac_optarg ;;
1087
1088  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089    verbose=yes ;;
1090
1091  -version | --version | --versio | --versi | --vers | -V)
1092    ac_init_version=: ;;
1093
1094  -with-* | --with-*)
1095    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098      as_fn_error $? "invalid package name: $ac_useropt"
1099    ac_useropt_orig=$ac_useropt
1100    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101    case $ac_user_opts in
1102      *"
1103"with_$ac_useropt"
1104"*) ;;
1105      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106	 ac_unrecognized_sep=', ';;
1107    esac
1108    eval with_$ac_useropt=\$ac_optarg ;;
1109
1110  -without-* | --without-*)
1111    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112    # Reject names that are not valid shell variable names.
1113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114      as_fn_error $? "invalid package name: $ac_useropt"
1115    ac_useropt_orig=$ac_useropt
1116    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117    case $ac_user_opts in
1118      *"
1119"with_$ac_useropt"
1120"*) ;;
1121      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122	 ac_unrecognized_sep=', ';;
1123    esac
1124    eval with_$ac_useropt=no ;;
1125
1126  --x)
1127    # Obsolete; use --with-x.
1128    with_x=yes ;;
1129
1130  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131  | --x-incl | --x-inc | --x-in | --x-i)
1132    ac_prev=x_includes ;;
1133  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135    x_includes=$ac_optarg ;;
1136
1137  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139    ac_prev=x_libraries ;;
1140  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142    x_libraries=$ac_optarg ;;
1143
1144  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145Try \`$0 --help' for more information"
1146    ;;
1147
1148  *=*)
1149    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150    # Reject names that are not valid shell variable names.
1151    case $ac_envvar in #(
1152      '' | [0-9]* | *[!_$as_cr_alnum]* )
1153      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1154    esac
1155    eval $ac_envvar=\$ac_optarg
1156    export $ac_envvar ;;
1157
1158  *)
1159    # FIXME: should be removed in autoconf 3.0.
1160    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164    ;;
1165
1166  esac
1167done
1168
1169if test -n "$ac_prev"; then
1170  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171  as_fn_error $? "missing argument to $ac_option"
1172fi
1173
1174if test -n "$ac_unrecognized_opts"; then
1175  case $enable_option_checking in
1176    no) ;;
1177    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179  esac
1180fi
1181
1182# Check all directory arguments for consistency.
1183for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184		datadir sysconfdir sharedstatedir localstatedir includedir \
1185		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186		libdir localedir mandir
1187do
1188  eval ac_val=\$$ac_var
1189  # Remove trailing slashes.
1190  case $ac_val in
1191    */ )
1192      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193      eval $ac_var=\$ac_val;;
1194  esac
1195  # Be sure to have absolute directory names.
1196  case $ac_val in
1197    [\\/$]* | ?:[\\/]* )  continue;;
1198    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199  esac
1200  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1201done
1202
1203# There might be people who depend on the old broken behavior: `$host'
1204# used to hold the argument of --host etc.
1205# FIXME: To remove some day.
1206build=$build_alias
1207host=$host_alias
1208target=$target_alias
1209
1210# FIXME: To remove some day.
1211if test "x$host_alias" != x; then
1212  if test "x$build_alias" = x; then
1213    cross_compiling=maybe
1214    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1215    If a cross compiler is detected then cross compile mode will be used" >&2
1216  elif test "x$build_alias" != "x$host_alias"; then
1217    cross_compiling=yes
1218  fi
1219fi
1220
1221ac_tool_prefix=
1222test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224test "$silent" = yes && exec 6>/dev/null
1225
1226
1227ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228ac_ls_di=`ls -di .` &&
1229ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230  as_fn_error $? "working directory cannot be determined"
1231test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232  as_fn_error $? "pwd does not report name of working directory"
1233
1234
1235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237  ac_srcdir_defaulted=yes
1238  # Try the directory containing this script, then the parent directory.
1239  ac_confdir=`$as_dirname -- "$as_myself" ||
1240$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241	 X"$as_myself" : 'X\(//\)[^/]' \| \
1242	 X"$as_myself" : 'X\(//\)$' \| \
1243	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244$as_echo X"$as_myself" |
1245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246	    s//\1/
1247	    q
1248	  }
1249	  /^X\(\/\/\)[^/].*/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\/\)$/{
1254	    s//\1/
1255	    q
1256	  }
1257	  /^X\(\/\).*/{
1258	    s//\1/
1259	    q
1260	  }
1261	  s/.*/./; q'`
1262  srcdir=$ac_confdir
1263  if test ! -r "$srcdir/$ac_unique_file"; then
1264    srcdir=..
1265  fi
1266else
1267  ac_srcdir_defaulted=no
1268fi
1269if test ! -r "$srcdir/$ac_unique_file"; then
1270  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1272fi
1273ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274ac_abs_confdir=`(
1275	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1276	pwd)`
1277# When building in place, set srcdir=.
1278if test "$ac_abs_confdir" = "$ac_pwd"; then
1279  srcdir=.
1280fi
1281# Remove unnecessary trailing slashes from srcdir.
1282# Double slashes in file names in object file debugging info
1283# mess up M-x gdb in Emacs.
1284case $srcdir in
1285*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286esac
1287for ac_var in $ac_precious_vars; do
1288  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289  eval ac_env_${ac_var}_value=\$${ac_var}
1290  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292done
1293
1294#
1295# Report the --help message.
1296#
1297if test "$ac_init_help" = "long"; then
1298  # Omit some internal or obsolete options to make the list less imposing.
1299  # This message is too long to be a string in the A/UX 3.1 sh.
1300  cat <<_ACEOF
1301\`configure' configures mkfontscale 1.1.0 to adapt to many kinds of systems.
1302
1303Usage: $0 [OPTION]... [VAR=VALUE]...
1304
1305To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306VAR=VALUE.  See below for descriptions of some of the useful variables.
1307
1308Defaults for the options are specified in brackets.
1309
1310Configuration:
1311  -h, --help              display this help and exit
1312      --help=short        display options specific to this package
1313      --help=recursive    display the short help of all the included packages
1314  -V, --version           display version information and exit
1315  -q, --quiet, --silent   do not print \`checking ...' messages
1316      --cache-file=FILE   cache test results in FILE [disabled]
1317  -C, --config-cache      alias for \`--cache-file=config.cache'
1318  -n, --no-create         do not create output files
1319      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1320
1321Installation directories:
1322  --prefix=PREFIX         install architecture-independent files in PREFIX
1323                          [$ac_default_prefix]
1324  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1325                          [PREFIX]
1326
1327By default, \`make install' will install all the files in
1328\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1329an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330for instance \`--prefix=\$HOME'.
1331
1332For better control, use the options below.
1333
1334Fine tuning of the installation directories:
1335  --bindir=DIR            user executables [EPREFIX/bin]
1336  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1337  --libexecdir=DIR        program executables [EPREFIX/libexec]
1338  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1339  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1340  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1341  --libdir=DIR            object code libraries [EPREFIX/lib]
1342  --includedir=DIR        C header files [PREFIX/include]
1343  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1344  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1345  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1346  --infodir=DIR           info documentation [DATAROOTDIR/info]
1347  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1348  --mandir=DIR            man documentation [DATAROOTDIR/man]
1349  --docdir=DIR            documentation root [DATAROOTDIR/doc/mkfontscale]
1350  --htmldir=DIR           html documentation [DOCDIR]
1351  --dvidir=DIR            dvi documentation [DOCDIR]
1352  --pdfdir=DIR            pdf documentation [DOCDIR]
1353  --psdir=DIR             ps documentation [DOCDIR]
1354_ACEOF
1355
1356  cat <<\_ACEOF
1357
1358Program names:
1359  --program-prefix=PREFIX            prepend PREFIX to installed program names
1360  --program-suffix=SUFFIX            append SUFFIX to installed program names
1361  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1362
1363System types:
1364  --build=BUILD     configure for building on BUILD [guessed]
1365  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1366_ACEOF
1367fi
1368
1369if test -n "$ac_init_help"; then
1370  case $ac_init_help in
1371     short | recursive ) echo "Configuration of mkfontscale 1.1.0:";;
1372   esac
1373  cat <<\_ACEOF
1374
1375Optional Features:
1376  --disable-option-checking  ignore unrecognized --enable/--with options
1377  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1378  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1379  --enable-maintainer-mode  enable make rules and dependencies not useful
1380			  (and sometimes confusing) to the casual installer
1381  --disable-dependency-tracking  speeds up one-time build
1382  --enable-dependency-tracking   do not reject slow dependency extractors
1383  --disable-selective-werror
1384                          Turn off selective compiler errors. (default:
1385                          enabled)
1386  --enable-strict-compilation
1387                          Enable all warnings from compiler and make them
1388                          errors (default: disabled)
1389  --enable-silent-rules          less verbose build output (undo: `make V=1')
1390  --disable-silent-rules         verbose build output (undo: `make V=0')
1391
1392Optional Packages:
1393  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1394  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1395  --with-bzip2            Support bzip2 compressed bitmap fonts
1396  --with-lint             Use a lint-style source code checker (default:
1397                          disabled)
1398
1399Some influential environment variables:
1400  CC          C compiler command
1401  CFLAGS      C compiler flags
1402  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1403              nonstandard directory <lib dir>
1404  LIBS        libraries to pass to the linker, e.g. -l<library>
1405  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406              you have headers in a nonstandard directory <include dir>
1407  CPP         C preprocessor
1408  PKG_CONFIG  path to pkg-config utility
1409  MKFONTSCALE_CFLAGS
1410              C compiler flags for MKFONTSCALE, overriding pkg-config
1411  MKFONTSCALE_LIBS
1412              linker flags for MKFONTSCALE, overriding pkg-config
1413  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1414  X11_LIBS    linker flags for X11, overriding pkg-config
1415  LINT        Path to a lint-style command
1416  LINT_FLAGS  Flags for the lint-style command
1417
1418Use these variables to override the choices made by `configure' or to help
1419it to find libraries and programs with nonstandard names/locations.
1420
1421Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1422_ACEOF
1423ac_status=$?
1424fi
1425
1426if test "$ac_init_help" = "recursive"; then
1427  # If there are subdirs, report their specific --help.
1428  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429    test -d "$ac_dir" ||
1430      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431      continue
1432    ac_builddir=.
1433
1434case "$ac_dir" in
1435.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436*)
1437  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438  # A ".." for each directory in $ac_dir_suffix.
1439  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440  case $ac_top_builddir_sub in
1441  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443  esac ;;
1444esac
1445ac_abs_top_builddir=$ac_pwd
1446ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447# for backward compatibility:
1448ac_top_builddir=$ac_top_build_prefix
1449
1450case $srcdir in
1451  .)  # We are building in place.
1452    ac_srcdir=.
1453    ac_top_srcdir=$ac_top_builddir_sub
1454    ac_abs_top_srcdir=$ac_pwd ;;
1455  [\\/]* | ?:[\\/]* )  # Absolute name.
1456    ac_srcdir=$srcdir$ac_dir_suffix;
1457    ac_top_srcdir=$srcdir
1458    ac_abs_top_srcdir=$srcdir ;;
1459  *) # Relative name.
1460    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461    ac_top_srcdir=$ac_top_build_prefix$srcdir
1462    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463esac
1464ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465
1466    cd "$ac_dir" || { ac_status=$?; continue; }
1467    # Check for guested configure.
1468    if test -f "$ac_srcdir/configure.gnu"; then
1469      echo &&
1470      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471    elif test -f "$ac_srcdir/configure"; then
1472      echo &&
1473      $SHELL "$ac_srcdir/configure" --help=recursive
1474    else
1475      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476    fi || ac_status=$?
1477    cd "$ac_pwd" || { ac_status=$?; break; }
1478  done
1479fi
1480
1481test -n "$ac_init_help" && exit $ac_status
1482if $ac_init_version; then
1483  cat <<\_ACEOF
1484mkfontscale configure 1.1.0
1485generated by GNU Autoconf 2.68
1486
1487Copyright (C) 2010 Free Software Foundation, Inc.
1488This configure script is free software; the Free Software Foundation
1489gives unlimited permission to copy, distribute and modify it.
1490_ACEOF
1491  exit
1492fi
1493
1494## ------------------------ ##
1495## Autoconf initialization. ##
1496## ------------------------ ##
1497
1498# ac_fn_c_try_compile LINENO
1499# --------------------------
1500# Try to compile conftest.$ac_ext, and return whether this succeeded.
1501ac_fn_c_try_compile ()
1502{
1503  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504  rm -f conftest.$ac_objext
1505  if { { ac_try="$ac_compile"
1506case "(($ac_try" in
1507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508  *) ac_try_echo=$ac_try;;
1509esac
1510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511$as_echo "$ac_try_echo"; } >&5
1512  (eval "$ac_compile") 2>conftest.err
1513  ac_status=$?
1514  if test -s conftest.err; then
1515    grep -v '^ *+' conftest.err >conftest.er1
1516    cat conftest.er1 >&5
1517    mv -f conftest.er1 conftest.err
1518  fi
1519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520  test $ac_status = 0; } && {
1521	 test -z "$ac_c_werror_flag" ||
1522	 test ! -s conftest.err
1523       } && test -s conftest.$ac_objext; then :
1524  ac_retval=0
1525else
1526  $as_echo "$as_me: failed program was:" >&5
1527sed 's/^/| /' conftest.$ac_ext >&5
1528
1529	ac_retval=1
1530fi
1531  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532  as_fn_set_status $ac_retval
1533
1534} # ac_fn_c_try_compile
1535
1536# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1537# ---------------------------------------------
1538# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1539# accordingly.
1540ac_fn_c_check_decl ()
1541{
1542  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543  as_decl_name=`echo $2|sed 's/ *(.*//'`
1544  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1546$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1547if eval \${$3+:} false; then :
1548  $as_echo_n "(cached) " >&6
1549else
1550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1551/* end confdefs.h.  */
1552$4
1553int
1554main ()
1555{
1556#ifndef $as_decl_name
1557#ifdef __cplusplus
1558  (void) $as_decl_use;
1559#else
1560  (void) $as_decl_name;
1561#endif
1562#endif
1563
1564  ;
1565  return 0;
1566}
1567_ACEOF
1568if ac_fn_c_try_compile "$LINENO"; then :
1569  eval "$3=yes"
1570else
1571  eval "$3=no"
1572fi
1573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1574fi
1575eval ac_res=\$$3
1576	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577$as_echo "$ac_res" >&6; }
1578  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579
1580} # ac_fn_c_check_decl
1581
1582# ac_fn_c_try_cpp LINENO
1583# ----------------------
1584# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_cpp ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  if { { ac_try="$ac_cpp conftest.$ac_ext"
1589case "(($ac_try" in
1590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591  *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596  ac_status=$?
1597  if test -s conftest.err; then
1598    grep -v '^ *+' conftest.err >conftest.er1
1599    cat conftest.er1 >&5
1600    mv -f conftest.er1 conftest.err
1601  fi
1602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603  test $ac_status = 0; } > conftest.i && {
1604	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1605	 test ! -s conftest.err
1606       }; then :
1607  ac_retval=0
1608else
1609  $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612    ac_retval=1
1613fi
1614  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615  as_fn_set_status $ac_retval
1616
1617} # ac_fn_c_try_cpp
1618
1619# ac_fn_c_try_run LINENO
1620# ----------------------
1621# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1622# that executables *can* be run.
1623ac_fn_c_try_run ()
1624{
1625  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626  if { { ac_try="$ac_link"
1627case "(($ac_try" in
1628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629  *) ac_try_echo=$ac_try;;
1630esac
1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632$as_echo "$ac_try_echo"; } >&5
1633  (eval "$ac_link") 2>&5
1634  ac_status=$?
1635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1637  { { case "(($ac_try" in
1638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639  *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643  (eval "$ac_try") 2>&5
1644  ac_status=$?
1645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646  test $ac_status = 0; }; }; then :
1647  ac_retval=0
1648else
1649  $as_echo "$as_me: program exited with status $ac_status" >&5
1650       $as_echo "$as_me: failed program was:" >&5
1651sed 's/^/| /' conftest.$ac_ext >&5
1652
1653       ac_retval=$ac_status
1654fi
1655  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657  as_fn_set_status $ac_retval
1658
1659} # ac_fn_c_try_run
1660
1661# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662# -------------------------------------------------------
1663# Tests whether HEADER exists and can be compiled using the include files in
1664# INCLUDES, setting the cache variable VAR accordingly.
1665ac_fn_c_check_header_compile ()
1666{
1667  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669$as_echo_n "checking for $2... " >&6; }
1670if eval \${$3+:} false; then :
1671  $as_echo_n "(cached) " >&6
1672else
1673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674/* end confdefs.h.  */
1675$4
1676#include <$2>
1677_ACEOF
1678if ac_fn_c_try_compile "$LINENO"; then :
1679  eval "$3=yes"
1680else
1681  eval "$3=no"
1682fi
1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684fi
1685eval ac_res=\$$3
1686	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687$as_echo "$ac_res" >&6; }
1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690} # ac_fn_c_check_header_compile
1691
1692# ac_fn_c_try_link LINENO
1693# -----------------------
1694# Try to link conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_link ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  rm -f conftest.$ac_objext conftest$ac_exeext
1699  if { { ac_try="$ac_link"
1700case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706  (eval "$ac_link") 2>conftest.err
1707  ac_status=$?
1708  if test -s conftest.err; then
1709    grep -v '^ *+' conftest.err >conftest.er1
1710    cat conftest.er1 >&5
1711    mv -f conftest.er1 conftest.err
1712  fi
1713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714  test $ac_status = 0; } && {
1715	 test -z "$ac_c_werror_flag" ||
1716	 test ! -s conftest.err
1717       } && test -s conftest$ac_exeext && {
1718	 test "$cross_compiling" = yes ||
1719	 $as_test_x conftest$ac_exeext
1720       }; then :
1721  ac_retval=0
1722else
1723  $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726	ac_retval=1
1727fi
1728  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1729  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1730  # interfere with the next link command; also delete a directory that is
1731  # left behind by Apple's compiler.  We do this before executing the actions.
1732  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734  as_fn_set_status $ac_retval
1735
1736} # ac_fn_c_try_link
1737cat >config.log <<_ACEOF
1738This file contains any messages produced by compilers while
1739running configure, to aid debugging if configure makes a mistake.
1740
1741It was created by mkfontscale $as_me 1.1.0, which was
1742generated by GNU Autoconf 2.68.  Invocation command line was
1743
1744  $ $0 $@
1745
1746_ACEOF
1747exec 5>>config.log
1748{
1749cat <<_ASUNAME
1750## --------- ##
1751## Platform. ##
1752## --------- ##
1753
1754hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1755uname -m = `(uname -m) 2>/dev/null || echo unknown`
1756uname -r = `(uname -r) 2>/dev/null || echo unknown`
1757uname -s = `(uname -s) 2>/dev/null || echo unknown`
1758uname -v = `(uname -v) 2>/dev/null || echo unknown`
1759
1760/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1761/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1762
1763/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1764/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1765/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1766/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1767/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1768/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1769/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1770
1771_ASUNAME
1772
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776  IFS=$as_save_IFS
1777  test -z "$as_dir" && as_dir=.
1778    $as_echo "PATH: $as_dir"
1779  done
1780IFS=$as_save_IFS
1781
1782} >&5
1783
1784cat >&5 <<_ACEOF
1785
1786
1787## ----------- ##
1788## Core tests. ##
1789## ----------- ##
1790
1791_ACEOF
1792
1793
1794# Keep a trace of the command line.
1795# Strip out --no-create and --no-recursion so they do not pile up.
1796# Strip out --silent because we don't want to record it for future runs.
1797# Also quote any args containing shell meta-characters.
1798# Make two passes to allow for proper duplicate-argument suppression.
1799ac_configure_args=
1800ac_configure_args0=
1801ac_configure_args1=
1802ac_must_keep_next=false
1803for ac_pass in 1 2
1804do
1805  for ac_arg
1806  do
1807    case $ac_arg in
1808    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1809    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1810    | -silent | --silent | --silen | --sile | --sil)
1811      continue ;;
1812    *\'*)
1813      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1814    esac
1815    case $ac_pass in
1816    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1817    2)
1818      as_fn_append ac_configure_args1 " '$ac_arg'"
1819      if test $ac_must_keep_next = true; then
1820	ac_must_keep_next=false # Got value, back to normal.
1821      else
1822	case $ac_arg in
1823	  *=* | --config-cache | -C | -disable-* | --disable-* \
1824	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1825	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1826	  | -with-* | --with-* | -without-* | --without-* | --x)
1827	    case "$ac_configure_args0 " in
1828	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1829	    esac
1830	    ;;
1831	  -* ) ac_must_keep_next=true ;;
1832	esac
1833      fi
1834      as_fn_append ac_configure_args " '$ac_arg'"
1835      ;;
1836    esac
1837  done
1838done
1839{ ac_configure_args0=; unset ac_configure_args0;}
1840{ ac_configure_args1=; unset ac_configure_args1;}
1841
1842# When interrupted or exit'd, cleanup temporary files, and complete
1843# config.log.  We remove comments because anyway the quotes in there
1844# would cause problems or look ugly.
1845# WARNING: Use '\'' to represent an apostrophe within the trap.
1846# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1847trap 'exit_status=$?
1848  # Save into config.log some information that might help in debugging.
1849  {
1850    echo
1851
1852    $as_echo "## ---------------- ##
1853## Cache variables. ##
1854## ---------------- ##"
1855    echo
1856    # The following way of writing the cache mishandles newlines in values,
1857(
1858  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1859    eval ac_val=\$$ac_var
1860    case $ac_val in #(
1861    *${as_nl}*)
1862      case $ac_var in #(
1863      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1864$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1865      esac
1866      case $ac_var in #(
1867      _ | IFS | as_nl) ;; #(
1868      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1869      *) { eval $ac_var=; unset $ac_var;} ;;
1870      esac ;;
1871    esac
1872  done
1873  (set) 2>&1 |
1874    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1875    *${as_nl}ac_space=\ *)
1876      sed -n \
1877	"s/'\''/'\''\\\\'\'''\''/g;
1878	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1879      ;; #(
1880    *)
1881      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1882      ;;
1883    esac |
1884    sort
1885)
1886    echo
1887
1888    $as_echo "## ----------------- ##
1889## Output variables. ##
1890## ----------------- ##"
1891    echo
1892    for ac_var in $ac_subst_vars
1893    do
1894      eval ac_val=\$$ac_var
1895      case $ac_val in
1896      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897      esac
1898      $as_echo "$ac_var='\''$ac_val'\''"
1899    done | sort
1900    echo
1901
1902    if test -n "$ac_subst_files"; then
1903      $as_echo "## ------------------- ##
1904## File substitutions. ##
1905## ------------------- ##"
1906      echo
1907      for ac_var in $ac_subst_files
1908      do
1909	eval ac_val=\$$ac_var
1910	case $ac_val in
1911	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912	esac
1913	$as_echo "$ac_var='\''$ac_val'\''"
1914      done | sort
1915      echo
1916    fi
1917
1918    if test -s confdefs.h; then
1919      $as_echo "## ----------- ##
1920## confdefs.h. ##
1921## ----------- ##"
1922      echo
1923      cat confdefs.h
1924      echo
1925    fi
1926    test "$ac_signal" != 0 &&
1927      $as_echo "$as_me: caught signal $ac_signal"
1928    $as_echo "$as_me: exit $exit_status"
1929  } >&5
1930  rm -f core *.core core.conftest.* &&
1931    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1932    exit $exit_status
1933' 0
1934for ac_signal in 1 2 13 15; do
1935  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1936done
1937ac_signal=0
1938
1939# confdefs.h avoids OS command line length limits that DEFS can exceed.
1940rm -f -r conftest* confdefs.h
1941
1942$as_echo "/* confdefs.h */" > confdefs.h
1943
1944# Predefined preprocessor variables.
1945
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_NAME "$PACKAGE_NAME"
1948_ACEOF
1949
1950cat >>confdefs.h <<_ACEOF
1951#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1952_ACEOF
1953
1954cat >>confdefs.h <<_ACEOF
1955#define PACKAGE_VERSION "$PACKAGE_VERSION"
1956_ACEOF
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_STRING "$PACKAGE_STRING"
1960_ACEOF
1961
1962cat >>confdefs.h <<_ACEOF
1963#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1964_ACEOF
1965
1966cat >>confdefs.h <<_ACEOF
1967#define PACKAGE_URL "$PACKAGE_URL"
1968_ACEOF
1969
1970
1971# Let the site file select an alternate cache file if it wants to.
1972# Prefer an explicitly selected file to automatically selected ones.
1973ac_site_file1=NONE
1974ac_site_file2=NONE
1975if test -n "$CONFIG_SITE"; then
1976  # We do not want a PATH search for config.site.
1977  case $CONFIG_SITE in #((
1978    -*)  ac_site_file1=./$CONFIG_SITE;;
1979    */*) ac_site_file1=$CONFIG_SITE;;
1980    *)   ac_site_file1=./$CONFIG_SITE;;
1981  esac
1982elif test "x$prefix" != xNONE; then
1983  ac_site_file1=$prefix/share/config.site
1984  ac_site_file2=$prefix/etc/config.site
1985else
1986  ac_site_file1=$ac_default_prefix/share/config.site
1987  ac_site_file2=$ac_default_prefix/etc/config.site
1988fi
1989for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1990do
1991  test "x$ac_site_file" = xNONE && continue
1992  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1993    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1994$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1995    sed 's/^/| /' "$ac_site_file" >&5
1996    . "$ac_site_file" \
1997      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1999as_fn_error $? "failed to load site script $ac_site_file
2000See \`config.log' for more details" "$LINENO" 5; }
2001  fi
2002done
2003
2004if test -r "$cache_file"; then
2005  # Some versions of bash will fail to source /dev/null (special files
2006  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2007  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2008    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2009$as_echo "$as_me: loading cache $cache_file" >&6;}
2010    case $cache_file in
2011      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2012      *)                      . "./$cache_file";;
2013    esac
2014  fi
2015else
2016  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2017$as_echo "$as_me: creating cache $cache_file" >&6;}
2018  >$cache_file
2019fi
2020
2021# Check that the precious variables saved in the cache have kept the same
2022# value.
2023ac_cache_corrupted=false
2024for ac_var in $ac_precious_vars; do
2025  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2026  eval ac_new_set=\$ac_env_${ac_var}_set
2027  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2028  eval ac_new_val=\$ac_env_${ac_var}_value
2029  case $ac_old_set,$ac_new_set in
2030    set,)
2031      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2032$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2033      ac_cache_corrupted=: ;;
2034    ,set)
2035      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2036$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2037      ac_cache_corrupted=: ;;
2038    ,);;
2039    *)
2040      if test "x$ac_old_val" != "x$ac_new_val"; then
2041	# differences in whitespace do not lead to failure.
2042	ac_old_val_w=`echo x $ac_old_val`
2043	ac_new_val_w=`echo x $ac_new_val`
2044	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2045	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2046$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2047	  ac_cache_corrupted=:
2048	else
2049	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2050$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2051	  eval $ac_var=\$ac_old_val
2052	fi
2053	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2054$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2055	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2056$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2057      fi;;
2058  esac
2059  # Pass precious variables to config.status.
2060  if test "$ac_new_set" = set; then
2061    case $ac_new_val in
2062    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2063    *) ac_arg=$ac_var=$ac_new_val ;;
2064    esac
2065    case " $ac_configure_args " in
2066      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2067      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2068    esac
2069  fi
2070done
2071if $ac_cache_corrupted; then
2072  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2074  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2075$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2076  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2077fi
2078## -------------------- ##
2079## Main body of script. ##
2080## -------------------- ##
2081
2082ac_ext=c
2083ac_cpp='$CPP $CPPFLAGS'
2084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2086ac_compiler_gnu=$ac_cv_c_compiler_gnu
2087
2088
2089
2090ac_config_headers="$ac_config_headers config.h"
2091
2092
2093# Initialize Automake
2094am__api_version='1.11'
2095
2096ac_aux_dir=
2097for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2098  if test -f "$ac_dir/install-sh"; then
2099    ac_aux_dir=$ac_dir
2100    ac_install_sh="$ac_aux_dir/install-sh -c"
2101    break
2102  elif test -f "$ac_dir/install.sh"; then
2103    ac_aux_dir=$ac_dir
2104    ac_install_sh="$ac_aux_dir/install.sh -c"
2105    break
2106  elif test -f "$ac_dir/shtool"; then
2107    ac_aux_dir=$ac_dir
2108    ac_install_sh="$ac_aux_dir/shtool install -c"
2109    break
2110  fi
2111done
2112if test -z "$ac_aux_dir"; then
2113  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2114fi
2115
2116# These three variables are undocumented and unsupported,
2117# and are intended to be withdrawn in a future Autoconf release.
2118# They can cause serious problems if a builder's source tree is in a directory
2119# whose full name contains unusual characters.
2120ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2121ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2122ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2123
2124
2125# Find a good install program.  We prefer a C program (faster),
2126# so one script is as good as another.  But avoid the broken or
2127# incompatible versions:
2128# SysV /etc/install, /usr/sbin/install
2129# SunOS /usr/etc/install
2130# IRIX /sbin/install
2131# AIX /bin/install
2132# AmigaOS /C/install, which installs bootblocks on floppy discs
2133# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2134# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2135# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2136# OS/2's system install, which has a completely different semantic
2137# ./install, which can be erroneously created by make from ./install.sh.
2138# Reject install programs that cannot install multiple files.
2139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2140$as_echo_n "checking for a BSD-compatible install... " >&6; }
2141if test -z "$INSTALL"; then
2142if ${ac_cv_path_install+:} false; then :
2143  $as_echo_n "(cached) " >&6
2144else
2145  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146for as_dir in $PATH
2147do
2148  IFS=$as_save_IFS
2149  test -z "$as_dir" && as_dir=.
2150    # Account for people who put trailing slashes in PATH elements.
2151case $as_dir/ in #((
2152  ./ | .// | /[cC]/* | \
2153  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2154  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2155  /usr/ucb/* ) ;;
2156  *)
2157    # OSF1 and SCO ODT 3.0 have their own names for install.
2158    # Don't use installbsd from OSF since it installs stuff as root
2159    # by default.
2160    for ac_prog in ginstall scoinst install; do
2161      for ac_exec_ext in '' $ac_executable_extensions; do
2162	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2163	  if test $ac_prog = install &&
2164	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165	    # AIX install.  It has an incompatible calling convention.
2166	    :
2167	  elif test $ac_prog = install &&
2168	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2169	    # program-specific install script used by HP pwplus--don't use.
2170	    :
2171	  else
2172	    rm -rf conftest.one conftest.two conftest.dir
2173	    echo one > conftest.one
2174	    echo two > conftest.two
2175	    mkdir conftest.dir
2176	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2177	      test -s conftest.one && test -s conftest.two &&
2178	      test -s conftest.dir/conftest.one &&
2179	      test -s conftest.dir/conftest.two
2180	    then
2181	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2182	      break 3
2183	    fi
2184	  fi
2185	fi
2186      done
2187    done
2188    ;;
2189esac
2190
2191  done
2192IFS=$as_save_IFS
2193
2194rm -rf conftest.one conftest.two conftest.dir
2195
2196fi
2197  if test "${ac_cv_path_install+set}" = set; then
2198    INSTALL=$ac_cv_path_install
2199  else
2200    # As a last resort, use the slow shell script.  Don't cache a
2201    # value for INSTALL within a source directory, because that will
2202    # break other packages using the cache if that directory is
2203    # removed, or if the value is a relative name.
2204    INSTALL=$ac_install_sh
2205  fi
2206fi
2207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2208$as_echo "$INSTALL" >&6; }
2209
2210# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211# It thinks the first close brace ends the variable substitution.
2212test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2213
2214test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2215
2216test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2217
2218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2219$as_echo_n "checking whether build environment is sane... " >&6; }
2220# Just in case
2221sleep 1
2222echo timestamp > conftest.file
2223# Reject unsafe characters in $srcdir or the absolute working directory
2224# name.  Accept space and tab only in the latter.
2225am_lf='
2226'
2227case `pwd` in
2228  *[\\\"\#\$\&\'\`$am_lf]*)
2229    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2230esac
2231case $srcdir in
2232  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2233    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2234esac
2235
2236# Do `set' in a subshell so we don't clobber the current shell's
2237# arguments.  Must try -L first in case configure is actually a
2238# symlink; some systems play weird games with the mod time of symlinks
2239# (eg FreeBSD returns the mod time of the symlink's containing
2240# directory).
2241if (
2242   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2243   if test "$*" = "X"; then
2244      # -L didn't work.
2245      set X `ls -t "$srcdir/configure" conftest.file`
2246   fi
2247   rm -f conftest.file
2248   if test "$*" != "X $srcdir/configure conftest.file" \
2249      && test "$*" != "X conftest.file $srcdir/configure"; then
2250
2251      # If neither matched, then we have a broken ls.  This can happen
2252      # if, for instance, CONFIG_SHELL is bash and it inherits a
2253      # broken ls alias from the environment.  This has actually
2254      # happened.  Such a system could not be considered "sane".
2255      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2256alias in your environment" "$LINENO" 5
2257   fi
2258
2259   test "$2" = conftest.file
2260   )
2261then
2262   # Ok.
2263   :
2264else
2265   as_fn_error $? "newly created file is older than distributed files!
2266Check your system clock" "$LINENO" 5
2267fi
2268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2269$as_echo "yes" >&6; }
2270test "$program_prefix" != NONE &&
2271  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2272# Use a double $ so make ignores it.
2273test "$program_suffix" != NONE &&
2274  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2275# Double any \ or $.
2276# By default was `s,x,x', remove it if useless.
2277ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2278program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2279
2280# expand $ac_aux_dir to an absolute path
2281am_aux_dir=`cd $ac_aux_dir && pwd`
2282
2283if test x"${MISSING+set}" != xset; then
2284  case $am_aux_dir in
2285  *\ * | *\	*)
2286    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2287  *)
2288    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2289  esac
2290fi
2291# Use eval to expand $SHELL
2292if eval "$MISSING --run true"; then
2293  am_missing_run="$MISSING --run "
2294else
2295  am_missing_run=
2296  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2297$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2298fi
2299
2300if test x"${install_sh}" != xset; then
2301  case $am_aux_dir in
2302  *\ * | *\	*)
2303    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2304  *)
2305    install_sh="\${SHELL} $am_aux_dir/install-sh"
2306  esac
2307fi
2308
2309# Installed binaries are usually stripped using `strip' when the user
2310# run `make install-strip'.  However `strip' might not be the right
2311# tool to use in cross-compilation environments, therefore Automake
2312# will honor the `STRIP' environment variable to overrule this program.
2313if test "$cross_compiling" != no; then
2314  if test -n "$ac_tool_prefix"; then
2315  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2316set dummy ${ac_tool_prefix}strip; ac_word=$2
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2318$as_echo_n "checking for $ac_word... " >&6; }
2319if ${ac_cv_prog_STRIP+:} false; then :
2320  $as_echo_n "(cached) " >&6
2321else
2322  if test -n "$STRIP"; then
2323  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2324else
2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328  IFS=$as_save_IFS
2329  test -z "$as_dir" && as_dir=.
2330    for ac_exec_ext in '' $ac_executable_extensions; do
2331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2334    break 2
2335  fi
2336done
2337  done
2338IFS=$as_save_IFS
2339
2340fi
2341fi
2342STRIP=$ac_cv_prog_STRIP
2343if test -n "$STRIP"; then
2344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2345$as_echo "$STRIP" >&6; }
2346else
2347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348$as_echo "no" >&6; }
2349fi
2350
2351
2352fi
2353if test -z "$ac_cv_prog_STRIP"; then
2354  ac_ct_STRIP=$STRIP
2355  # Extract the first word of "strip", so it can be a program name with args.
2356set dummy strip; ac_word=$2
2357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358$as_echo_n "checking for $ac_word... " >&6; }
2359if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2360  $as_echo_n "(cached) " >&6
2361else
2362  if test -n "$ac_ct_STRIP"; then
2363  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2364else
2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368  IFS=$as_save_IFS
2369  test -z "$as_dir" && as_dir=.
2370    for ac_exec_ext in '' $ac_executable_extensions; do
2371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372    ac_cv_prog_ac_ct_STRIP="strip"
2373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2374    break 2
2375  fi
2376done
2377  done
2378IFS=$as_save_IFS
2379
2380fi
2381fi
2382ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2383if test -n "$ac_ct_STRIP"; then
2384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2385$as_echo "$ac_ct_STRIP" >&6; }
2386else
2387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388$as_echo "no" >&6; }
2389fi
2390
2391  if test "x$ac_ct_STRIP" = x; then
2392    STRIP=":"
2393  else
2394    case $cross_compiling:$ac_tool_warned in
2395yes:)
2396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2398ac_tool_warned=yes ;;
2399esac
2400    STRIP=$ac_ct_STRIP
2401  fi
2402else
2403  STRIP="$ac_cv_prog_STRIP"
2404fi
2405
2406fi
2407INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2408
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2410$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2411if test -z "$MKDIR_P"; then
2412  if ${ac_cv_path_mkdir+:} false; then :
2413  $as_echo_n "(cached) " >&6
2414else
2415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2417do
2418  IFS=$as_save_IFS
2419  test -z "$as_dir" && as_dir=.
2420    for ac_prog in mkdir gmkdir; do
2421	 for ac_exec_ext in '' $ac_executable_extensions; do
2422	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2423	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2424	     'mkdir (GNU coreutils) '* | \
2425	     'mkdir (coreutils) '* | \
2426	     'mkdir (fileutils) '4.1*)
2427	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2428	       break 3;;
2429	   esac
2430	 done
2431       done
2432  done
2433IFS=$as_save_IFS
2434
2435fi
2436
2437  test -d ./--version && rmdir ./--version
2438  if test "${ac_cv_path_mkdir+set}" = set; then
2439    MKDIR_P="$ac_cv_path_mkdir -p"
2440  else
2441    # As a last resort, use the slow shell script.  Don't cache a
2442    # value for MKDIR_P within a source directory, because that will
2443    # break other packages using the cache if that directory is
2444    # removed, or if the value is a relative name.
2445    MKDIR_P="$ac_install_sh -d"
2446  fi
2447fi
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2449$as_echo "$MKDIR_P" >&6; }
2450
2451mkdir_p="$MKDIR_P"
2452case $mkdir_p in
2453  [\\/$]* | ?:[\\/]*) ;;
2454  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2455esac
2456
2457for ac_prog in gawk mawk nawk awk
2458do
2459  # Extract the first word of "$ac_prog", so it can be a program name with args.
2460set dummy $ac_prog; ac_word=$2
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462$as_echo_n "checking for $ac_word... " >&6; }
2463if ${ac_cv_prog_AWK+:} false; then :
2464  $as_echo_n "(cached) " >&6
2465else
2466  if test -n "$AWK"; then
2467  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2468else
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472  IFS=$as_save_IFS
2473  test -z "$as_dir" && as_dir=.
2474    for ac_exec_ext in '' $ac_executable_extensions; do
2475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476    ac_cv_prog_AWK="$ac_prog"
2477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478    break 2
2479  fi
2480done
2481  done
2482IFS=$as_save_IFS
2483
2484fi
2485fi
2486AWK=$ac_cv_prog_AWK
2487if test -n "$AWK"; then
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2489$as_echo "$AWK" >&6; }
2490else
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492$as_echo "no" >&6; }
2493fi
2494
2495
2496  test -n "$AWK" && break
2497done
2498
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2500$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2501set x ${MAKE-make}
2502ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2503if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2504  $as_echo_n "(cached) " >&6
2505else
2506  cat >conftest.make <<\_ACEOF
2507SHELL = /bin/sh
2508all:
2509	@echo '@@@%%%=$(MAKE)=@@@%%%'
2510_ACEOF
2511# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2512case `${MAKE-make} -f conftest.make 2>/dev/null` in
2513  *@@@%%%=?*=@@@%%%*)
2514    eval ac_cv_prog_make_${ac_make}_set=yes;;
2515  *)
2516    eval ac_cv_prog_make_${ac_make}_set=no;;
2517esac
2518rm -f conftest.make
2519fi
2520if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2522$as_echo "yes" >&6; }
2523  SET_MAKE=
2524else
2525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526$as_echo "no" >&6; }
2527  SET_MAKE="MAKE=${MAKE-make}"
2528fi
2529
2530rm -rf .tst 2>/dev/null
2531mkdir .tst 2>/dev/null
2532if test -d .tst; then
2533  am__leading_dot=.
2534else
2535  am__leading_dot=_
2536fi
2537rmdir .tst 2>/dev/null
2538
2539if test "`cd $srcdir && pwd`" != "`pwd`"; then
2540  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2541  # is not polluted with repeated "-I."
2542  am__isrc=' -I$(srcdir)'
2543  # test to see if srcdir already configured
2544  if test -f $srcdir/config.status; then
2545    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2546  fi
2547fi
2548
2549# test whether we have cygpath
2550if test -z "$CYGPATH_W"; then
2551  if (cygpath --version) >/dev/null 2>/dev/null; then
2552    CYGPATH_W='cygpath -w'
2553  else
2554    CYGPATH_W=echo
2555  fi
2556fi
2557
2558
2559# Define the identity of the package.
2560 PACKAGE='mkfontscale'
2561 VERSION='1.1.0'
2562
2563
2564cat >>confdefs.h <<_ACEOF
2565#define PACKAGE "$PACKAGE"
2566_ACEOF
2567
2568
2569cat >>confdefs.h <<_ACEOF
2570#define VERSION "$VERSION"
2571_ACEOF
2572
2573# Some tools Automake needs.
2574
2575ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2576
2577
2578AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2579
2580
2581AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2582
2583
2584AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2585
2586
2587MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2588
2589# We need awk for the "check" target.  The system "awk" is bad on
2590# some platforms.
2591# Always define AMTAR for backward compatibility.
2592
2593AMTAR=${AMTAR-"${am_missing_run}tar"}
2594
2595am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2596
2597
2598
2599
2600
2601
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2603$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2604    # Check whether --enable-maintainer-mode was given.
2605if test "${enable_maintainer_mode+set}" = set; then :
2606  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2607else
2608  USE_MAINTAINER_MODE=no
2609fi
2610
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2612$as_echo "$USE_MAINTAINER_MODE" >&6; }
2613   if test $USE_MAINTAINER_MODE = yes; then
2614  MAINTAINER_MODE_TRUE=
2615  MAINTAINER_MODE_FALSE='#'
2616else
2617  MAINTAINER_MODE_TRUE='#'
2618  MAINTAINER_MODE_FALSE=
2619fi
2620
2621  MAINT=$MAINTAINER_MODE_TRUE
2622
2623
2624
2625# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637DEPDIR="${am__leading_dot}deps"
2638
2639ac_config_commands="$ac_config_commands depfiles"
2640
2641
2642am_make=${MAKE-make}
2643cat > confinc << 'END'
2644am__doit:
2645	@echo this is the am__doit target
2646.PHONY: am__doit
2647END
2648# If we don't find an include directive, just comment out the code.
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2650$as_echo_n "checking for style of include used by $am_make... " >&6; }
2651am__include="#"
2652am__quote=
2653_am_result=none
2654# First try GNU make style include.
2655echo "include confinc" > confmf
2656# Ignore all kinds of additional output from `make'.
2657case `$am_make -s -f confmf 2> /dev/null` in #(
2658*the\ am__doit\ target*)
2659  am__include=include
2660  am__quote=
2661  _am_result=GNU
2662  ;;
2663esac
2664# Now try BSD make style include.
2665if test "$am__include" = "#"; then
2666   echo '.include "confinc"' > confmf
2667   case `$am_make -s -f confmf 2> /dev/null` in #(
2668   *the\ am__doit\ target*)
2669     am__include=.include
2670     am__quote="\""
2671     _am_result=BSD
2672     ;;
2673   esac
2674fi
2675
2676
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2678$as_echo "$_am_result" >&6; }
2679rm -f confinc confmf
2680
2681# Check whether --enable-dependency-tracking was given.
2682if test "${enable_dependency_tracking+set}" = set; then :
2683  enableval=$enable_dependency_tracking;
2684fi
2685
2686if test "x$enable_dependency_tracking" != xno; then
2687  am_depcomp="$ac_aux_dir/depcomp"
2688  AMDEPBACKSLASH='\'
2689fi
2690 if test "x$enable_dependency_tracking" != xno; then
2691  AMDEP_TRUE=
2692  AMDEP_FALSE='#'
2693else
2694  AMDEP_TRUE='#'
2695  AMDEP_FALSE=
2696fi
2697
2698
2699ac_ext=c
2700ac_cpp='$CPP $CPPFLAGS'
2701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704if test -n "$ac_tool_prefix"; then
2705  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2706set dummy ${ac_tool_prefix}gcc; ac_word=$2
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
2709if ${ac_cv_prog_CC+:} false; then :
2710  $as_echo_n "(cached) " >&6
2711else
2712  if test -n "$CC"; then
2713  ac_cv_prog_CC="$CC" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718  IFS=$as_save_IFS
2719  test -z "$as_dir" && as_dir=.
2720    for ac_exec_ext in '' $ac_executable_extensions; do
2721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724    break 2
2725  fi
2726done
2727  done
2728IFS=$as_save_IFS
2729
2730fi
2731fi
2732CC=$ac_cv_prog_CC
2733if test -n "$CC"; then
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2735$as_echo "$CC" >&6; }
2736else
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739fi
2740
2741
2742fi
2743if test -z "$ac_cv_prog_CC"; then
2744  ac_ct_CC=$CC
2745  # Extract the first word of "gcc", so it can be a program name with args.
2746set dummy gcc; ac_word=$2
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748$as_echo_n "checking for $ac_word... " >&6; }
2749if ${ac_cv_prog_ac_ct_CC+:} false; then :
2750  $as_echo_n "(cached) " >&6
2751else
2752  if test -n "$ac_ct_CC"; then
2753  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758  IFS=$as_save_IFS
2759  test -z "$as_dir" && as_dir=.
2760    for ac_exec_ext in '' $ac_executable_extensions; do
2761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762    ac_cv_prog_ac_ct_CC="gcc"
2763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764    break 2
2765  fi
2766done
2767  done
2768IFS=$as_save_IFS
2769
2770fi
2771fi
2772ac_ct_CC=$ac_cv_prog_ac_ct_CC
2773if test -n "$ac_ct_CC"; then
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2775$as_echo "$ac_ct_CC" >&6; }
2776else
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778$as_echo "no" >&6; }
2779fi
2780
2781  if test "x$ac_ct_CC" = x; then
2782    CC=""
2783  else
2784    case $cross_compiling:$ac_tool_warned in
2785yes:)
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788ac_tool_warned=yes ;;
2789esac
2790    CC=$ac_ct_CC
2791  fi
2792else
2793  CC="$ac_cv_prog_CC"
2794fi
2795
2796if test -z "$CC"; then
2797          if test -n "$ac_tool_prefix"; then
2798    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2799set dummy ${ac_tool_prefix}cc; ac_word=$2
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801$as_echo_n "checking for $ac_word... " >&6; }
2802if ${ac_cv_prog_CC+:} false; then :
2803  $as_echo_n "(cached) " >&6
2804else
2805  if test -n "$CC"; then
2806  ac_cv_prog_CC="$CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811  IFS=$as_save_IFS
2812  test -z "$as_dir" && as_dir=.
2813    for ac_exec_ext in '' $ac_executable_extensions; do
2814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815    ac_cv_prog_CC="${ac_tool_prefix}cc"
2816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817    break 2
2818  fi
2819done
2820  done
2821IFS=$as_save_IFS
2822
2823fi
2824fi
2825CC=$ac_cv_prog_CC
2826if test -n "$CC"; then
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2828$as_echo "$CC" >&6; }
2829else
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831$as_echo "no" >&6; }
2832fi
2833
2834
2835  fi
2836fi
2837if test -z "$CC"; then
2838  # Extract the first word of "cc", so it can be a program name with args.
2839set dummy cc; ac_word=$2
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
2842if ${ac_cv_prog_CC+:} false; then :
2843  $as_echo_n "(cached) " >&6
2844else
2845  if test -n "$CC"; then
2846  ac_cv_prog_CC="$CC" # Let the user override the test.
2847else
2848  ac_prog_rejected=no
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852  IFS=$as_save_IFS
2853  test -z "$as_dir" && as_dir=.
2854    for ac_exec_ext in '' $ac_executable_extensions; do
2855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2857       ac_prog_rejected=yes
2858       continue
2859     fi
2860    ac_cv_prog_CC="cc"
2861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862    break 2
2863  fi
2864done
2865  done
2866IFS=$as_save_IFS
2867
2868if test $ac_prog_rejected = yes; then
2869  # We found a bogon in the path, so make sure we never use it.
2870  set dummy $ac_cv_prog_CC
2871  shift
2872  if test $# != 0; then
2873    # We chose a different compiler from the bogus one.
2874    # However, it has the same basename, so the bogon will be chosen
2875    # first if we set CC to just the basename; use the full file name.
2876    shift
2877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878  fi
2879fi
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885$as_echo "$CC" >&6; }
2886else
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888$as_echo "no" >&6; }
2889fi
2890
2891
2892fi
2893if test -z "$CC"; then
2894  if test -n "$ac_tool_prefix"; then
2895  for ac_prog in cl.exe
2896  do
2897    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900$as_echo_n "checking for $ac_word... " >&6; }
2901if ${ac_cv_prog_CC+:} false; then :
2902  $as_echo_n "(cached) " >&6
2903else
2904  if test -n "$CC"; then
2905  ac_cv_prog_CC="$CC" # Let the user override the test.
2906else
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910  IFS=$as_save_IFS
2911  test -z "$as_dir" && as_dir=.
2912    for ac_exec_ext in '' $ac_executable_extensions; do
2913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916    break 2
2917  fi
2918done
2919  done
2920IFS=$as_save_IFS
2921
2922fi
2923fi
2924CC=$ac_cv_prog_CC
2925if test -n "$CC"; then
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927$as_echo "$CC" >&6; }
2928else
2929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930$as_echo "no" >&6; }
2931fi
2932
2933
2934    test -n "$CC" && break
2935  done
2936fi
2937if test -z "$CC"; then
2938  ac_ct_CC=$CC
2939  for ac_prog in cl.exe
2940do
2941  # Extract the first word of "$ac_prog", so it can be a program name with args.
2942set dummy $ac_prog; ac_word=$2
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
2945if ${ac_cv_prog_ac_ct_CC+:} false; then :
2946  $as_echo_n "(cached) " >&6
2947else
2948  if test -n "$ac_ct_CC"; then
2949  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954  IFS=$as_save_IFS
2955  test -z "$as_dir" && as_dir=.
2956    for ac_exec_ext in '' $ac_executable_extensions; do
2957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958    ac_cv_prog_ac_ct_CC="$ac_prog"
2959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960    break 2
2961  fi
2962done
2963  done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969if test -n "$ac_ct_CC"; then
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2971$as_echo "$ac_ct_CC" >&6; }
2972else
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978  test -n "$ac_ct_CC" && break
2979done
2980
2981  if test "x$ac_ct_CC" = x; then
2982    CC=""
2983  else
2984    case $cross_compiling:$ac_tool_warned in
2985yes:)
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988ac_tool_warned=yes ;;
2989esac
2990    CC=$ac_ct_CC
2991  fi
2992fi
2993
2994fi
2995
2996
2997test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999as_fn_error $? "no acceptable C compiler found in \$PATH
3000See \`config.log' for more details" "$LINENO" 5; }
3001
3002# Provide some information about the compiler.
3003$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3004set X $ac_compile
3005ac_compiler=$2
3006for ac_option in --version -v -V -qversion; do
3007  { { ac_try="$ac_compiler $ac_option >&5"
3008case "(($ac_try" in
3009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010  *) ac_try_echo=$ac_try;;
3011esac
3012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3013$as_echo "$ac_try_echo"; } >&5
3014  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3015  ac_status=$?
3016  if test -s conftest.err; then
3017    sed '10a\
3018... rest of stderr output deleted ...
3019         10q' conftest.err >conftest.er1
3020    cat conftest.er1 >&5
3021  fi
3022  rm -f conftest.er1 conftest.err
3023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024  test $ac_status = 0; }
3025done
3026
3027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3028/* end confdefs.h.  */
3029
3030int
3031main ()
3032{
3033
3034  ;
3035  return 0;
3036}
3037_ACEOF
3038ac_clean_files_save=$ac_clean_files
3039ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3040# Try to create an executable without -o first, disregard a.out.
3041# It will help us diagnose broken compilers, and finding out an intuition
3042# of exeext.
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3044$as_echo_n "checking whether the C compiler works... " >&6; }
3045ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3046
3047# The possible output files:
3048ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3049
3050ac_rmfiles=
3051for ac_file in $ac_files
3052do
3053  case $ac_file in
3054    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3055    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3056  esac
3057done
3058rm -f $ac_rmfiles
3059
3060if { { ac_try="$ac_link_default"
3061case "(($ac_try" in
3062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063  *) ac_try_echo=$ac_try;;
3064esac
3065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066$as_echo "$ac_try_echo"; } >&5
3067  (eval "$ac_link_default") 2>&5
3068  ac_status=$?
3069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070  test $ac_status = 0; }; then :
3071  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3072# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3073# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3074# so that the user can short-circuit this test for compilers unknown to
3075# Autoconf.
3076for ac_file in $ac_files ''
3077do
3078  test -f "$ac_file" || continue
3079  case $ac_file in
3080    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3081	;;
3082    [ab].out )
3083	# We found the default executable, but exeext='' is most
3084	# certainly right.
3085	break;;
3086    *.* )
3087	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3088	then :; else
3089	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090	fi
3091	# We set ac_cv_exeext here because the later test for it is not
3092	# safe: cross compilers may not add the suffix if given an `-o'
3093	# argument, so we may need to know it at that point already.
3094	# Even if this section looks crufty: it has the advantage of
3095	# actually working.
3096	break;;
3097    * )
3098	break;;
3099  esac
3100done
3101test "$ac_cv_exeext" = no && ac_cv_exeext=
3102
3103else
3104  ac_file=''
3105fi
3106if test -z "$ac_file"; then :
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109$as_echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114as_fn_error 77 "C compiler cannot create executables
3115See \`config.log' for more details" "$LINENO" 5; }
3116else
3117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3118$as_echo "yes" >&6; }
3119fi
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3121$as_echo_n "checking for C compiler default output file name... " >&6; }
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3123$as_echo "$ac_file" >&6; }
3124ac_exeext=$ac_cv_exeext
3125
3126rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3127ac_clean_files=$ac_clean_files_save
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3129$as_echo_n "checking for suffix of executables... " >&6; }
3130if { { ac_try="$ac_link"
3131case "(($ac_try" in
3132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133  *) ac_try_echo=$ac_try;;
3134esac
3135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136$as_echo "$ac_try_echo"; } >&5
3137  (eval "$ac_link") 2>&5
3138  ac_status=$?
3139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140  test $ac_status = 0; }; then :
3141  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3142# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3143# work properly (i.e., refer to `conftest.exe'), while it won't with
3144# `rm'.
3145for ac_file in conftest.exe conftest conftest.*; do
3146  test -f "$ac_file" || continue
3147  case $ac_file in
3148    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150	  break;;
3151    * ) break;;
3152  esac
3153done
3154else
3155  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3158See \`config.log' for more details" "$LINENO" 5; }
3159fi
3160rm -f conftest conftest$ac_cv_exeext
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3162$as_echo "$ac_cv_exeext" >&6; }
3163
3164rm -f conftest.$ac_ext
3165EXEEXT=$ac_cv_exeext
3166ac_exeext=$EXEEXT
3167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168/* end confdefs.h.  */
3169#include <stdio.h>
3170int
3171main ()
3172{
3173FILE *f = fopen ("conftest.out", "w");
3174 return ferror (f) || fclose (f) != 0;
3175
3176  ;
3177  return 0;
3178}
3179_ACEOF
3180ac_clean_files="$ac_clean_files conftest.out"
3181# Check that the compiler produces executables we can run.  If not, either
3182# the compiler is broken, or we cross compile.
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3184$as_echo_n "checking whether we are cross compiling... " >&6; }
3185if test "$cross_compiling" != yes; then
3186  { { ac_try="$ac_link"
3187case "(($ac_try" in
3188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189  *) ac_try_echo=$ac_try;;
3190esac
3191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192$as_echo "$ac_try_echo"; } >&5
3193  (eval "$ac_link") 2>&5
3194  ac_status=$?
3195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196  test $ac_status = 0; }
3197  if { ac_try='./conftest$ac_cv_exeext'
3198  { { case "(($ac_try" in
3199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200  *) ac_try_echo=$ac_try;;
3201esac
3202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203$as_echo "$ac_try_echo"; } >&5
3204  (eval "$ac_try") 2>&5
3205  ac_status=$?
3206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207  test $ac_status = 0; }; }; then
3208    cross_compiling=no
3209  else
3210    if test "$cross_compiling" = maybe; then
3211	cross_compiling=yes
3212    else
3213	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215as_fn_error $? "cannot run C compiled programs.
3216If you meant to cross compile, use \`--host'.
3217See \`config.log' for more details" "$LINENO" 5; }
3218    fi
3219  fi
3220fi
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3222$as_echo "$cross_compiling" >&6; }
3223
3224rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3225ac_clean_files=$ac_clean_files_save
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3227$as_echo_n "checking for suffix of object files... " >&6; }
3228if ${ac_cv_objext+:} false; then :
3229  $as_echo_n "(cached) " >&6
3230else
3231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232/* end confdefs.h.  */
3233
3234int
3235main ()
3236{
3237
3238  ;
3239  return 0;
3240}
3241_ACEOF
3242rm -f conftest.o conftest.obj
3243if { { ac_try="$ac_compile"
3244case "(($ac_try" in
3245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246  *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250  (eval "$ac_compile") 2>&5
3251  ac_status=$?
3252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253  test $ac_status = 0; }; then :
3254  for ac_file in conftest.o conftest.obj conftest.*; do
3255  test -f "$ac_file" || continue;
3256  case $ac_file in
3257    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3258    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3259       break;;
3260  esac
3261done
3262else
3263  $as_echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268as_fn_error $? "cannot compute suffix of object files: cannot compile
3269See \`config.log' for more details" "$LINENO" 5; }
3270fi
3271rm -f conftest.$ac_cv_objext conftest.$ac_ext
3272fi
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3274$as_echo "$ac_cv_objext" >&6; }
3275OBJEXT=$ac_cv_objext
3276ac_objext=$OBJEXT
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3278$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3279if ${ac_cv_c_compiler_gnu+:} false; then :
3280  $as_echo_n "(cached) " >&6
3281else
3282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283/* end confdefs.h.  */
3284
3285int
3286main ()
3287{
3288#ifndef __GNUC__
3289       choke me
3290#endif
3291
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296if ac_fn_c_try_compile "$LINENO"; then :
3297  ac_compiler_gnu=yes
3298else
3299  ac_compiler_gnu=no
3300fi
3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302ac_cv_c_compiler_gnu=$ac_compiler_gnu
3303
3304fi
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3306$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3307if test $ac_compiler_gnu = yes; then
3308  GCC=yes
3309else
3310  GCC=
3311fi
3312ac_test_CFLAGS=${CFLAGS+set}
3313ac_save_CFLAGS=$CFLAGS
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3315$as_echo_n "checking whether $CC accepts -g... " >&6; }
3316if ${ac_cv_prog_cc_g+:} false; then :
3317  $as_echo_n "(cached) " >&6
3318else
3319  ac_save_c_werror_flag=$ac_c_werror_flag
3320   ac_c_werror_flag=yes
3321   ac_cv_prog_cc_g=no
3322   CFLAGS="-g"
3323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324/* end confdefs.h.  */
3325
3326int
3327main ()
3328{
3329
3330  ;
3331  return 0;
3332}
3333_ACEOF
3334if ac_fn_c_try_compile "$LINENO"; then :
3335  ac_cv_prog_cc_g=yes
3336else
3337  CFLAGS=""
3338      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339/* end confdefs.h.  */
3340
3341int
3342main ()
3343{
3344
3345  ;
3346  return 0;
3347}
3348_ACEOF
3349if ac_fn_c_try_compile "$LINENO"; then :
3350
3351else
3352  ac_c_werror_flag=$ac_save_c_werror_flag
3353	 CFLAGS="-g"
3354	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355/* end confdefs.h.  */
3356
3357int
3358main ()
3359{
3360
3361  ;
3362  return 0;
3363}
3364_ACEOF
3365if ac_fn_c_try_compile "$LINENO"; then :
3366  ac_cv_prog_cc_g=yes
3367fi
3368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369fi
3370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371fi
3372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373   ac_c_werror_flag=$ac_save_c_werror_flag
3374fi
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3376$as_echo "$ac_cv_prog_cc_g" >&6; }
3377if test "$ac_test_CFLAGS" = set; then
3378  CFLAGS=$ac_save_CFLAGS
3379elif test $ac_cv_prog_cc_g = yes; then
3380  if test "$GCC" = yes; then
3381    CFLAGS="-g -O2"
3382  else
3383    CFLAGS="-g"
3384  fi
3385else
3386  if test "$GCC" = yes; then
3387    CFLAGS="-O2"
3388  else
3389    CFLAGS=
3390  fi
3391fi
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3393$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3394if ${ac_cv_prog_cc_c89+:} false; then :
3395  $as_echo_n "(cached) " >&6
3396else
3397  ac_cv_prog_cc_c89=no
3398ac_save_CC=$CC
3399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400/* end confdefs.h.  */
3401#include <stdarg.h>
3402#include <stdio.h>
3403#include <sys/types.h>
3404#include <sys/stat.h>
3405/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3406struct buf { int x; };
3407FILE * (*rcsopen) (struct buf *, struct stat *, int);
3408static char *e (p, i)
3409     char **p;
3410     int i;
3411{
3412  return p[i];
3413}
3414static char *f (char * (*g) (char **, int), char **p, ...)
3415{
3416  char *s;
3417  va_list v;
3418  va_start (v,p);
3419  s = g (p, va_arg (v,int));
3420  va_end (v);
3421  return s;
3422}
3423
3424/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3425   function prototypes and stuff, but not '\xHH' hex character constants.
3426   These don't provoke an error unfortunately, instead are silently treated
3427   as 'x'.  The following induces an error, until -std is added to get
3428   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3429   array size at least.  It's necessary to write '\x00'==0 to get something
3430   that's true only with -std.  */
3431int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3432
3433/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3434   inside strings and character constants.  */
3435#define FOO(x) 'x'
3436int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3437
3438int test (int i, double x);
3439struct s1 {int (*f) (int a);};
3440struct s2 {int (*f) (double a);};
3441int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3442int argc;
3443char **argv;
3444int
3445main ()
3446{
3447return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3448  ;
3449  return 0;
3450}
3451_ACEOF
3452for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3453	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3454do
3455  CC="$ac_save_CC $ac_arg"
3456  if ac_fn_c_try_compile "$LINENO"; then :
3457  ac_cv_prog_cc_c89=$ac_arg
3458fi
3459rm -f core conftest.err conftest.$ac_objext
3460  test "x$ac_cv_prog_cc_c89" != "xno" && break
3461done
3462rm -f conftest.$ac_ext
3463CC=$ac_save_CC
3464
3465fi
3466# AC_CACHE_VAL
3467case "x$ac_cv_prog_cc_c89" in
3468  x)
3469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3470$as_echo "none needed" >&6; } ;;
3471  xno)
3472    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3473$as_echo "unsupported" >&6; } ;;
3474  *)
3475    CC="$CC $ac_cv_prog_cc_c89"
3476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3477$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3478esac
3479if test "x$ac_cv_prog_cc_c89" != xno; then :
3480
3481fi
3482
3483ac_ext=c
3484ac_cpp='$CPP $CPPFLAGS'
3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
3489depcc="$CC"   am_compiler_list=
3490
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3492$as_echo_n "checking dependency style of $depcc... " >&6; }
3493if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3494  $as_echo_n "(cached) " >&6
3495else
3496  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3497  # We make a subdir and do the tests there.  Otherwise we can end up
3498  # making bogus files that we don't know about and never remove.  For
3499  # instance it was reported that on HP-UX the gcc test will end up
3500  # making a dummy file named `D' -- because `-MD' means `put the output
3501  # in D'.
3502  mkdir conftest.dir
3503  # Copy depcomp to subdir because otherwise we won't find it if we're
3504  # using a relative directory.
3505  cp "$am_depcomp" conftest.dir
3506  cd conftest.dir
3507  # We will build objects and dependencies in a subdirectory because
3508  # it helps to detect inapplicable dependency modes.  For instance
3509  # both Tru64's cc and ICC support -MD to output dependencies as a
3510  # side effect of compilation, but ICC will put the dependencies in
3511  # the current directory while Tru64 will put them in the object
3512  # directory.
3513  mkdir sub
3514
3515  am_cv_CC_dependencies_compiler_type=none
3516  if test "$am_compiler_list" = ""; then
3517     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3518  fi
3519  am__universal=false
3520  case " $depcc " in #(
3521     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3522     esac
3523
3524  for depmode in $am_compiler_list; do
3525    # Setup a source with many dependencies, because some compilers
3526    # like to wrap large dependency lists on column 80 (with \), and
3527    # we should not choose a depcomp mode which is confused by this.
3528    #
3529    # We need to recreate these files for each test, as the compiler may
3530    # overwrite some of them when testing with obscure command lines.
3531    # This happens at least with the AIX C compiler.
3532    : > sub/conftest.c
3533    for i in 1 2 3 4 5 6; do
3534      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3535      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3536      # Solaris 8's {/usr,}/bin/sh.
3537      touch sub/conftst$i.h
3538    done
3539    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3540
3541    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3542    # mode.  It turns out that the SunPro C++ compiler does not properly
3543    # handle `-M -o', and we need to detect this.  Also, some Intel
3544    # versions had trouble with output in subdirs
3545    am__obj=sub/conftest.${OBJEXT-o}
3546    am__minus_obj="-o $am__obj"
3547    case $depmode in
3548    gcc)
3549      # This depmode causes a compiler race in universal mode.
3550      test "$am__universal" = false || continue
3551      ;;
3552    nosideeffect)
3553      # after this tag, mechanisms are not by side-effect, so they'll
3554      # only be used when explicitly requested
3555      if test "x$enable_dependency_tracking" = xyes; then
3556	continue
3557      else
3558	break
3559      fi
3560      ;;
3561    msvisualcpp | msvcmsys)
3562      # This compiler won't grok `-c -o', but also, the minuso test has
3563      # not run yet.  These depmodes are late enough in the game, and
3564      # so weak that their functioning should not be impacted.
3565      am__obj=conftest.${OBJEXT-o}
3566      am__minus_obj=
3567      ;;
3568    none) break ;;
3569    esac
3570    if depmode=$depmode \
3571       source=sub/conftest.c object=$am__obj \
3572       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3573       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3574         >/dev/null 2>conftest.err &&
3575       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3576       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3577       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3578       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3579      # icc doesn't choke on unknown options, it will just issue warnings
3580      # or remarks (even with -Werror).  So we grep stderr for any message
3581      # that says an option was ignored or not supported.
3582      # When given -MP, icc 7.0 and 7.1 complain thusly:
3583      #   icc: Command line warning: ignoring option '-M'; no argument required
3584      # The diagnosis changed in icc 8.0:
3585      #   icc: Command line remark: option '-MP' not supported
3586      if (grep 'ignoring option' conftest.err ||
3587          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3588        am_cv_CC_dependencies_compiler_type=$depmode
3589        break
3590      fi
3591    fi
3592  done
3593
3594  cd ..
3595  rm -rf conftest.dir
3596else
3597  am_cv_CC_dependencies_compiler_type=none
3598fi
3599
3600fi
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3602$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3603CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3604
3605 if
3606  test "x$enable_dependency_tracking" != xno \
3607  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3608  am__fastdepCC_TRUE=
3609  am__fastdepCC_FALSE='#'
3610else
3611  am__fastdepCC_TRUE='#'
3612  am__fastdepCC_FALSE=
3613fi
3614
3615
3616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3617$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3618if ${ac_cv_prog_cc_c99+:} false; then :
3619  $as_echo_n "(cached) " >&6
3620else
3621  ac_cv_prog_cc_c99=no
3622ac_save_CC=$CC
3623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624/* end confdefs.h.  */
3625#include <stdarg.h>
3626#include <stdbool.h>
3627#include <stdlib.h>
3628#include <wchar.h>
3629#include <stdio.h>
3630
3631// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3632#define debug(...) fprintf (stderr, __VA_ARGS__)
3633#define showlist(...) puts (#__VA_ARGS__)
3634#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3635static void
3636test_varargs_macros (void)
3637{
3638  int x = 1234;
3639  int y = 5678;
3640  debug ("Flag");
3641  debug ("X = %d\n", x);
3642  showlist (The first, second, and third items.);
3643  report (x>y, "x is %d but y is %d", x, y);
3644}
3645
3646// Check long long types.
3647#define BIG64 18446744073709551615ull
3648#define BIG32 4294967295ul
3649#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3650#if !BIG_OK
3651  your preprocessor is broken;
3652#endif
3653#if BIG_OK
3654#else
3655  your preprocessor is broken;
3656#endif
3657static long long int bignum = -9223372036854775807LL;
3658static unsigned long long int ubignum = BIG64;
3659
3660struct incomplete_array
3661{
3662  int datasize;
3663  double data[];
3664};
3665
3666struct named_init {
3667  int number;
3668  const wchar_t *name;
3669  double average;
3670};
3671
3672typedef const char *ccp;
3673
3674static inline int
3675test_restrict (ccp restrict text)
3676{
3677  // See if C++-style comments work.
3678  // Iterate through items via the restricted pointer.
3679  // Also check for declarations in for loops.
3680  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3681    continue;
3682  return 0;
3683}
3684
3685// Check varargs and va_copy.
3686static void
3687test_varargs (const char *format, ...)
3688{
3689  va_list args;
3690  va_start (args, format);
3691  va_list args_copy;
3692  va_copy (args_copy, args);
3693
3694  const char *str;
3695  int number;
3696  float fnumber;
3697
3698  while (*format)
3699    {
3700      switch (*format++)
3701	{
3702	case 's': // string
3703	  str = va_arg (args_copy, const char *);
3704	  break;
3705	case 'd': // int
3706	  number = va_arg (args_copy, int);
3707	  break;
3708	case 'f': // float
3709	  fnumber = va_arg (args_copy, double);
3710	  break;
3711	default:
3712	  break;
3713	}
3714    }
3715  va_end (args_copy);
3716  va_end (args);
3717}
3718
3719int
3720main ()
3721{
3722
3723  // Check bool.
3724  _Bool success = false;
3725
3726  // Check restrict.
3727  if (test_restrict ("String literal") == 0)
3728    success = true;
3729  char *restrict newvar = "Another string";
3730
3731  // Check varargs.
3732  test_varargs ("s, d' f .", "string", 65, 34.234);
3733  test_varargs_macros ();
3734
3735  // Check flexible array members.
3736  struct incomplete_array *ia =
3737    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3738  ia->datasize = 10;
3739  for (int i = 0; i < ia->datasize; ++i)
3740    ia->data[i] = i * 1.234;
3741
3742  // Check named initializers.
3743  struct named_init ni = {
3744    .number = 34,
3745    .name = L"Test wide string",
3746    .average = 543.34343,
3747  };
3748
3749  ni.number = 58;
3750
3751  int dynamic_array[ni.number];
3752  dynamic_array[ni.number - 1] = 543;
3753
3754  // work around unused variable warnings
3755  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3756	  || dynamic_array[ni.number - 1] != 543);
3757
3758  ;
3759  return 0;
3760}
3761_ACEOF
3762for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3763do
3764  CC="$ac_save_CC $ac_arg"
3765  if ac_fn_c_try_compile "$LINENO"; then :
3766  ac_cv_prog_cc_c99=$ac_arg
3767fi
3768rm -f core conftest.err conftest.$ac_objext
3769  test "x$ac_cv_prog_cc_c99" != "xno" && break
3770done
3771rm -f conftest.$ac_ext
3772CC=$ac_save_CC
3773
3774fi
3775# AC_CACHE_VAL
3776case "x$ac_cv_prog_cc_c99" in
3777  x)
3778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3779$as_echo "none needed" >&6; } ;;
3780  xno)
3781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3782$as_echo "unsupported" >&6; } ;;
3783  *)
3784    CC="$CC $ac_cv_prog_cc_c99"
3785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3786$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3787esac
3788if test "x$ac_cv_prog_cc_c99" != xno; then :
3789
3790fi
3791
3792
3793
3794ac_ext=c
3795ac_cpp='$CPP $CPPFLAGS'
3796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3800$as_echo_n "checking how to run the C preprocessor... " >&6; }
3801# On Suns, sometimes $CPP names a directory.
3802if test -n "$CPP" && test -d "$CPP"; then
3803  CPP=
3804fi
3805if test -z "$CPP"; then
3806  if ${ac_cv_prog_CPP+:} false; then :
3807  $as_echo_n "(cached) " >&6
3808else
3809      # Double quotes because CPP needs to be expanded
3810    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3811    do
3812      ac_preproc_ok=false
3813for ac_c_preproc_warn_flag in '' yes
3814do
3815  # Use a header file that comes with gcc, so configuring glibc
3816  # with a fresh cross-compiler works.
3817  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818  # <limits.h> exists even on freestanding compilers.
3819  # On the NeXT, cc -E runs the code through the compiler's parser,
3820  # not just through cpp. "Syntax error" is here to catch this case.
3821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822/* end confdefs.h.  */
3823#ifdef __STDC__
3824# include <limits.h>
3825#else
3826# include <assert.h>
3827#endif
3828		     Syntax error
3829_ACEOF
3830if ac_fn_c_try_cpp "$LINENO"; then :
3831
3832else
3833  # Broken: fails on valid input.
3834continue
3835fi
3836rm -f conftest.err conftest.i conftest.$ac_ext
3837
3838  # OK, works on sane cases.  Now check whether nonexistent headers
3839  # can be detected and how.
3840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841/* end confdefs.h.  */
3842#include <ac_nonexistent.h>
3843_ACEOF
3844if ac_fn_c_try_cpp "$LINENO"; then :
3845  # Broken: success on invalid input.
3846continue
3847else
3848  # Passes both tests.
3849ac_preproc_ok=:
3850break
3851fi
3852rm -f conftest.err conftest.i conftest.$ac_ext
3853
3854done
3855# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856rm -f conftest.i conftest.err conftest.$ac_ext
3857if $ac_preproc_ok; then :
3858  break
3859fi
3860
3861    done
3862    ac_cv_prog_CPP=$CPP
3863
3864fi
3865  CPP=$ac_cv_prog_CPP
3866else
3867  ac_cv_prog_CPP=$CPP
3868fi
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3870$as_echo "$CPP" >&6; }
3871ac_preproc_ok=false
3872for ac_c_preproc_warn_flag in '' yes
3873do
3874  # Use a header file that comes with gcc, so configuring glibc
3875  # with a fresh cross-compiler works.
3876  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877  # <limits.h> exists even on freestanding compilers.
3878  # On the NeXT, cc -E runs the code through the compiler's parser,
3879  # not just through cpp. "Syntax error" is here to catch this case.
3880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881/* end confdefs.h.  */
3882#ifdef __STDC__
3883# include <limits.h>
3884#else
3885# include <assert.h>
3886#endif
3887		     Syntax error
3888_ACEOF
3889if ac_fn_c_try_cpp "$LINENO"; then :
3890
3891else
3892  # Broken: fails on valid input.
3893continue
3894fi
3895rm -f conftest.err conftest.i conftest.$ac_ext
3896
3897  # OK, works on sane cases.  Now check whether nonexistent headers
3898  # can be detected and how.
3899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900/* end confdefs.h.  */
3901#include <ac_nonexistent.h>
3902_ACEOF
3903if ac_fn_c_try_cpp "$LINENO"; then :
3904  # Broken: success on invalid input.
3905continue
3906else
3907  # Passes both tests.
3908ac_preproc_ok=:
3909break
3910fi
3911rm -f conftest.err conftest.i conftest.$ac_ext
3912
3913done
3914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915rm -f conftest.i conftest.err conftest.$ac_ext
3916if $ac_preproc_ok; then :
3917
3918else
3919  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3922See \`config.log' for more details" "$LINENO" 5; }
3923fi
3924
3925ac_ext=c
3926ac_cpp='$CPP $CPPFLAGS'
3927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930
3931
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3933$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3934if ${ac_cv_path_GREP+:} false; then :
3935  $as_echo_n "(cached) " >&6
3936else
3937  if test -z "$GREP"; then
3938  ac_path_GREP_found=false
3939  # Loop through the user's path and test for each of PROGNAME-LIST
3940  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3942do
3943  IFS=$as_save_IFS
3944  test -z "$as_dir" && as_dir=.
3945    for ac_prog in grep ggrep; do
3946    for ac_exec_ext in '' $ac_executable_extensions; do
3947      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3948      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3949# Check for GNU ac_path_GREP and select it if it is found.
3950  # Check for GNU $ac_path_GREP
3951case `"$ac_path_GREP" --version 2>&1` in
3952*GNU*)
3953  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3954*)
3955  ac_count=0
3956  $as_echo_n 0123456789 >"conftest.in"
3957  while :
3958  do
3959    cat "conftest.in" "conftest.in" >"conftest.tmp"
3960    mv "conftest.tmp" "conftest.in"
3961    cp "conftest.in" "conftest.nl"
3962    $as_echo 'GREP' >> "conftest.nl"
3963    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3965    as_fn_arith $ac_count + 1 && ac_count=$as_val
3966    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3967      # Best one so far, save it but keep looking for a better one
3968      ac_cv_path_GREP="$ac_path_GREP"
3969      ac_path_GREP_max=$ac_count
3970    fi
3971    # 10*(2^10) chars as input seems more than enough
3972    test $ac_count -gt 10 && break
3973  done
3974  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3975esac
3976
3977      $ac_path_GREP_found && break 3
3978    done
3979  done
3980  done
3981IFS=$as_save_IFS
3982  if test -z "$ac_cv_path_GREP"; then
3983    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3984  fi
3985else
3986  ac_cv_path_GREP=$GREP
3987fi
3988
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3991$as_echo "$ac_cv_path_GREP" >&6; }
3992 GREP="$ac_cv_path_GREP"
3993
3994
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3996$as_echo_n "checking for egrep... " >&6; }
3997if ${ac_cv_path_EGREP+:} false; then :
3998  $as_echo_n "(cached) " >&6
3999else
4000  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4001   then ac_cv_path_EGREP="$GREP -E"
4002   else
4003     if test -z "$EGREP"; then
4004  ac_path_EGREP_found=false
4005  # Loop through the user's path and test for each of PROGNAME-LIST
4006  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008do
4009  IFS=$as_save_IFS
4010  test -z "$as_dir" && as_dir=.
4011    for ac_prog in egrep; do
4012    for ac_exec_ext in '' $ac_executable_extensions; do
4013      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4014      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4015# Check for GNU ac_path_EGREP and select it if it is found.
4016  # Check for GNU $ac_path_EGREP
4017case `"$ac_path_EGREP" --version 2>&1` in
4018*GNU*)
4019  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4020*)
4021  ac_count=0
4022  $as_echo_n 0123456789 >"conftest.in"
4023  while :
4024  do
4025    cat "conftest.in" "conftest.in" >"conftest.tmp"
4026    mv "conftest.tmp" "conftest.in"
4027    cp "conftest.in" "conftest.nl"
4028    $as_echo 'EGREP' >> "conftest.nl"
4029    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031    as_fn_arith $ac_count + 1 && ac_count=$as_val
4032    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4033      # Best one so far, save it but keep looking for a better one
4034      ac_cv_path_EGREP="$ac_path_EGREP"
4035      ac_path_EGREP_max=$ac_count
4036    fi
4037    # 10*(2^10) chars as input seems more than enough
4038    test $ac_count -gt 10 && break
4039  done
4040  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041esac
4042
4043      $ac_path_EGREP_found && break 3
4044    done
4045  done
4046  done
4047IFS=$as_save_IFS
4048  if test -z "$ac_cv_path_EGREP"; then
4049    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4050  fi
4051else
4052  ac_cv_path_EGREP=$EGREP
4053fi
4054
4055   fi
4056fi
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4058$as_echo "$ac_cv_path_EGREP" >&6; }
4059 EGREP="$ac_cv_path_EGREP"
4060
4061
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4063$as_echo_n "checking for ANSI C header files... " >&6; }
4064if ${ac_cv_header_stdc+:} false; then :
4065  $as_echo_n "(cached) " >&6
4066else
4067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068/* end confdefs.h.  */
4069#include <stdlib.h>
4070#include <stdarg.h>
4071#include <string.h>
4072#include <float.h>
4073
4074int
4075main ()
4076{
4077
4078  ;
4079  return 0;
4080}
4081_ACEOF
4082if ac_fn_c_try_compile "$LINENO"; then :
4083  ac_cv_header_stdc=yes
4084else
4085  ac_cv_header_stdc=no
4086fi
4087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088
4089if test $ac_cv_header_stdc = yes; then
4090  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092/* end confdefs.h.  */
4093#include <string.h>
4094
4095_ACEOF
4096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097  $EGREP "memchr" >/dev/null 2>&1; then :
4098
4099else
4100  ac_cv_header_stdc=no
4101fi
4102rm -f conftest*
4103
4104fi
4105
4106if test $ac_cv_header_stdc = yes; then
4107  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h.  */
4110#include <stdlib.h>
4111
4112_ACEOF
4113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114  $EGREP "free" >/dev/null 2>&1; then :
4115
4116else
4117  ac_cv_header_stdc=no
4118fi
4119rm -f conftest*
4120
4121fi
4122
4123if test $ac_cv_header_stdc = yes; then
4124  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4125  if test "$cross_compiling" = yes; then :
4126  :
4127else
4128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130#include <ctype.h>
4131#include <stdlib.h>
4132#if ((' ' & 0x0FF) == 0x020)
4133# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4134# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4135#else
4136# define ISLOWER(c) \
4137		   (('a' <= (c) && (c) <= 'i') \
4138		     || ('j' <= (c) && (c) <= 'r') \
4139		     || ('s' <= (c) && (c) <= 'z'))
4140# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4141#endif
4142
4143#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4144int
4145main ()
4146{
4147  int i;
4148  for (i = 0; i < 256; i++)
4149    if (XOR (islower (i), ISLOWER (i))
4150	|| toupper (i) != TOUPPER (i))
4151      return 2;
4152  return 0;
4153}
4154_ACEOF
4155if ac_fn_c_try_run "$LINENO"; then :
4156
4157else
4158  ac_cv_header_stdc=no
4159fi
4160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4161  conftest.$ac_objext conftest.beam conftest.$ac_ext
4162fi
4163
4164fi
4165fi
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4167$as_echo "$ac_cv_header_stdc" >&6; }
4168if test $ac_cv_header_stdc = yes; then
4169
4170$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4171
4172fi
4173
4174# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4175for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4176		  inttypes.h stdint.h unistd.h
4177do :
4178  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4179ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4180"
4181if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4182  cat >>confdefs.h <<_ACEOF
4183#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4184_ACEOF
4185
4186fi
4187
4188done
4189
4190
4191
4192
4193ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4194if test "x$ac_cv_have_decl___clang__" = xyes; then :
4195  CLANGCC="yes"
4196else
4197  CLANGCC="no"
4198fi
4199
4200ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4201if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4202  INTELCC="yes"
4203else
4204  INTELCC="no"
4205fi
4206
4207ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4208if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4209  SUNCC="yes"
4210else
4211  SUNCC="no"
4212fi
4213
4214
4215
4216
4217if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4218	if test -n "$ac_tool_prefix"; then
4219  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4220set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222$as_echo_n "checking for $ac_word... " >&6; }
4223if ${ac_cv_path_PKG_CONFIG+:} false; then :
4224  $as_echo_n "(cached) " >&6
4225else
4226  case $PKG_CONFIG in
4227  [\\/]* | ?:[\\/]*)
4228  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4229  ;;
4230  *)
4231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234  IFS=$as_save_IFS
4235  test -z "$as_dir" && as_dir=.
4236    for ac_exec_ext in '' $ac_executable_extensions; do
4237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240    break 2
4241  fi
4242done
4243  done
4244IFS=$as_save_IFS
4245
4246  ;;
4247esac
4248fi
4249PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4250if test -n "$PKG_CONFIG"; then
4251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4252$as_echo "$PKG_CONFIG" >&6; }
4253else
4254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255$as_echo "no" >&6; }
4256fi
4257
4258
4259fi
4260if test -z "$ac_cv_path_PKG_CONFIG"; then
4261  ac_pt_PKG_CONFIG=$PKG_CONFIG
4262  # Extract the first word of "pkg-config", so it can be a program name with args.
4263set dummy pkg-config; ac_word=$2
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
4266if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4267  $as_echo_n "(cached) " >&6
4268else
4269  case $ac_pt_PKG_CONFIG in
4270  [\\/]* | ?:[\\/]*)
4271  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4272  ;;
4273  *)
4274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277  IFS=$as_save_IFS
4278  test -z "$as_dir" && as_dir=.
4279    for ac_exec_ext in '' $ac_executable_extensions; do
4280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283    break 2
4284  fi
4285done
4286  done
4287IFS=$as_save_IFS
4288
4289  ;;
4290esac
4291fi
4292ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4293if test -n "$ac_pt_PKG_CONFIG"; then
4294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4295$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4296else
4297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298$as_echo "no" >&6; }
4299fi
4300
4301  if test "x$ac_pt_PKG_CONFIG" = x; then
4302    PKG_CONFIG=""
4303  else
4304    case $cross_compiling:$ac_tool_warned in
4305yes:)
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4308ac_tool_warned=yes ;;
4309esac
4310    PKG_CONFIG=$ac_pt_PKG_CONFIG
4311  fi
4312else
4313  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4314fi
4315
4316fi
4317if test -n "$PKG_CONFIG"; then
4318	_pkg_min_version=0.9.0
4319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4320$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4321	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4322		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4323$as_echo "yes" >&6; }
4324	else
4325		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326$as_echo "no" >&6; }
4327		PKG_CONFIG=""
4328	fi
4329
4330fi
4331# Make sure we can run config.sub.
4332$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4333  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4334
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4336$as_echo_n "checking build system type... " >&6; }
4337if ${ac_cv_build+:} false; then :
4338  $as_echo_n "(cached) " >&6
4339else
4340  ac_build_alias=$build_alias
4341test "x$ac_build_alias" = x &&
4342  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4343test "x$ac_build_alias" = x &&
4344  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4345ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4346  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4347
4348fi
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4350$as_echo "$ac_cv_build" >&6; }
4351case $ac_cv_build in
4352*-*-*) ;;
4353*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4354esac
4355build=$ac_cv_build
4356ac_save_IFS=$IFS; IFS='-'
4357set x $ac_cv_build
4358shift
4359build_cpu=$1
4360build_vendor=$2
4361shift; shift
4362# Remember, the first character of IFS is used to create $*,
4363# except with old shells:
4364build_os=$*
4365IFS=$ac_save_IFS
4366case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4367
4368
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4370$as_echo_n "checking host system type... " >&6; }
4371if ${ac_cv_host+:} false; then :
4372  $as_echo_n "(cached) " >&6
4373else
4374  if test "x$host_alias" = x; then
4375  ac_cv_host=$ac_cv_build
4376else
4377  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4378    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4379fi
4380
4381fi
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4383$as_echo "$ac_cv_host" >&6; }
4384case $ac_cv_host in
4385*-*-*) ;;
4386*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4387esac
4388host=$ac_cv_host
4389ac_save_IFS=$IFS; IFS='-'
4390set x $ac_cv_host
4391shift
4392host_cpu=$1
4393host_vendor=$2
4394shift; shift
4395# Remember, the first character of IFS is used to create $*,
4396# except with old shells:
4397host_os=$*
4398IFS=$ac_save_IFS
4399case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4400
4401
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4403$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4404if ${ac_cv_path_SED+:} false; then :
4405  $as_echo_n "(cached) " >&6
4406else
4407            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4408     for ac_i in 1 2 3 4 5 6 7; do
4409       ac_script="$ac_script$as_nl$ac_script"
4410     done
4411     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4412     { ac_script=; unset ac_script;}
4413     if test -z "$SED"; then
4414  ac_path_SED_found=false
4415  # Loop through the user's path and test for each of PROGNAME-LIST
4416  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH
4418do
4419  IFS=$as_save_IFS
4420  test -z "$as_dir" && as_dir=.
4421    for ac_prog in sed gsed; do
4422    for ac_exec_ext in '' $ac_executable_extensions; do
4423      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4424      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4425# Check for GNU ac_path_SED and select it if it is found.
4426  # Check for GNU $ac_path_SED
4427case `"$ac_path_SED" --version 2>&1` in
4428*GNU*)
4429  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4430*)
4431  ac_count=0
4432  $as_echo_n 0123456789 >"conftest.in"
4433  while :
4434  do
4435    cat "conftest.in" "conftest.in" >"conftest.tmp"
4436    mv "conftest.tmp" "conftest.in"
4437    cp "conftest.in" "conftest.nl"
4438    $as_echo '' >> "conftest.nl"
4439    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4440    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4441    as_fn_arith $ac_count + 1 && ac_count=$as_val
4442    if test $ac_count -gt ${ac_path_SED_max-0}; then
4443      # Best one so far, save it but keep looking for a better one
4444      ac_cv_path_SED="$ac_path_SED"
4445      ac_path_SED_max=$ac_count
4446    fi
4447    # 10*(2^10) chars as input seems more than enough
4448    test $ac_count -gt 10 && break
4449  done
4450  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4451esac
4452
4453      $ac_path_SED_found && break 3
4454    done
4455  done
4456  done
4457IFS=$as_save_IFS
4458  if test -z "$ac_cv_path_SED"; then
4459    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4460  fi
4461else
4462  ac_cv_path_SED=$SED
4463fi
4464
4465fi
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4467$as_echo "$ac_cv_path_SED" >&6; }
4468 SED="$ac_cv_path_SED"
4469  rm -f conftest.sed
4470
4471
4472
4473
4474
4475
4476# Check whether --enable-selective-werror was given.
4477if test "${enable_selective_werror+set}" = set; then :
4478  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4479else
4480  SELECTIVE_WERROR=yes
4481fi
4482
4483
4484# -v is too short to test reliably with XORG_TESTSET_CFLAG
4485if test "x$SUNCC" = "xyes"; then
4486    BASE_CFLAGS="-v"
4487else
4488    BASE_CFLAGS=""
4489fi
4490
4491# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4492
4493
4494
4495
4496
4497xorg_testset_save_CFLAGS="$CFLAGS"
4498
4499if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507/* end confdefs.h.  */
4508int i;
4509_ACEOF
4510if ac_fn_c_try_compile "$LINENO"; then :
4511  xorg_cv_cc_flag_unknown_warning_option=yes
4512else
4513  xorg_cv_cc_flag_unknown_warning_option=no
4514fi
4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516fi
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4519	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4520	CFLAGS="$xorg_testset_save_CFLAGS"
4521fi
4522
4523if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4524	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4525		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4526	fi
4527	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h.  */
4535int i;
4536_ACEOF
4537if ac_fn_c_try_compile "$LINENO"; then :
4538  xorg_cv_cc_flag_unused_command_line_argument=yes
4539else
4540  xorg_cv_cc_flag_unused_command_line_argument=no
4541fi
4542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543fi
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4546	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4547	CFLAGS="$xorg_testset_save_CFLAGS"
4548fi
4549
4550found="no"
4551
4552	if test $found = "no" ; then
4553		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4555		fi
4556
4557		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4559		fi
4560
4561		CFLAGS="$CFLAGS -Wall"
4562
4563		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4564$as_echo_n "checking if $CC supports -Wall... " >&6; }
4565		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall`
4566		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4567  $as_echo_n "(cached) " >&6
4568else
4569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h.  */
4571int i;
4572int
4573main ()
4574{
4575
4576  ;
4577  return 0;
4578}
4579_ACEOF
4580if ac_fn_c_try_link "$LINENO"; then :
4581  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4582else
4583  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4584fi
4585rm -f core conftest.err conftest.$ac_objext \
4586    conftest$ac_exeext conftest.$ac_ext
4587fi
4588
4589
4590		CFLAGS="$xorg_testset_save_CFLAGS"
4591
4592		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4593		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4594$as_echo "$supported" >&6; }
4595		if test "$supported" = "yes" ; then
4596			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4597			found="yes"
4598		fi
4599	fi
4600
4601
4602
4603
4604
4605
4606
4607xorg_testset_save_CFLAGS="$CFLAGS"
4608
4609if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4612$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4613if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4614  $as_echo_n "(cached) " >&6
4615else
4616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h.  */
4618int i;
4619_ACEOF
4620if ac_fn_c_try_compile "$LINENO"; then :
4621  xorg_cv_cc_flag_unknown_warning_option=yes
4622else
4623  xorg_cv_cc_flag_unknown_warning_option=no
4624fi
4625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4628$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4629	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4630	CFLAGS="$xorg_testset_save_CFLAGS"
4631fi
4632
4633if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4634	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4635		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4636	fi
4637	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4639$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4640if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4641  $as_echo_n "(cached) " >&6
4642else
4643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h.  */
4645int i;
4646_ACEOF
4647if ac_fn_c_try_compile "$LINENO"; then :
4648  xorg_cv_cc_flag_unused_command_line_argument=yes
4649else
4650  xorg_cv_cc_flag_unused_command_line_argument=no
4651fi
4652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4655$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4656	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4657	CFLAGS="$xorg_testset_save_CFLAGS"
4658fi
4659
4660found="no"
4661
4662	if test $found = "no" ; then
4663		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4665		fi
4666
4667		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4669		fi
4670
4671		CFLAGS="$CFLAGS -Wpointer-arith"
4672
4673		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4674$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4675		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith`
4676		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4677  $as_echo_n "(cached) " >&6
4678else
4679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680/* end confdefs.h.  */
4681int i;
4682int
4683main ()
4684{
4685
4686  ;
4687  return 0;
4688}
4689_ACEOF
4690if ac_fn_c_try_link "$LINENO"; then :
4691  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4692else
4693  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4694fi
4695rm -f core conftest.err conftest.$ac_objext \
4696    conftest$ac_exeext conftest.$ac_ext
4697fi
4698
4699
4700		CFLAGS="$xorg_testset_save_CFLAGS"
4701
4702		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4703		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4704$as_echo "$supported" >&6; }
4705		if test "$supported" = "yes" ; then
4706			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4707			found="yes"
4708		fi
4709	fi
4710
4711
4712
4713
4714
4715
4716
4717xorg_testset_save_CFLAGS="$CFLAGS"
4718
4719if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4724  $as_echo_n "(cached) " >&6
4725else
4726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h.  */
4728int i;
4729_ACEOF
4730if ac_fn_c_try_compile "$LINENO"; then :
4731  xorg_cv_cc_flag_unknown_warning_option=yes
4732else
4733  xorg_cv_cc_flag_unknown_warning_option=no
4734fi
4735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736fi
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4739	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4740	CFLAGS="$xorg_testset_save_CFLAGS"
4741fi
4742
4743if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4744	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4746	fi
4747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4751  $as_echo_n "(cached) " >&6
4752else
4753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754/* end confdefs.h.  */
4755int i;
4756_ACEOF
4757if ac_fn_c_try_compile "$LINENO"; then :
4758  xorg_cv_cc_flag_unused_command_line_argument=yes
4759else
4760  xorg_cv_cc_flag_unused_command_line_argument=no
4761fi
4762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763fi
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4766	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4767	CFLAGS="$xorg_testset_save_CFLAGS"
4768fi
4769
4770found="no"
4771
4772	if test $found = "no" ; then
4773		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4774			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4775		fi
4776
4777		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4778			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4779		fi
4780
4781		CFLAGS="$CFLAGS -Wstrict-prototypes"
4782
4783		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4784$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4785		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes`
4786		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790/* end confdefs.h.  */
4791int i;
4792int
4793main ()
4794{
4795
4796  ;
4797  return 0;
4798}
4799_ACEOF
4800if ac_fn_c_try_link "$LINENO"; then :
4801  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4802else
4803  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4804fi
4805rm -f core conftest.err conftest.$ac_objext \
4806    conftest$ac_exeext conftest.$ac_ext
4807fi
4808
4809
4810		CFLAGS="$xorg_testset_save_CFLAGS"
4811
4812		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4813		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4814$as_echo "$supported" >&6; }
4815		if test "$supported" = "yes" ; then
4816			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4817			found="yes"
4818		fi
4819	fi
4820
4821
4822
4823
4824
4825
4826
4827xorg_testset_save_CFLAGS="$CFLAGS"
4828
4829if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4834  $as_echo_n "(cached) " >&6
4835else
4836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837/* end confdefs.h.  */
4838int i;
4839_ACEOF
4840if ac_fn_c_try_compile "$LINENO"; then :
4841  xorg_cv_cc_flag_unknown_warning_option=yes
4842else
4843  xorg_cv_cc_flag_unknown_warning_option=no
4844fi
4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846fi
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4849	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4850	CFLAGS="$xorg_testset_save_CFLAGS"
4851fi
4852
4853if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4854	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4855		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4856	fi
4857	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4861  $as_echo_n "(cached) " >&6
4862else
4863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864/* end confdefs.h.  */
4865int i;
4866_ACEOF
4867if ac_fn_c_try_compile "$LINENO"; then :
4868  xorg_cv_cc_flag_unused_command_line_argument=yes
4869else
4870  xorg_cv_cc_flag_unused_command_line_argument=no
4871fi
4872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873fi
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4876	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4877	CFLAGS="$xorg_testset_save_CFLAGS"
4878fi
4879
4880found="no"
4881
4882	if test $found = "no" ; then
4883		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4885		fi
4886
4887		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4889		fi
4890
4891		CFLAGS="$CFLAGS -Wmissing-prototypes"
4892
4893		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4894$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4895		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes`
4896		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h.  */
4901int i;
4902int
4903main ()
4904{
4905
4906  ;
4907  return 0;
4908}
4909_ACEOF
4910if ac_fn_c_try_link "$LINENO"; then :
4911  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4912else
4913  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4914fi
4915rm -f core conftest.err conftest.$ac_objext \
4916    conftest$ac_exeext conftest.$ac_ext
4917fi
4918
4919
4920		CFLAGS="$xorg_testset_save_CFLAGS"
4921
4922		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4923		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4924$as_echo "$supported" >&6; }
4925		if test "$supported" = "yes" ; then
4926			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4927			found="yes"
4928		fi
4929	fi
4930
4931
4932
4933
4934
4935
4936
4937xorg_testset_save_CFLAGS="$CFLAGS"
4938
4939if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4944  $as_echo_n "(cached) " >&6
4945else
4946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947/* end confdefs.h.  */
4948int i;
4949_ACEOF
4950if ac_fn_c_try_compile "$LINENO"; then :
4951  xorg_cv_cc_flag_unknown_warning_option=yes
4952else
4953  xorg_cv_cc_flag_unknown_warning_option=no
4954fi
4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4959	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4960	CFLAGS="$xorg_testset_save_CFLAGS"
4961fi
4962
4963if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4964	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4965		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4966	fi
4967	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974/* end confdefs.h.  */
4975int i;
4976_ACEOF
4977if ac_fn_c_try_compile "$LINENO"; then :
4978  xorg_cv_cc_flag_unused_command_line_argument=yes
4979else
4980  xorg_cv_cc_flag_unused_command_line_argument=no
4981fi
4982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983fi
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4986	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4987	CFLAGS="$xorg_testset_save_CFLAGS"
4988fi
4989
4990found="no"
4991
4992	if test $found = "no" ; then
4993		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4995		fi
4996
4997		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4999		fi
5000
5001		CFLAGS="$CFLAGS -Wmissing-declarations"
5002
5003		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5004$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5005		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations`
5006		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h.  */
5011int i;
5012int
5013main ()
5014{
5015
5016  ;
5017  return 0;
5018}
5019_ACEOF
5020if ac_fn_c_try_link "$LINENO"; then :
5021  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5022else
5023  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5024fi
5025rm -f core conftest.err conftest.$ac_objext \
5026    conftest$ac_exeext conftest.$ac_ext
5027fi
5028
5029
5030		CFLAGS="$xorg_testset_save_CFLAGS"
5031
5032		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5033		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5034$as_echo "$supported" >&6; }
5035		if test "$supported" = "yes" ; then
5036			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5037			found="yes"
5038		fi
5039	fi
5040
5041
5042
5043
5044
5045
5046
5047xorg_testset_save_CFLAGS="$CFLAGS"
5048
5049if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5050	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5051	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5054  $as_echo_n "(cached) " >&6
5055else
5056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h.  */
5058int i;
5059_ACEOF
5060if ac_fn_c_try_compile "$LINENO"; then :
5061  xorg_cv_cc_flag_unknown_warning_option=yes
5062else
5063  xorg_cv_cc_flag_unknown_warning_option=no
5064fi
5065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066fi
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5069	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5070	CFLAGS="$xorg_testset_save_CFLAGS"
5071fi
5072
5073if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5074	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5075		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5076	fi
5077	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084/* end confdefs.h.  */
5085int i;
5086_ACEOF
5087if ac_fn_c_try_compile "$LINENO"; then :
5088  xorg_cv_cc_flag_unused_command_line_argument=yes
5089else
5090  xorg_cv_cc_flag_unused_command_line_argument=no
5091fi
5092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093fi
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5096	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5097	CFLAGS="$xorg_testset_save_CFLAGS"
5098fi
5099
5100found="no"
5101
5102	if test $found = "no" ; then
5103		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5104			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105		fi
5106
5107		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5108			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109		fi
5110
5111		CFLAGS="$CFLAGS -Wnested-externs"
5112
5113		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5114$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5115		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs`
5116		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h.  */
5121int i;
5122int
5123main ()
5124{
5125
5126  ;
5127  return 0;
5128}
5129_ACEOF
5130if ac_fn_c_try_link "$LINENO"; then :
5131  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5132else
5133  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5134fi
5135rm -f core conftest.err conftest.$ac_objext \
5136    conftest$ac_exeext conftest.$ac_ext
5137fi
5138
5139
5140		CFLAGS="$xorg_testset_save_CFLAGS"
5141
5142		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5143		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5144$as_echo "$supported" >&6; }
5145		if test "$supported" = "yes" ; then
5146			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5147			found="yes"
5148		fi
5149	fi
5150
5151
5152
5153
5154
5155
5156
5157xorg_testset_save_CFLAGS="$CFLAGS"
5158
5159if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5164  $as_echo_n "(cached) " >&6
5165else
5166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167/* end confdefs.h.  */
5168int i;
5169_ACEOF
5170if ac_fn_c_try_compile "$LINENO"; then :
5171  xorg_cv_cc_flag_unknown_warning_option=yes
5172else
5173  xorg_cv_cc_flag_unknown_warning_option=no
5174fi
5175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176fi
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5179	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5180	CFLAGS="$xorg_testset_save_CFLAGS"
5181fi
5182
5183if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5184	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5186	fi
5187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194/* end confdefs.h.  */
5195int i;
5196_ACEOF
5197if ac_fn_c_try_compile "$LINENO"; then :
5198  xorg_cv_cc_flag_unused_command_line_argument=yes
5199else
5200  xorg_cv_cc_flag_unused_command_line_argument=no
5201fi
5202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203fi
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5206	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5207	CFLAGS="$xorg_testset_save_CFLAGS"
5208fi
5209
5210found="no"
5211
5212	if test $found = "no" ; then
5213		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5215		fi
5216
5217		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5219		fi
5220
5221		CFLAGS="$CFLAGS -Wbad-function-cast"
5222
5223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5224$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5225		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast`
5226		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5227  $as_echo_n "(cached) " >&6
5228else
5229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230/* end confdefs.h.  */
5231int i;
5232int
5233main ()
5234{
5235
5236  ;
5237  return 0;
5238}
5239_ACEOF
5240if ac_fn_c_try_link "$LINENO"; then :
5241  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5242else
5243  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5244fi
5245rm -f core conftest.err conftest.$ac_objext \
5246    conftest$ac_exeext conftest.$ac_ext
5247fi
5248
5249
5250		CFLAGS="$xorg_testset_save_CFLAGS"
5251
5252		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5254$as_echo "$supported" >&6; }
5255		if test "$supported" = "yes" ; then
5256			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5257			found="yes"
5258		fi
5259	fi
5260
5261
5262
5263
5264
5265
5266
5267xorg_testset_save_CFLAGS="$CFLAGS"
5268
5269if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5270	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5271	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5272$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5273if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h.  */
5278int i;
5279_ACEOF
5280if ac_fn_c_try_compile "$LINENO"; then :
5281  xorg_cv_cc_flag_unknown_warning_option=yes
5282else
5283  xorg_cv_cc_flag_unknown_warning_option=no
5284fi
5285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286fi
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5288$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5289	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5290	CFLAGS="$xorg_testset_save_CFLAGS"
5291fi
5292
5293if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5294	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5296	fi
5297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5300if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5301  $as_echo_n "(cached) " >&6
5302else
5303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304/* end confdefs.h.  */
5305int i;
5306_ACEOF
5307if ac_fn_c_try_compile "$LINENO"; then :
5308  xorg_cv_cc_flag_unused_command_line_argument=yes
5309else
5310  xorg_cv_cc_flag_unused_command_line_argument=no
5311fi
5312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313fi
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5315$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5316	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5317	CFLAGS="$xorg_testset_save_CFLAGS"
5318fi
5319
5320found="no"
5321
5322	if test $found = "no" ; then
5323		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325		fi
5326
5327		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5329		fi
5330
5331		CFLAGS="$CFLAGS -Wformat=2"
5332
5333		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5334$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5335		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2`
5336		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5337  $as_echo_n "(cached) " >&6
5338else
5339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h.  */
5341int i;
5342int
5343main ()
5344{
5345
5346  ;
5347  return 0;
5348}
5349_ACEOF
5350if ac_fn_c_try_link "$LINENO"; then :
5351  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5352else
5353  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5354fi
5355rm -f core conftest.err conftest.$ac_objext \
5356    conftest$ac_exeext conftest.$ac_ext
5357fi
5358
5359
5360		CFLAGS="$xorg_testset_save_CFLAGS"
5361
5362		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5363		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5364$as_echo "$supported" >&6; }
5365		if test "$supported" = "yes" ; then
5366			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5367			found="yes"
5368		fi
5369	fi
5370
5371	if test $found = "no" ; then
5372		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5374		fi
5375
5376		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5378		fi
5379
5380		CFLAGS="$CFLAGS -Wformat"
5381
5382		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5383$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5384		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat`
5385		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5386  $as_echo_n "(cached) " >&6
5387else
5388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389/* end confdefs.h.  */
5390int i;
5391int
5392main ()
5393{
5394
5395  ;
5396  return 0;
5397}
5398_ACEOF
5399if ac_fn_c_try_link "$LINENO"; then :
5400  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5401else
5402  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5403fi
5404rm -f core conftest.err conftest.$ac_objext \
5405    conftest$ac_exeext conftest.$ac_ext
5406fi
5407
5408
5409		CFLAGS="$xorg_testset_save_CFLAGS"
5410
5411		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5412		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5413$as_echo "$supported" >&6; }
5414		if test "$supported" = "yes" ; then
5415			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5416			found="yes"
5417		fi
5418	fi
5419
5420
5421
5422
5423
5424
5425
5426xorg_testset_save_CFLAGS="$CFLAGS"
5427
5428if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5429	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5431$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5432if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5433  $as_echo_n "(cached) " >&6
5434else
5435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h.  */
5437int i;
5438_ACEOF
5439if ac_fn_c_try_compile "$LINENO"; then :
5440  xorg_cv_cc_flag_unknown_warning_option=yes
5441else
5442  xorg_cv_cc_flag_unknown_warning_option=no
5443fi
5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445fi
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5447$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5448	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5449	CFLAGS="$xorg_testset_save_CFLAGS"
5450fi
5451
5452if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5453	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455	fi
5456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5458$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5459if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5460  $as_echo_n "(cached) " >&6
5461else
5462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463/* end confdefs.h.  */
5464int i;
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"; then :
5467  xorg_cv_cc_flag_unused_command_line_argument=yes
5468else
5469  xorg_cv_cc_flag_unused_command_line_argument=no
5470fi
5471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5474$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5475	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5476	CFLAGS="$xorg_testset_save_CFLAGS"
5477fi
5478
5479found="no"
5480
5481	if test $found = "no" ; then
5482		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5483			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5484		fi
5485
5486		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5487			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5488		fi
5489
5490		CFLAGS="$CFLAGS -Wold-style-definition"
5491
5492		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5493$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5494		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition`
5495		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5496  $as_echo_n "(cached) " >&6
5497else
5498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h.  */
5500int i;
5501int
5502main ()
5503{
5504
5505  ;
5506  return 0;
5507}
5508_ACEOF
5509if ac_fn_c_try_link "$LINENO"; then :
5510  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5511else
5512  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5513fi
5514rm -f core conftest.err conftest.$ac_objext \
5515    conftest$ac_exeext conftest.$ac_ext
5516fi
5517
5518
5519		CFLAGS="$xorg_testset_save_CFLAGS"
5520
5521		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5522		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5523$as_echo "$supported" >&6; }
5524		if test "$supported" = "yes" ; then
5525			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5526			found="yes"
5527		fi
5528	fi
5529
5530
5531
5532
5533
5534
5535
5536xorg_testset_save_CFLAGS="$CFLAGS"
5537
5538if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5543  $as_echo_n "(cached) " >&6
5544else
5545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546/* end confdefs.h.  */
5547int i;
5548_ACEOF
5549if ac_fn_c_try_compile "$LINENO"; then :
5550  xorg_cv_cc_flag_unknown_warning_option=yes
5551else
5552  xorg_cv_cc_flag_unknown_warning_option=no
5553fi
5554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555fi
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5558	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5559	CFLAGS="$xorg_testset_save_CFLAGS"
5560fi
5561
5562if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5563	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5565	fi
5566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5570  $as_echo_n "(cached) " >&6
5571else
5572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h.  */
5574int i;
5575_ACEOF
5576if ac_fn_c_try_compile "$LINENO"; then :
5577  xorg_cv_cc_flag_unused_command_line_argument=yes
5578else
5579  xorg_cv_cc_flag_unused_command_line_argument=no
5580fi
5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5585	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5586	CFLAGS="$xorg_testset_save_CFLAGS"
5587fi
5588
5589found="no"
5590
5591	if test $found = "no" ; then
5592		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5594		fi
5595
5596		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5598		fi
5599
5600		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5601
5602		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5603$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5604		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement`
5605		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5606  $as_echo_n "(cached) " >&6
5607else
5608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609/* end confdefs.h.  */
5610int i;
5611int
5612main ()
5613{
5614
5615  ;
5616  return 0;
5617}
5618_ACEOF
5619if ac_fn_c_try_link "$LINENO"; then :
5620  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5621else
5622  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5623fi
5624rm -f core conftest.err conftest.$ac_objext \
5625    conftest$ac_exeext conftest.$ac_ext
5626fi
5627
5628
5629		CFLAGS="$xorg_testset_save_CFLAGS"
5630
5631		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5632		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5633$as_echo "$supported" >&6; }
5634		if test "$supported" = "yes" ; then
5635			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5636			found="yes"
5637		fi
5638	fi
5639
5640
5641
5642# This chunk adds additional warnings that could catch undesired effects.
5643
5644
5645
5646
5647
5648xorg_testset_save_CFLAGS="$CFLAGS"
5649
5650if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5655  $as_echo_n "(cached) " >&6
5656else
5657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h.  */
5659int i;
5660_ACEOF
5661if ac_fn_c_try_compile "$LINENO"; then :
5662  xorg_cv_cc_flag_unknown_warning_option=yes
5663else
5664  xorg_cv_cc_flag_unknown_warning_option=no
5665fi
5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667fi
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5670	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5671	CFLAGS="$xorg_testset_save_CFLAGS"
5672fi
5673
5674if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5675	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677	fi
5678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5682  $as_echo_n "(cached) " >&6
5683else
5684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685/* end confdefs.h.  */
5686int i;
5687_ACEOF
5688if ac_fn_c_try_compile "$LINENO"; then :
5689  xorg_cv_cc_flag_unused_command_line_argument=yes
5690else
5691  xorg_cv_cc_flag_unused_command_line_argument=no
5692fi
5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694fi
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5697	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5698	CFLAGS="$xorg_testset_save_CFLAGS"
5699fi
5700
5701found="no"
5702
5703	if test $found = "no" ; then
5704		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5706		fi
5707
5708		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5710		fi
5711
5712		CFLAGS="$CFLAGS -Wunused"
5713
5714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5715$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5716		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused`
5717		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5718  $as_echo_n "(cached) " >&6
5719else
5720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h.  */
5722int i;
5723int
5724main ()
5725{
5726
5727  ;
5728  return 0;
5729}
5730_ACEOF
5731if ac_fn_c_try_link "$LINENO"; then :
5732  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5733else
5734  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5735fi
5736rm -f core conftest.err conftest.$ac_objext \
5737    conftest$ac_exeext conftest.$ac_ext
5738fi
5739
5740
5741		CFLAGS="$xorg_testset_save_CFLAGS"
5742
5743		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5744		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5745$as_echo "$supported" >&6; }
5746		if test "$supported" = "yes" ; then
5747			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5748			found="yes"
5749		fi
5750	fi
5751
5752
5753
5754
5755
5756
5757
5758xorg_testset_save_CFLAGS="$CFLAGS"
5759
5760if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5763$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5764if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5765  $as_echo_n "(cached) " >&6
5766else
5767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768/* end confdefs.h.  */
5769int i;
5770_ACEOF
5771if ac_fn_c_try_compile "$LINENO"; then :
5772  xorg_cv_cc_flag_unknown_warning_option=yes
5773else
5774  xorg_cv_cc_flag_unknown_warning_option=no
5775fi
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777fi
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5779$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5780	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5781	CFLAGS="$xorg_testset_save_CFLAGS"
5782fi
5783
5784if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5785	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787	fi
5788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5790$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5791if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5792  $as_echo_n "(cached) " >&6
5793else
5794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h.  */
5796int i;
5797_ACEOF
5798if ac_fn_c_try_compile "$LINENO"; then :
5799  xorg_cv_cc_flag_unused_command_line_argument=yes
5800else
5801  xorg_cv_cc_flag_unused_command_line_argument=no
5802fi
5803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804fi
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5806$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5807	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5808	CFLAGS="$xorg_testset_save_CFLAGS"
5809fi
5810
5811found="no"
5812
5813	if test $found = "no" ; then
5814		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5816		fi
5817
5818		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5820		fi
5821
5822		CFLAGS="$CFLAGS -Wuninitialized"
5823
5824		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5825$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5826		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized`
5827		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5828  $as_echo_n "(cached) " >&6
5829else
5830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h.  */
5832int i;
5833int
5834main ()
5835{
5836
5837  ;
5838  return 0;
5839}
5840_ACEOF
5841if ac_fn_c_try_link "$LINENO"; then :
5842  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5843else
5844  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5845fi
5846rm -f core conftest.err conftest.$ac_objext \
5847    conftest$ac_exeext conftest.$ac_ext
5848fi
5849
5850
5851		CFLAGS="$xorg_testset_save_CFLAGS"
5852
5853		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5854		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5855$as_echo "$supported" >&6; }
5856		if test "$supported" = "yes" ; then
5857			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5858			found="yes"
5859		fi
5860	fi
5861
5862
5863
5864
5865
5866
5867
5868xorg_testset_save_CFLAGS="$CFLAGS"
5869
5870if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5875  $as_echo_n "(cached) " >&6
5876else
5877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h.  */
5879int i;
5880_ACEOF
5881if ac_fn_c_try_compile "$LINENO"; then :
5882  xorg_cv_cc_flag_unknown_warning_option=yes
5883else
5884  xorg_cv_cc_flag_unknown_warning_option=no
5885fi
5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887fi
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5890	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5891	CFLAGS="$xorg_testset_save_CFLAGS"
5892fi
5893
5894if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5895	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5896		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897	fi
5898	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5901if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h.  */
5906int i;
5907_ACEOF
5908if ac_fn_c_try_compile "$LINENO"; then :
5909  xorg_cv_cc_flag_unused_command_line_argument=yes
5910else
5911  xorg_cv_cc_flag_unused_command_line_argument=no
5912fi
5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5917	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5918	CFLAGS="$xorg_testset_save_CFLAGS"
5919fi
5920
5921found="no"
5922
5923	if test $found = "no" ; then
5924		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5926		fi
5927
5928		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5930		fi
5931
5932		CFLAGS="$CFLAGS -Wshadow"
5933
5934		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5935$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5936		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow`
5937		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5938  $as_echo_n "(cached) " >&6
5939else
5940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h.  */
5942int i;
5943int
5944main ()
5945{
5946
5947  ;
5948  return 0;
5949}
5950_ACEOF
5951if ac_fn_c_try_link "$LINENO"; then :
5952  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5953else
5954  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5955fi
5956rm -f core conftest.err conftest.$ac_objext \
5957    conftest$ac_exeext conftest.$ac_ext
5958fi
5959
5960
5961		CFLAGS="$xorg_testset_save_CFLAGS"
5962
5963		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5964		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5965$as_echo "$supported" >&6; }
5966		if test "$supported" = "yes" ; then
5967			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5968			found="yes"
5969		fi
5970	fi
5971
5972
5973
5974
5975
5976
5977
5978xorg_testset_save_CFLAGS="$CFLAGS"
5979
5980if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988/* end confdefs.h.  */
5989int i;
5990_ACEOF
5991if ac_fn_c_try_compile "$LINENO"; then :
5992  xorg_cv_cc_flag_unknown_warning_option=yes
5993else
5994  xorg_cv_cc_flag_unknown_warning_option=no
5995fi
5996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6000	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6001	CFLAGS="$xorg_testset_save_CFLAGS"
6002fi
6003
6004if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6005	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6006		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6007	fi
6008	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6012  $as_echo_n "(cached) " >&6
6013else
6014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015/* end confdefs.h.  */
6016int i;
6017_ACEOF
6018if ac_fn_c_try_compile "$LINENO"; then :
6019  xorg_cv_cc_flag_unused_command_line_argument=yes
6020else
6021  xorg_cv_cc_flag_unused_command_line_argument=no
6022fi
6023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024fi
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6027	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6028	CFLAGS="$xorg_testset_save_CFLAGS"
6029fi
6030
6031found="no"
6032
6033	if test $found = "no" ; then
6034		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6036		fi
6037
6038		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6040		fi
6041
6042		CFLAGS="$CFLAGS -Wcast-qual"
6043
6044		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6045$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6046		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual`
6047		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6048  $as_echo_n "(cached) " >&6
6049else
6050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h.  */
6052int i;
6053int
6054main ()
6055{
6056
6057  ;
6058  return 0;
6059}
6060_ACEOF
6061if ac_fn_c_try_link "$LINENO"; then :
6062  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6063else
6064  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6065fi
6066rm -f core conftest.err conftest.$ac_objext \
6067    conftest$ac_exeext conftest.$ac_ext
6068fi
6069
6070
6071		CFLAGS="$xorg_testset_save_CFLAGS"
6072
6073		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6074		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6075$as_echo "$supported" >&6; }
6076		if test "$supported" = "yes" ; then
6077			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6078			found="yes"
6079		fi
6080	fi
6081
6082
6083
6084
6085
6086
6087
6088xorg_testset_save_CFLAGS="$CFLAGS"
6089
6090if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6091	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6092	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6095  $as_echo_n "(cached) " >&6
6096else
6097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098/* end confdefs.h.  */
6099int i;
6100_ACEOF
6101if ac_fn_c_try_compile "$LINENO"; then :
6102  xorg_cv_cc_flag_unknown_warning_option=yes
6103else
6104  xorg_cv_cc_flag_unknown_warning_option=no
6105fi
6106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107fi
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6110	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6111	CFLAGS="$xorg_testset_save_CFLAGS"
6112fi
6113
6114if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6115	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117	fi
6118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6122  $as_echo_n "(cached) " >&6
6123else
6124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h.  */
6126int i;
6127_ACEOF
6128if ac_fn_c_try_compile "$LINENO"; then :
6129  xorg_cv_cc_flag_unused_command_line_argument=yes
6130else
6131  xorg_cv_cc_flag_unused_command_line_argument=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134fi
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6137	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6138	CFLAGS="$xorg_testset_save_CFLAGS"
6139fi
6140
6141found="no"
6142
6143	if test $found = "no" ; then
6144		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6146		fi
6147
6148		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6150		fi
6151
6152		CFLAGS="$CFLAGS -Wmissing-noreturn"
6153
6154		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6155$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6156		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn`
6157		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6158  $as_echo_n "(cached) " >&6
6159else
6160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161/* end confdefs.h.  */
6162int i;
6163int
6164main ()
6165{
6166
6167  ;
6168  return 0;
6169}
6170_ACEOF
6171if ac_fn_c_try_link "$LINENO"; then :
6172  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6173else
6174  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6175fi
6176rm -f core conftest.err conftest.$ac_objext \
6177    conftest$ac_exeext conftest.$ac_ext
6178fi
6179
6180
6181		CFLAGS="$xorg_testset_save_CFLAGS"
6182
6183		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6184		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6185$as_echo "$supported" >&6; }
6186		if test "$supported" = "yes" ; then
6187			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6188			found="yes"
6189		fi
6190	fi
6191
6192
6193
6194
6195
6196
6197
6198xorg_testset_save_CFLAGS="$CFLAGS"
6199
6200if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6205  $as_echo_n "(cached) " >&6
6206else
6207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208/* end confdefs.h.  */
6209int i;
6210_ACEOF
6211if ac_fn_c_try_compile "$LINENO"; then :
6212  xorg_cv_cc_flag_unknown_warning_option=yes
6213else
6214  xorg_cv_cc_flag_unknown_warning_option=no
6215fi
6216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217fi
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6220	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6221	CFLAGS="$xorg_testset_save_CFLAGS"
6222fi
6223
6224if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6225	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227	fi
6228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6232  $as_echo_n "(cached) " >&6
6233else
6234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235/* end confdefs.h.  */
6236int i;
6237_ACEOF
6238if ac_fn_c_try_compile "$LINENO"; then :
6239  xorg_cv_cc_flag_unused_command_line_argument=yes
6240else
6241  xorg_cv_cc_flag_unused_command_line_argument=no
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244fi
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6247	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6248	CFLAGS="$xorg_testset_save_CFLAGS"
6249fi
6250
6251found="no"
6252
6253	if test $found = "no" ; then
6254		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256		fi
6257
6258		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6260		fi
6261
6262		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6263
6264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6265$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6266		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute`
6267		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6268  $as_echo_n "(cached) " >&6
6269else
6270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271/* end confdefs.h.  */
6272int i;
6273int
6274main ()
6275{
6276
6277  ;
6278  return 0;
6279}
6280_ACEOF
6281if ac_fn_c_try_link "$LINENO"; then :
6282  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6283else
6284  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6285fi
6286rm -f core conftest.err conftest.$ac_objext \
6287    conftest$ac_exeext conftest.$ac_ext
6288fi
6289
6290
6291		CFLAGS="$xorg_testset_save_CFLAGS"
6292
6293		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6295$as_echo "$supported" >&6; }
6296		if test "$supported" = "yes" ; then
6297			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6298			found="yes"
6299		fi
6300	fi
6301
6302
6303
6304
6305
6306
6307
6308xorg_testset_save_CFLAGS="$CFLAGS"
6309
6310if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6311	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6313$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6314if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6315  $as_echo_n "(cached) " >&6
6316else
6317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318/* end confdefs.h.  */
6319int i;
6320_ACEOF
6321if ac_fn_c_try_compile "$LINENO"; then :
6322  xorg_cv_cc_flag_unknown_warning_option=yes
6323else
6324  xorg_cv_cc_flag_unknown_warning_option=no
6325fi
6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327fi
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6329$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6330	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6331	CFLAGS="$xorg_testset_save_CFLAGS"
6332fi
6333
6334if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6335	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6336		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6337	fi
6338	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6340$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6341if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h.  */
6346int i;
6347_ACEOF
6348if ac_fn_c_try_compile "$LINENO"; then :
6349  xorg_cv_cc_flag_unused_command_line_argument=yes
6350else
6351  xorg_cv_cc_flag_unused_command_line_argument=no
6352fi
6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354fi
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6356$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6357	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6358	CFLAGS="$xorg_testset_save_CFLAGS"
6359fi
6360
6361found="no"
6362
6363	if test $found = "no" ; then
6364		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6366		fi
6367
6368		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6370		fi
6371
6372		CFLAGS="$CFLAGS -Wredundant-decls"
6373
6374		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6375$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6376		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls`
6377		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6378  $as_echo_n "(cached) " >&6
6379else
6380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381/* end confdefs.h.  */
6382int i;
6383int
6384main ()
6385{
6386
6387  ;
6388  return 0;
6389}
6390_ACEOF
6391if ac_fn_c_try_link "$LINENO"; then :
6392  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6393else
6394  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6395fi
6396rm -f core conftest.err conftest.$ac_objext \
6397    conftest$ac_exeext conftest.$ac_ext
6398fi
6399
6400
6401		CFLAGS="$xorg_testset_save_CFLAGS"
6402
6403		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6404		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6405$as_echo "$supported" >&6; }
6406		if test "$supported" = "yes" ; then
6407			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6408			found="yes"
6409		fi
6410	fi
6411
6412
6413
6414# These are currently disabled because they are noisy.  They will be enabled
6415# in the future once the codebase is sufficiently modernized to silence
6416# them.  For now, I don't want them to drown out the other warnings.
6417# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6418# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6419# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6420
6421# Turn some warnings into errors, so we don't accidently get successful builds
6422# when there are problems that should be fixed.
6423
6424if test "x$SELECTIVE_WERROR" = "xyes" ; then
6425
6426
6427
6428
6429
6430xorg_testset_save_CFLAGS="$CFLAGS"
6431
6432if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6437  $as_echo_n "(cached) " >&6
6438else
6439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h.  */
6441int i;
6442_ACEOF
6443if ac_fn_c_try_compile "$LINENO"; then :
6444  xorg_cv_cc_flag_unknown_warning_option=yes
6445else
6446  xorg_cv_cc_flag_unknown_warning_option=no
6447fi
6448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449fi
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6452	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6453	CFLAGS="$xorg_testset_save_CFLAGS"
6454fi
6455
6456if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6457	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459	fi
6460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6464  $as_echo_n "(cached) " >&6
6465else
6466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467/* end confdefs.h.  */
6468int i;
6469_ACEOF
6470if ac_fn_c_try_compile "$LINENO"; then :
6471  xorg_cv_cc_flag_unused_command_line_argument=yes
6472else
6473  xorg_cv_cc_flag_unused_command_line_argument=no
6474fi
6475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476fi
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6479	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6480	CFLAGS="$xorg_testset_save_CFLAGS"
6481fi
6482
6483found="no"
6484
6485	if test $found = "no" ; then
6486		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6488		fi
6489
6490		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6492		fi
6493
6494		CFLAGS="$CFLAGS -Werror=implicit"
6495
6496		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6497$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6498		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit`
6499		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6500  $as_echo_n "(cached) " >&6
6501else
6502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503/* end confdefs.h.  */
6504int i;
6505int
6506main ()
6507{
6508
6509  ;
6510  return 0;
6511}
6512_ACEOF
6513if ac_fn_c_try_link "$LINENO"; then :
6514  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6515else
6516  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6517fi
6518rm -f core conftest.err conftest.$ac_objext \
6519    conftest$ac_exeext conftest.$ac_ext
6520fi
6521
6522
6523		CFLAGS="$xorg_testset_save_CFLAGS"
6524
6525		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6526		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6527$as_echo "$supported" >&6; }
6528		if test "$supported" = "yes" ; then
6529			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6530			found="yes"
6531		fi
6532	fi
6533
6534	if test $found = "no" ; then
6535		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537		fi
6538
6539		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6541		fi
6542
6543		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6544
6545		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6546$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6547		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6548		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552/* end confdefs.h.  */
6553int i;
6554int
6555main ()
6556{
6557
6558  ;
6559  return 0;
6560}
6561_ACEOF
6562if ac_fn_c_try_link "$LINENO"; then :
6563  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6564else
6565  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6566fi
6567rm -f core conftest.err conftest.$ac_objext \
6568    conftest$ac_exeext conftest.$ac_ext
6569fi
6570
6571
6572		CFLAGS="$xorg_testset_save_CFLAGS"
6573
6574		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6575		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6576$as_echo "$supported" >&6; }
6577		if test "$supported" = "yes" ; then
6578			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6579			found="yes"
6580		fi
6581	fi
6582
6583
6584
6585
6586
6587
6588
6589xorg_testset_save_CFLAGS="$CFLAGS"
6590
6591if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6592	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6593	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6594$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6595if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6596  $as_echo_n "(cached) " >&6
6597else
6598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h.  */
6600int i;
6601_ACEOF
6602if ac_fn_c_try_compile "$LINENO"; then :
6603  xorg_cv_cc_flag_unknown_warning_option=yes
6604else
6605  xorg_cv_cc_flag_unknown_warning_option=no
6606fi
6607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608fi
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6610$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6611	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6612	CFLAGS="$xorg_testset_save_CFLAGS"
6613fi
6614
6615if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6616	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6617		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6618	fi
6619	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6621$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6622if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6623  $as_echo_n "(cached) " >&6
6624else
6625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626/* end confdefs.h.  */
6627int i;
6628_ACEOF
6629if ac_fn_c_try_compile "$LINENO"; then :
6630  xorg_cv_cc_flag_unused_command_line_argument=yes
6631else
6632  xorg_cv_cc_flag_unused_command_line_argument=no
6633fi
6634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635fi
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6637$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6638	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6639	CFLAGS="$xorg_testset_save_CFLAGS"
6640fi
6641
6642found="no"
6643
6644	if test $found = "no" ; then
6645		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6646			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6647		fi
6648
6649		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6650			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6651		fi
6652
6653		CFLAGS="$CFLAGS -Werror=nonnull"
6654
6655		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6656$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6657		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull`
6658		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6659  $as_echo_n "(cached) " >&6
6660else
6661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662/* end confdefs.h.  */
6663int i;
6664int
6665main ()
6666{
6667
6668  ;
6669  return 0;
6670}
6671_ACEOF
6672if ac_fn_c_try_link "$LINENO"; then :
6673  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6674else
6675  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6676fi
6677rm -f core conftest.err conftest.$ac_objext \
6678    conftest$ac_exeext conftest.$ac_ext
6679fi
6680
6681
6682		CFLAGS="$xorg_testset_save_CFLAGS"
6683
6684		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6685		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6686$as_echo "$supported" >&6; }
6687		if test "$supported" = "yes" ; then
6688			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6689			found="yes"
6690		fi
6691	fi
6692
6693
6694
6695
6696
6697
6698
6699xorg_testset_save_CFLAGS="$CFLAGS"
6700
6701if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709/* end confdefs.h.  */
6710int i;
6711_ACEOF
6712if ac_fn_c_try_compile "$LINENO"; then :
6713  xorg_cv_cc_flag_unknown_warning_option=yes
6714else
6715  xorg_cv_cc_flag_unknown_warning_option=no
6716fi
6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718fi
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6721	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6722	CFLAGS="$xorg_testset_save_CFLAGS"
6723fi
6724
6725if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6726	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6728	fi
6729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736/* end confdefs.h.  */
6737int i;
6738_ACEOF
6739if ac_fn_c_try_compile "$LINENO"; then :
6740  xorg_cv_cc_flag_unused_command_line_argument=yes
6741else
6742  xorg_cv_cc_flag_unused_command_line_argument=no
6743fi
6744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745fi
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6748	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6749	CFLAGS="$xorg_testset_save_CFLAGS"
6750fi
6751
6752found="no"
6753
6754	if test $found = "no" ; then
6755		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6757		fi
6758
6759		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6761		fi
6762
6763		CFLAGS="$CFLAGS -Werror=init-self"
6764
6765		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6766$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6767		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self`
6768		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6769  $as_echo_n "(cached) " >&6
6770else
6771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772/* end confdefs.h.  */
6773int i;
6774int
6775main ()
6776{
6777
6778  ;
6779  return 0;
6780}
6781_ACEOF
6782if ac_fn_c_try_link "$LINENO"; then :
6783  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6784else
6785  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6786fi
6787rm -f core conftest.err conftest.$ac_objext \
6788    conftest$ac_exeext conftest.$ac_ext
6789fi
6790
6791
6792		CFLAGS="$xorg_testset_save_CFLAGS"
6793
6794		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6796$as_echo "$supported" >&6; }
6797		if test "$supported" = "yes" ; then
6798			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6799			found="yes"
6800		fi
6801	fi
6802
6803
6804
6805
6806
6807
6808
6809xorg_testset_save_CFLAGS="$CFLAGS"
6810
6811if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6814$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6815if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6816  $as_echo_n "(cached) " >&6
6817else
6818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819/* end confdefs.h.  */
6820int i;
6821_ACEOF
6822if ac_fn_c_try_compile "$LINENO"; then :
6823  xorg_cv_cc_flag_unknown_warning_option=yes
6824else
6825  xorg_cv_cc_flag_unknown_warning_option=no
6826fi
6827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828fi
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6830$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6831	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6832	CFLAGS="$xorg_testset_save_CFLAGS"
6833fi
6834
6835if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6836	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6837		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6838	fi
6839	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6841$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6842if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6843  $as_echo_n "(cached) " >&6
6844else
6845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846/* end confdefs.h.  */
6847int i;
6848_ACEOF
6849if ac_fn_c_try_compile "$LINENO"; then :
6850  xorg_cv_cc_flag_unused_command_line_argument=yes
6851else
6852  xorg_cv_cc_flag_unused_command_line_argument=no
6853fi
6854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855fi
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6857$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6858	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6859	CFLAGS="$xorg_testset_save_CFLAGS"
6860fi
6861
6862found="no"
6863
6864	if test $found = "no" ; then
6865		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6866			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6867		fi
6868
6869		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6870			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6871		fi
6872
6873		CFLAGS="$CFLAGS -Werror=main"
6874
6875		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6876$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6877		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main`
6878		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6879  $as_echo_n "(cached) " >&6
6880else
6881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882/* end confdefs.h.  */
6883int i;
6884int
6885main ()
6886{
6887
6888  ;
6889  return 0;
6890}
6891_ACEOF
6892if ac_fn_c_try_link "$LINENO"; then :
6893  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6894else
6895  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6896fi
6897rm -f core conftest.err conftest.$ac_objext \
6898    conftest$ac_exeext conftest.$ac_ext
6899fi
6900
6901
6902		CFLAGS="$xorg_testset_save_CFLAGS"
6903
6904		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6905		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6906$as_echo "$supported" >&6; }
6907		if test "$supported" = "yes" ; then
6908			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6909			found="yes"
6910		fi
6911	fi
6912
6913
6914
6915
6916
6917
6918
6919xorg_testset_save_CFLAGS="$CFLAGS"
6920
6921if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929/* end confdefs.h.  */
6930int i;
6931_ACEOF
6932if ac_fn_c_try_compile "$LINENO"; then :
6933  xorg_cv_cc_flag_unknown_warning_option=yes
6934else
6935  xorg_cv_cc_flag_unknown_warning_option=no
6936fi
6937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938fi
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6941	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6942	CFLAGS="$xorg_testset_save_CFLAGS"
6943fi
6944
6945if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6946	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6948	fi
6949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6953  $as_echo_n "(cached) " >&6
6954else
6955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956/* end confdefs.h.  */
6957int i;
6958_ACEOF
6959if ac_fn_c_try_compile "$LINENO"; then :
6960  xorg_cv_cc_flag_unused_command_line_argument=yes
6961else
6962  xorg_cv_cc_flag_unused_command_line_argument=no
6963fi
6964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965fi
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6968	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6969	CFLAGS="$xorg_testset_save_CFLAGS"
6970fi
6971
6972found="no"
6973
6974	if test $found = "no" ; then
6975		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6977		fi
6978
6979		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6981		fi
6982
6983		CFLAGS="$CFLAGS -Werror=missing-braces"
6984
6985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6986$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6987		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces`
6988		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6989  $as_echo_n "(cached) " >&6
6990else
6991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992/* end confdefs.h.  */
6993int i;
6994int
6995main ()
6996{
6997
6998  ;
6999  return 0;
7000}
7001_ACEOF
7002if ac_fn_c_try_link "$LINENO"; then :
7003  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7004else
7005  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7006fi
7007rm -f core conftest.err conftest.$ac_objext \
7008    conftest$ac_exeext conftest.$ac_ext
7009fi
7010
7011
7012		CFLAGS="$xorg_testset_save_CFLAGS"
7013
7014		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7016$as_echo "$supported" >&6; }
7017		if test "$supported" = "yes" ; then
7018			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7019			found="yes"
7020		fi
7021	fi
7022
7023
7024
7025
7026
7027
7028
7029xorg_testset_save_CFLAGS="$CFLAGS"
7030
7031if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7036  $as_echo_n "(cached) " >&6
7037else
7038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039/* end confdefs.h.  */
7040int i;
7041_ACEOF
7042if ac_fn_c_try_compile "$LINENO"; then :
7043  xorg_cv_cc_flag_unknown_warning_option=yes
7044else
7045  xorg_cv_cc_flag_unknown_warning_option=no
7046fi
7047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048fi
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7051	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7052	CFLAGS="$xorg_testset_save_CFLAGS"
7053fi
7054
7055if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7056	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058	fi
7059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066/* end confdefs.h.  */
7067int i;
7068_ACEOF
7069if ac_fn_c_try_compile "$LINENO"; then :
7070  xorg_cv_cc_flag_unused_command_line_argument=yes
7071else
7072  xorg_cv_cc_flag_unused_command_line_argument=no
7073fi
7074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075fi
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7078	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7079	CFLAGS="$xorg_testset_save_CFLAGS"
7080fi
7081
7082found="no"
7083
7084	if test $found = "no" ; then
7085		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087		fi
7088
7089		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7091		fi
7092
7093		CFLAGS="$CFLAGS -Werror=sequence-point"
7094
7095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7096$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7097		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point`
7098		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7099  $as_echo_n "(cached) " >&6
7100else
7101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h.  */
7103int i;
7104int
7105main ()
7106{
7107
7108  ;
7109  return 0;
7110}
7111_ACEOF
7112if ac_fn_c_try_link "$LINENO"; then :
7113  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7114else
7115  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7116fi
7117rm -f core conftest.err conftest.$ac_objext \
7118    conftest$ac_exeext conftest.$ac_ext
7119fi
7120
7121
7122		CFLAGS="$xorg_testset_save_CFLAGS"
7123
7124		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7126$as_echo "$supported" >&6; }
7127		if test "$supported" = "yes" ; then
7128			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7129			found="yes"
7130		fi
7131	fi
7132
7133
7134
7135
7136
7137
7138
7139xorg_testset_save_CFLAGS="$CFLAGS"
7140
7141if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7142	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7146  $as_echo_n "(cached) " >&6
7147else
7148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h.  */
7150int i;
7151_ACEOF
7152if ac_fn_c_try_compile "$LINENO"; then :
7153  xorg_cv_cc_flag_unknown_warning_option=yes
7154else
7155  xorg_cv_cc_flag_unknown_warning_option=no
7156fi
7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158fi
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7161	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7162	CFLAGS="$xorg_testset_save_CFLAGS"
7163fi
7164
7165if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7166	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7167		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168	fi
7169	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7170	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7173  $as_echo_n "(cached) " >&6
7174else
7175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176/* end confdefs.h.  */
7177int i;
7178_ACEOF
7179if ac_fn_c_try_compile "$LINENO"; then :
7180  xorg_cv_cc_flag_unused_command_line_argument=yes
7181else
7182  xorg_cv_cc_flag_unused_command_line_argument=no
7183fi
7184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185fi
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7188	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7189	CFLAGS="$xorg_testset_save_CFLAGS"
7190fi
7191
7192found="no"
7193
7194	if test $found = "no" ; then
7195		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7197		fi
7198
7199		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7201		fi
7202
7203		CFLAGS="$CFLAGS -Werror=return-type"
7204
7205		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7206$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7207		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type`
7208		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7209  $as_echo_n "(cached) " >&6
7210else
7211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212/* end confdefs.h.  */
7213int i;
7214int
7215main ()
7216{
7217
7218  ;
7219  return 0;
7220}
7221_ACEOF
7222if ac_fn_c_try_link "$LINENO"; then :
7223  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7224else
7225  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7226fi
7227rm -f core conftest.err conftest.$ac_objext \
7228    conftest$ac_exeext conftest.$ac_ext
7229fi
7230
7231
7232		CFLAGS="$xorg_testset_save_CFLAGS"
7233
7234		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7235		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7236$as_echo "$supported" >&6; }
7237		if test "$supported" = "yes" ; then
7238			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7239			found="yes"
7240		fi
7241	fi
7242
7243	if test $found = "no" ; then
7244		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7245			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7246		fi
7247
7248		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7249			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7250		fi
7251
7252		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7253
7254		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7255$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7256		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7257		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261/* end confdefs.h.  */
7262int i;
7263int
7264main ()
7265{
7266
7267  ;
7268  return 0;
7269}
7270_ACEOF
7271if ac_fn_c_try_link "$LINENO"; then :
7272  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7273else
7274  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7275fi
7276rm -f core conftest.err conftest.$ac_objext \
7277    conftest$ac_exeext conftest.$ac_ext
7278fi
7279
7280
7281		CFLAGS="$xorg_testset_save_CFLAGS"
7282
7283		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7284		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7285$as_echo "$supported" >&6; }
7286		if test "$supported" = "yes" ; then
7287			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7288			found="yes"
7289		fi
7290	fi
7291
7292
7293
7294
7295
7296
7297
7298xorg_testset_save_CFLAGS="$CFLAGS"
7299
7300if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309int i;
7310_ACEOF
7311if ac_fn_c_try_compile "$LINENO"; then :
7312  xorg_cv_cc_flag_unknown_warning_option=yes
7313else
7314  xorg_cv_cc_flag_unknown_warning_option=no
7315fi
7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317fi
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7320	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7321	CFLAGS="$xorg_testset_save_CFLAGS"
7322fi
7323
7324if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7325	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327	fi
7328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7332  $as_echo_n "(cached) " >&6
7333else
7334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335/* end confdefs.h.  */
7336int i;
7337_ACEOF
7338if ac_fn_c_try_compile "$LINENO"; then :
7339  xorg_cv_cc_flag_unused_command_line_argument=yes
7340else
7341  xorg_cv_cc_flag_unused_command_line_argument=no
7342fi
7343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344fi
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7347	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7348	CFLAGS="$xorg_testset_save_CFLAGS"
7349fi
7350
7351found="no"
7352
7353	if test $found = "no" ; then
7354		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7356		fi
7357
7358		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7360		fi
7361
7362		CFLAGS="$CFLAGS -Werror=trigraphs"
7363
7364		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7365$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7366		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs`
7367		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7368  $as_echo_n "(cached) " >&6
7369else
7370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h.  */
7372int i;
7373int
7374main ()
7375{
7376
7377  ;
7378  return 0;
7379}
7380_ACEOF
7381if ac_fn_c_try_link "$LINENO"; then :
7382  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7383else
7384  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7385fi
7386rm -f core conftest.err conftest.$ac_objext \
7387    conftest$ac_exeext conftest.$ac_ext
7388fi
7389
7390
7391		CFLAGS="$xorg_testset_save_CFLAGS"
7392
7393		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7394		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7395$as_echo "$supported" >&6; }
7396		if test "$supported" = "yes" ; then
7397			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7398			found="yes"
7399		fi
7400	fi
7401
7402
7403
7404
7405
7406
7407
7408xorg_testset_save_CFLAGS="$CFLAGS"
7409
7410if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7411	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7413$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7414if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7415  $as_echo_n "(cached) " >&6
7416else
7417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418/* end confdefs.h.  */
7419int i;
7420_ACEOF
7421if ac_fn_c_try_compile "$LINENO"; then :
7422  xorg_cv_cc_flag_unknown_warning_option=yes
7423else
7424  xorg_cv_cc_flag_unknown_warning_option=no
7425fi
7426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427fi
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7429$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7430	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7431	CFLAGS="$xorg_testset_save_CFLAGS"
7432fi
7433
7434if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7435	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7436		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7437	fi
7438	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7440$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7441if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7442  $as_echo_n "(cached) " >&6
7443else
7444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445/* end confdefs.h.  */
7446int i;
7447_ACEOF
7448if ac_fn_c_try_compile "$LINENO"; then :
7449  xorg_cv_cc_flag_unused_command_line_argument=yes
7450else
7451  xorg_cv_cc_flag_unused_command_line_argument=no
7452fi
7453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454fi
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7456$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7457	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7458	CFLAGS="$xorg_testset_save_CFLAGS"
7459fi
7460
7461found="no"
7462
7463	if test $found = "no" ; then
7464		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466		fi
7467
7468		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7470		fi
7471
7472		CFLAGS="$CFLAGS -Werror=array-bounds"
7473
7474		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7475$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7476		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds`
7477		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7478  $as_echo_n "(cached) " >&6
7479else
7480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482int i;
7483int
7484main ()
7485{
7486
7487  ;
7488  return 0;
7489}
7490_ACEOF
7491if ac_fn_c_try_link "$LINENO"; then :
7492  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7493else
7494  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7495fi
7496rm -f core conftest.err conftest.$ac_objext \
7497    conftest$ac_exeext conftest.$ac_ext
7498fi
7499
7500
7501		CFLAGS="$xorg_testset_save_CFLAGS"
7502
7503		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7504		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7505$as_echo "$supported" >&6; }
7506		if test "$supported" = "yes" ; then
7507			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7508			found="yes"
7509		fi
7510	fi
7511
7512
7513
7514
7515
7516
7517
7518xorg_testset_save_CFLAGS="$CFLAGS"
7519
7520if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7525  $as_echo_n "(cached) " >&6
7526else
7527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528/* end confdefs.h.  */
7529int i;
7530_ACEOF
7531if ac_fn_c_try_compile "$LINENO"; then :
7532  xorg_cv_cc_flag_unknown_warning_option=yes
7533else
7534  xorg_cv_cc_flag_unknown_warning_option=no
7535fi
7536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537fi
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7540	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7541	CFLAGS="$xorg_testset_save_CFLAGS"
7542fi
7543
7544if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7545	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7547	fi
7548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7552  $as_echo_n "(cached) " >&6
7553else
7554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555/* end confdefs.h.  */
7556int i;
7557_ACEOF
7558if ac_fn_c_try_compile "$LINENO"; then :
7559  xorg_cv_cc_flag_unused_command_line_argument=yes
7560else
7561  xorg_cv_cc_flag_unused_command_line_argument=no
7562fi
7563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564fi
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7567	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7568	CFLAGS="$xorg_testset_save_CFLAGS"
7569fi
7570
7571found="no"
7572
7573	if test $found = "no" ; then
7574		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7576		fi
7577
7578		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7580		fi
7581
7582		CFLAGS="$CFLAGS -Werror=write-strings"
7583
7584		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7585$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7586		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings`
7587		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7588  $as_echo_n "(cached) " >&6
7589else
7590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591/* end confdefs.h.  */
7592int i;
7593int
7594main ()
7595{
7596
7597  ;
7598  return 0;
7599}
7600_ACEOF
7601if ac_fn_c_try_link "$LINENO"; then :
7602  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7603else
7604  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7605fi
7606rm -f core conftest.err conftest.$ac_objext \
7607    conftest$ac_exeext conftest.$ac_ext
7608fi
7609
7610
7611		CFLAGS="$xorg_testset_save_CFLAGS"
7612
7613		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7615$as_echo "$supported" >&6; }
7616		if test "$supported" = "yes" ; then
7617			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7618			found="yes"
7619		fi
7620	fi
7621
7622
7623
7624
7625
7626
7627
7628xorg_testset_save_CFLAGS="$CFLAGS"
7629
7630if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7631	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7633$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7634if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7635  $as_echo_n "(cached) " >&6
7636else
7637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638/* end confdefs.h.  */
7639int i;
7640_ACEOF
7641if ac_fn_c_try_compile "$LINENO"; then :
7642  xorg_cv_cc_flag_unknown_warning_option=yes
7643else
7644  xorg_cv_cc_flag_unknown_warning_option=no
7645fi
7646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647fi
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7649$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7650	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7651	CFLAGS="$xorg_testset_save_CFLAGS"
7652fi
7653
7654if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7655	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7656		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7657	fi
7658	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7660$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7661if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7662  $as_echo_n "(cached) " >&6
7663else
7664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665/* end confdefs.h.  */
7666int i;
7667_ACEOF
7668if ac_fn_c_try_compile "$LINENO"; then :
7669  xorg_cv_cc_flag_unused_command_line_argument=yes
7670else
7671  xorg_cv_cc_flag_unused_command_line_argument=no
7672fi
7673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674fi
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7676$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7677	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7678	CFLAGS="$xorg_testset_save_CFLAGS"
7679fi
7680
7681found="no"
7682
7683	if test $found = "no" ; then
7684		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7685			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7686		fi
7687
7688		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7689			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7690		fi
7691
7692		CFLAGS="$CFLAGS -Werror=address"
7693
7694		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7695$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7696		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address`
7697		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7698  $as_echo_n "(cached) " >&6
7699else
7700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701/* end confdefs.h.  */
7702int i;
7703int
7704main ()
7705{
7706
7707  ;
7708  return 0;
7709}
7710_ACEOF
7711if ac_fn_c_try_link "$LINENO"; then :
7712  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7713else
7714  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7715fi
7716rm -f core conftest.err conftest.$ac_objext \
7717    conftest$ac_exeext conftest.$ac_ext
7718fi
7719
7720
7721		CFLAGS="$xorg_testset_save_CFLAGS"
7722
7723		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7724		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7725$as_echo "$supported" >&6; }
7726		if test "$supported" = "yes" ; then
7727			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7728			found="yes"
7729		fi
7730	fi
7731
7732
7733
7734
7735
7736
7737
7738xorg_testset_save_CFLAGS="$CFLAGS"
7739
7740if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7745  $as_echo_n "(cached) " >&6
7746else
7747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h.  */
7749int i;
7750_ACEOF
7751if ac_fn_c_try_compile "$LINENO"; then :
7752  xorg_cv_cc_flag_unknown_warning_option=yes
7753else
7754  xorg_cv_cc_flag_unknown_warning_option=no
7755fi
7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757fi
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7760	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7761	CFLAGS="$xorg_testset_save_CFLAGS"
7762fi
7763
7764if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7765	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7767	fi
7768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776int i;
7777_ACEOF
7778if ac_fn_c_try_compile "$LINENO"; then :
7779  xorg_cv_cc_flag_unused_command_line_argument=yes
7780else
7781  xorg_cv_cc_flag_unused_command_line_argument=no
7782fi
7783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784fi
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7787	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7788	CFLAGS="$xorg_testset_save_CFLAGS"
7789fi
7790
7791found="no"
7792
7793	if test $found = "no" ; then
7794		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796		fi
7797
7798		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800		fi
7801
7802		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7803
7804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7805$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7806		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
7807		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h.  */
7812int i;
7813int
7814main ()
7815{
7816
7817  ;
7818  return 0;
7819}
7820_ACEOF
7821if ac_fn_c_try_link "$LINENO"; then :
7822  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7823else
7824  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7825fi
7826rm -f core conftest.err conftest.$ac_objext \
7827    conftest$ac_exeext conftest.$ac_ext
7828fi
7829
7830
7831		CFLAGS="$xorg_testset_save_CFLAGS"
7832
7833		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7835$as_echo "$supported" >&6; }
7836		if test "$supported" = "yes" ; then
7837			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7838			found="yes"
7839		fi
7840	fi
7841
7842	if test $found = "no" ; then
7843		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7845		fi
7846
7847		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7849		fi
7850
7851		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7852
7853		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7854$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7855		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
7856		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7857  $as_echo_n "(cached) " >&6
7858else
7859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860/* end confdefs.h.  */
7861int i;
7862int
7863main ()
7864{
7865
7866  ;
7867  return 0;
7868}
7869_ACEOF
7870if ac_fn_c_try_link "$LINENO"; then :
7871  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7872else
7873  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7874fi
7875rm -f core conftest.err conftest.$ac_objext \
7876    conftest$ac_exeext conftest.$ac_ext
7877fi
7878
7879
7880		CFLAGS="$xorg_testset_save_CFLAGS"
7881
7882		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7883		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7884$as_echo "$supported" >&6; }
7885		if test "$supported" = "yes" ; then
7886			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7887			found="yes"
7888		fi
7889	fi
7890
7891
7892
7893
7894
7895
7896
7897xorg_testset_save_CFLAGS="$CFLAGS"
7898
7899if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7900	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7901	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7904  $as_echo_n "(cached) " >&6
7905else
7906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907/* end confdefs.h.  */
7908int i;
7909_ACEOF
7910if ac_fn_c_try_compile "$LINENO"; then :
7911  xorg_cv_cc_flag_unknown_warning_option=yes
7912else
7913  xorg_cv_cc_flag_unknown_warning_option=no
7914fi
7915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916fi
7917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7919	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7920	CFLAGS="$xorg_testset_save_CFLAGS"
7921fi
7922
7923if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7924	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7925		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7926	fi
7927	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7928	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7931  $as_echo_n "(cached) " >&6
7932else
7933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934/* end confdefs.h.  */
7935int i;
7936_ACEOF
7937if ac_fn_c_try_compile "$LINENO"; then :
7938  xorg_cv_cc_flag_unused_command_line_argument=yes
7939else
7940  xorg_cv_cc_flag_unused_command_line_argument=no
7941fi
7942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943fi
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7946	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7947	CFLAGS="$xorg_testset_save_CFLAGS"
7948fi
7949
7950found="no"
7951
7952	if test $found = "no" ; then
7953		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955		fi
7956
7957		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959		fi
7960
7961		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7962
7963		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7964$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7965		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
7966		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7967  $as_echo_n "(cached) " >&6
7968else
7969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970/* end confdefs.h.  */
7971int i;
7972int
7973main ()
7974{
7975
7976  ;
7977  return 0;
7978}
7979_ACEOF
7980if ac_fn_c_try_link "$LINENO"; then :
7981  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7982else
7983  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7984fi
7985rm -f core conftest.err conftest.$ac_objext \
7986    conftest$ac_exeext conftest.$ac_ext
7987fi
7988
7989
7990		CFLAGS="$xorg_testset_save_CFLAGS"
7991
7992		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7993		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7994$as_echo "$supported" >&6; }
7995		if test "$supported" = "yes" ; then
7996			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7997			found="yes"
7998		fi
7999	fi
8000
8001 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8002else
8003{ $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
8004$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;}
8005
8006
8007
8008
8009
8010xorg_testset_save_CFLAGS="$CFLAGS"
8011
8012if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8013	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8014	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8015$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8016if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8017  $as_echo_n "(cached) " >&6
8018else
8019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020/* end confdefs.h.  */
8021int i;
8022_ACEOF
8023if ac_fn_c_try_compile "$LINENO"; then :
8024  xorg_cv_cc_flag_unknown_warning_option=yes
8025else
8026  xorg_cv_cc_flag_unknown_warning_option=no
8027fi
8028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029fi
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8031$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8032	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8033	CFLAGS="$xorg_testset_save_CFLAGS"
8034fi
8035
8036if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8037	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8038		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039	fi
8040	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8042$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8043if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8044  $as_echo_n "(cached) " >&6
8045else
8046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h.  */
8048int i;
8049_ACEOF
8050if ac_fn_c_try_compile "$LINENO"; then :
8051  xorg_cv_cc_flag_unused_command_line_argument=yes
8052else
8053  xorg_cv_cc_flag_unused_command_line_argument=no
8054fi
8055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056fi
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8058$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8059	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8060	CFLAGS="$xorg_testset_save_CFLAGS"
8061fi
8062
8063found="no"
8064
8065	if test $found = "no" ; then
8066		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8067			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8068		fi
8069
8070		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8071			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8072		fi
8073
8074		CFLAGS="$CFLAGS -Wimplicit"
8075
8076		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8077$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8078		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit`
8079		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8080  $as_echo_n "(cached) " >&6
8081else
8082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083/* end confdefs.h.  */
8084int i;
8085int
8086main ()
8087{
8088
8089  ;
8090  return 0;
8091}
8092_ACEOF
8093if ac_fn_c_try_link "$LINENO"; then :
8094  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8095else
8096  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8097fi
8098rm -f core conftest.err conftest.$ac_objext \
8099    conftest$ac_exeext conftest.$ac_ext
8100fi
8101
8102
8103		CFLAGS="$xorg_testset_save_CFLAGS"
8104
8105		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8106		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8107$as_echo "$supported" >&6; }
8108		if test "$supported" = "yes" ; then
8109			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8110			found="yes"
8111		fi
8112	fi
8113
8114
8115
8116
8117
8118
8119
8120xorg_testset_save_CFLAGS="$CFLAGS"
8121
8122if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8127  $as_echo_n "(cached) " >&6
8128else
8129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130/* end confdefs.h.  */
8131int i;
8132_ACEOF
8133if ac_fn_c_try_compile "$LINENO"; then :
8134  xorg_cv_cc_flag_unknown_warning_option=yes
8135else
8136  xorg_cv_cc_flag_unknown_warning_option=no
8137fi
8138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139fi
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8142	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8143	CFLAGS="$xorg_testset_save_CFLAGS"
8144fi
8145
8146if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8147	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149	fi
8150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8154  $as_echo_n "(cached) " >&6
8155else
8156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157/* end confdefs.h.  */
8158int i;
8159_ACEOF
8160if ac_fn_c_try_compile "$LINENO"; then :
8161  xorg_cv_cc_flag_unused_command_line_argument=yes
8162else
8163  xorg_cv_cc_flag_unused_command_line_argument=no
8164fi
8165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166fi
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8169	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8170	CFLAGS="$xorg_testset_save_CFLAGS"
8171fi
8172
8173found="no"
8174
8175	if test $found = "no" ; then
8176		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8178		fi
8179
8180		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8182		fi
8183
8184		CFLAGS="$CFLAGS -Wnonnull"
8185
8186		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8187$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8188		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull`
8189		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8190  $as_echo_n "(cached) " >&6
8191else
8192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193/* end confdefs.h.  */
8194int i;
8195int
8196main ()
8197{
8198
8199  ;
8200  return 0;
8201}
8202_ACEOF
8203if ac_fn_c_try_link "$LINENO"; then :
8204  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8205else
8206  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8207fi
8208rm -f core conftest.err conftest.$ac_objext \
8209    conftest$ac_exeext conftest.$ac_ext
8210fi
8211
8212
8213		CFLAGS="$xorg_testset_save_CFLAGS"
8214
8215		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8216		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8217$as_echo "$supported" >&6; }
8218		if test "$supported" = "yes" ; then
8219			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8220			found="yes"
8221		fi
8222	fi
8223
8224
8225
8226
8227
8228
8229
8230xorg_testset_save_CFLAGS="$CFLAGS"
8231
8232if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8235$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8236if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8237  $as_echo_n "(cached) " >&6
8238else
8239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240/* end confdefs.h.  */
8241int i;
8242_ACEOF
8243if ac_fn_c_try_compile "$LINENO"; then :
8244  xorg_cv_cc_flag_unknown_warning_option=yes
8245else
8246  xorg_cv_cc_flag_unknown_warning_option=no
8247fi
8248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249fi
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8251$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8252	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8253	CFLAGS="$xorg_testset_save_CFLAGS"
8254fi
8255
8256if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8257	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8258		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8259	fi
8260	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8262$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8263if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8264  $as_echo_n "(cached) " >&6
8265else
8266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267/* end confdefs.h.  */
8268int i;
8269_ACEOF
8270if ac_fn_c_try_compile "$LINENO"; then :
8271  xorg_cv_cc_flag_unused_command_line_argument=yes
8272else
8273  xorg_cv_cc_flag_unused_command_line_argument=no
8274fi
8275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8276fi
8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8278$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8279	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8280	CFLAGS="$xorg_testset_save_CFLAGS"
8281fi
8282
8283found="no"
8284
8285	if test $found = "no" ; then
8286		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8287			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8288		fi
8289
8290		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8291			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8292		fi
8293
8294		CFLAGS="$CFLAGS -Winit-self"
8295
8296		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8297$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8298		cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self`
8299		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8300  $as_echo_n "(cached) " >&6
8301else
8302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303/* end confdefs.h.  */
8304int i;
8305int
8306main ()
8307{
8308
8309  ;
8310  return 0;
8311}
8312_ACEOF
8313if ac_fn_c_try_link "$LINENO"; then :
8314  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8315else
8316  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8317fi
8318rm -f core conftest.err conftest.$ac_objext \
8319    conftest$ac_exeext conftest.$ac_ext
8320fi
8321
8322
8323		CFLAGS="$xorg_testset_save_CFLAGS"
8324
8325		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8326		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8327$as_echo "$supported" >&6; }
8328		if test "$supported" = "yes" ; then
8329			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8330			found="yes"
8331		fi
8332	fi
8333
8334
8335
8336
8337
8338
8339
8340xorg_testset_save_CFLAGS="$CFLAGS"
8341
8342if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8343	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8345$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8346if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8347  $as_echo_n "(cached) " >&6
8348else
8349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350/* end confdefs.h.  */
8351int i;
8352_ACEOF
8353if ac_fn_c_try_compile "$LINENO"; then :
8354  xorg_cv_cc_flag_unknown_warning_option=yes
8355else
8356  xorg_cv_cc_flag_unknown_warning_option=no
8357fi
8358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359fi
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8361$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8362	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8363	CFLAGS="$xorg_testset_save_CFLAGS"
8364fi
8365
8366if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8367	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8369	fi
8370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8372$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8373if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8374  $as_echo_n "(cached) " >&6
8375else
8376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377/* end confdefs.h.  */
8378int i;
8379_ACEOF
8380if ac_fn_c_try_compile "$LINENO"; then :
8381  xorg_cv_cc_flag_unused_command_line_argument=yes
8382else
8383  xorg_cv_cc_flag_unused_command_line_argument=no
8384fi
8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386fi
8387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8388$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8389	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8390	CFLAGS="$xorg_testset_save_CFLAGS"
8391fi
8392
8393found="no"
8394
8395	if test $found = "no" ; then
8396		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8397			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8398		fi
8399
8400		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8401			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8402		fi
8403
8404		CFLAGS="$CFLAGS -Wmain"
8405
8406		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8407$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8408		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain`
8409		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8410  $as_echo_n "(cached) " >&6
8411else
8412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h.  */
8414int i;
8415int
8416main ()
8417{
8418
8419  ;
8420  return 0;
8421}
8422_ACEOF
8423if ac_fn_c_try_link "$LINENO"; then :
8424  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8425else
8426  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8427fi
8428rm -f core conftest.err conftest.$ac_objext \
8429    conftest$ac_exeext conftest.$ac_ext
8430fi
8431
8432
8433		CFLAGS="$xorg_testset_save_CFLAGS"
8434
8435		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8436		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8437$as_echo "$supported" >&6; }
8438		if test "$supported" = "yes" ; then
8439			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8440			found="yes"
8441		fi
8442	fi
8443
8444
8445
8446
8447
8448
8449
8450xorg_testset_save_CFLAGS="$CFLAGS"
8451
8452if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8457  $as_echo_n "(cached) " >&6
8458else
8459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460/* end confdefs.h.  */
8461int i;
8462_ACEOF
8463if ac_fn_c_try_compile "$LINENO"; then :
8464  xorg_cv_cc_flag_unknown_warning_option=yes
8465else
8466  xorg_cv_cc_flag_unknown_warning_option=no
8467fi
8468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469fi
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8472	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8473	CFLAGS="$xorg_testset_save_CFLAGS"
8474fi
8475
8476if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8477	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8479	fi
8480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8484  $as_echo_n "(cached) " >&6
8485else
8486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487/* end confdefs.h.  */
8488int i;
8489_ACEOF
8490if ac_fn_c_try_compile "$LINENO"; then :
8491  xorg_cv_cc_flag_unused_command_line_argument=yes
8492else
8493  xorg_cv_cc_flag_unused_command_line_argument=no
8494fi
8495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496fi
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8499	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8500	CFLAGS="$xorg_testset_save_CFLAGS"
8501fi
8502
8503found="no"
8504
8505	if test $found = "no" ; then
8506		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8508		fi
8509
8510		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8512		fi
8513
8514		CFLAGS="$CFLAGS -Wmissing-braces"
8515
8516		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8517$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8518		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces`
8519		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8520  $as_echo_n "(cached) " >&6
8521else
8522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523/* end confdefs.h.  */
8524int i;
8525int
8526main ()
8527{
8528
8529  ;
8530  return 0;
8531}
8532_ACEOF
8533if ac_fn_c_try_link "$LINENO"; then :
8534  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8535else
8536  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8537fi
8538rm -f core conftest.err conftest.$ac_objext \
8539    conftest$ac_exeext conftest.$ac_ext
8540fi
8541
8542
8543		CFLAGS="$xorg_testset_save_CFLAGS"
8544
8545		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8546		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8547$as_echo "$supported" >&6; }
8548		if test "$supported" = "yes" ; then
8549			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8550			found="yes"
8551		fi
8552	fi
8553
8554
8555
8556
8557
8558
8559
8560xorg_testset_save_CFLAGS="$CFLAGS"
8561
8562if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8567  $as_echo_n "(cached) " >&6
8568else
8569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570/* end confdefs.h.  */
8571int i;
8572_ACEOF
8573if ac_fn_c_try_compile "$LINENO"; then :
8574  xorg_cv_cc_flag_unknown_warning_option=yes
8575else
8576  xorg_cv_cc_flag_unknown_warning_option=no
8577fi
8578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579fi
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8582	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8583	CFLAGS="$xorg_testset_save_CFLAGS"
8584fi
8585
8586if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8587	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8589	fi
8590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8594  $as_echo_n "(cached) " >&6
8595else
8596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597/* end confdefs.h.  */
8598int i;
8599_ACEOF
8600if ac_fn_c_try_compile "$LINENO"; then :
8601  xorg_cv_cc_flag_unused_command_line_argument=yes
8602else
8603  xorg_cv_cc_flag_unused_command_line_argument=no
8604fi
8605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606fi
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8609	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8610	CFLAGS="$xorg_testset_save_CFLAGS"
8611fi
8612
8613found="no"
8614
8615	if test $found = "no" ; then
8616		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8618		fi
8619
8620		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8622		fi
8623
8624		CFLAGS="$CFLAGS -Wsequence-point"
8625
8626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8627$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8628		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point`
8629		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8630  $as_echo_n "(cached) " >&6
8631else
8632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h.  */
8634int i;
8635int
8636main ()
8637{
8638
8639  ;
8640  return 0;
8641}
8642_ACEOF
8643if ac_fn_c_try_link "$LINENO"; then :
8644  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8645else
8646  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8647fi
8648rm -f core conftest.err conftest.$ac_objext \
8649    conftest$ac_exeext conftest.$ac_ext
8650fi
8651
8652
8653		CFLAGS="$xorg_testset_save_CFLAGS"
8654
8655		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8657$as_echo "$supported" >&6; }
8658		if test "$supported" = "yes" ; then
8659			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8660			found="yes"
8661		fi
8662	fi
8663
8664
8665
8666
8667
8668
8669
8670xorg_testset_save_CFLAGS="$CFLAGS"
8671
8672if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8675$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8676if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h.  */
8681int i;
8682_ACEOF
8683if ac_fn_c_try_compile "$LINENO"; then :
8684  xorg_cv_cc_flag_unknown_warning_option=yes
8685else
8686  xorg_cv_cc_flag_unknown_warning_option=no
8687fi
8688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689fi
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8691$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8692	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8693	CFLAGS="$xorg_testset_save_CFLAGS"
8694fi
8695
8696if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8697	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8699	fi
8700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8702$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8703if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8704  $as_echo_n "(cached) " >&6
8705else
8706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707/* end confdefs.h.  */
8708int i;
8709_ACEOF
8710if ac_fn_c_try_compile "$LINENO"; then :
8711  xorg_cv_cc_flag_unused_command_line_argument=yes
8712else
8713  xorg_cv_cc_flag_unused_command_line_argument=no
8714fi
8715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716fi
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8718$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8719	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8720	CFLAGS="$xorg_testset_save_CFLAGS"
8721fi
8722
8723found="no"
8724
8725	if test $found = "no" ; then
8726		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8728		fi
8729
8730		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8732		fi
8733
8734		CFLAGS="$CFLAGS -Wreturn-type"
8735
8736		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8737$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8738		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type`
8739		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8740  $as_echo_n "(cached) " >&6
8741else
8742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743/* end confdefs.h.  */
8744int i;
8745int
8746main ()
8747{
8748
8749  ;
8750  return 0;
8751}
8752_ACEOF
8753if ac_fn_c_try_link "$LINENO"; then :
8754  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8755else
8756  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8757fi
8758rm -f core conftest.err conftest.$ac_objext \
8759    conftest$ac_exeext conftest.$ac_ext
8760fi
8761
8762
8763		CFLAGS="$xorg_testset_save_CFLAGS"
8764
8765		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8767$as_echo "$supported" >&6; }
8768		if test "$supported" = "yes" ; then
8769			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8770			found="yes"
8771		fi
8772	fi
8773
8774
8775
8776
8777
8778
8779
8780xorg_testset_save_CFLAGS="$CFLAGS"
8781
8782if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8783	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8785$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8786if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8787  $as_echo_n "(cached) " >&6
8788else
8789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790/* end confdefs.h.  */
8791int i;
8792_ACEOF
8793if ac_fn_c_try_compile "$LINENO"; then :
8794  xorg_cv_cc_flag_unknown_warning_option=yes
8795else
8796  xorg_cv_cc_flag_unknown_warning_option=no
8797fi
8798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799fi
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8801$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8802	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8803	CFLAGS="$xorg_testset_save_CFLAGS"
8804fi
8805
8806if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8807	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8808		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8809	fi
8810	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8811	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8812$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8813if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8814  $as_echo_n "(cached) " >&6
8815else
8816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817/* end confdefs.h.  */
8818int i;
8819_ACEOF
8820if ac_fn_c_try_compile "$LINENO"; then :
8821  xorg_cv_cc_flag_unused_command_line_argument=yes
8822else
8823  xorg_cv_cc_flag_unused_command_line_argument=no
8824fi
8825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826fi
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8828$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8829	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8830	CFLAGS="$xorg_testset_save_CFLAGS"
8831fi
8832
8833found="no"
8834
8835	if test $found = "no" ; then
8836		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8837			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8838		fi
8839
8840		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8841			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8842		fi
8843
8844		CFLAGS="$CFLAGS -Wtrigraphs"
8845
8846		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8847$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8848		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs`
8849		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8850  $as_echo_n "(cached) " >&6
8851else
8852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853/* end confdefs.h.  */
8854int i;
8855int
8856main ()
8857{
8858
8859  ;
8860  return 0;
8861}
8862_ACEOF
8863if ac_fn_c_try_link "$LINENO"; then :
8864  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8865else
8866  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8867fi
8868rm -f core conftest.err conftest.$ac_objext \
8869    conftest$ac_exeext conftest.$ac_ext
8870fi
8871
8872
8873		CFLAGS="$xorg_testset_save_CFLAGS"
8874
8875		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8876		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8877$as_echo "$supported" >&6; }
8878		if test "$supported" = "yes" ; then
8879			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8880			found="yes"
8881		fi
8882	fi
8883
8884
8885
8886
8887
8888
8889
8890xorg_testset_save_CFLAGS="$CFLAGS"
8891
8892if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8897  $as_echo_n "(cached) " >&6
8898else
8899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900/* end confdefs.h.  */
8901int i;
8902_ACEOF
8903if ac_fn_c_try_compile "$LINENO"; then :
8904  xorg_cv_cc_flag_unknown_warning_option=yes
8905else
8906  xorg_cv_cc_flag_unknown_warning_option=no
8907fi
8908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8909fi
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8912	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8913	CFLAGS="$xorg_testset_save_CFLAGS"
8914fi
8915
8916if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8917	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8919	fi
8920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8924  $as_echo_n "(cached) " >&6
8925else
8926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927/* end confdefs.h.  */
8928int i;
8929_ACEOF
8930if ac_fn_c_try_compile "$LINENO"; then :
8931  xorg_cv_cc_flag_unused_command_line_argument=yes
8932else
8933  xorg_cv_cc_flag_unused_command_line_argument=no
8934fi
8935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936fi
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8939	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8940	CFLAGS="$xorg_testset_save_CFLAGS"
8941fi
8942
8943found="no"
8944
8945	if test $found = "no" ; then
8946		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8948		fi
8949
8950		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8952		fi
8953
8954		CFLAGS="$CFLAGS -Warray-bounds"
8955
8956		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8957$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8958		cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds`
8959		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8960  $as_echo_n "(cached) " >&6
8961else
8962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963/* end confdefs.h.  */
8964int i;
8965int
8966main ()
8967{
8968
8969  ;
8970  return 0;
8971}
8972_ACEOF
8973if ac_fn_c_try_link "$LINENO"; then :
8974  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8975else
8976  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8977fi
8978rm -f core conftest.err conftest.$ac_objext \
8979    conftest$ac_exeext conftest.$ac_ext
8980fi
8981
8982
8983		CFLAGS="$xorg_testset_save_CFLAGS"
8984
8985		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8986		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8987$as_echo "$supported" >&6; }
8988		if test "$supported" = "yes" ; then
8989			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8990			found="yes"
8991		fi
8992	fi
8993
8994
8995
8996
8997
8998
8999
9000xorg_testset_save_CFLAGS="$CFLAGS"
9001
9002if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9003	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9007  $as_echo_n "(cached) " >&6
9008else
9009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010/* end confdefs.h.  */
9011int i;
9012_ACEOF
9013if ac_fn_c_try_compile "$LINENO"; then :
9014  xorg_cv_cc_flag_unknown_warning_option=yes
9015else
9016  xorg_cv_cc_flag_unknown_warning_option=no
9017fi
9018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019fi
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9022	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9023	CFLAGS="$xorg_testset_save_CFLAGS"
9024fi
9025
9026if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9027	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9028		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029	fi
9030	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9034  $as_echo_n "(cached) " >&6
9035else
9036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037/* end confdefs.h.  */
9038int i;
9039_ACEOF
9040if ac_fn_c_try_compile "$LINENO"; then :
9041  xorg_cv_cc_flag_unused_command_line_argument=yes
9042else
9043  xorg_cv_cc_flag_unused_command_line_argument=no
9044fi
9045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9046fi
9047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9049	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9050	CFLAGS="$xorg_testset_save_CFLAGS"
9051fi
9052
9053found="no"
9054
9055	if test $found = "no" ; then
9056		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9058		fi
9059
9060		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9062		fi
9063
9064		CFLAGS="$CFLAGS -Wwrite-strings"
9065
9066		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9067$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9068		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings`
9069		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9070  $as_echo_n "(cached) " >&6
9071else
9072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073/* end confdefs.h.  */
9074int i;
9075int
9076main ()
9077{
9078
9079  ;
9080  return 0;
9081}
9082_ACEOF
9083if ac_fn_c_try_link "$LINENO"; then :
9084  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9085else
9086  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9087fi
9088rm -f core conftest.err conftest.$ac_objext \
9089    conftest$ac_exeext conftest.$ac_ext
9090fi
9091
9092
9093		CFLAGS="$xorg_testset_save_CFLAGS"
9094
9095		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9097$as_echo "$supported" >&6; }
9098		if test "$supported" = "yes" ; then
9099			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9100			found="yes"
9101		fi
9102	fi
9103
9104
9105
9106
9107
9108
9109
9110xorg_testset_save_CFLAGS="$CFLAGS"
9111
9112if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9113	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9115$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9116if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9117  $as_echo_n "(cached) " >&6
9118else
9119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120/* end confdefs.h.  */
9121int i;
9122_ACEOF
9123if ac_fn_c_try_compile "$LINENO"; then :
9124  xorg_cv_cc_flag_unknown_warning_option=yes
9125else
9126  xorg_cv_cc_flag_unknown_warning_option=no
9127fi
9128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9129fi
9130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9131$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9132	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9133	CFLAGS="$xorg_testset_save_CFLAGS"
9134fi
9135
9136if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9137	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9139	fi
9140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9142$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9143if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9144  $as_echo_n "(cached) " >&6
9145else
9146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147/* end confdefs.h.  */
9148int i;
9149_ACEOF
9150if ac_fn_c_try_compile "$LINENO"; then :
9151  xorg_cv_cc_flag_unused_command_line_argument=yes
9152else
9153  xorg_cv_cc_flag_unused_command_line_argument=no
9154fi
9155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156fi
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9158$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9159	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9160	CFLAGS="$xorg_testset_save_CFLAGS"
9161fi
9162
9163found="no"
9164
9165	if test $found = "no" ; then
9166		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9168		fi
9169
9170		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9172		fi
9173
9174		CFLAGS="$CFLAGS -Waddress"
9175
9176		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9177$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9178		cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress`
9179		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9180  $as_echo_n "(cached) " >&6
9181else
9182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183/* end confdefs.h.  */
9184int i;
9185int
9186main ()
9187{
9188
9189  ;
9190  return 0;
9191}
9192_ACEOF
9193if ac_fn_c_try_link "$LINENO"; then :
9194  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9195else
9196  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9197fi
9198rm -f core conftest.err conftest.$ac_objext \
9199    conftest$ac_exeext conftest.$ac_ext
9200fi
9201
9202
9203		CFLAGS="$xorg_testset_save_CFLAGS"
9204
9205		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9206		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9207$as_echo "$supported" >&6; }
9208		if test "$supported" = "yes" ; then
9209			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9210			found="yes"
9211		fi
9212	fi
9213
9214
9215
9216
9217
9218
9219
9220xorg_testset_save_CFLAGS="$CFLAGS"
9221
9222if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9223	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9224	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9225$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9226if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9227  $as_echo_n "(cached) " >&6
9228else
9229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230/* end confdefs.h.  */
9231int i;
9232_ACEOF
9233if ac_fn_c_try_compile "$LINENO"; then :
9234  xorg_cv_cc_flag_unknown_warning_option=yes
9235else
9236  xorg_cv_cc_flag_unknown_warning_option=no
9237fi
9238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239fi
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9241$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9242	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9243	CFLAGS="$xorg_testset_save_CFLAGS"
9244fi
9245
9246if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9247	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9248		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9249	fi
9250	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9252$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9253if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9254  $as_echo_n "(cached) " >&6
9255else
9256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257/* end confdefs.h.  */
9258int i;
9259_ACEOF
9260if ac_fn_c_try_compile "$LINENO"; then :
9261  xorg_cv_cc_flag_unused_command_line_argument=yes
9262else
9263  xorg_cv_cc_flag_unused_command_line_argument=no
9264fi
9265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9266fi
9267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9268$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9269	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9270	CFLAGS="$xorg_testset_save_CFLAGS"
9271fi
9272
9273found="no"
9274
9275	if test $found = "no" ; then
9276		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9278		fi
9279
9280		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9282		fi
9283
9284		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9285
9286		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9287$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9288		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast`
9289		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9290  $as_echo_n "(cached) " >&6
9291else
9292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293/* end confdefs.h.  */
9294int i;
9295int
9296main ()
9297{
9298
9299  ;
9300  return 0;
9301}
9302_ACEOF
9303if ac_fn_c_try_link "$LINENO"; then :
9304  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9305else
9306  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9307fi
9308rm -f core conftest.err conftest.$ac_objext \
9309    conftest$ac_exeext conftest.$ac_ext
9310fi
9311
9312
9313		CFLAGS="$xorg_testset_save_CFLAGS"
9314
9315		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9316		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9317$as_echo "$supported" >&6; }
9318		if test "$supported" = "yes" ; then
9319			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9320			found="yes"
9321		fi
9322	fi
9323
9324
9325
9326
9327
9328
9329
9330xorg_testset_save_CFLAGS="$CFLAGS"
9331
9332if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9333	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9337  $as_echo_n "(cached) " >&6
9338else
9339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340/* end confdefs.h.  */
9341int i;
9342_ACEOF
9343if ac_fn_c_try_compile "$LINENO"; then :
9344  xorg_cv_cc_flag_unknown_warning_option=yes
9345else
9346  xorg_cv_cc_flag_unknown_warning_option=no
9347fi
9348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9349fi
9350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9352	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9353	CFLAGS="$xorg_testset_save_CFLAGS"
9354fi
9355
9356if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9357	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9358		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9359	fi
9360	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9364  $as_echo_n "(cached) " >&6
9365else
9366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367/* end confdefs.h.  */
9368int i;
9369_ACEOF
9370if ac_fn_c_try_compile "$LINENO"; then :
9371  xorg_cv_cc_flag_unused_command_line_argument=yes
9372else
9373  xorg_cv_cc_flag_unused_command_line_argument=no
9374fi
9375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376fi
9377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9379	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9380	CFLAGS="$xorg_testset_save_CFLAGS"
9381fi
9382
9383found="no"
9384
9385	if test $found = "no" ; then
9386		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9388		fi
9389
9390		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9392		fi
9393
9394		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9395
9396		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9397$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9398		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast`
9399		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9400  $as_echo_n "(cached) " >&6
9401else
9402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403/* end confdefs.h.  */
9404int i;
9405int
9406main ()
9407{
9408
9409  ;
9410  return 0;
9411}
9412_ACEOF
9413if ac_fn_c_try_link "$LINENO"; then :
9414  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9415else
9416  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9417fi
9418rm -f core conftest.err conftest.$ac_objext \
9419    conftest$ac_exeext conftest.$ac_ext
9420fi
9421
9422
9423		CFLAGS="$xorg_testset_save_CFLAGS"
9424
9425		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9426		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9427$as_echo "$supported" >&6; }
9428		if test "$supported" = "yes" ; then
9429			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9430			found="yes"
9431		fi
9432	fi
9433
9434
9435fi
9436
9437
9438
9439
9440
9441
9442CWARNFLAGS="$BASE_CFLAGS"
9443if  test "x$GCC" = xyes ; then
9444    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9445fi
9446
9447
9448
9449
9450
9451
9452# Check whether --enable-strict-compilation was given.
9453if test "${enable_strict_compilation+set}" = set; then :
9454  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9455else
9456  STRICT_COMPILE=no
9457fi
9458
9459
9460STRICT_CFLAGS=""
9461
9462
9463
9464
9465
9466xorg_testset_save_CFLAGS="$CFLAGS"
9467
9468if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9472if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476/* end confdefs.h.  */
9477int i;
9478_ACEOF
9479if ac_fn_c_try_compile "$LINENO"; then :
9480  xorg_cv_cc_flag_unknown_warning_option=yes
9481else
9482  xorg_cv_cc_flag_unknown_warning_option=no
9483fi
9484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485fi
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9487$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9488	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9489	CFLAGS="$xorg_testset_save_CFLAGS"
9490fi
9491
9492if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9493	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9494		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9495	fi
9496	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9498$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9499if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9500  $as_echo_n "(cached) " >&6
9501else
9502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503/* end confdefs.h.  */
9504int i;
9505_ACEOF
9506if ac_fn_c_try_compile "$LINENO"; then :
9507  xorg_cv_cc_flag_unused_command_line_argument=yes
9508else
9509  xorg_cv_cc_flag_unused_command_line_argument=no
9510fi
9511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512fi
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9514$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9515	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9516	CFLAGS="$xorg_testset_save_CFLAGS"
9517fi
9518
9519found="no"
9520
9521	if test $found = "no" ; then
9522		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9524		fi
9525
9526		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9528		fi
9529
9530		CFLAGS="$CFLAGS -pedantic"
9531
9532		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9533$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9534		cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic`
9535		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9536  $as_echo_n "(cached) " >&6
9537else
9538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539/* end confdefs.h.  */
9540int i;
9541int
9542main ()
9543{
9544
9545  ;
9546  return 0;
9547}
9548_ACEOF
9549if ac_fn_c_try_link "$LINENO"; then :
9550  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9551else
9552  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9553fi
9554rm -f core conftest.err conftest.$ac_objext \
9555    conftest$ac_exeext conftest.$ac_ext
9556fi
9557
9558
9559		CFLAGS="$xorg_testset_save_CFLAGS"
9560
9561		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9562		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9563$as_echo "$supported" >&6; }
9564		if test "$supported" = "yes" ; then
9565			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9566			found="yes"
9567		fi
9568	fi
9569
9570
9571
9572
9573
9574
9575
9576xorg_testset_save_CFLAGS="$CFLAGS"
9577
9578if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9579	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9583  $as_echo_n "(cached) " >&6
9584else
9585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h.  */
9587int i;
9588_ACEOF
9589if ac_fn_c_try_compile "$LINENO"; then :
9590  xorg_cv_cc_flag_unknown_warning_option=yes
9591else
9592  xorg_cv_cc_flag_unknown_warning_option=no
9593fi
9594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595fi
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9598	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9599	CFLAGS="$xorg_testset_save_CFLAGS"
9600fi
9601
9602if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9603	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9604		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9605	fi
9606	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9610  $as_echo_n "(cached) " >&6
9611else
9612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h.  */
9614int i;
9615_ACEOF
9616if ac_fn_c_try_compile "$LINENO"; then :
9617  xorg_cv_cc_flag_unused_command_line_argument=yes
9618else
9619  xorg_cv_cc_flag_unused_command_line_argument=no
9620fi
9621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9622fi
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9625	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9626	CFLAGS="$xorg_testset_save_CFLAGS"
9627fi
9628
9629found="no"
9630
9631	if test $found = "no" ; then
9632		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634		fi
9635
9636		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9638		fi
9639
9640		CFLAGS="$CFLAGS -Werror"
9641
9642		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9643$as_echo_n "checking if $CC supports -Werror... " >&6; }
9644		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror`
9645		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9646  $as_echo_n "(cached) " >&6
9647else
9648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649/* end confdefs.h.  */
9650int i;
9651int
9652main ()
9653{
9654
9655  ;
9656  return 0;
9657}
9658_ACEOF
9659if ac_fn_c_try_link "$LINENO"; then :
9660  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9661else
9662  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9663fi
9664rm -f core conftest.err conftest.$ac_objext \
9665    conftest$ac_exeext conftest.$ac_ext
9666fi
9667
9668
9669		CFLAGS="$xorg_testset_save_CFLAGS"
9670
9671		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9672		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9673$as_echo "$supported" >&6; }
9674		if test "$supported" = "yes" ; then
9675			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9676			found="yes"
9677		fi
9678	fi
9679
9680	if test $found = "no" ; then
9681		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9683		fi
9684
9685		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9687		fi
9688
9689		CFLAGS="$CFLAGS -errwarn"
9690
9691		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9692$as_echo_n "checking if $CC supports -errwarn... " >&6; }
9693		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn`
9694		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9695  $as_echo_n "(cached) " >&6
9696else
9697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698/* end confdefs.h.  */
9699int i;
9700int
9701main ()
9702{
9703
9704  ;
9705  return 0;
9706}
9707_ACEOF
9708if ac_fn_c_try_link "$LINENO"; then :
9709  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9710else
9711  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9712fi
9713rm -f core conftest.err conftest.$ac_objext \
9714    conftest$ac_exeext conftest.$ac_ext
9715fi
9716
9717
9718		CFLAGS="$xorg_testset_save_CFLAGS"
9719
9720		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9721		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9722$as_echo "$supported" >&6; }
9723		if test "$supported" = "yes" ; then
9724			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9725			found="yes"
9726		fi
9727	fi
9728
9729
9730
9731# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9732# activate it with -Werror, so we add it here explicitly.
9733
9734
9735
9736
9737
9738xorg_testset_save_CFLAGS="$CFLAGS"
9739
9740if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9745  $as_echo_n "(cached) " >&6
9746else
9747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h.  */
9749int i;
9750_ACEOF
9751if ac_fn_c_try_compile "$LINENO"; then :
9752  xorg_cv_cc_flag_unknown_warning_option=yes
9753else
9754  xorg_cv_cc_flag_unknown_warning_option=no
9755fi
9756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757fi
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9760	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9761	CFLAGS="$xorg_testset_save_CFLAGS"
9762fi
9763
9764if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9765	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767	fi
9768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9772  $as_echo_n "(cached) " >&6
9773else
9774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h.  */
9776int i;
9777_ACEOF
9778if ac_fn_c_try_compile "$LINENO"; then :
9779  xorg_cv_cc_flag_unused_command_line_argument=yes
9780else
9781  xorg_cv_cc_flag_unused_command_line_argument=no
9782fi
9783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784fi
9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788	CFLAGS="$xorg_testset_save_CFLAGS"
9789fi
9790
9791found="no"
9792
9793	if test $found = "no" ; then
9794		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796		fi
9797
9798		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800		fi
9801
9802		CFLAGS="$CFLAGS -Werror=attributes"
9803
9804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9805$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9806		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes`
9807		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9808  $as_echo_n "(cached) " >&6
9809else
9810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h.  */
9812int i;
9813int
9814main ()
9815{
9816
9817  ;
9818  return 0;
9819}
9820_ACEOF
9821if ac_fn_c_try_link "$LINENO"; then :
9822  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9823else
9824  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9825fi
9826rm -f core conftest.err conftest.$ac_objext \
9827    conftest$ac_exeext conftest.$ac_ext
9828fi
9829
9830
9831		CFLAGS="$xorg_testset_save_CFLAGS"
9832
9833		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9835$as_echo "$supported" >&6; }
9836		if test "$supported" = "yes" ; then
9837			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9838			found="yes"
9839		fi
9840	fi
9841
9842
9843
9844if test "x$STRICT_COMPILE" = "xyes"; then
9845    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9846    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9847fi
9848
9849
9850
9851
9852
9853
9854cat >>confdefs.h <<_ACEOF
9855#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9856_ACEOF
9857
9858	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9859	if test "x$PVM" = "x"; then
9860		PVM="0"
9861	fi
9862
9863cat >>confdefs.h <<_ACEOF
9864#define PACKAGE_VERSION_MINOR $PVM
9865_ACEOF
9866
9867	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9868	if test "x$PVP" = "x"; then
9869		PVP="0"
9870	fi
9871
9872cat >>confdefs.h <<_ACEOF
9873#define PACKAGE_VERSION_PATCHLEVEL $PVP
9874_ACEOF
9875
9876
9877
9878CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9879mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9880|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9881echo 'git directory not found: installing possibly empty changelog.' >&2)"
9882
9883
9884
9885
9886macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9887INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9888mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9889|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9890echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9891
9892
9893
9894
9895
9896
9897if test x$APP_MAN_SUFFIX = x    ; then
9898    APP_MAN_SUFFIX=1
9899fi
9900if test x$APP_MAN_DIR = x    ; then
9901    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9902fi
9903
9904if test x$LIB_MAN_SUFFIX = x    ; then
9905    LIB_MAN_SUFFIX=3
9906fi
9907if test x$LIB_MAN_DIR = x    ; then
9908    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9909fi
9910
9911if test x$FILE_MAN_SUFFIX = x    ; then
9912    case $host_os in
9913	solaris*)	FILE_MAN_SUFFIX=4  ;;
9914	*)		FILE_MAN_SUFFIX=5  ;;
9915    esac
9916fi
9917if test x$FILE_MAN_DIR = x    ; then
9918    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9919fi
9920
9921if test x$MISC_MAN_SUFFIX = x    ; then
9922    case $host_os in
9923	solaris*)	MISC_MAN_SUFFIX=5  ;;
9924	*)		MISC_MAN_SUFFIX=7  ;;
9925    esac
9926fi
9927if test x$MISC_MAN_DIR = x    ; then
9928    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9929fi
9930
9931if test x$DRIVER_MAN_SUFFIX = x    ; then
9932    case $host_os in
9933	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
9934	*)		DRIVER_MAN_SUFFIX=4  ;;
9935    esac
9936fi
9937if test x$DRIVER_MAN_DIR = x    ; then
9938    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9939fi
9940
9941if test x$ADMIN_MAN_SUFFIX = x    ; then
9942    case $host_os in
9943	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
9944	*)		ADMIN_MAN_SUFFIX=8  ;;
9945    esac
9946fi
9947if test x$ADMIN_MAN_DIR = x    ; then
9948    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9949fi
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965XORG_MAN_PAGE="X Version 11"
9966
9967MAN_SUBSTS="\
9968	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9969	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9970	-e 's|__xservername__|Xorg|g' \
9971	-e 's|__xconfigfile__|xorg.conf|g' \
9972	-e 's|__projectroot__|\$(prefix)|g' \
9973	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
9974	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9975	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9976	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9977	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9978	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9979	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9980
9981
9982
9983# Check whether --enable-silent-rules was given.
9984if test "${enable_silent_rules+set}" = set; then :
9985  enableval=$enable_silent_rules;
9986fi
9987
9988case $enable_silent_rules in
9989yes) AM_DEFAULT_VERBOSITY=0;;
9990no)  AM_DEFAULT_VERBOSITY=1;;
9991*)   AM_DEFAULT_VERBOSITY=0;;
9992esac
9993AM_BACKSLASH='\'
9994
9995
9996
9997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
9998$as_echo_n "checking for gzopen in -lz... " >&6; }
9999if ${ac_cv_lib_z_gzopen+:} false; then :
10000  $as_echo_n "(cached) " >&6
10001else
10002  ac_check_lib_save_LIBS=$LIBS
10003LIBS="-lz  $LIBS"
10004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005/* end confdefs.h.  */
10006
10007/* Override any GCC internal prototype to avoid an error.
10008   Use char because int might match the return type of a GCC
10009   builtin and then its argument prototype would still apply.  */
10010#ifdef __cplusplus
10011extern "C"
10012#endif
10013char gzopen ();
10014int
10015main ()
10016{
10017return gzopen ();
10018  ;
10019  return 0;
10020}
10021_ACEOF
10022if ac_fn_c_try_link "$LINENO"; then :
10023  ac_cv_lib_z_gzopen=yes
10024else
10025  ac_cv_lib_z_gzopen=no
10026fi
10027rm -f core conftest.err conftest.$ac_objext \
10028    conftest$ac_exeext conftest.$ac_ext
10029LIBS=$ac_check_lib_save_LIBS
10030fi
10031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
10032$as_echo "$ac_cv_lib_z_gzopen" >&6; }
10033if test "x$ac_cv_lib_z_gzopen" = xyes; then :
10034  cat >>confdefs.h <<_ACEOF
10035#define HAVE_LIBZ 1
10036_ACEOF
10037
10038  LIBS="-lz $LIBS"
10039
10040else
10041  as_fn_error $? "zlib is required, but was not found." "$LINENO" 5
10042fi
10043
10044
10045
10046# Check whether --with-bzip2 was given.
10047if test "${with_bzip2+set}" = set; then :
10048  withval=$with_bzip2;
10049else
10050  with_bzip2=no
10051fi
10052
10053if test "x$with_bzip2" = xyes; then
10054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
10055$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
10056if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
10057  $as_echo_n "(cached) " >&6
10058else
10059  ac_check_lib_save_LIBS=$LIBS
10060LIBS="-lbz2  $LIBS"
10061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062/* end confdefs.h.  */
10063
10064/* Override any GCC internal prototype to avoid an error.
10065   Use char because int might match the return type of a GCC
10066   builtin and then its argument prototype would still apply.  */
10067#ifdef __cplusplus
10068extern "C"
10069#endif
10070char BZ2_bzopen ();
10071int
10072main ()
10073{
10074return BZ2_bzopen ();
10075  ;
10076  return 0;
10077}
10078_ACEOF
10079if ac_fn_c_try_link "$LINENO"; then :
10080  ac_cv_lib_bz2_BZ2_bzopen=yes
10081else
10082  ac_cv_lib_bz2_BZ2_bzopen=no
10083fi
10084rm -f core conftest.err conftest.$ac_objext \
10085    conftest$ac_exeext conftest.$ac_ext
10086LIBS=$ac_check_lib_save_LIBS
10087fi
10088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
10089$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
10090if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
10091  cat >>confdefs.h <<_ACEOF
10092#define HAVE_LIBBZ2 1
10093_ACEOF
10094
10095  LIBS="-lbz2 $LIBS"
10096
10097else
10098  as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
10099fi
10100
10101
10102$as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
10103
10104fi
10105
10106# Checks for pkg-config packages
10107
10108pkg_failed=no
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKFONTSCALE" >&5
10110$as_echo_n "checking for MKFONTSCALE... " >&6; }
10111
10112if test -n "$MKFONTSCALE_CFLAGS"; then
10113    pkg_cv_MKFONTSCALE_CFLAGS="$MKFONTSCALE_CFLAGS"
10114 elif test -n "$PKG_CONFIG"; then
10115    if test -n "$PKG_CONFIG" && \
10116    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
10117  ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
10118  ac_status=$?
10119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10120  test $ac_status = 0; }; then
10121  pkg_cv_MKFONTSCALE_CFLAGS=`$PKG_CONFIG --cflags "fontenc freetype2" 2>/dev/null`
10122else
10123  pkg_failed=yes
10124fi
10125 else
10126    pkg_failed=untried
10127fi
10128if test -n "$MKFONTSCALE_LIBS"; then
10129    pkg_cv_MKFONTSCALE_LIBS="$MKFONTSCALE_LIBS"
10130 elif test -n "$PKG_CONFIG"; then
10131    if test -n "$PKG_CONFIG" && \
10132    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
10133  ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
10134  ac_status=$?
10135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10136  test $ac_status = 0; }; then
10137  pkg_cv_MKFONTSCALE_LIBS=`$PKG_CONFIG --libs "fontenc freetype2" 2>/dev/null`
10138else
10139  pkg_failed=yes
10140fi
10141 else
10142    pkg_failed=untried
10143fi
10144
10145
10146
10147if test $pkg_failed = yes; then
10148
10149if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10150        _pkg_short_errors_supported=yes
10151else
10152        _pkg_short_errors_supported=no
10153fi
10154        if test $_pkg_short_errors_supported = yes; then
10155	        MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontenc freetype2" 2>&1`
10156        else
10157	        MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontenc freetype2" 2>&1`
10158        fi
10159	# Put the nasty error message in config.log where it belongs
10160	echo "$MKFONTSCALE_PKG_ERRORS" >&5
10161
10162	as_fn_error $? "Package requirements (fontenc freetype2) were not met:
10163
10164$MKFONTSCALE_PKG_ERRORS
10165
10166Consider adjusting the PKG_CONFIG_PATH environment variable if you
10167installed software in a non-standard prefix.
10168
10169Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
10170and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
10171See the pkg-config man page for more details.
10172" "$LINENO" 5
10173elif test $pkg_failed = untried; then
10174	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10176as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10177is in your PATH or set the PKG_CONFIG environment variable to the full
10178path to pkg-config.
10179
10180Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
10181and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
10182See the pkg-config man page for more details.
10183
10184To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10185See \`config.log' for more details" "$LINENO" 5; }
10186else
10187	MKFONTSCALE_CFLAGS=$pkg_cv_MKFONTSCALE_CFLAGS
10188	MKFONTSCALE_LIBS=$pkg_cv_MKFONTSCALE_LIBS
10189        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10190$as_echo "yes" >&6; }
10191	:
10192fi
10193
10194pkg_failed=no
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
10196$as_echo_n "checking for X11... " >&6; }
10197
10198if test -n "$X11_CFLAGS"; then
10199    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
10200 elif test -n "$PKG_CONFIG"; then
10201    if test -n "$PKG_CONFIG" && \
10202    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10203  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10204  ac_status=$?
10205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10206  test $ac_status = 0; }; then
10207  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
10208else
10209  pkg_failed=yes
10210fi
10211 else
10212    pkg_failed=untried
10213fi
10214if test -n "$X11_LIBS"; then
10215    pkg_cv_X11_LIBS="$X11_LIBS"
10216 elif test -n "$PKG_CONFIG"; then
10217    if test -n "$PKG_CONFIG" && \
10218    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10219  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10220  ac_status=$?
10221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10222  test $ac_status = 0; }; then
10223  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
10224else
10225  pkg_failed=yes
10226fi
10227 else
10228    pkg_failed=untried
10229fi
10230
10231
10232
10233if test $pkg_failed = yes; then
10234
10235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10236        _pkg_short_errors_supported=yes
10237else
10238        _pkg_short_errors_supported=no
10239fi
10240        if test $_pkg_short_errors_supported = yes; then
10241	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
10242        else
10243	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
10244        fi
10245	# Put the nasty error message in config.log where it belongs
10246	echo "$X11_PKG_ERRORS" >&5
10247
10248	as_fn_error $? "Package requirements (xproto) were not met:
10249
10250$X11_PKG_ERRORS
10251
10252Consider adjusting the PKG_CONFIG_PATH environment variable if you
10253installed software in a non-standard prefix.
10254
10255Alternatively, you may set the environment variables X11_CFLAGS
10256and X11_LIBS to avoid the need to call pkg-config.
10257See the pkg-config man page for more details.
10258" "$LINENO" 5
10259elif test $pkg_failed = untried; then
10260	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10262as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10263is in your PATH or set the PKG_CONFIG environment variable to the full
10264path to pkg-config.
10265
10266Alternatively, you may set the environment variables X11_CFLAGS
10267and X11_LIBS to avoid the need to call pkg-config.
10268See the pkg-config man page for more details.
10269
10270To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10271See \`config.log' for more details" "$LINENO" 5; }
10272else
10273	X11_CFLAGS=$pkg_cv_X11_CFLAGS
10274	X11_LIBS=$pkg_cv_X11_LIBS
10275        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10276$as_echo "yes" >&6; }
10277	:
10278fi
10279
10280
10281
10282
10283
10284
10285# Check whether --with-lint was given.
10286if test "${with_lint+set}" = set; then :
10287  withval=$with_lint; use_lint=$withval
10288else
10289  use_lint=no
10290fi
10291
10292
10293# Obtain platform specific info like program name and options
10294# The lint program on FreeBSD and NetBSD is different from the one on Solaris
10295case $host_os in
10296  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10297	lint_name=splint
10298	lint_options="-badflag"
10299	;;
10300  *freebsd* | *netbsd*)
10301	lint_name=lint
10302	lint_options="-u -b"
10303	;;
10304  *solaris*)
10305	lint_name=lint
10306	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10307	;;
10308esac
10309
10310# Test for the presence of the program (either guessed by the code or spelled out by the user)
10311if test "x$use_lint" = x"yes" ; then
10312   # Extract the first word of "$lint_name", so it can be a program name with args.
10313set dummy $lint_name; ac_word=$2
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315$as_echo_n "checking for $ac_word... " >&6; }
10316if ${ac_cv_path_LINT+:} false; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319  case $LINT in
10320  [\\/]* | ?:[\\/]*)
10321  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10322  ;;
10323  *)
10324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325for as_dir in $PATH
10326do
10327  IFS=$as_save_IFS
10328  test -z "$as_dir" && as_dir=.
10329    for ac_exec_ext in '' $ac_executable_extensions; do
10330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333    break 2
10334  fi
10335done
10336  done
10337IFS=$as_save_IFS
10338
10339  ;;
10340esac
10341fi
10342LINT=$ac_cv_path_LINT
10343if test -n "$LINT"; then
10344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
10345$as_echo "$LINT" >&6; }
10346else
10347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348$as_echo "no" >&6; }
10349fi
10350
10351
10352   if test "x$LINT" = "x"; then
10353        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
10354   fi
10355elif test "x$use_lint" = x"no" ; then
10356   if test "x$LINT" != "x"; then
10357      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
10358$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
10359   fi
10360else
10361   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
10362fi
10363
10364# User supplied flags override default flags
10365if test "x$LINT_FLAGS" != "x"; then
10366   lint_options=$LINT_FLAGS
10367fi
10368
10369LINT_FLAGS=$lint_options
10370
10371 if test "x$LINT" != x; then
10372  LINT_TRUE=
10373  LINT_FALSE='#'
10374else
10375  LINT_TRUE='#'
10376  LINT_FALSE=
10377fi
10378
10379
10380
10381
10382ac_config_files="$ac_config_files Makefile man/Makefile"
10383
10384cat >confcache <<\_ACEOF
10385# This file is a shell script that caches the results of configure
10386# tests run on this system so they can be shared between configure
10387# scripts and configure runs, see configure's option --config-cache.
10388# It is not useful on other systems.  If it contains results you don't
10389# want to keep, you may remove or edit it.
10390#
10391# config.status only pays attention to the cache file if you give it
10392# the --recheck option to rerun configure.
10393#
10394# `ac_cv_env_foo' variables (set or unset) will be overridden when
10395# loading this file, other *unset* `ac_cv_foo' will be assigned the
10396# following values.
10397
10398_ACEOF
10399
10400# The following way of writing the cache mishandles newlines in values,
10401# but we know of no workaround that is simple, portable, and efficient.
10402# So, we kill variables containing newlines.
10403# Ultrix sh set writes to stderr and can't be redirected directly,
10404# and sets the high bit in the cache file unless we assign to the vars.
10405(
10406  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10407    eval ac_val=\$$ac_var
10408    case $ac_val in #(
10409    *${as_nl}*)
10410      case $ac_var in #(
10411      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10412$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10413      esac
10414      case $ac_var in #(
10415      _ | IFS | as_nl) ;; #(
10416      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10417      *) { eval $ac_var=; unset $ac_var;} ;;
10418      esac ;;
10419    esac
10420  done
10421
10422  (set) 2>&1 |
10423    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10424    *${as_nl}ac_space=\ *)
10425      # `set' does not quote correctly, so add quotes: double-quote
10426      # substitution turns \\\\ into \\, and sed turns \\ into \.
10427      sed -n \
10428	"s/'/'\\\\''/g;
10429	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10430      ;; #(
10431    *)
10432      # `set' quotes correctly as required by POSIX, so do not add quotes.
10433      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10434      ;;
10435    esac |
10436    sort
10437) |
10438  sed '
10439     /^ac_cv_env_/b end
10440     t clear
10441     :clear
10442     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10443     t end
10444     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10445     :end' >>confcache
10446if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10447  if test -w "$cache_file"; then
10448    if test "x$cache_file" != "x/dev/null"; then
10449      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10450$as_echo "$as_me: updating cache $cache_file" >&6;}
10451      if test ! -f "$cache_file" || test -h "$cache_file"; then
10452	cat confcache >"$cache_file"
10453      else
10454        case $cache_file in #(
10455        */* | ?:*)
10456	  mv -f confcache "$cache_file"$$ &&
10457	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10458        *)
10459	  mv -f confcache "$cache_file" ;;
10460	esac
10461      fi
10462    fi
10463  else
10464    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10465$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10466  fi
10467fi
10468rm -f confcache
10469
10470test "x$prefix" = xNONE && prefix=$ac_default_prefix
10471# Let make expand exec_prefix.
10472test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10473
10474DEFS=-DHAVE_CONFIG_H
10475
10476ac_libobjs=
10477ac_ltlibobjs=
10478U=
10479for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10480  # 1. Remove the extension, and $U if already installed.
10481  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10482  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10483  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10484  #    will be set to the directory where LIBOBJS objects are built.
10485  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10486  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10487done
10488LIBOBJS=$ac_libobjs
10489
10490LTLIBOBJS=$ac_ltlibobjs
10491
10492
10493 if test -n "$EXEEXT"; then
10494  am__EXEEXT_TRUE=
10495  am__EXEEXT_FALSE='#'
10496else
10497  am__EXEEXT_TRUE='#'
10498  am__EXEEXT_FALSE=
10499fi
10500
10501if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10502  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10503Usually this means the macro was only invoked conditionally." "$LINENO" 5
10504fi
10505if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10506  as_fn_error $? "conditional \"AMDEP\" was never defined.
10507Usually this means the macro was only invoked conditionally." "$LINENO" 5
10508fi
10509if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10510  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10511Usually this means the macro was only invoked conditionally." "$LINENO" 5
10512fi
10513if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
10514  as_fn_error $? "conditional \"LINT\" was never defined.
10515Usually this means the macro was only invoked conditionally." "$LINENO" 5
10516fi
10517
10518: "${CONFIG_STATUS=./config.status}"
10519ac_write_fail=0
10520ac_clean_files_save=$ac_clean_files
10521ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10523$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10524as_write_fail=0
10525cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10526#! $SHELL
10527# Generated by $as_me.
10528# Run this file to recreate the current configuration.
10529# Compiler output produced by configure, useful for debugging
10530# configure, is in config.log if it exists.
10531
10532debug=false
10533ac_cs_recheck=false
10534ac_cs_silent=false
10535
10536SHELL=\${CONFIG_SHELL-$SHELL}
10537export SHELL
10538_ASEOF
10539cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10540## -------------------- ##
10541## M4sh Initialization. ##
10542## -------------------- ##
10543
10544# Be more Bourne compatible
10545DUALCASE=1; export DUALCASE # for MKS sh
10546if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10547  emulate sh
10548  NULLCMD=:
10549  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10550  # is contrary to our usage.  Disable this feature.
10551  alias -g '${1+"$@"}'='"$@"'
10552  setopt NO_GLOB_SUBST
10553else
10554  case `(set -o) 2>/dev/null` in #(
10555  *posix*) :
10556    set -o posix ;; #(
10557  *) :
10558     ;;
10559esac
10560fi
10561
10562
10563as_nl='
10564'
10565export as_nl
10566# Printing a long string crashes Solaris 7 /usr/bin/printf.
10567as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10568as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10569as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10570# Prefer a ksh shell builtin over an external printf program on Solaris,
10571# but without wasting forks for bash or zsh.
10572if test -z "$BASH_VERSION$ZSH_VERSION" \
10573    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10574  as_echo='print -r --'
10575  as_echo_n='print -rn --'
10576elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10577  as_echo='printf %s\n'
10578  as_echo_n='printf %s'
10579else
10580  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10581    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10582    as_echo_n='/usr/ucb/echo -n'
10583  else
10584    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10585    as_echo_n_body='eval
10586      arg=$1;
10587      case $arg in #(
10588      *"$as_nl"*)
10589	expr "X$arg" : "X\\(.*\\)$as_nl";
10590	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10591      esac;
10592      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10593    '
10594    export as_echo_n_body
10595    as_echo_n='sh -c $as_echo_n_body as_echo'
10596  fi
10597  export as_echo_body
10598  as_echo='sh -c $as_echo_body as_echo'
10599fi
10600
10601# The user is always right.
10602if test "${PATH_SEPARATOR+set}" != set; then
10603  PATH_SEPARATOR=:
10604  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10605    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10606      PATH_SEPARATOR=';'
10607  }
10608fi
10609
10610
10611# IFS
10612# We need space, tab and new line, in precisely that order.  Quoting is
10613# there to prevent editors from complaining about space-tab.
10614# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10615# splitting by setting IFS to empty value.)
10616IFS=" ""	$as_nl"
10617
10618# Find who we are.  Look in the path if we contain no directory separator.
10619as_myself=
10620case $0 in #((
10621  *[\\/]* ) as_myself=$0 ;;
10622  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623for as_dir in $PATH
10624do
10625  IFS=$as_save_IFS
10626  test -z "$as_dir" && as_dir=.
10627    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10628  done
10629IFS=$as_save_IFS
10630
10631     ;;
10632esac
10633# We did not find ourselves, most probably we were run as `sh COMMAND'
10634# in which case we are not to be found in the path.
10635if test "x$as_myself" = x; then
10636  as_myself=$0
10637fi
10638if test ! -f "$as_myself"; then
10639  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10640  exit 1
10641fi
10642
10643# Unset variables that we do not need and which cause bugs (e.g. in
10644# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10645# suppresses any "Segmentation fault" message there.  '((' could
10646# trigger a bug in pdksh 5.2.14.
10647for as_var in BASH_ENV ENV MAIL MAILPATH
10648do eval test x\${$as_var+set} = xset \
10649  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10650done
10651PS1='$ '
10652PS2='> '
10653PS4='+ '
10654
10655# NLS nuisances.
10656LC_ALL=C
10657export LC_ALL
10658LANGUAGE=C
10659export LANGUAGE
10660
10661# CDPATH.
10662(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10663
10664
10665# as_fn_error STATUS ERROR [LINENO LOG_FD]
10666# ----------------------------------------
10667# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10668# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10669# script with STATUS, using 1 if that was 0.
10670as_fn_error ()
10671{
10672  as_status=$1; test $as_status -eq 0 && as_status=1
10673  if test "$4"; then
10674    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10675    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10676  fi
10677  $as_echo "$as_me: error: $2" >&2
10678  as_fn_exit $as_status
10679} # as_fn_error
10680
10681
10682# as_fn_set_status STATUS
10683# -----------------------
10684# Set $? to STATUS, without forking.
10685as_fn_set_status ()
10686{
10687  return $1
10688} # as_fn_set_status
10689
10690# as_fn_exit STATUS
10691# -----------------
10692# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10693as_fn_exit ()
10694{
10695  set +e
10696  as_fn_set_status $1
10697  exit $1
10698} # as_fn_exit
10699
10700# as_fn_unset VAR
10701# ---------------
10702# Portably unset VAR.
10703as_fn_unset ()
10704{
10705  { eval $1=; unset $1;}
10706}
10707as_unset=as_fn_unset
10708# as_fn_append VAR VALUE
10709# ----------------------
10710# Append the text in VALUE to the end of the definition contained in VAR. Take
10711# advantage of any shell optimizations that allow amortized linear growth over
10712# repeated appends, instead of the typical quadratic growth present in naive
10713# implementations.
10714if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10715  eval 'as_fn_append ()
10716  {
10717    eval $1+=\$2
10718  }'
10719else
10720  as_fn_append ()
10721  {
10722    eval $1=\$$1\$2
10723  }
10724fi # as_fn_append
10725
10726# as_fn_arith ARG...
10727# ------------------
10728# Perform arithmetic evaluation on the ARGs, and store the result in the
10729# global $as_val. Take advantage of shells that can avoid forks. The arguments
10730# must be portable across $(()) and expr.
10731if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10732  eval 'as_fn_arith ()
10733  {
10734    as_val=$(( $* ))
10735  }'
10736else
10737  as_fn_arith ()
10738  {
10739    as_val=`expr "$@" || test $? -eq 1`
10740  }
10741fi # as_fn_arith
10742
10743
10744if expr a : '\(a\)' >/dev/null 2>&1 &&
10745   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10746  as_expr=expr
10747else
10748  as_expr=false
10749fi
10750
10751if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10752  as_basename=basename
10753else
10754  as_basename=false
10755fi
10756
10757if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10758  as_dirname=dirname
10759else
10760  as_dirname=false
10761fi
10762
10763as_me=`$as_basename -- "$0" ||
10764$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10765	 X"$0" : 'X\(//\)$' \| \
10766	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10767$as_echo X/"$0" |
10768    sed '/^.*\/\([^/][^/]*\)\/*$/{
10769	    s//\1/
10770	    q
10771	  }
10772	  /^X\/\(\/\/\)$/{
10773	    s//\1/
10774	    q
10775	  }
10776	  /^X\/\(\/\).*/{
10777	    s//\1/
10778	    q
10779	  }
10780	  s/.*/./; q'`
10781
10782# Avoid depending upon Character Ranges.
10783as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10784as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10785as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10786as_cr_digits='0123456789'
10787as_cr_alnum=$as_cr_Letters$as_cr_digits
10788
10789ECHO_C= ECHO_N= ECHO_T=
10790case `echo -n x` in #(((((
10791-n*)
10792  case `echo 'xy\c'` in
10793  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10794  xy)  ECHO_C='\c';;
10795  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10796       ECHO_T='	';;
10797  esac;;
10798*)
10799  ECHO_N='-n';;
10800esac
10801
10802rm -f conf$$ conf$$.exe conf$$.file
10803if test -d conf$$.dir; then
10804  rm -f conf$$.dir/conf$$.file
10805else
10806  rm -f conf$$.dir
10807  mkdir conf$$.dir 2>/dev/null
10808fi
10809if (echo >conf$$.file) 2>/dev/null; then
10810  if ln -s conf$$.file conf$$ 2>/dev/null; then
10811    as_ln_s='ln -s'
10812    # ... but there are two gotchas:
10813    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10814    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10815    # In both cases, we have to default to `cp -p'.
10816    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10817      as_ln_s='cp -p'
10818  elif ln conf$$.file conf$$ 2>/dev/null; then
10819    as_ln_s=ln
10820  else
10821    as_ln_s='cp -p'
10822  fi
10823else
10824  as_ln_s='cp -p'
10825fi
10826rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10827rmdir conf$$.dir 2>/dev/null
10828
10829
10830# as_fn_mkdir_p
10831# -------------
10832# Create "$as_dir" as a directory, including parents if necessary.
10833as_fn_mkdir_p ()
10834{
10835
10836  case $as_dir in #(
10837  -*) as_dir=./$as_dir;;
10838  esac
10839  test -d "$as_dir" || eval $as_mkdir_p || {
10840    as_dirs=
10841    while :; do
10842      case $as_dir in #(
10843      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10844      *) as_qdir=$as_dir;;
10845      esac
10846      as_dirs="'$as_qdir' $as_dirs"
10847      as_dir=`$as_dirname -- "$as_dir" ||
10848$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10849	 X"$as_dir" : 'X\(//\)[^/]' \| \
10850	 X"$as_dir" : 'X\(//\)$' \| \
10851	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10852$as_echo X"$as_dir" |
10853    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10854	    s//\1/
10855	    q
10856	  }
10857	  /^X\(\/\/\)[^/].*/{
10858	    s//\1/
10859	    q
10860	  }
10861	  /^X\(\/\/\)$/{
10862	    s//\1/
10863	    q
10864	  }
10865	  /^X\(\/\).*/{
10866	    s//\1/
10867	    q
10868	  }
10869	  s/.*/./; q'`
10870      test -d "$as_dir" && break
10871    done
10872    test -z "$as_dirs" || eval "mkdir $as_dirs"
10873  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10874
10875
10876} # as_fn_mkdir_p
10877if mkdir -p . 2>/dev/null; then
10878  as_mkdir_p='mkdir -p "$as_dir"'
10879else
10880  test -d ./-p && rmdir ./-p
10881  as_mkdir_p=false
10882fi
10883
10884if test -x / >/dev/null 2>&1; then
10885  as_test_x='test -x'
10886else
10887  if ls -dL / >/dev/null 2>&1; then
10888    as_ls_L_option=L
10889  else
10890    as_ls_L_option=
10891  fi
10892  as_test_x='
10893    eval sh -c '\''
10894      if test -d "$1"; then
10895	test -d "$1/.";
10896      else
10897	case $1 in #(
10898	-*)set "./$1";;
10899	esac;
10900	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10901	???[sx]*):;;*)false;;esac;fi
10902    '\'' sh
10903  '
10904fi
10905as_executable_p=$as_test_x
10906
10907# Sed expression to map a string onto a valid CPP name.
10908as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10909
10910# Sed expression to map a string onto a valid variable name.
10911as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10912
10913
10914exec 6>&1
10915## ----------------------------------- ##
10916## Main body of $CONFIG_STATUS script. ##
10917## ----------------------------------- ##
10918_ASEOF
10919test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10920
10921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10922# Save the log message, to keep $0 and so on meaningful, and to
10923# report actual input values of CONFIG_FILES etc. instead of their
10924# values after options handling.
10925ac_log="
10926This file was extended by mkfontscale $as_me 1.1.0, which was
10927generated by GNU Autoconf 2.68.  Invocation command line was
10928
10929  CONFIG_FILES    = $CONFIG_FILES
10930  CONFIG_HEADERS  = $CONFIG_HEADERS
10931  CONFIG_LINKS    = $CONFIG_LINKS
10932  CONFIG_COMMANDS = $CONFIG_COMMANDS
10933  $ $0 $@
10934
10935on `(hostname || uname -n) 2>/dev/null | sed 1q`
10936"
10937
10938_ACEOF
10939
10940case $ac_config_files in *"
10941"*) set x $ac_config_files; shift; ac_config_files=$*;;
10942esac
10943
10944case $ac_config_headers in *"
10945"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10946esac
10947
10948
10949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10950# Files that config.status was made for.
10951config_files="$ac_config_files"
10952config_headers="$ac_config_headers"
10953config_commands="$ac_config_commands"
10954
10955_ACEOF
10956
10957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10958ac_cs_usage="\
10959\`$as_me' instantiates files and other configuration actions
10960from templates according to the current configuration.  Unless the files
10961and actions are specified as TAGs, all are instantiated by default.
10962
10963Usage: $0 [OPTION]... [TAG]...
10964
10965  -h, --help       print this help, then exit
10966  -V, --version    print version number and configuration settings, then exit
10967      --config     print configuration, then exit
10968  -q, --quiet, --silent
10969                   do not print progress messages
10970  -d, --debug      don't remove temporary files
10971      --recheck    update $as_me by reconfiguring in the same conditions
10972      --file=FILE[:TEMPLATE]
10973                   instantiate the configuration file FILE
10974      --header=FILE[:TEMPLATE]
10975                   instantiate the configuration header FILE
10976
10977Configuration files:
10978$config_files
10979
10980Configuration headers:
10981$config_headers
10982
10983Configuration commands:
10984$config_commands
10985
10986Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
10987
10988_ACEOF
10989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10990ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10991ac_cs_version="\\
10992mkfontscale config.status 1.1.0
10993configured by $0, generated by GNU Autoconf 2.68,
10994  with options \\"\$ac_cs_config\\"
10995
10996Copyright (C) 2010 Free Software Foundation, Inc.
10997This config.status script is free software; the Free Software Foundation
10998gives unlimited permission to copy, distribute and modify it."
10999
11000ac_pwd='$ac_pwd'
11001srcdir='$srcdir'
11002INSTALL='$INSTALL'
11003MKDIR_P='$MKDIR_P'
11004AWK='$AWK'
11005test -n "\$AWK" || AWK=awk
11006_ACEOF
11007
11008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11009# The default lists apply if the user does not specify any file.
11010ac_need_defaults=:
11011while test $# != 0
11012do
11013  case $1 in
11014  --*=?*)
11015    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11016    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11017    ac_shift=:
11018    ;;
11019  --*=)
11020    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11021    ac_optarg=
11022    ac_shift=:
11023    ;;
11024  *)
11025    ac_option=$1
11026    ac_optarg=$2
11027    ac_shift=shift
11028    ;;
11029  esac
11030
11031  case $ac_option in
11032  # Handling of the options.
11033  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11034    ac_cs_recheck=: ;;
11035  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11036    $as_echo "$ac_cs_version"; exit ;;
11037  --config | --confi | --conf | --con | --co | --c )
11038    $as_echo "$ac_cs_config"; exit ;;
11039  --debug | --debu | --deb | --de | --d | -d )
11040    debug=: ;;
11041  --file | --fil | --fi | --f )
11042    $ac_shift
11043    case $ac_optarg in
11044    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11045    '') as_fn_error $? "missing file argument" ;;
11046    esac
11047    as_fn_append CONFIG_FILES " '$ac_optarg'"
11048    ac_need_defaults=false;;
11049  --header | --heade | --head | --hea )
11050    $ac_shift
11051    case $ac_optarg in
11052    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11053    esac
11054    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11055    ac_need_defaults=false;;
11056  --he | --h)
11057    # Conflict between --help and --header
11058    as_fn_error $? "ambiguous option: \`$1'
11059Try \`$0 --help' for more information.";;
11060  --help | --hel | -h )
11061    $as_echo "$ac_cs_usage"; exit ;;
11062  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11063  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11064    ac_cs_silent=: ;;
11065
11066  # This is an error.
11067  -*) as_fn_error $? "unrecognized option: \`$1'
11068Try \`$0 --help' for more information." ;;
11069
11070  *) as_fn_append ac_config_targets " $1"
11071     ac_need_defaults=false ;;
11072
11073  esac
11074  shift
11075done
11076
11077ac_configure_extra_args=
11078
11079if $ac_cs_silent; then
11080  exec 6>/dev/null
11081  ac_configure_extra_args="$ac_configure_extra_args --silent"
11082fi
11083
11084_ACEOF
11085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11086if \$ac_cs_recheck; then
11087  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11088  shift
11089  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11090  CONFIG_SHELL='$SHELL'
11091  export CONFIG_SHELL
11092  exec "\$@"
11093fi
11094
11095_ACEOF
11096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11097exec 5>>config.log
11098{
11099  echo
11100  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11101## Running $as_me. ##
11102_ASBOX
11103  $as_echo "$ac_log"
11104} >&5
11105
11106_ACEOF
11107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11108#
11109# INIT-COMMANDS
11110#
11111AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11112
11113_ACEOF
11114
11115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11116
11117# Handling of arguments.
11118for ac_config_target in $ac_config_targets
11119do
11120  case $ac_config_target in
11121    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11122    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11123    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11124    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11125
11126  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11127  esac
11128done
11129
11130
11131# If the user did not use the arguments to specify the items to instantiate,
11132# then the envvar interface is used.  Set only those that are not.
11133# We use the long form for the default assignment because of an extremely
11134# bizarre bug on SunOS 4.1.3.
11135if $ac_need_defaults; then
11136  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11137  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11138  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11139fi
11140
11141# Have a temporary directory for convenience.  Make it in the build tree
11142# simply because there is no reason against having it here, and in addition,
11143# creating and moving files from /tmp can sometimes cause problems.
11144# Hook for its removal unless debugging.
11145# Note that there is a small window in which the directory will not be cleaned:
11146# after its creation but before its name has been assigned to `$tmp'.
11147$debug ||
11148{
11149  tmp= ac_tmp=
11150  trap 'exit_status=$?
11151  : "${ac_tmp:=$tmp}"
11152  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11153' 0
11154  trap 'as_fn_exit 1' 1 2 13 15
11155}
11156# Create a (secure) tmp directory for tmp files.
11157
11158{
11159  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11160  test -d "$tmp"
11161}  ||
11162{
11163  tmp=./conf$$-$RANDOM
11164  (umask 077 && mkdir "$tmp")
11165} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11166ac_tmp=$tmp
11167
11168# Set up the scripts for CONFIG_FILES section.
11169# No need to generate them if there are no CONFIG_FILES.
11170# This happens for instance with `./config.status config.h'.
11171if test -n "$CONFIG_FILES"; then
11172
11173
11174ac_cr=`echo X | tr X '\015'`
11175# On cygwin, bash can eat \r inside `` if the user requested igncr.
11176# But we know of no other shell where ac_cr would be empty at this
11177# point, so we can use a bashism as a fallback.
11178if test "x$ac_cr" = x; then
11179  eval ac_cr=\$\'\\r\'
11180fi
11181ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11182if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11183  ac_cs_awk_cr='\\r'
11184else
11185  ac_cs_awk_cr=$ac_cr
11186fi
11187
11188echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11189_ACEOF
11190
11191
11192{
11193  echo "cat >conf$$subs.awk <<_ACEOF" &&
11194  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11195  echo "_ACEOF"
11196} >conf$$subs.sh ||
11197  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11198ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11199ac_delim='%!_!# '
11200for ac_last_try in false false false false false :; do
11201  . ./conf$$subs.sh ||
11202    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11203
11204  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11205  if test $ac_delim_n = $ac_delim_num; then
11206    break
11207  elif $ac_last_try; then
11208    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11209  else
11210    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11211  fi
11212done
11213rm -f conf$$subs.sh
11214
11215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11216cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11217_ACEOF
11218sed -n '
11219h
11220s/^/S["/; s/!.*/"]=/
11221p
11222g
11223s/^[^!]*!//
11224:repl
11225t repl
11226s/'"$ac_delim"'$//
11227t delim
11228:nl
11229h
11230s/\(.\{148\}\)..*/\1/
11231t more1
11232s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11233p
11234n
11235b repl
11236:more1
11237s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11238p
11239g
11240s/.\{148\}//
11241t nl
11242:delim
11243h
11244s/\(.\{148\}\)..*/\1/
11245t more2
11246s/["\\]/\\&/g; s/^/"/; s/$/"/
11247p
11248b
11249:more2
11250s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11251p
11252g
11253s/.\{148\}//
11254t delim
11255' <conf$$subs.awk | sed '
11256/^[^""]/{
11257  N
11258  s/\n//
11259}
11260' >>$CONFIG_STATUS || ac_write_fail=1
11261rm -f conf$$subs.awk
11262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11263_ACAWK
11264cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11265  for (key in S) S_is_set[key] = 1
11266  FS = ""
11267
11268}
11269{
11270  line = $ 0
11271  nfields = split(line, field, "@")
11272  substed = 0
11273  len = length(field[1])
11274  for (i = 2; i < nfields; i++) {
11275    key = field[i]
11276    keylen = length(key)
11277    if (S_is_set[key]) {
11278      value = S[key]
11279      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11280      len += length(value) + length(field[++i])
11281      substed = 1
11282    } else
11283      len += 1 + keylen
11284  }
11285
11286  print line
11287}
11288
11289_ACAWK
11290_ACEOF
11291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11292if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11293  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11294else
11295  cat
11296fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11297  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11298_ACEOF
11299
11300# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11301# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11302# trailing colons and then remove the whole line if VPATH becomes empty
11303# (actually we leave an empty line to preserve line numbers).
11304if test "x$srcdir" = x.; then
11305  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11306h
11307s///
11308s/^/:/
11309s/[	 ]*$/:/
11310s/:\$(srcdir):/:/g
11311s/:\${srcdir}:/:/g
11312s/:@srcdir@:/:/g
11313s/^:*//
11314s/:*$//
11315x
11316s/\(=[	 ]*\).*/\1/
11317G
11318s/\n//
11319s/^[^=]*=[	 ]*$//
11320}'
11321fi
11322
11323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11324fi # test -n "$CONFIG_FILES"
11325
11326# Set up the scripts for CONFIG_HEADERS section.
11327# No need to generate them if there are no CONFIG_HEADERS.
11328# This happens for instance with `./config.status Makefile'.
11329if test -n "$CONFIG_HEADERS"; then
11330cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11331BEGIN {
11332_ACEOF
11333
11334# Transform confdefs.h into an awk script `defines.awk', embedded as
11335# here-document in config.status, that substitutes the proper values into
11336# config.h.in to produce config.h.
11337
11338# Create a delimiter string that does not exist in confdefs.h, to ease
11339# handling of long lines.
11340ac_delim='%!_!# '
11341for ac_last_try in false false :; do
11342  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11343  if test -z "$ac_tt"; then
11344    break
11345  elif $ac_last_try; then
11346    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11347  else
11348    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11349  fi
11350done
11351
11352# For the awk script, D is an array of macro values keyed by name,
11353# likewise P contains macro parameters if any.  Preserve backslash
11354# newline sequences.
11355
11356ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11357sed -n '
11358s/.\{148\}/&'"$ac_delim"'/g
11359t rset
11360:rset
11361s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11362t def
11363d
11364:def
11365s/\\$//
11366t bsnl
11367s/["\\]/\\&/g
11368s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11369D["\1"]=" \3"/p
11370s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11371d
11372:bsnl
11373s/["\\]/\\&/g
11374s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11375D["\1"]=" \3\\\\\\n"\\/p
11376t cont
11377s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11378t cont
11379d
11380:cont
11381n
11382s/.\{148\}/&'"$ac_delim"'/g
11383t clear
11384:clear
11385s/\\$//
11386t bsnlc
11387s/["\\]/\\&/g; s/^/"/; s/$/"/p
11388d
11389:bsnlc
11390s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11391b cont
11392' <confdefs.h | sed '
11393s/'"$ac_delim"'/"\\\
11394"/g' >>$CONFIG_STATUS || ac_write_fail=1
11395
11396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11397  for (key in D) D_is_set[key] = 1
11398  FS = ""
11399}
11400/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11401  line = \$ 0
11402  split(line, arg, " ")
11403  if (arg[1] == "#") {
11404    defundef = arg[2]
11405    mac1 = arg[3]
11406  } else {
11407    defundef = substr(arg[1], 2)
11408    mac1 = arg[2]
11409  }
11410  split(mac1, mac2, "(") #)
11411  macro = mac2[1]
11412  prefix = substr(line, 1, index(line, defundef) - 1)
11413  if (D_is_set[macro]) {
11414    # Preserve the white space surrounding the "#".
11415    print prefix "define", macro P[macro] D[macro]
11416    next
11417  } else {
11418    # Replace #undef with comments.  This is necessary, for example,
11419    # in the case of _POSIX_SOURCE, which is predefined and required
11420    # on some systems where configure will not decide to define it.
11421    if (defundef == "undef") {
11422      print "/*", prefix defundef, macro, "*/"
11423      next
11424    }
11425  }
11426}
11427{ print }
11428_ACAWK
11429_ACEOF
11430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11431  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11432fi # test -n "$CONFIG_HEADERS"
11433
11434
11435eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11436shift
11437for ac_tag
11438do
11439  case $ac_tag in
11440  :[FHLC]) ac_mode=$ac_tag; continue;;
11441  esac
11442  case $ac_mode$ac_tag in
11443  :[FHL]*:*);;
11444  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11445  :[FH]-) ac_tag=-:-;;
11446  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11447  esac
11448  ac_save_IFS=$IFS
11449  IFS=:
11450  set x $ac_tag
11451  IFS=$ac_save_IFS
11452  shift
11453  ac_file=$1
11454  shift
11455
11456  case $ac_mode in
11457  :L) ac_source=$1;;
11458  :[FH])
11459    ac_file_inputs=
11460    for ac_f
11461    do
11462      case $ac_f in
11463      -) ac_f="$ac_tmp/stdin";;
11464      *) # Look for the file first in the build tree, then in the source tree
11465	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11466	 # because $ac_f cannot contain `:'.
11467	 test -f "$ac_f" ||
11468	   case $ac_f in
11469	   [\\/$]*) false;;
11470	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11471	   esac ||
11472	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11473      esac
11474      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11475      as_fn_append ac_file_inputs " '$ac_f'"
11476    done
11477
11478    # Let's still pretend it is `configure' which instantiates (i.e., don't
11479    # use $as_me), people would be surprised to read:
11480    #    /* config.h.  Generated by config.status.  */
11481    configure_input='Generated from '`
11482	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11483	`' by configure.'
11484    if test x"$ac_file" != x-; then
11485      configure_input="$ac_file.  $configure_input"
11486      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11487$as_echo "$as_me: creating $ac_file" >&6;}
11488    fi
11489    # Neutralize special characters interpreted by sed in replacement strings.
11490    case $configure_input in #(
11491    *\&* | *\|* | *\\* )
11492       ac_sed_conf_input=`$as_echo "$configure_input" |
11493       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11494    *) ac_sed_conf_input=$configure_input;;
11495    esac
11496
11497    case $ac_tag in
11498    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11499      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11500    esac
11501    ;;
11502  esac
11503
11504  ac_dir=`$as_dirname -- "$ac_file" ||
11505$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11506	 X"$ac_file" : 'X\(//\)[^/]' \| \
11507	 X"$ac_file" : 'X\(//\)$' \| \
11508	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11509$as_echo X"$ac_file" |
11510    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11511	    s//\1/
11512	    q
11513	  }
11514	  /^X\(\/\/\)[^/].*/{
11515	    s//\1/
11516	    q
11517	  }
11518	  /^X\(\/\/\)$/{
11519	    s//\1/
11520	    q
11521	  }
11522	  /^X\(\/\).*/{
11523	    s//\1/
11524	    q
11525	  }
11526	  s/.*/./; q'`
11527  as_dir="$ac_dir"; as_fn_mkdir_p
11528  ac_builddir=.
11529
11530case "$ac_dir" in
11531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11532*)
11533  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11534  # A ".." for each directory in $ac_dir_suffix.
11535  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11536  case $ac_top_builddir_sub in
11537  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11538  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11539  esac ;;
11540esac
11541ac_abs_top_builddir=$ac_pwd
11542ac_abs_builddir=$ac_pwd$ac_dir_suffix
11543# for backward compatibility:
11544ac_top_builddir=$ac_top_build_prefix
11545
11546case $srcdir in
11547  .)  # We are building in place.
11548    ac_srcdir=.
11549    ac_top_srcdir=$ac_top_builddir_sub
11550    ac_abs_top_srcdir=$ac_pwd ;;
11551  [\\/]* | ?:[\\/]* )  # Absolute name.
11552    ac_srcdir=$srcdir$ac_dir_suffix;
11553    ac_top_srcdir=$srcdir
11554    ac_abs_top_srcdir=$srcdir ;;
11555  *) # Relative name.
11556    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11557    ac_top_srcdir=$ac_top_build_prefix$srcdir
11558    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11559esac
11560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11561
11562
11563  case $ac_mode in
11564  :F)
11565  #
11566  # CONFIG_FILE
11567  #
11568
11569  case $INSTALL in
11570  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11571  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11572  esac
11573  ac_MKDIR_P=$MKDIR_P
11574  case $MKDIR_P in
11575  [\\/$]* | ?:[\\/]* ) ;;
11576  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11577  esac
11578_ACEOF
11579
11580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11581# If the template does not know about datarootdir, expand it.
11582# FIXME: This hack should be removed a few years after 2.60.
11583ac_datarootdir_hack=; ac_datarootdir_seen=
11584ac_sed_dataroot='
11585/datarootdir/ {
11586  p
11587  q
11588}
11589/@datadir@/p
11590/@docdir@/p
11591/@infodir@/p
11592/@localedir@/p
11593/@mandir@/p'
11594case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11595*datarootdir*) ac_datarootdir_seen=yes;;
11596*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11597  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11598$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11599_ACEOF
11600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11601  ac_datarootdir_hack='
11602  s&@datadir@&$datadir&g
11603  s&@docdir@&$docdir&g
11604  s&@infodir@&$infodir&g
11605  s&@localedir@&$localedir&g
11606  s&@mandir@&$mandir&g
11607  s&\\\${datarootdir}&$datarootdir&g' ;;
11608esac
11609_ACEOF
11610
11611# Neutralize VPATH when `$srcdir' = `.'.
11612# Shell code in configure.ac might set extrasub.
11613# FIXME: do we really want to maintain this feature?
11614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11615ac_sed_extra="$ac_vpsub
11616$extrasub
11617_ACEOF
11618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11619:t
11620/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11621s|@configure_input@|$ac_sed_conf_input|;t t
11622s&@top_builddir@&$ac_top_builddir_sub&;t t
11623s&@top_build_prefix@&$ac_top_build_prefix&;t t
11624s&@srcdir@&$ac_srcdir&;t t
11625s&@abs_srcdir@&$ac_abs_srcdir&;t t
11626s&@top_srcdir@&$ac_top_srcdir&;t t
11627s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11628s&@builddir@&$ac_builddir&;t t
11629s&@abs_builddir@&$ac_abs_builddir&;t t
11630s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11631s&@INSTALL@&$ac_INSTALL&;t t
11632s&@MKDIR_P@&$ac_MKDIR_P&;t t
11633$ac_datarootdir_hack
11634"
11635eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11636  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11637
11638test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11639  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11640  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11641      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11642  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11643which seems to be undefined.  Please make sure it is defined" >&5
11644$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11645which seems to be undefined.  Please make sure it is defined" >&2;}
11646
11647  rm -f "$ac_tmp/stdin"
11648  case $ac_file in
11649  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11650  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11651  esac \
11652  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11653 ;;
11654  :H)
11655  #
11656  # CONFIG_HEADER
11657  #
11658  if test x"$ac_file" != x-; then
11659    {
11660      $as_echo "/* $configure_input  */" \
11661      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11662    } >"$ac_tmp/config.h" \
11663      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11664    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11665      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11666$as_echo "$as_me: $ac_file is unchanged" >&6;}
11667    else
11668      rm -f "$ac_file"
11669      mv "$ac_tmp/config.h" "$ac_file" \
11670	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11671    fi
11672  else
11673    $as_echo "/* $configure_input  */" \
11674      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11675      || as_fn_error $? "could not create -" "$LINENO" 5
11676  fi
11677# Compute "$ac_file"'s index in $config_headers.
11678_am_arg="$ac_file"
11679_am_stamp_count=1
11680for _am_header in $config_headers :; do
11681  case $_am_header in
11682    $_am_arg | $_am_arg:* )
11683      break ;;
11684    * )
11685      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11686  esac
11687done
11688echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11689$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11690	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11691	 X"$_am_arg" : 'X\(//\)$' \| \
11692	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11693$as_echo X"$_am_arg" |
11694    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11695	    s//\1/
11696	    q
11697	  }
11698	  /^X\(\/\/\)[^/].*/{
11699	    s//\1/
11700	    q
11701	  }
11702	  /^X\(\/\/\)$/{
11703	    s//\1/
11704	    q
11705	  }
11706	  /^X\(\/\).*/{
11707	    s//\1/
11708	    q
11709	  }
11710	  s/.*/./; q'`/stamp-h$_am_stamp_count
11711 ;;
11712
11713  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11714$as_echo "$as_me: executing $ac_file commands" >&6;}
11715 ;;
11716  esac
11717
11718
11719  case $ac_file$ac_mode in
11720    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11721  # Autoconf 2.62 quotes --file arguments for eval, but not when files
11722  # are listed without --file.  Let's play safe and only enable the eval
11723  # if we detect the quoting.
11724  case $CONFIG_FILES in
11725  *\'*) eval set x "$CONFIG_FILES" ;;
11726  *)   set x $CONFIG_FILES ;;
11727  esac
11728  shift
11729  for mf
11730  do
11731    # Strip MF so we end up with the name of the file.
11732    mf=`echo "$mf" | sed -e 's/:.*$//'`
11733    # Check whether this is an Automake generated Makefile or not.
11734    # We used to match only the files named `Makefile.in', but
11735    # some people rename them; so instead we look at the file content.
11736    # Grep'ing the first line is not enough: some people post-process
11737    # each Makefile.in and add a new line on top of each file to say so.
11738    # Grep'ing the whole file is not good either: AIX grep has a line
11739    # limit of 2048, but all sed's we know have understand at least 4000.
11740    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11741      dirpart=`$as_dirname -- "$mf" ||
11742$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11743	 X"$mf" : 'X\(//\)[^/]' \| \
11744	 X"$mf" : 'X\(//\)$' \| \
11745	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11746$as_echo X"$mf" |
11747    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11748	    s//\1/
11749	    q
11750	  }
11751	  /^X\(\/\/\)[^/].*/{
11752	    s//\1/
11753	    q
11754	  }
11755	  /^X\(\/\/\)$/{
11756	    s//\1/
11757	    q
11758	  }
11759	  /^X\(\/\).*/{
11760	    s//\1/
11761	    q
11762	  }
11763	  s/.*/./; q'`
11764    else
11765      continue
11766    fi
11767    # Extract the definition of DEPDIR, am__include, and am__quote
11768    # from the Makefile without running `make'.
11769    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11770    test -z "$DEPDIR" && continue
11771    am__include=`sed -n 's/^am__include = //p' < "$mf"`
11772    test -z "am__include" && continue
11773    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11774    # When using ansi2knr, U may be empty or an underscore; expand it
11775    U=`sed -n 's/^U = //p' < "$mf"`
11776    # Find all dependency output files, they are included files with
11777    # $(DEPDIR) in their names.  We invoke sed twice because it is the
11778    # simplest approach to changing $(DEPDIR) to its actual value in the
11779    # expansion.
11780    for file in `sed -n "
11781      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11782	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11783      # Make sure the directory exists.
11784      test -f "$dirpart/$file" && continue
11785      fdir=`$as_dirname -- "$file" ||
11786$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11787	 X"$file" : 'X\(//\)[^/]' \| \
11788	 X"$file" : 'X\(//\)$' \| \
11789	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11790$as_echo X"$file" |
11791    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11792	    s//\1/
11793	    q
11794	  }
11795	  /^X\(\/\/\)[^/].*/{
11796	    s//\1/
11797	    q
11798	  }
11799	  /^X\(\/\/\)$/{
11800	    s//\1/
11801	    q
11802	  }
11803	  /^X\(\/\).*/{
11804	    s//\1/
11805	    q
11806	  }
11807	  s/.*/./; q'`
11808      as_dir=$dirpart/$fdir; as_fn_mkdir_p
11809      # echo "creating $dirpart/$file"
11810      echo '# dummy' > "$dirpart/$file"
11811    done
11812  done
11813}
11814 ;;
11815
11816  esac
11817done # for ac_tag
11818
11819
11820as_fn_exit 0
11821_ACEOF
11822ac_clean_files=$ac_clean_files_save
11823
11824test $ac_write_fail = 0 ||
11825  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11826
11827
11828# configure is writing to config.log, and then calls config.status.
11829# config.status does its own redirection, appending to config.log.
11830# Unfortunately, on DOS this fails, as config.log is still kept open
11831# by configure, so config.status won't be able to write to it; its
11832# output is simply discarded.  So we exec the FD to /dev/null,
11833# effectively closing config.log, so it can be properly (re)opened and
11834# appended to by config.status.  When coming back to configure, we
11835# need to make the FD available again.
11836if test "$no_create" != yes; then
11837  ac_cs_success=:
11838  ac_config_status_args=
11839  test "$silent" = yes &&
11840    ac_config_status_args="$ac_config_status_args --quiet"
11841  exec 5>/dev/null
11842  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11843  exec 5>>config.log
11844  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11845  # would make configure fail if this is the last instruction.
11846  $ac_cs_success || as_fn_exit 1
11847fi
11848if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11849  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11850$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11851fi
11852
11853