configure revision 988795be
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for editres 1.0.6.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='editres'
563PACKAGE_TARNAME='editres'
564PACKAGE_VERSION='1.0.6'
565PACKAGE_STRING='editres 1.0.6'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='am__EXEEXT_FALSE
606am__EXEEXT_TRUE
607LTLIBOBJS
608LIBOBJS
609appdefaultdir
610APPDEFS_LIBS
611APPDEFS_CFLAGS
612EDITRES_LIBS
613EDITRES_CFLAGS
614AM_BACKSLASH
615AM_DEFAULT_VERBOSITY
616MAN_SUBSTS
617XORG_MAN_PAGE
618ADMIN_MAN_DIR
619DRIVER_MAN_DIR
620MISC_MAN_DIR
621FILE_MAN_DIR
622LIB_MAN_DIR
623APP_MAN_DIR
624ADMIN_MAN_SUFFIX
625DRIVER_MAN_SUFFIX
626MISC_MAN_SUFFIX
627FILE_MAN_SUFFIX
628LIB_MAN_SUFFIX
629APP_MAN_SUFFIX
630SED
631host_os
632host_vendor
633host_cpu
634host
635build_os
636build_vendor
637build_cpu
638build
639INSTALL_CMD
640PKG_CONFIG
641CHANGELOG_CMD
642STRICT_CFLAGS
643CWARNFLAGS
644BASE_CFLAGS
645EGREP
646GREP
647CPP
648am__fastdepCC_FALSE
649am__fastdepCC_TRUE
650CCDEPMODE
651am__nodep
652AMDEPBACKSLASH
653AMDEP_FALSE
654AMDEP_TRUE
655am__quote
656am__include
657DEPDIR
658OBJEXT
659EXEEXT
660ac_ct_CC
661CPPFLAGS
662LDFLAGS
663CFLAGS
664CC
665MAINT
666MAINTAINER_MODE_FALSE
667MAINTAINER_MODE_TRUE
668am__untar
669am__tar
670AMTAR
671am__leading_dot
672SET_MAKE
673AWK
674mkdir_p
675MKDIR_P
676INSTALL_STRIP_PROGRAM
677STRIP
678install_sh
679MAKEINFO
680AUTOHEADER
681AUTOMAKE
682AUTOCONF
683ACLOCAL
684VERSION
685PACKAGE
686CYGPATH_W
687am__isrc
688INSTALL_DATA
689INSTALL_SCRIPT
690INSTALL_PROGRAM
691target_alias
692host_alias
693build_alias
694LIBS
695ECHO_T
696ECHO_N
697ECHO_C
698DEFS
699mandir
700localedir
701libdir
702psdir
703pdfdir
704dvidir
705htmldir
706infodir
707docdir
708oldincludedir
709includedir
710localstatedir
711sharedstatedir
712sysconfdir
713datadir
714datarootdir
715libexecdir
716sbindir
717bindir
718program_transform_name
719prefix
720exec_prefix
721PACKAGE_URL
722PACKAGE_BUGREPORT
723PACKAGE_STRING
724PACKAGE_VERSION
725PACKAGE_TARNAME
726PACKAGE_NAME
727PATH_SEPARATOR
728SHELL'
729ac_subst_files=''
730ac_user_opts='
731enable_option_checking
732enable_maintainer_mode
733enable_dependency_tracking
734enable_selective_werror
735enable_strict_compilation
736enable_silent_rules
737with_appdefaultdir
738'
739      ac_precious_vars='build_alias
740host_alias
741target_alias
742CC
743CFLAGS
744LDFLAGS
745LIBS
746CPPFLAGS
747CPP
748PKG_CONFIG
749EDITRES_CFLAGS
750EDITRES_LIBS
751APPDEFS_CFLAGS
752APPDEFS_LIBS'
753
754
755# Initialize some variables set by options.
756ac_init_help=
757ac_init_version=false
758ac_unrecognized_opts=
759ac_unrecognized_sep=
760# The variables have the same names as the options, with
761# dashes changed to underlines.
762cache_file=/dev/null
763exec_prefix=NONE
764no_create=
765no_recursion=
766prefix=NONE
767program_prefix=NONE
768program_suffix=NONE
769program_transform_name=s,x,x,
770silent=
771site=
772srcdir=
773verbose=
774x_includes=NONE
775x_libraries=NONE
776
777# Installation directory options.
778# These are left unexpanded so users can "make install exec_prefix=/foo"
779# and all the variables that are supposed to be based on exec_prefix
780# by default will actually change.
781# Use braces instead of parens because sh, perl, etc. also accept them.
782# (The list follows the same order as the GNU Coding Standards.)
783bindir='${exec_prefix}/bin'
784sbindir='${exec_prefix}/sbin'
785libexecdir='${exec_prefix}/libexec'
786datarootdir='${prefix}/share'
787datadir='${datarootdir}'
788sysconfdir='${prefix}/etc'
789sharedstatedir='${prefix}/com'
790localstatedir='${prefix}/var'
791includedir='${prefix}/include'
792oldincludedir='/usr/include'
793docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794infodir='${datarootdir}/info'
795htmldir='${docdir}'
796dvidir='${docdir}'
797pdfdir='${docdir}'
798psdir='${docdir}'
799libdir='${exec_prefix}/lib'
800localedir='${datarootdir}/locale'
801mandir='${datarootdir}/man'
802
803ac_prev=
804ac_dashdash=
805for ac_option
806do
807  # If the previous option needs an argument, assign it.
808  if test -n "$ac_prev"; then
809    eval $ac_prev=\$ac_option
810    ac_prev=
811    continue
812  fi
813
814  case $ac_option in
815  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816  *=)   ac_optarg= ;;
817  *)    ac_optarg=yes ;;
818  esac
819
820  # Accept the important Cygnus configure options, so we can diagnose typos.
821
822  case $ac_dashdash$ac_option in
823  --)
824    ac_dashdash=yes ;;
825
826  -bindir | --bindir | --bindi | --bind | --bin | --bi)
827    ac_prev=bindir ;;
828  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829    bindir=$ac_optarg ;;
830
831  -build | --build | --buil | --bui | --bu)
832    ac_prev=build_alias ;;
833  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834    build_alias=$ac_optarg ;;
835
836  -cache-file | --cache-file | --cache-fil | --cache-fi \
837  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838    ac_prev=cache_file ;;
839  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841    cache_file=$ac_optarg ;;
842
843  --config-cache | -C)
844    cache_file=config.cache ;;
845
846  -datadir | --datadir | --datadi | --datad)
847    ac_prev=datadir ;;
848  -datadir=* | --datadir=* | --datadi=* | --datad=*)
849    datadir=$ac_optarg ;;
850
851  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852  | --dataroo | --dataro | --datar)
853    ac_prev=datarootdir ;;
854  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856    datarootdir=$ac_optarg ;;
857
858  -disable-* | --disable-*)
859    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860    # Reject names that are not valid shell variable names.
861    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862      as_fn_error $? "invalid feature name: $ac_useropt"
863    ac_useropt_orig=$ac_useropt
864    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865    case $ac_user_opts in
866      *"
867"enable_$ac_useropt"
868"*) ;;
869      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870	 ac_unrecognized_sep=', ';;
871    esac
872    eval enable_$ac_useropt=no ;;
873
874  -docdir | --docdir | --docdi | --doc | --do)
875    ac_prev=docdir ;;
876  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877    docdir=$ac_optarg ;;
878
879  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880    ac_prev=dvidir ;;
881  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882    dvidir=$ac_optarg ;;
883
884  -enable-* | --enable-*)
885    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886    # Reject names that are not valid shell variable names.
887    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888      as_fn_error $? "invalid feature name: $ac_useropt"
889    ac_useropt_orig=$ac_useropt
890    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891    case $ac_user_opts in
892      *"
893"enable_$ac_useropt"
894"*) ;;
895      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896	 ac_unrecognized_sep=', ';;
897    esac
898    eval enable_$ac_useropt=\$ac_optarg ;;
899
900  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902  | --exec | --exe | --ex)
903    ac_prev=exec_prefix ;;
904  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906  | --exec=* | --exe=* | --ex=*)
907    exec_prefix=$ac_optarg ;;
908
909  -gas | --gas | --ga | --g)
910    # Obsolete; use --with-gas.
911    with_gas=yes ;;
912
913  -help | --help | --hel | --he | -h)
914    ac_init_help=long ;;
915  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916    ac_init_help=recursive ;;
917  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918    ac_init_help=short ;;
919
920  -host | --host | --hos | --ho)
921    ac_prev=host_alias ;;
922  -host=* | --host=* | --hos=* | --ho=*)
923    host_alias=$ac_optarg ;;
924
925  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926    ac_prev=htmldir ;;
927  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928  | --ht=*)
929    htmldir=$ac_optarg ;;
930
931  -includedir | --includedir | --includedi | --included | --include \
932  | --includ | --inclu | --incl | --inc)
933    ac_prev=includedir ;;
934  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935  | --includ=* | --inclu=* | --incl=* | --inc=*)
936    includedir=$ac_optarg ;;
937
938  -infodir | --infodir | --infodi | --infod | --info | --inf)
939    ac_prev=infodir ;;
940  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941    infodir=$ac_optarg ;;
942
943  -libdir | --libdir | --libdi | --libd)
944    ac_prev=libdir ;;
945  -libdir=* | --libdir=* | --libdi=* | --libd=*)
946    libdir=$ac_optarg ;;
947
948  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949  | --libexe | --libex | --libe)
950    ac_prev=libexecdir ;;
951  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952  | --libexe=* | --libex=* | --libe=*)
953    libexecdir=$ac_optarg ;;
954
955  -localedir | --localedir | --localedi | --localed | --locale)
956    ac_prev=localedir ;;
957  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958    localedir=$ac_optarg ;;
959
960  -localstatedir | --localstatedir | --localstatedi | --localstated \
961  | --localstate | --localstat | --localsta | --localst | --locals)
962    ac_prev=localstatedir ;;
963  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965    localstatedir=$ac_optarg ;;
966
967  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968    ac_prev=mandir ;;
969  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
970    mandir=$ac_optarg ;;
971
972  -nfp | --nfp | --nf)
973    # Obsolete; use --without-fp.
974    with_fp=no ;;
975
976  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977  | --no-cr | --no-c | -n)
978    no_create=yes ;;
979
980  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982    no_recursion=yes ;;
983
984  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986  | --oldin | --oldi | --old | --ol | --o)
987    ac_prev=oldincludedir ;;
988  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991    oldincludedir=$ac_optarg ;;
992
993  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994    ac_prev=prefix ;;
995  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996    prefix=$ac_optarg ;;
997
998  -program-prefix | --program-prefix | --program-prefi | --program-pref \
999  | --program-pre | --program-pr | --program-p)
1000    ac_prev=program_prefix ;;
1001  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003    program_prefix=$ac_optarg ;;
1004
1005  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006  | --program-suf | --program-su | --program-s)
1007    ac_prev=program_suffix ;;
1008  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010    program_suffix=$ac_optarg ;;
1011
1012  -program-transform-name | --program-transform-name \
1013  | --program-transform-nam | --program-transform-na \
1014  | --program-transform-n | --program-transform- \
1015  | --program-transform | --program-transfor \
1016  | --program-transfo | --program-transf \
1017  | --program-trans | --program-tran \
1018  | --progr-tra | --program-tr | --program-t)
1019    ac_prev=program_transform_name ;;
1020  -program-transform-name=* | --program-transform-name=* \
1021  | --program-transform-nam=* | --program-transform-na=* \
1022  | --program-transform-n=* | --program-transform-=* \
1023  | --program-transform=* | --program-transfor=* \
1024  | --program-transfo=* | --program-transf=* \
1025  | --program-trans=* | --program-tran=* \
1026  | --progr-tra=* | --program-tr=* | --program-t=*)
1027    program_transform_name=$ac_optarg ;;
1028
1029  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030    ac_prev=pdfdir ;;
1031  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032    pdfdir=$ac_optarg ;;
1033
1034  -psdir | --psdir | --psdi | --psd | --ps)
1035    ac_prev=psdir ;;
1036  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037    psdir=$ac_optarg ;;
1038
1039  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040  | -silent | --silent | --silen | --sile | --sil)
1041    silent=yes ;;
1042
1043  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044    ac_prev=sbindir ;;
1045  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046  | --sbi=* | --sb=*)
1047    sbindir=$ac_optarg ;;
1048
1049  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051  | --sharedst | --shareds | --shared | --share | --shar \
1052  | --sha | --sh)
1053    ac_prev=sharedstatedir ;;
1054  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057  | --sha=* | --sh=*)
1058    sharedstatedir=$ac_optarg ;;
1059
1060  -site | --site | --sit)
1061    ac_prev=site ;;
1062  -site=* | --site=* | --sit=*)
1063    site=$ac_optarg ;;
1064
1065  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066    ac_prev=srcdir ;;
1067  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068    srcdir=$ac_optarg ;;
1069
1070  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071  | --syscon | --sysco | --sysc | --sys | --sy)
1072    ac_prev=sysconfdir ;;
1073  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075    sysconfdir=$ac_optarg ;;
1076
1077  -target | --target | --targe | --targ | --tar | --ta | --t)
1078    ac_prev=target_alias ;;
1079  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080    target_alias=$ac_optarg ;;
1081
1082  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083    verbose=yes ;;
1084
1085  -version | --version | --versio | --versi | --vers | -V)
1086    ac_init_version=: ;;
1087
1088  -with-* | --with-*)
1089    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090    # Reject names that are not valid shell variable names.
1091    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092      as_fn_error $? "invalid package name: $ac_useropt"
1093    ac_useropt_orig=$ac_useropt
1094    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095    case $ac_user_opts in
1096      *"
1097"with_$ac_useropt"
1098"*) ;;
1099      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100	 ac_unrecognized_sep=', ';;
1101    esac
1102    eval with_$ac_useropt=\$ac_optarg ;;
1103
1104  -without-* | --without-*)
1105    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106    # Reject names that are not valid shell variable names.
1107    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108      as_fn_error $? "invalid package name: $ac_useropt"
1109    ac_useropt_orig=$ac_useropt
1110    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111    case $ac_user_opts in
1112      *"
1113"with_$ac_useropt"
1114"*) ;;
1115      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116	 ac_unrecognized_sep=', ';;
1117    esac
1118    eval with_$ac_useropt=no ;;
1119
1120  --x)
1121    # Obsolete; use --with-x.
1122    with_x=yes ;;
1123
1124  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125  | --x-incl | --x-inc | --x-in | --x-i)
1126    ac_prev=x_includes ;;
1127  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129    x_includes=$ac_optarg ;;
1130
1131  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133    ac_prev=x_libraries ;;
1134  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136    x_libraries=$ac_optarg ;;
1137
1138  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1139Try \`$0 --help' for more information"
1140    ;;
1141
1142  *=*)
1143    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144    # Reject names that are not valid shell variable names.
1145    case $ac_envvar in #(
1146      '' | [0-9]* | *[!_$as_cr_alnum]* )
1147      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1148    esac
1149    eval $ac_envvar=\$ac_optarg
1150    export $ac_envvar ;;
1151
1152  *)
1153    # FIXME: should be removed in autoconf 3.0.
1154    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1158    ;;
1159
1160  esac
1161done
1162
1163if test -n "$ac_prev"; then
1164  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165  as_fn_error $? "missing argument to $ac_option"
1166fi
1167
1168if test -n "$ac_unrecognized_opts"; then
1169  case $enable_option_checking in
1170    no) ;;
1171    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1172    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173  esac
1174fi
1175
1176# Check all directory arguments for consistency.
1177for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178		datadir sysconfdir sharedstatedir localstatedir includedir \
1179		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180		libdir localedir mandir
1181do
1182  eval ac_val=\$$ac_var
1183  # Remove trailing slashes.
1184  case $ac_val in
1185    */ )
1186      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187      eval $ac_var=\$ac_val;;
1188  esac
1189  # Be sure to have absolute directory names.
1190  case $ac_val in
1191    [\\/$]* | ?:[\\/]* )  continue;;
1192    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193  esac
1194  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1195done
1196
1197# There might be people who depend on the old broken behavior: `$host'
1198# used to hold the argument of --host etc.
1199# FIXME: To remove some day.
1200build=$build_alias
1201host=$host_alias
1202target=$target_alias
1203
1204# FIXME: To remove some day.
1205if test "x$host_alias" != x; then
1206  if test "x$build_alias" = x; then
1207    cross_compiling=maybe
1208    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1209    If a cross compiler is detected then cross compile mode will be used" >&2
1210  elif test "x$build_alias" != "x$host_alias"; then
1211    cross_compiling=yes
1212  fi
1213fi
1214
1215ac_tool_prefix=
1216test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217
1218test "$silent" = yes && exec 6>/dev/null
1219
1220
1221ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222ac_ls_di=`ls -di .` &&
1223ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224  as_fn_error $? "working directory cannot be determined"
1225test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226  as_fn_error $? "pwd does not report name of working directory"
1227
1228
1229# Find the source files, if location was not specified.
1230if test -z "$srcdir"; then
1231  ac_srcdir_defaulted=yes
1232  # Try the directory containing this script, then the parent directory.
1233  ac_confdir=`$as_dirname -- "$as_myself" ||
1234$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235	 X"$as_myself" : 'X\(//\)[^/]' \| \
1236	 X"$as_myself" : 'X\(//\)$' \| \
1237	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238$as_echo X"$as_myself" |
1239    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240	    s//\1/
1241	    q
1242	  }
1243	  /^X\(\/\/\)[^/].*/{
1244	    s//\1/
1245	    q
1246	  }
1247	  /^X\(\/\/\)$/{
1248	    s//\1/
1249	    q
1250	  }
1251	  /^X\(\/\).*/{
1252	    s//\1/
1253	    q
1254	  }
1255	  s/.*/./; q'`
1256  srcdir=$ac_confdir
1257  if test ! -r "$srcdir/$ac_unique_file"; then
1258    srcdir=..
1259  fi
1260else
1261  ac_srcdir_defaulted=no
1262fi
1263if test ! -r "$srcdir/$ac_unique_file"; then
1264  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1266fi
1267ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268ac_abs_confdir=`(
1269	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1270	pwd)`
1271# When building in place, set srcdir=.
1272if test "$ac_abs_confdir" = "$ac_pwd"; then
1273  srcdir=.
1274fi
1275# Remove unnecessary trailing slashes from srcdir.
1276# Double slashes in file names in object file debugging info
1277# mess up M-x gdb in Emacs.
1278case $srcdir in
1279*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280esac
1281for ac_var in $ac_precious_vars; do
1282  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283  eval ac_env_${ac_var}_value=\$${ac_var}
1284  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286done
1287
1288#
1289# Report the --help message.
1290#
1291if test "$ac_init_help" = "long"; then
1292  # Omit some internal or obsolete options to make the list less imposing.
1293  # This message is too long to be a string in the A/UX 3.1 sh.
1294  cat <<_ACEOF
1295\`configure' configures editres 1.0.6 to adapt to many kinds of systems.
1296
1297Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300VAR=VALUE.  See below for descriptions of some of the useful variables.
1301
1302Defaults for the options are specified in brackets.
1303
1304Configuration:
1305  -h, --help              display this help and exit
1306      --help=short        display options specific to this package
1307      --help=recursive    display the short help of all the included packages
1308  -V, --version           display version information and exit
1309  -q, --quiet, --silent   do not print \`checking ...' messages
1310      --cache-file=FILE   cache test results in FILE [disabled]
1311  -C, --config-cache      alias for \`--cache-file=config.cache'
1312  -n, --no-create         do not create output files
1313      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1314
1315Installation directories:
1316  --prefix=PREFIX         install architecture-independent files in PREFIX
1317                          [$ac_default_prefix]
1318  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1319                          [PREFIX]
1320
1321By default, \`make install' will install all the files in
1322\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1323an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324for instance \`--prefix=\$HOME'.
1325
1326For better control, use the options below.
1327
1328Fine tuning of the installation directories:
1329  --bindir=DIR            user executables [EPREFIX/bin]
1330  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1331  --libexecdir=DIR        program executables [EPREFIX/libexec]
1332  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1333  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1334  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1335  --libdir=DIR            object code libraries [EPREFIX/lib]
1336  --includedir=DIR        C header files [PREFIX/include]
1337  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1338  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1339  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1340  --infodir=DIR           info documentation [DATAROOTDIR/info]
1341  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1342  --mandir=DIR            man documentation [DATAROOTDIR/man]
1343  --docdir=DIR            documentation root [DATAROOTDIR/doc/editres]
1344  --htmldir=DIR           html documentation [DOCDIR]
1345  --dvidir=DIR            dvi documentation [DOCDIR]
1346  --pdfdir=DIR            pdf documentation [DOCDIR]
1347  --psdir=DIR             ps documentation [DOCDIR]
1348_ACEOF
1349
1350  cat <<\_ACEOF
1351
1352Program names:
1353  --program-prefix=PREFIX            prepend PREFIX to installed program names
1354  --program-suffix=SUFFIX            append SUFFIX to installed program names
1355  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1356
1357System types:
1358  --build=BUILD     configure for building on BUILD [guessed]
1359  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1360_ACEOF
1361fi
1362
1363if test -n "$ac_init_help"; then
1364  case $ac_init_help in
1365     short | recursive ) echo "Configuration of editres 1.0.6:";;
1366   esac
1367  cat <<\_ACEOF
1368
1369Optional Features:
1370  --disable-option-checking  ignore unrecognized --enable/--with options
1371  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1372  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1373  --enable-maintainer-mode  enable make rules and dependencies not useful
1374			  (and sometimes confusing) to the casual installer
1375  --disable-dependency-tracking  speeds up one-time build
1376  --enable-dependency-tracking   do not reject slow dependency extractors
1377  --disable-selective-werror
1378                          Turn off selective compiler errors. (default:
1379                          enabled)
1380  --enable-strict-compilation
1381                          Enable all warnings from compiler and make them
1382                          errors (default: disabled)
1383  --enable-silent-rules          less verbose build output (undo: `make V=1')
1384  --disable-silent-rules         verbose build output (undo: `make V=0')
1385
1386Optional Packages:
1387  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1388  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1389  --with-appdefaultdir=<pathname>
1390                          specify directory for app-defaults files (default is
1391                          autodetected)
1392
1393Some influential environment variables:
1394  CC          C compiler command
1395  CFLAGS      C compiler flags
1396  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1397              nonstandard directory <lib dir>
1398  LIBS        libraries to pass to the linker, e.g. -l<library>
1399  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1400              you have headers in a nonstandard directory <include dir>
1401  CPP         C preprocessor
1402  PKG_CONFIG  path to pkg-config utility
1403  EDITRES_CFLAGS
1404              C compiler flags for EDITRES, overriding pkg-config
1405  EDITRES_LIBS
1406              linker flags for EDITRES, overriding pkg-config
1407  APPDEFS_CFLAGS
1408              C compiler flags for APPDEFS, overriding pkg-config
1409  APPDEFS_LIBS
1410              linker flags for APPDEFS, overriding pkg-config
1411
1412Use these variables to override the choices made by `configure' or to help
1413it to find libraries and programs with nonstandard names/locations.
1414
1415Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1416_ACEOF
1417ac_status=$?
1418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421  # If there are subdirs, report their specific --help.
1422  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423    test -d "$ac_dir" ||
1424      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425      continue
1426    ac_builddir=.
1427
1428case "$ac_dir" in
1429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430*)
1431  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432  # A ".." for each directory in $ac_dir_suffix.
1433  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434  case $ac_top_builddir_sub in
1435  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437  esac ;;
1438esac
1439ac_abs_top_builddir=$ac_pwd
1440ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441# for backward compatibility:
1442ac_top_builddir=$ac_top_build_prefix
1443
1444case $srcdir in
1445  .)  # We are building in place.
1446    ac_srcdir=.
1447    ac_top_srcdir=$ac_top_builddir_sub
1448    ac_abs_top_srcdir=$ac_pwd ;;
1449  [\\/]* | ?:[\\/]* )  # Absolute name.
1450    ac_srcdir=$srcdir$ac_dir_suffix;
1451    ac_top_srcdir=$srcdir
1452    ac_abs_top_srcdir=$srcdir ;;
1453  *) # Relative name.
1454    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455    ac_top_srcdir=$ac_top_build_prefix$srcdir
1456    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457esac
1458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460    cd "$ac_dir" || { ac_status=$?; continue; }
1461    # Check for guested configure.
1462    if test -f "$ac_srcdir/configure.gnu"; then
1463      echo &&
1464      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465    elif test -f "$ac_srcdir/configure"; then
1466      echo &&
1467      $SHELL "$ac_srcdir/configure" --help=recursive
1468    else
1469      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470    fi || ac_status=$?
1471    cd "$ac_pwd" || { ac_status=$?; break; }
1472  done
1473fi
1474
1475test -n "$ac_init_help" && exit $ac_status
1476if $ac_init_version; then
1477  cat <<\_ACEOF
1478editres configure 1.0.6
1479generated by GNU Autoconf 2.68
1480
1481Copyright (C) 2010 Free Software Foundation, Inc.
1482This configure script is free software; the Free Software Foundation
1483gives unlimited permission to copy, distribute and modify it.
1484_ACEOF
1485  exit
1486fi
1487
1488## ------------------------ ##
1489## Autoconf initialization. ##
1490## ------------------------ ##
1491
1492# ac_fn_c_try_compile LINENO
1493# --------------------------
1494# Try to compile conftest.$ac_ext, and return whether this succeeded.
1495ac_fn_c_try_compile ()
1496{
1497  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498  rm -f conftest.$ac_objext
1499  if { { ac_try="$ac_compile"
1500case "(($ac_try" in
1501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502  *) ac_try_echo=$ac_try;;
1503esac
1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505$as_echo "$ac_try_echo"; } >&5
1506  (eval "$ac_compile") 2>conftest.err
1507  ac_status=$?
1508  if test -s conftest.err; then
1509    grep -v '^ *+' conftest.err >conftest.er1
1510    cat conftest.er1 >&5
1511    mv -f conftest.er1 conftest.err
1512  fi
1513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514  test $ac_status = 0; } && {
1515	 test -z "$ac_c_werror_flag" ||
1516	 test ! -s conftest.err
1517       } && test -s conftest.$ac_objext; then :
1518  ac_retval=0
1519else
1520  $as_echo "$as_me: failed program was:" >&5
1521sed 's/^/| /' conftest.$ac_ext >&5
1522
1523	ac_retval=1
1524fi
1525  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526  as_fn_set_status $ac_retval
1527
1528} # ac_fn_c_try_compile
1529
1530# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1531# ---------------------------------------------
1532# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1533# accordingly.
1534ac_fn_c_check_decl ()
1535{
1536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537  as_decl_name=`echo $2|sed 's/ *(.*//'`
1538  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1540$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1541if eval \${$3+:} false; then :
1542  $as_echo_n "(cached) " >&6
1543else
1544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545/* end confdefs.h.  */
1546$4
1547int
1548main ()
1549{
1550#ifndef $as_decl_name
1551#ifdef __cplusplus
1552  (void) $as_decl_use;
1553#else
1554  (void) $as_decl_name;
1555#endif
1556#endif
1557
1558  ;
1559  return 0;
1560}
1561_ACEOF
1562if ac_fn_c_try_compile "$LINENO"; then :
1563  eval "$3=yes"
1564else
1565  eval "$3=no"
1566fi
1567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568fi
1569eval ac_res=\$$3
1570	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571$as_echo "$ac_res" >&6; }
1572  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573
1574} # ac_fn_c_check_decl
1575
1576# ac_fn_c_try_cpp LINENO
1577# ----------------------
1578# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_cpp ()
1580{
1581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582  if { { ac_try="$ac_cpp conftest.$ac_ext"
1583case "(($ac_try" in
1584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585  *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590  ac_status=$?
1591  if test -s conftest.err; then
1592    grep -v '^ *+' conftest.err >conftest.er1
1593    cat conftest.er1 >&5
1594    mv -f conftest.er1 conftest.err
1595  fi
1596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597  test $ac_status = 0; } > conftest.i && {
1598	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599	 test ! -s conftest.err
1600       }; then :
1601  ac_retval=0
1602else
1603  $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606    ac_retval=1
1607fi
1608  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609  as_fn_set_status $ac_retval
1610
1611} # ac_fn_c_try_cpp
1612
1613# ac_fn_c_try_run LINENO
1614# ----------------------
1615# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616# that executables *can* be run.
1617ac_fn_c_try_run ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  if { { ac_try="$ac_link"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_link") 2>&5
1628  ac_status=$?
1629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1631  { { case "(($ac_try" in
1632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633  *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637  (eval "$ac_try") 2>&5
1638  ac_status=$?
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; }; }; then :
1641  ac_retval=0
1642else
1643  $as_echo "$as_me: program exited with status $ac_status" >&5
1644       $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647       ac_retval=$ac_status
1648fi
1649  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651  as_fn_set_status $ac_retval
1652
1653} # ac_fn_c_try_run
1654
1655# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656# -------------------------------------------------------
1657# Tests whether HEADER exists and can be compiled using the include files in
1658# INCLUDES, setting the cache variable VAR accordingly.
1659ac_fn_c_check_header_compile ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663$as_echo_n "checking for $2... " >&6; }
1664if eval \${$3+:} false; then :
1665  $as_echo_n "(cached) " >&6
1666else
1667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h.  */
1669$4
1670#include <$2>
1671_ACEOF
1672if ac_fn_c_try_compile "$LINENO"; then :
1673  eval "$3=yes"
1674else
1675  eval "$3=no"
1676fi
1677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678fi
1679eval ac_res=\$$3
1680	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681$as_echo "$ac_res" >&6; }
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684} # ac_fn_c_check_header_compile
1685
1686# ac_fn_c_try_link LINENO
1687# -----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_link ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  rm -f conftest.$ac_objext conftest$ac_exeext
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && {
1709	 test -z "$ac_c_werror_flag" ||
1710	 test ! -s conftest.err
1711       } && test -s conftest$ac_exeext && {
1712	 test "$cross_compiling" = yes ||
1713	 $as_test_x conftest$ac_exeext
1714       }; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720	ac_retval=1
1721fi
1722  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724  # interfere with the next link command; also delete a directory that is
1725  # left behind by Apple's compiler.  We do this before executing the actions.
1726  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728  as_fn_set_status $ac_retval
1729
1730} # ac_fn_c_try_link
1731cat >config.log <<_ACEOF
1732This file contains any messages produced by compilers while
1733running configure, to aid debugging if configure makes a mistake.
1734
1735It was created by editres $as_me 1.0.6, which was
1736generated by GNU Autoconf 2.68.  Invocation command line was
1737
1738  $ $0 $@
1739
1740_ACEOF
1741exec 5>>config.log
1742{
1743cat <<_ASUNAME
1744## --------- ##
1745## Platform. ##
1746## --------- ##
1747
1748hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1749uname -m = `(uname -m) 2>/dev/null || echo unknown`
1750uname -r = `(uname -r) 2>/dev/null || echo unknown`
1751uname -s = `(uname -s) 2>/dev/null || echo unknown`
1752uname -v = `(uname -v) 2>/dev/null || echo unknown`
1753
1754/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1755/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1756
1757/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1758/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1759/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1760/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1761/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1762/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1763/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1764
1765_ASUNAME
1766
1767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768for as_dir in $PATH
1769do
1770  IFS=$as_save_IFS
1771  test -z "$as_dir" && as_dir=.
1772    $as_echo "PATH: $as_dir"
1773  done
1774IFS=$as_save_IFS
1775
1776} >&5
1777
1778cat >&5 <<_ACEOF
1779
1780
1781## ----------- ##
1782## Core tests. ##
1783## ----------- ##
1784
1785_ACEOF
1786
1787
1788# Keep a trace of the command line.
1789# Strip out --no-create and --no-recursion so they do not pile up.
1790# Strip out --silent because we don't want to record it for future runs.
1791# Also quote any args containing shell meta-characters.
1792# Make two passes to allow for proper duplicate-argument suppression.
1793ac_configure_args=
1794ac_configure_args0=
1795ac_configure_args1=
1796ac_must_keep_next=false
1797for ac_pass in 1 2
1798do
1799  for ac_arg
1800  do
1801    case $ac_arg in
1802    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804    | -silent | --silent | --silen | --sile | --sil)
1805      continue ;;
1806    *\'*)
1807      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808    esac
1809    case $ac_pass in
1810    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1811    2)
1812      as_fn_append ac_configure_args1 " '$ac_arg'"
1813      if test $ac_must_keep_next = true; then
1814	ac_must_keep_next=false # Got value, back to normal.
1815      else
1816	case $ac_arg in
1817	  *=* | --config-cache | -C | -disable-* | --disable-* \
1818	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820	  | -with-* | --with-* | -without-* | --without-* | --x)
1821	    case "$ac_configure_args0 " in
1822	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823	    esac
1824	    ;;
1825	  -* ) ac_must_keep_next=true ;;
1826	esac
1827      fi
1828      as_fn_append ac_configure_args " '$ac_arg'"
1829      ;;
1830    esac
1831  done
1832done
1833{ ac_configure_args0=; unset ac_configure_args0;}
1834{ ac_configure_args1=; unset ac_configure_args1;}
1835
1836# When interrupted or exit'd, cleanup temporary files, and complete
1837# config.log.  We remove comments because anyway the quotes in there
1838# would cause problems or look ugly.
1839# WARNING: Use '\'' to represent an apostrophe within the trap.
1840# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841trap 'exit_status=$?
1842  # Save into config.log some information that might help in debugging.
1843  {
1844    echo
1845
1846    $as_echo "## ---------------- ##
1847## Cache variables. ##
1848## ---------------- ##"
1849    echo
1850    # The following way of writing the cache mishandles newlines in values,
1851(
1852  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1853    eval ac_val=\$$ac_var
1854    case $ac_val in #(
1855    *${as_nl}*)
1856      case $ac_var in #(
1857      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1858$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1859      esac
1860      case $ac_var in #(
1861      _ | IFS | as_nl) ;; #(
1862      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1863      *) { eval $ac_var=; unset $ac_var;} ;;
1864      esac ;;
1865    esac
1866  done
1867  (set) 2>&1 |
1868    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1869    *${as_nl}ac_space=\ *)
1870      sed -n \
1871	"s/'\''/'\''\\\\'\'''\''/g;
1872	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1873      ;; #(
1874    *)
1875      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1876      ;;
1877    esac |
1878    sort
1879)
1880    echo
1881
1882    $as_echo "## ----------------- ##
1883## Output variables. ##
1884## ----------------- ##"
1885    echo
1886    for ac_var in $ac_subst_vars
1887    do
1888      eval ac_val=\$$ac_var
1889      case $ac_val in
1890      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891      esac
1892      $as_echo "$ac_var='\''$ac_val'\''"
1893    done | sort
1894    echo
1895
1896    if test -n "$ac_subst_files"; then
1897      $as_echo "## ------------------- ##
1898## File substitutions. ##
1899## ------------------- ##"
1900      echo
1901      for ac_var in $ac_subst_files
1902      do
1903	eval ac_val=\$$ac_var
1904	case $ac_val in
1905	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906	esac
1907	$as_echo "$ac_var='\''$ac_val'\''"
1908      done | sort
1909      echo
1910    fi
1911
1912    if test -s confdefs.h; then
1913      $as_echo "## ----------- ##
1914## confdefs.h. ##
1915## ----------- ##"
1916      echo
1917      cat confdefs.h
1918      echo
1919    fi
1920    test "$ac_signal" != 0 &&
1921      $as_echo "$as_me: caught signal $ac_signal"
1922    $as_echo "$as_me: exit $exit_status"
1923  } >&5
1924  rm -f core *.core core.conftest.* &&
1925    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926    exit $exit_status
1927' 0
1928for ac_signal in 1 2 13 15; do
1929  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1930done
1931ac_signal=0
1932
1933# confdefs.h avoids OS command line length limits that DEFS can exceed.
1934rm -f -r conftest* confdefs.h
1935
1936$as_echo "/* confdefs.h */" > confdefs.h
1937
1938# Predefined preprocessor variables.
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_NAME "$PACKAGE_NAME"
1942_ACEOF
1943
1944cat >>confdefs.h <<_ACEOF
1945#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1946_ACEOF
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_VERSION "$PACKAGE_VERSION"
1950_ACEOF
1951
1952cat >>confdefs.h <<_ACEOF
1953#define PACKAGE_STRING "$PACKAGE_STRING"
1954_ACEOF
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958_ACEOF
1959
1960cat >>confdefs.h <<_ACEOF
1961#define PACKAGE_URL "$PACKAGE_URL"
1962_ACEOF
1963
1964
1965# Let the site file select an alternate cache file if it wants to.
1966# Prefer an explicitly selected file to automatically selected ones.
1967ac_site_file1=NONE
1968ac_site_file2=NONE
1969if test -n "$CONFIG_SITE"; then
1970  # We do not want a PATH search for config.site.
1971  case $CONFIG_SITE in #((
1972    -*)  ac_site_file1=./$CONFIG_SITE;;
1973    */*) ac_site_file1=$CONFIG_SITE;;
1974    *)   ac_site_file1=./$CONFIG_SITE;;
1975  esac
1976elif test "x$prefix" != xNONE; then
1977  ac_site_file1=$prefix/share/config.site
1978  ac_site_file2=$prefix/etc/config.site
1979else
1980  ac_site_file1=$ac_default_prefix/share/config.site
1981  ac_site_file2=$ac_default_prefix/etc/config.site
1982fi
1983for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1984do
1985  test "x$ac_site_file" = xNONE && continue
1986  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1987    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1988$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1989    sed 's/^/| /' "$ac_site_file" >&5
1990    . "$ac_site_file" \
1991      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1993as_fn_error $? "failed to load site script $ac_site_file
1994See \`config.log' for more details" "$LINENO" 5; }
1995  fi
1996done
1997
1998if test -r "$cache_file"; then
1999  # Some versions of bash will fail to source /dev/null (special files
2000  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2001  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2002    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2003$as_echo "$as_me: loading cache $cache_file" >&6;}
2004    case $cache_file in
2005      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2006      *)                      . "./$cache_file";;
2007    esac
2008  fi
2009else
2010  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2011$as_echo "$as_me: creating cache $cache_file" >&6;}
2012  >$cache_file
2013fi
2014
2015# Check that the precious variables saved in the cache have kept the same
2016# value.
2017ac_cache_corrupted=false
2018for ac_var in $ac_precious_vars; do
2019  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2020  eval ac_new_set=\$ac_env_${ac_var}_set
2021  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2022  eval ac_new_val=\$ac_env_${ac_var}_value
2023  case $ac_old_set,$ac_new_set in
2024    set,)
2025      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2026$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2027      ac_cache_corrupted=: ;;
2028    ,set)
2029      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2030$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2031      ac_cache_corrupted=: ;;
2032    ,);;
2033    *)
2034      if test "x$ac_old_val" != "x$ac_new_val"; then
2035	# differences in whitespace do not lead to failure.
2036	ac_old_val_w=`echo x $ac_old_val`
2037	ac_new_val_w=`echo x $ac_new_val`
2038	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2039	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2040$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2041	  ac_cache_corrupted=:
2042	else
2043	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2044$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2045	  eval $ac_var=\$ac_old_val
2046	fi
2047	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2048$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2049	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2050$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2051      fi;;
2052  esac
2053  # Pass precious variables to config.status.
2054  if test "$ac_new_set" = set; then
2055    case $ac_new_val in
2056    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2057    *) ac_arg=$ac_var=$ac_new_val ;;
2058    esac
2059    case " $ac_configure_args " in
2060      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2061      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2062    esac
2063  fi
2064done
2065if $ac_cache_corrupted; then
2066  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2069$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2070  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2071fi
2072## -------------------- ##
2073## Main body of script. ##
2074## -------------------- ##
2075
2076ac_ext=c
2077ac_cpp='$CPP $CPPFLAGS'
2078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081
2082
2083am__api_version='1.11'
2084
2085ac_aux_dir=
2086for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2087  if test -f "$ac_dir/install-sh"; then
2088    ac_aux_dir=$ac_dir
2089    ac_install_sh="$ac_aux_dir/install-sh -c"
2090    break
2091  elif test -f "$ac_dir/install.sh"; then
2092    ac_aux_dir=$ac_dir
2093    ac_install_sh="$ac_aux_dir/install.sh -c"
2094    break
2095  elif test -f "$ac_dir/shtool"; then
2096    ac_aux_dir=$ac_dir
2097    ac_install_sh="$ac_aux_dir/shtool install -c"
2098    break
2099  fi
2100done
2101if test -z "$ac_aux_dir"; then
2102  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2103fi
2104
2105# These three variables are undocumented and unsupported,
2106# and are intended to be withdrawn in a future Autoconf release.
2107# They can cause serious problems if a builder's source tree is in a directory
2108# whose full name contains unusual characters.
2109ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2110ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2111ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2112
2113
2114# Find a good install program.  We prefer a C program (faster),
2115# so one script is as good as another.  But avoid the broken or
2116# incompatible versions:
2117# SysV /etc/install, /usr/sbin/install
2118# SunOS /usr/etc/install
2119# IRIX /sbin/install
2120# AIX /bin/install
2121# AmigaOS /C/install, which installs bootblocks on floppy discs
2122# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2123# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2124# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2125# OS/2's system install, which has a completely different semantic
2126# ./install, which can be erroneously created by make from ./install.sh.
2127# Reject install programs that cannot install multiple files.
2128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2129$as_echo_n "checking for a BSD-compatible install... " >&6; }
2130if test -z "$INSTALL"; then
2131if ${ac_cv_path_install+:} false; then :
2132  $as_echo_n "(cached) " >&6
2133else
2134  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137  IFS=$as_save_IFS
2138  test -z "$as_dir" && as_dir=.
2139    # Account for people who put trailing slashes in PATH elements.
2140case $as_dir/ in #((
2141  ./ | .// | /[cC]/* | \
2142  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2143  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2144  /usr/ucb/* ) ;;
2145  *)
2146    # OSF1 and SCO ODT 3.0 have their own names for install.
2147    # Don't use installbsd from OSF since it installs stuff as root
2148    # by default.
2149    for ac_prog in ginstall scoinst install; do
2150      for ac_exec_ext in '' $ac_executable_extensions; do
2151	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2152	  if test $ac_prog = install &&
2153	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2154	    # AIX install.  It has an incompatible calling convention.
2155	    :
2156	  elif test $ac_prog = install &&
2157	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2158	    # program-specific install script used by HP pwplus--don't use.
2159	    :
2160	  else
2161	    rm -rf conftest.one conftest.two conftest.dir
2162	    echo one > conftest.one
2163	    echo two > conftest.two
2164	    mkdir conftest.dir
2165	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2166	      test -s conftest.one && test -s conftest.two &&
2167	      test -s conftest.dir/conftest.one &&
2168	      test -s conftest.dir/conftest.two
2169	    then
2170	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2171	      break 3
2172	    fi
2173	  fi
2174	fi
2175      done
2176    done
2177    ;;
2178esac
2179
2180  done
2181IFS=$as_save_IFS
2182
2183rm -rf conftest.one conftest.two conftest.dir
2184
2185fi
2186  if test "${ac_cv_path_install+set}" = set; then
2187    INSTALL=$ac_cv_path_install
2188  else
2189    # As a last resort, use the slow shell script.  Don't cache a
2190    # value for INSTALL within a source directory, because that will
2191    # break other packages using the cache if that directory is
2192    # removed, or if the value is a relative name.
2193    INSTALL=$ac_install_sh
2194  fi
2195fi
2196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2197$as_echo "$INSTALL" >&6; }
2198
2199# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2200# It thinks the first close brace ends the variable substitution.
2201test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2202
2203test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2204
2205test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2206
2207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2208$as_echo_n "checking whether build environment is sane... " >&6; }
2209# Just in case
2210sleep 1
2211echo timestamp > conftest.file
2212# Reject unsafe characters in $srcdir or the absolute working directory
2213# name.  Accept space and tab only in the latter.
2214am_lf='
2215'
2216case `pwd` in
2217  *[\\\"\#\$\&\'\`$am_lf]*)
2218    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2219esac
2220case $srcdir in
2221  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2222    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2223esac
2224
2225# Do `set' in a subshell so we don't clobber the current shell's
2226# arguments.  Must try -L first in case configure is actually a
2227# symlink; some systems play weird games with the mod time of symlinks
2228# (eg FreeBSD returns the mod time of the symlink's containing
2229# directory).
2230if (
2231   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2232   if test "$*" = "X"; then
2233      # -L didn't work.
2234      set X `ls -t "$srcdir/configure" conftest.file`
2235   fi
2236   rm -f conftest.file
2237   if test "$*" != "X $srcdir/configure conftest.file" \
2238      && test "$*" != "X conftest.file $srcdir/configure"; then
2239
2240      # If neither matched, then we have a broken ls.  This can happen
2241      # if, for instance, CONFIG_SHELL is bash and it inherits a
2242      # broken ls alias from the environment.  This has actually
2243      # happened.  Such a system could not be considered "sane".
2244      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2245alias in your environment" "$LINENO" 5
2246   fi
2247
2248   test "$2" = conftest.file
2249   )
2250then
2251   # Ok.
2252   :
2253else
2254   as_fn_error $? "newly created file is older than distributed files!
2255Check your system clock" "$LINENO" 5
2256fi
2257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2258$as_echo "yes" >&6; }
2259test "$program_prefix" != NONE &&
2260  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2261# Use a double $ so make ignores it.
2262test "$program_suffix" != NONE &&
2263  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2264# Double any \ or $.
2265# By default was `s,x,x', remove it if useless.
2266ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2267program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2268
2269# expand $ac_aux_dir to an absolute path
2270am_aux_dir=`cd $ac_aux_dir && pwd`
2271
2272if test x"${MISSING+set}" != xset; then
2273  case $am_aux_dir in
2274  *\ * | *\	*)
2275    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2276  *)
2277    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2278  esac
2279fi
2280# Use eval to expand $SHELL
2281if eval "$MISSING --run true"; then
2282  am_missing_run="$MISSING --run "
2283else
2284  am_missing_run=
2285  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2286$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2287fi
2288
2289if test x"${install_sh}" != xset; then
2290  case $am_aux_dir in
2291  *\ * | *\	*)
2292    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2293  *)
2294    install_sh="\${SHELL} $am_aux_dir/install-sh"
2295  esac
2296fi
2297
2298# Installed binaries are usually stripped using `strip' when the user
2299# run `make install-strip'.  However `strip' might not be the right
2300# tool to use in cross-compilation environments, therefore Automake
2301# will honor the `STRIP' environment variable to overrule this program.
2302if test "$cross_compiling" != no; then
2303  if test -n "$ac_tool_prefix"; then
2304  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2305set dummy ${ac_tool_prefix}strip; ac_word=$2
2306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2307$as_echo_n "checking for $ac_word... " >&6; }
2308if ${ac_cv_prog_STRIP+:} false; then :
2309  $as_echo_n "(cached) " >&6
2310else
2311  if test -n "$STRIP"; then
2312  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313else
2314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315for as_dir in $PATH
2316do
2317  IFS=$as_save_IFS
2318  test -z "$as_dir" && as_dir=.
2319    for ac_exec_ext in '' $ac_executable_extensions; do
2320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2323    break 2
2324  fi
2325done
2326  done
2327IFS=$as_save_IFS
2328
2329fi
2330fi
2331STRIP=$ac_cv_prog_STRIP
2332if test -n "$STRIP"; then
2333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2334$as_echo "$STRIP" >&6; }
2335else
2336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2337$as_echo "no" >&6; }
2338fi
2339
2340
2341fi
2342if test -z "$ac_cv_prog_STRIP"; then
2343  ac_ct_STRIP=$STRIP
2344  # Extract the first word of "strip", so it can be a program name with args.
2345set dummy strip; ac_word=$2
2346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2347$as_echo_n "checking for $ac_word... " >&6; }
2348if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2349  $as_echo_n "(cached) " >&6
2350else
2351  if test -n "$ac_ct_STRIP"; then
2352  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2353else
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357  IFS=$as_save_IFS
2358  test -z "$as_dir" && as_dir=.
2359    for ac_exec_ext in '' $ac_executable_extensions; do
2360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361    ac_cv_prog_ac_ct_STRIP="strip"
2362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2363    break 2
2364  fi
2365done
2366  done
2367IFS=$as_save_IFS
2368
2369fi
2370fi
2371ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2372if test -n "$ac_ct_STRIP"; then
2373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2374$as_echo "$ac_ct_STRIP" >&6; }
2375else
2376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2377$as_echo "no" >&6; }
2378fi
2379
2380  if test "x$ac_ct_STRIP" = x; then
2381    STRIP=":"
2382  else
2383    case $cross_compiling:$ac_tool_warned in
2384yes:)
2385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2387ac_tool_warned=yes ;;
2388esac
2389    STRIP=$ac_ct_STRIP
2390  fi
2391else
2392  STRIP="$ac_cv_prog_STRIP"
2393fi
2394
2395fi
2396INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2397
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2399$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2400if test -z "$MKDIR_P"; then
2401  if ${ac_cv_path_mkdir+:} false; then :
2402  $as_echo_n "(cached) " >&6
2403else
2404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2406do
2407  IFS=$as_save_IFS
2408  test -z "$as_dir" && as_dir=.
2409    for ac_prog in mkdir gmkdir; do
2410	 for ac_exec_ext in '' $ac_executable_extensions; do
2411	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2412	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2413	     'mkdir (GNU coreutils) '* | \
2414	     'mkdir (coreutils) '* | \
2415	     'mkdir (fileutils) '4.1*)
2416	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2417	       break 3;;
2418	   esac
2419	 done
2420       done
2421  done
2422IFS=$as_save_IFS
2423
2424fi
2425
2426  test -d ./--version && rmdir ./--version
2427  if test "${ac_cv_path_mkdir+set}" = set; then
2428    MKDIR_P="$ac_cv_path_mkdir -p"
2429  else
2430    # As a last resort, use the slow shell script.  Don't cache a
2431    # value for MKDIR_P within a source directory, because that will
2432    # break other packages using the cache if that directory is
2433    # removed, or if the value is a relative name.
2434    MKDIR_P="$ac_install_sh -d"
2435  fi
2436fi
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2438$as_echo "$MKDIR_P" >&6; }
2439
2440mkdir_p="$MKDIR_P"
2441case $mkdir_p in
2442  [\\/$]* | ?:[\\/]*) ;;
2443  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2444esac
2445
2446for ac_prog in gawk mawk nawk awk
2447do
2448  # Extract the first word of "$ac_prog", so it can be a program name with args.
2449set dummy $ac_prog; ac_word=$2
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2451$as_echo_n "checking for $ac_word... " >&6; }
2452if ${ac_cv_prog_AWK+:} false; then :
2453  $as_echo_n "(cached) " >&6
2454else
2455  if test -n "$AWK"; then
2456  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2457else
2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459for as_dir in $PATH
2460do
2461  IFS=$as_save_IFS
2462  test -z "$as_dir" && as_dir=.
2463    for ac_exec_ext in '' $ac_executable_extensions; do
2464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465    ac_cv_prog_AWK="$ac_prog"
2466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2467    break 2
2468  fi
2469done
2470  done
2471IFS=$as_save_IFS
2472
2473fi
2474fi
2475AWK=$ac_cv_prog_AWK
2476if test -n "$AWK"; then
2477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2478$as_echo "$AWK" >&6; }
2479else
2480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2481$as_echo "no" >&6; }
2482fi
2483
2484
2485  test -n "$AWK" && break
2486done
2487
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2489$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2490set x ${MAKE-make}
2491ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2492if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2493  $as_echo_n "(cached) " >&6
2494else
2495  cat >conftest.make <<\_ACEOF
2496SHELL = /bin/sh
2497all:
2498	@echo '@@@%%%=$(MAKE)=@@@%%%'
2499_ACEOF
2500# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2501case `${MAKE-make} -f conftest.make 2>/dev/null` in
2502  *@@@%%%=?*=@@@%%%*)
2503    eval ac_cv_prog_make_${ac_make}_set=yes;;
2504  *)
2505    eval ac_cv_prog_make_${ac_make}_set=no;;
2506esac
2507rm -f conftest.make
2508fi
2509if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2511$as_echo "yes" >&6; }
2512  SET_MAKE=
2513else
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515$as_echo "no" >&6; }
2516  SET_MAKE="MAKE=${MAKE-make}"
2517fi
2518
2519rm -rf .tst 2>/dev/null
2520mkdir .tst 2>/dev/null
2521if test -d .tst; then
2522  am__leading_dot=.
2523else
2524  am__leading_dot=_
2525fi
2526rmdir .tst 2>/dev/null
2527
2528if test "`cd $srcdir && pwd`" != "`pwd`"; then
2529  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2530  # is not polluted with repeated "-I."
2531  am__isrc=' -I$(srcdir)'
2532  # test to see if srcdir already configured
2533  if test -f $srcdir/config.status; then
2534    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2535  fi
2536fi
2537
2538# test whether we have cygpath
2539if test -z "$CYGPATH_W"; then
2540  if (cygpath --version) >/dev/null 2>/dev/null; then
2541    CYGPATH_W='cygpath -w'
2542  else
2543    CYGPATH_W=echo
2544  fi
2545fi
2546
2547
2548# Define the identity of the package.
2549 PACKAGE='editres'
2550 VERSION='1.0.6'
2551
2552
2553cat >>confdefs.h <<_ACEOF
2554#define PACKAGE "$PACKAGE"
2555_ACEOF
2556
2557
2558cat >>confdefs.h <<_ACEOF
2559#define VERSION "$VERSION"
2560_ACEOF
2561
2562# Some tools Automake needs.
2563
2564ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2565
2566
2567AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2568
2569
2570AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2571
2572
2573AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2574
2575
2576MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2577
2578# We need awk for the "check" target.  The system "awk" is bad on
2579# some platforms.
2580# Always define AMTAR for backward compatibility.
2581
2582AMTAR=${AMTAR-"${am_missing_run}tar"}
2583
2584am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2585
2586
2587
2588
2589
2590
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2592$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2593    # Check whether --enable-maintainer-mode was given.
2594if test "${enable_maintainer_mode+set}" = set; then :
2595  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2596else
2597  USE_MAINTAINER_MODE=no
2598fi
2599
2600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2601$as_echo "$USE_MAINTAINER_MODE" >&6; }
2602   if test $USE_MAINTAINER_MODE = yes; then
2603  MAINTAINER_MODE_TRUE=
2604  MAINTAINER_MODE_FALSE='#'
2605else
2606  MAINTAINER_MODE_TRUE='#'
2607  MAINTAINER_MODE_FALSE=
2608fi
2609
2610  MAINT=$MAINTAINER_MODE_TRUE
2611
2612
2613
2614# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626DEPDIR="${am__leading_dot}deps"
2627
2628ac_config_commands="$ac_config_commands depfiles"
2629
2630
2631am_make=${MAKE-make}
2632cat > confinc << 'END'
2633am__doit:
2634	@echo this is the am__doit target
2635.PHONY: am__doit
2636END
2637# If we don't find an include directive, just comment out the code.
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2639$as_echo_n "checking for style of include used by $am_make... " >&6; }
2640am__include="#"
2641am__quote=
2642_am_result=none
2643# First try GNU make style include.
2644echo "include confinc" > confmf
2645# Ignore all kinds of additional output from `make'.
2646case `$am_make -s -f confmf 2> /dev/null` in #(
2647*the\ am__doit\ target*)
2648  am__include=include
2649  am__quote=
2650  _am_result=GNU
2651  ;;
2652esac
2653# Now try BSD make style include.
2654if test "$am__include" = "#"; then
2655   echo '.include "confinc"' > confmf
2656   case `$am_make -s -f confmf 2> /dev/null` in #(
2657   *the\ am__doit\ target*)
2658     am__include=.include
2659     am__quote="\""
2660     _am_result=BSD
2661     ;;
2662   esac
2663fi
2664
2665
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2667$as_echo "$_am_result" >&6; }
2668rm -f confinc confmf
2669
2670# Check whether --enable-dependency-tracking was given.
2671if test "${enable_dependency_tracking+set}" = set; then :
2672  enableval=$enable_dependency_tracking;
2673fi
2674
2675if test "x$enable_dependency_tracking" != xno; then
2676  am_depcomp="$ac_aux_dir/depcomp"
2677  AMDEPBACKSLASH='\'
2678  am__nodep='_no'
2679fi
2680 if test "x$enable_dependency_tracking" != xno; then
2681  AMDEP_TRUE=
2682  AMDEP_FALSE='#'
2683else
2684  AMDEP_TRUE='#'
2685  AMDEP_FALSE=
2686fi
2687
2688
2689ac_ext=c
2690ac_cpp='$CPP $CPPFLAGS'
2691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694if test -n "$ac_tool_prefix"; then
2695  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2696set dummy ${ac_tool_prefix}gcc; ac_word=$2
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698$as_echo_n "checking for $ac_word... " >&6; }
2699if ${ac_cv_prog_CC+:} false; then :
2700  $as_echo_n "(cached) " >&6
2701else
2702  if test -n "$CC"; then
2703  ac_cv_prog_CC="$CC" # Let the user override the test.
2704else
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708  IFS=$as_save_IFS
2709  test -z "$as_dir" && as_dir=.
2710    for ac_exec_ext in '' $ac_executable_extensions; do
2711  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714    break 2
2715  fi
2716done
2717  done
2718IFS=$as_save_IFS
2719
2720fi
2721fi
2722CC=$ac_cv_prog_CC
2723if test -n "$CC"; then
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2725$as_echo "$CC" >&6; }
2726else
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728$as_echo "no" >&6; }
2729fi
2730
2731
2732fi
2733if test -z "$ac_cv_prog_CC"; then
2734  ac_ct_CC=$CC
2735  # Extract the first word of "gcc", so it can be a program name with args.
2736set dummy gcc; ac_word=$2
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
2739if ${ac_cv_prog_ac_ct_CC+:} false; then :
2740  $as_echo_n "(cached) " >&6
2741else
2742  if test -n "$ac_ct_CC"; then
2743  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748  IFS=$as_save_IFS
2749  test -z "$as_dir" && as_dir=.
2750    for ac_exec_ext in '' $ac_executable_extensions; do
2751  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752    ac_cv_prog_ac_ct_CC="gcc"
2753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754    break 2
2755  fi
2756done
2757  done
2758IFS=$as_save_IFS
2759
2760fi
2761fi
2762ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763if test -n "$ac_ct_CC"; then
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2765$as_echo "$ac_ct_CC" >&6; }
2766else
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768$as_echo "no" >&6; }
2769fi
2770
2771  if test "x$ac_ct_CC" = x; then
2772    CC=""
2773  else
2774    case $cross_compiling:$ac_tool_warned in
2775yes:)
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2778ac_tool_warned=yes ;;
2779esac
2780    CC=$ac_ct_CC
2781  fi
2782else
2783  CC="$ac_cv_prog_CC"
2784fi
2785
2786if test -z "$CC"; then
2787          if test -n "$ac_tool_prefix"; then
2788    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2789set dummy ${ac_tool_prefix}cc; ac_word=$2
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791$as_echo_n "checking for $ac_word... " >&6; }
2792if ${ac_cv_prog_CC+:} false; then :
2793  $as_echo_n "(cached) " >&6
2794else
2795  if test -n "$CC"; then
2796  ac_cv_prog_CC="$CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801  IFS=$as_save_IFS
2802  test -z "$as_dir" && as_dir=.
2803    for ac_exec_ext in '' $ac_executable_extensions; do
2804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805    ac_cv_prog_CC="${ac_tool_prefix}cc"
2806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807    break 2
2808  fi
2809done
2810  done
2811IFS=$as_save_IFS
2812
2813fi
2814fi
2815CC=$ac_cv_prog_CC
2816if test -n "$CC"; then
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818$as_echo "$CC" >&6; }
2819else
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821$as_echo "no" >&6; }
2822fi
2823
2824
2825  fi
2826fi
2827if test -z "$CC"; then
2828  # Extract the first word of "cc", so it can be a program name with args.
2829set dummy cc; ac_word=$2
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
2832if ${ac_cv_prog_CC+:} false; then :
2833  $as_echo_n "(cached) " >&6
2834else
2835  if test -n "$CC"; then
2836  ac_cv_prog_CC="$CC" # Let the user override the test.
2837else
2838  ac_prog_rejected=no
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842  IFS=$as_save_IFS
2843  test -z "$as_dir" && as_dir=.
2844    for ac_exec_ext in '' $ac_executable_extensions; do
2845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2847       ac_prog_rejected=yes
2848       continue
2849     fi
2850    ac_cv_prog_CC="cc"
2851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852    break 2
2853  fi
2854done
2855  done
2856IFS=$as_save_IFS
2857
2858if test $ac_prog_rejected = yes; then
2859  # We found a bogon in the path, so make sure we never use it.
2860  set dummy $ac_cv_prog_CC
2861  shift
2862  if test $# != 0; then
2863    # We chose a different compiler from the bogus one.
2864    # However, it has the same basename, so the bogon will be chosen
2865    # first if we set CC to just the basename; use the full file name.
2866    shift
2867    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2868  fi
2869fi
2870fi
2871fi
2872CC=$ac_cv_prog_CC
2873if test -n "$CC"; then
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875$as_echo "$CC" >&6; }
2876else
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878$as_echo "no" >&6; }
2879fi
2880
2881
2882fi
2883if test -z "$CC"; then
2884  if test -n "$ac_tool_prefix"; then
2885  for ac_prog in cl.exe
2886  do
2887    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890$as_echo_n "checking for $ac_word... " >&6; }
2891if ${ac_cv_prog_CC+:} false; then :
2892  $as_echo_n "(cached) " >&6
2893else
2894  if test -n "$CC"; then
2895  ac_cv_prog_CC="$CC" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900  IFS=$as_save_IFS
2901  test -z "$as_dir" && as_dir=.
2902    for ac_exec_ext in '' $ac_executable_extensions; do
2903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906    break 2
2907  fi
2908done
2909  done
2910IFS=$as_save_IFS
2911
2912fi
2913fi
2914CC=$ac_cv_prog_CC
2915if test -n "$CC"; then
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917$as_echo "$CC" >&6; }
2918else
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920$as_echo "no" >&6; }
2921fi
2922
2923
2924    test -n "$CC" && break
2925  done
2926fi
2927if test -z "$CC"; then
2928  ac_ct_CC=$CC
2929  for ac_prog in cl.exe
2930do
2931  # Extract the first word of "$ac_prog", so it can be a program name with args.
2932set dummy $ac_prog; ac_word=$2
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934$as_echo_n "checking for $ac_word... " >&6; }
2935if ${ac_cv_prog_ac_ct_CC+:} false; then :
2936  $as_echo_n "(cached) " >&6
2937else
2938  if test -n "$ac_ct_CC"; then
2939  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944  IFS=$as_save_IFS
2945  test -z "$as_dir" && as_dir=.
2946    for ac_exec_ext in '' $ac_executable_extensions; do
2947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948    ac_cv_prog_ac_ct_CC="$ac_prog"
2949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950    break 2
2951  fi
2952done
2953  done
2954IFS=$as_save_IFS
2955
2956fi
2957fi
2958ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959if test -n "$ac_ct_CC"; then
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2961$as_echo "$ac_ct_CC" >&6; }
2962else
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964$as_echo "no" >&6; }
2965fi
2966
2967
2968  test -n "$ac_ct_CC" && break
2969done
2970
2971  if test "x$ac_ct_CC" = x; then
2972    CC=""
2973  else
2974    case $cross_compiling:$ac_tool_warned in
2975yes:)
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2978ac_tool_warned=yes ;;
2979esac
2980    CC=$ac_ct_CC
2981  fi
2982fi
2983
2984fi
2985
2986
2987test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989as_fn_error $? "no acceptable C compiler found in \$PATH
2990See \`config.log' for more details" "$LINENO" 5; }
2991
2992# Provide some information about the compiler.
2993$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2994set X $ac_compile
2995ac_compiler=$2
2996for ac_option in --version -v -V -qversion; do
2997  { { ac_try="$ac_compiler $ac_option >&5"
2998case "(($ac_try" in
2999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000  *) ac_try_echo=$ac_try;;
3001esac
3002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003$as_echo "$ac_try_echo"; } >&5
3004  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3005  ac_status=$?
3006  if test -s conftest.err; then
3007    sed '10a\
3008... rest of stderr output deleted ...
3009         10q' conftest.err >conftest.er1
3010    cat conftest.er1 >&5
3011  fi
3012  rm -f conftest.er1 conftest.err
3013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014  test $ac_status = 0; }
3015done
3016
3017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023
3024  ;
3025  return 0;
3026}
3027_ACEOF
3028ac_clean_files_save=$ac_clean_files
3029ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3030# Try to create an executable without -o first, disregard a.out.
3031# It will help us diagnose broken compilers, and finding out an intuition
3032# of exeext.
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3034$as_echo_n "checking whether the C compiler works... " >&6; }
3035ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3036
3037# The possible output files:
3038ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3039
3040ac_rmfiles=
3041for ac_file in $ac_files
3042do
3043  case $ac_file in
3044    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3045    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3046  esac
3047done
3048rm -f $ac_rmfiles
3049
3050if { { ac_try="$ac_link_default"
3051case "(($ac_try" in
3052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053  *) ac_try_echo=$ac_try;;
3054esac
3055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056$as_echo "$ac_try_echo"; } >&5
3057  (eval "$ac_link_default") 2>&5
3058  ac_status=$?
3059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060  test $ac_status = 0; }; then :
3061  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3062# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3063# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3064# so that the user can short-circuit this test for compilers unknown to
3065# Autoconf.
3066for ac_file in $ac_files ''
3067do
3068  test -f "$ac_file" || continue
3069  case $ac_file in
3070    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3071	;;
3072    [ab].out )
3073	# We found the default executable, but exeext='' is most
3074	# certainly right.
3075	break;;
3076    *.* )
3077	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3078	then :; else
3079	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080	fi
3081	# We set ac_cv_exeext here because the later test for it is not
3082	# safe: cross compilers may not add the suffix if given an `-o'
3083	# argument, so we may need to know it at that point already.
3084	# Even if this section looks crufty: it has the advantage of
3085	# actually working.
3086	break;;
3087    * )
3088	break;;
3089  esac
3090done
3091test "$ac_cv_exeext" = no && ac_cv_exeext=
3092
3093else
3094  ac_file=''
3095fi
3096if test -z "$ac_file"; then :
3097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098$as_echo "no" >&6; }
3099$as_echo "$as_me: failed program was:" >&5
3100sed 's/^/| /' conftest.$ac_ext >&5
3101
3102{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104as_fn_error 77 "C compiler cannot create executables
3105See \`config.log' for more details" "$LINENO" 5; }
3106else
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3108$as_echo "yes" >&6; }
3109fi
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3111$as_echo_n "checking for C compiler default output file name... " >&6; }
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3113$as_echo "$ac_file" >&6; }
3114ac_exeext=$ac_cv_exeext
3115
3116rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3117ac_clean_files=$ac_clean_files_save
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3119$as_echo_n "checking for suffix of executables... " >&6; }
3120if { { ac_try="$ac_link"
3121case "(($ac_try" in
3122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123  *) ac_try_echo=$ac_try;;
3124esac
3125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126$as_echo "$ac_try_echo"; } >&5
3127  (eval "$ac_link") 2>&5
3128  ac_status=$?
3129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130  test $ac_status = 0; }; then :
3131  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3132# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3133# work properly (i.e., refer to `conftest.exe'), while it won't with
3134# `rm'.
3135for ac_file in conftest.exe conftest conftest.*; do
3136  test -f "$ac_file" || continue
3137  case $ac_file in
3138    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3139    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3140	  break;;
3141    * ) break;;
3142  esac
3143done
3144else
3145  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3148See \`config.log' for more details" "$LINENO" 5; }
3149fi
3150rm -f conftest conftest$ac_cv_exeext
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3152$as_echo "$ac_cv_exeext" >&6; }
3153
3154rm -f conftest.$ac_ext
3155EXEEXT=$ac_cv_exeext
3156ac_exeext=$EXEEXT
3157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158/* end confdefs.h.  */
3159#include <stdio.h>
3160int
3161main ()
3162{
3163FILE *f = fopen ("conftest.out", "w");
3164 return ferror (f) || fclose (f) != 0;
3165
3166  ;
3167  return 0;
3168}
3169_ACEOF
3170ac_clean_files="$ac_clean_files conftest.out"
3171# Check that the compiler produces executables we can run.  If not, either
3172# the compiler is broken, or we cross compile.
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3174$as_echo_n "checking whether we are cross compiling... " >&6; }
3175if test "$cross_compiling" != yes; then
3176  { { ac_try="$ac_link"
3177case "(($ac_try" in
3178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179  *) ac_try_echo=$ac_try;;
3180esac
3181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182$as_echo "$ac_try_echo"; } >&5
3183  (eval "$ac_link") 2>&5
3184  ac_status=$?
3185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186  test $ac_status = 0; }
3187  if { ac_try='./conftest$ac_cv_exeext'
3188  { { case "(($ac_try" in
3189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190  *) ac_try_echo=$ac_try;;
3191esac
3192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193$as_echo "$ac_try_echo"; } >&5
3194  (eval "$ac_try") 2>&5
3195  ac_status=$?
3196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197  test $ac_status = 0; }; }; then
3198    cross_compiling=no
3199  else
3200    if test "$cross_compiling" = maybe; then
3201	cross_compiling=yes
3202    else
3203	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205as_fn_error $? "cannot run C compiled programs.
3206If you meant to cross compile, use \`--host'.
3207See \`config.log' for more details" "$LINENO" 5; }
3208    fi
3209  fi
3210fi
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3212$as_echo "$cross_compiling" >&6; }
3213
3214rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3215ac_clean_files=$ac_clean_files_save
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3217$as_echo_n "checking for suffix of object files... " >&6; }
3218if ${ac_cv_objext+:} false; then :
3219  $as_echo_n "(cached) " >&6
3220else
3221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222/* end confdefs.h.  */
3223
3224int
3225main ()
3226{
3227
3228  ;
3229  return 0;
3230}
3231_ACEOF
3232rm -f conftest.o conftest.obj
3233if { { ac_try="$ac_compile"
3234case "(($ac_try" in
3235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236  *) ac_try_echo=$ac_try;;
3237esac
3238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239$as_echo "$ac_try_echo"; } >&5
3240  (eval "$ac_compile") 2>&5
3241  ac_status=$?
3242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243  test $ac_status = 0; }; then :
3244  for ac_file in conftest.o conftest.obj conftest.*; do
3245  test -f "$ac_file" || continue;
3246  case $ac_file in
3247    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3248    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3249       break;;
3250  esac
3251done
3252else
3253  $as_echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258as_fn_error $? "cannot compute suffix of object files: cannot compile
3259See \`config.log' for more details" "$LINENO" 5; }
3260fi
3261rm -f conftest.$ac_cv_objext conftest.$ac_ext
3262fi
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3264$as_echo "$ac_cv_objext" >&6; }
3265OBJEXT=$ac_cv_objext
3266ac_objext=$OBJEXT
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3268$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3269if ${ac_cv_c_compiler_gnu+:} false; then :
3270  $as_echo_n "(cached) " >&6
3271else
3272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273/* end confdefs.h.  */
3274
3275int
3276main ()
3277{
3278#ifndef __GNUC__
3279       choke me
3280#endif
3281
3282  ;
3283  return 0;
3284}
3285_ACEOF
3286if ac_fn_c_try_compile "$LINENO"; then :
3287  ac_compiler_gnu=yes
3288else
3289  ac_compiler_gnu=no
3290fi
3291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292ac_cv_c_compiler_gnu=$ac_compiler_gnu
3293
3294fi
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3296$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3297if test $ac_compiler_gnu = yes; then
3298  GCC=yes
3299else
3300  GCC=
3301fi
3302ac_test_CFLAGS=${CFLAGS+set}
3303ac_save_CFLAGS=$CFLAGS
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3305$as_echo_n "checking whether $CC accepts -g... " >&6; }
3306if ${ac_cv_prog_cc_g+:} false; then :
3307  $as_echo_n "(cached) " >&6
3308else
3309  ac_save_c_werror_flag=$ac_c_werror_flag
3310   ac_c_werror_flag=yes
3311   ac_cv_prog_cc_g=no
3312   CFLAGS="-g"
3313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314/* end confdefs.h.  */
3315
3316int
3317main ()
3318{
3319
3320  ;
3321  return 0;
3322}
3323_ACEOF
3324if ac_fn_c_try_compile "$LINENO"; then :
3325  ac_cv_prog_cc_g=yes
3326else
3327  CFLAGS=""
3328      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329/* end confdefs.h.  */
3330
3331int
3332main ()
3333{
3334
3335  ;
3336  return 0;
3337}
3338_ACEOF
3339if ac_fn_c_try_compile "$LINENO"; then :
3340
3341else
3342  ac_c_werror_flag=$ac_save_c_werror_flag
3343	 CFLAGS="-g"
3344	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345/* end confdefs.h.  */
3346
3347int
3348main ()
3349{
3350
3351  ;
3352  return 0;
3353}
3354_ACEOF
3355if ac_fn_c_try_compile "$LINENO"; then :
3356  ac_cv_prog_cc_g=yes
3357fi
3358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359fi
3360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361fi
3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363   ac_c_werror_flag=$ac_save_c_werror_flag
3364fi
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3366$as_echo "$ac_cv_prog_cc_g" >&6; }
3367if test "$ac_test_CFLAGS" = set; then
3368  CFLAGS=$ac_save_CFLAGS
3369elif test $ac_cv_prog_cc_g = yes; then
3370  if test "$GCC" = yes; then
3371    CFLAGS="-g -O2"
3372  else
3373    CFLAGS="-g"
3374  fi
3375else
3376  if test "$GCC" = yes; then
3377    CFLAGS="-O2"
3378  else
3379    CFLAGS=
3380  fi
3381fi
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3383$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3384if ${ac_cv_prog_cc_c89+:} false; then :
3385  $as_echo_n "(cached) " >&6
3386else
3387  ac_cv_prog_cc_c89=no
3388ac_save_CC=$CC
3389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390/* end confdefs.h.  */
3391#include <stdarg.h>
3392#include <stdio.h>
3393#include <sys/types.h>
3394#include <sys/stat.h>
3395/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3396struct buf { int x; };
3397FILE * (*rcsopen) (struct buf *, struct stat *, int);
3398static char *e (p, i)
3399     char **p;
3400     int i;
3401{
3402  return p[i];
3403}
3404static char *f (char * (*g) (char **, int), char **p, ...)
3405{
3406  char *s;
3407  va_list v;
3408  va_start (v,p);
3409  s = g (p, va_arg (v,int));
3410  va_end (v);
3411  return s;
3412}
3413
3414/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3415   function prototypes and stuff, but not '\xHH' hex character constants.
3416   These don't provoke an error unfortunately, instead are silently treated
3417   as 'x'.  The following induces an error, until -std is added to get
3418   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3419   array size at least.  It's necessary to write '\x00'==0 to get something
3420   that's true only with -std.  */
3421int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3422
3423/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3424   inside strings and character constants.  */
3425#define FOO(x) 'x'
3426int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3427
3428int test (int i, double x);
3429struct s1 {int (*f) (int a);};
3430struct s2 {int (*f) (double a);};
3431int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3432int argc;
3433char **argv;
3434int
3435main ()
3436{
3437return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3438  ;
3439  return 0;
3440}
3441_ACEOF
3442for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3443	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3444do
3445  CC="$ac_save_CC $ac_arg"
3446  if ac_fn_c_try_compile "$LINENO"; then :
3447  ac_cv_prog_cc_c89=$ac_arg
3448fi
3449rm -f core conftest.err conftest.$ac_objext
3450  test "x$ac_cv_prog_cc_c89" != "xno" && break
3451done
3452rm -f conftest.$ac_ext
3453CC=$ac_save_CC
3454
3455fi
3456# AC_CACHE_VAL
3457case "x$ac_cv_prog_cc_c89" in
3458  x)
3459    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3460$as_echo "none needed" >&6; } ;;
3461  xno)
3462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3463$as_echo "unsupported" >&6; } ;;
3464  *)
3465    CC="$CC $ac_cv_prog_cc_c89"
3466    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3467$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3468esac
3469if test "x$ac_cv_prog_cc_c89" != xno; then :
3470
3471fi
3472
3473ac_ext=c
3474ac_cpp='$CPP $CPPFLAGS'
3475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478
3479depcc="$CC"   am_compiler_list=
3480
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3482$as_echo_n "checking dependency style of $depcc... " >&6; }
3483if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3484  $as_echo_n "(cached) " >&6
3485else
3486  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3487  # We make a subdir and do the tests there.  Otherwise we can end up
3488  # making bogus files that we don't know about and never remove.  For
3489  # instance it was reported that on HP-UX the gcc test will end up
3490  # making a dummy file named `D' -- because `-MD' means `put the output
3491  # in D'.
3492  rm -rf conftest.dir
3493  mkdir conftest.dir
3494  # Copy depcomp to subdir because otherwise we won't find it if we're
3495  # using a relative directory.
3496  cp "$am_depcomp" conftest.dir
3497  cd conftest.dir
3498  # We will build objects and dependencies in a subdirectory because
3499  # it helps to detect inapplicable dependency modes.  For instance
3500  # both Tru64's cc and ICC support -MD to output dependencies as a
3501  # side effect of compilation, but ICC will put the dependencies in
3502  # the current directory while Tru64 will put them in the object
3503  # directory.
3504  mkdir sub
3505
3506  am_cv_CC_dependencies_compiler_type=none
3507  if test "$am_compiler_list" = ""; then
3508     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3509  fi
3510  am__universal=false
3511  case " $depcc " in #(
3512     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3513     esac
3514
3515  for depmode in $am_compiler_list; do
3516    # Setup a source with many dependencies, because some compilers
3517    # like to wrap large dependency lists on column 80 (with \), and
3518    # we should not choose a depcomp mode which is confused by this.
3519    #
3520    # We need to recreate these files for each test, as the compiler may
3521    # overwrite some of them when testing with obscure command lines.
3522    # This happens at least with the AIX C compiler.
3523    : > sub/conftest.c
3524    for i in 1 2 3 4 5 6; do
3525      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3526      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3527      # Solaris 8's {/usr,}/bin/sh.
3528      touch sub/conftst$i.h
3529    done
3530    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3531
3532    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3533    # mode.  It turns out that the SunPro C++ compiler does not properly
3534    # handle `-M -o', and we need to detect this.  Also, some Intel
3535    # versions had trouble with output in subdirs
3536    am__obj=sub/conftest.${OBJEXT-o}
3537    am__minus_obj="-o $am__obj"
3538    case $depmode in
3539    gcc)
3540      # This depmode causes a compiler race in universal mode.
3541      test "$am__universal" = false || continue
3542      ;;
3543    nosideeffect)
3544      # after this tag, mechanisms are not by side-effect, so they'll
3545      # only be used when explicitly requested
3546      if test "x$enable_dependency_tracking" = xyes; then
3547	continue
3548      else
3549	break
3550      fi
3551      ;;
3552    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3553      # This compiler won't grok `-c -o', but also, the minuso test has
3554      # not run yet.  These depmodes are late enough in the game, and
3555      # so weak that their functioning should not be impacted.
3556      am__obj=conftest.${OBJEXT-o}
3557      am__minus_obj=
3558      ;;
3559    none) break ;;
3560    esac
3561    if depmode=$depmode \
3562       source=sub/conftest.c object=$am__obj \
3563       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3564       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3565         >/dev/null 2>conftest.err &&
3566       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3567       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3568       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3569       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3570      # icc doesn't choke on unknown options, it will just issue warnings
3571      # or remarks (even with -Werror).  So we grep stderr for any message
3572      # that says an option was ignored or not supported.
3573      # When given -MP, icc 7.0 and 7.1 complain thusly:
3574      #   icc: Command line warning: ignoring option '-M'; no argument required
3575      # The diagnosis changed in icc 8.0:
3576      #   icc: Command line remark: option '-MP' not supported
3577      if (grep 'ignoring option' conftest.err ||
3578          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3579        am_cv_CC_dependencies_compiler_type=$depmode
3580        break
3581      fi
3582    fi
3583  done
3584
3585  cd ..
3586  rm -rf conftest.dir
3587else
3588  am_cv_CC_dependencies_compiler_type=none
3589fi
3590
3591fi
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3593$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3594CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3595
3596 if
3597  test "x$enable_dependency_tracking" != xno \
3598  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3599  am__fastdepCC_TRUE=
3600  am__fastdepCC_FALSE='#'
3601else
3602  am__fastdepCC_TRUE='#'
3603  am__fastdepCC_FALSE=
3604fi
3605
3606
3607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3608$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3609if ${ac_cv_prog_cc_c99+:} false; then :
3610  $as_echo_n "(cached) " >&6
3611else
3612  ac_cv_prog_cc_c99=no
3613ac_save_CC=$CC
3614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h.  */
3616#include <stdarg.h>
3617#include <stdbool.h>
3618#include <stdlib.h>
3619#include <wchar.h>
3620#include <stdio.h>
3621
3622// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3623#define debug(...) fprintf (stderr, __VA_ARGS__)
3624#define showlist(...) puts (#__VA_ARGS__)
3625#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3626static void
3627test_varargs_macros (void)
3628{
3629  int x = 1234;
3630  int y = 5678;
3631  debug ("Flag");
3632  debug ("X = %d\n", x);
3633  showlist (The first, second, and third items.);
3634  report (x>y, "x is %d but y is %d", x, y);
3635}
3636
3637// Check long long types.
3638#define BIG64 18446744073709551615ull
3639#define BIG32 4294967295ul
3640#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3641#if !BIG_OK
3642  your preprocessor is broken;
3643#endif
3644#if BIG_OK
3645#else
3646  your preprocessor is broken;
3647#endif
3648static long long int bignum = -9223372036854775807LL;
3649static unsigned long long int ubignum = BIG64;
3650
3651struct incomplete_array
3652{
3653  int datasize;
3654  double data[];
3655};
3656
3657struct named_init {
3658  int number;
3659  const wchar_t *name;
3660  double average;
3661};
3662
3663typedef const char *ccp;
3664
3665static inline int
3666test_restrict (ccp restrict text)
3667{
3668  // See if C++-style comments work.
3669  // Iterate through items via the restricted pointer.
3670  // Also check for declarations in for loops.
3671  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3672    continue;
3673  return 0;
3674}
3675
3676// Check varargs and va_copy.
3677static void
3678test_varargs (const char *format, ...)
3679{
3680  va_list args;
3681  va_start (args, format);
3682  va_list args_copy;
3683  va_copy (args_copy, args);
3684
3685  const char *str;
3686  int number;
3687  float fnumber;
3688
3689  while (*format)
3690    {
3691      switch (*format++)
3692	{
3693	case 's': // string
3694	  str = va_arg (args_copy, const char *);
3695	  break;
3696	case 'd': // int
3697	  number = va_arg (args_copy, int);
3698	  break;
3699	case 'f': // float
3700	  fnumber = va_arg (args_copy, double);
3701	  break;
3702	default:
3703	  break;
3704	}
3705    }
3706  va_end (args_copy);
3707  va_end (args);
3708}
3709
3710int
3711main ()
3712{
3713
3714  // Check bool.
3715  _Bool success = false;
3716
3717  // Check restrict.
3718  if (test_restrict ("String literal") == 0)
3719    success = true;
3720  char *restrict newvar = "Another string";
3721
3722  // Check varargs.
3723  test_varargs ("s, d' f .", "string", 65, 34.234);
3724  test_varargs_macros ();
3725
3726  // Check flexible array members.
3727  struct incomplete_array *ia =
3728    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3729  ia->datasize = 10;
3730  for (int i = 0; i < ia->datasize; ++i)
3731    ia->data[i] = i * 1.234;
3732
3733  // Check named initializers.
3734  struct named_init ni = {
3735    .number = 34,
3736    .name = L"Test wide string",
3737    .average = 543.34343,
3738  };
3739
3740  ni.number = 58;
3741
3742  int dynamic_array[ni.number];
3743  dynamic_array[ni.number - 1] = 543;
3744
3745  // work around unused variable warnings
3746  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3747	  || dynamic_array[ni.number - 1] != 543);
3748
3749  ;
3750  return 0;
3751}
3752_ACEOF
3753for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3754do
3755  CC="$ac_save_CC $ac_arg"
3756  if ac_fn_c_try_compile "$LINENO"; then :
3757  ac_cv_prog_cc_c99=$ac_arg
3758fi
3759rm -f core conftest.err conftest.$ac_objext
3760  test "x$ac_cv_prog_cc_c99" != "xno" && break
3761done
3762rm -f conftest.$ac_ext
3763CC=$ac_save_CC
3764
3765fi
3766# AC_CACHE_VAL
3767case "x$ac_cv_prog_cc_c99" in
3768  x)
3769    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3770$as_echo "none needed" >&6; } ;;
3771  xno)
3772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3773$as_echo "unsupported" >&6; } ;;
3774  *)
3775    CC="$CC $ac_cv_prog_cc_c99"
3776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3777$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3778esac
3779if test "x$ac_cv_prog_cc_c99" != xno; then :
3780
3781fi
3782
3783
3784
3785ac_ext=c
3786ac_cpp='$CPP $CPPFLAGS'
3787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3791$as_echo_n "checking how to run the C preprocessor... " >&6; }
3792# On Suns, sometimes $CPP names a directory.
3793if test -n "$CPP" && test -d "$CPP"; then
3794  CPP=
3795fi
3796if test -z "$CPP"; then
3797  if ${ac_cv_prog_CPP+:} false; then :
3798  $as_echo_n "(cached) " >&6
3799else
3800      # Double quotes because CPP needs to be expanded
3801    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3802    do
3803      ac_preproc_ok=false
3804for ac_c_preproc_warn_flag in '' yes
3805do
3806  # Use a header file that comes with gcc, so configuring glibc
3807  # with a fresh cross-compiler works.
3808  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3809  # <limits.h> exists even on freestanding compilers.
3810  # On the NeXT, cc -E runs the code through the compiler's parser,
3811  # not just through cpp. "Syntax error" is here to catch this case.
3812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h.  */
3814#ifdef __STDC__
3815# include <limits.h>
3816#else
3817# include <assert.h>
3818#endif
3819		     Syntax error
3820_ACEOF
3821if ac_fn_c_try_cpp "$LINENO"; then :
3822
3823else
3824  # Broken: fails on valid input.
3825continue
3826fi
3827rm -f conftest.err conftest.i conftest.$ac_ext
3828
3829  # OK, works on sane cases.  Now check whether nonexistent headers
3830  # can be detected and how.
3831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832/* end confdefs.h.  */
3833#include <ac_nonexistent.h>
3834_ACEOF
3835if ac_fn_c_try_cpp "$LINENO"; then :
3836  # Broken: success on invalid input.
3837continue
3838else
3839  # Passes both tests.
3840ac_preproc_ok=:
3841break
3842fi
3843rm -f conftest.err conftest.i conftest.$ac_ext
3844
3845done
3846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3847rm -f conftest.i conftest.err conftest.$ac_ext
3848if $ac_preproc_ok; then :
3849  break
3850fi
3851
3852    done
3853    ac_cv_prog_CPP=$CPP
3854
3855fi
3856  CPP=$ac_cv_prog_CPP
3857else
3858  ac_cv_prog_CPP=$CPP
3859fi
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3861$as_echo "$CPP" >&6; }
3862ac_preproc_ok=false
3863for ac_c_preproc_warn_flag in '' yes
3864do
3865  # Use a header file that comes with gcc, so configuring glibc
3866  # with a fresh cross-compiler works.
3867  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3868  # <limits.h> exists even on freestanding compilers.
3869  # On the NeXT, cc -E runs the code through the compiler's parser,
3870  # not just through cpp. "Syntax error" is here to catch this case.
3871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h.  */
3873#ifdef __STDC__
3874# include <limits.h>
3875#else
3876# include <assert.h>
3877#endif
3878		     Syntax error
3879_ACEOF
3880if ac_fn_c_try_cpp "$LINENO"; then :
3881
3882else
3883  # Broken: fails on valid input.
3884continue
3885fi
3886rm -f conftest.err conftest.i conftest.$ac_ext
3887
3888  # OK, works on sane cases.  Now check whether nonexistent headers
3889  # can be detected and how.
3890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h.  */
3892#include <ac_nonexistent.h>
3893_ACEOF
3894if ac_fn_c_try_cpp "$LINENO"; then :
3895  # Broken: success on invalid input.
3896continue
3897else
3898  # Passes both tests.
3899ac_preproc_ok=:
3900break
3901fi
3902rm -f conftest.err conftest.i conftest.$ac_ext
3903
3904done
3905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3906rm -f conftest.i conftest.err conftest.$ac_ext
3907if $ac_preproc_ok; then :
3908
3909else
3910  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3913See \`config.log' for more details" "$LINENO" 5; }
3914fi
3915
3916ac_ext=c
3917ac_cpp='$CPP $CPPFLAGS'
3918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
3922
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3924$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3925if ${ac_cv_path_GREP+:} false; then :
3926  $as_echo_n "(cached) " >&6
3927else
3928  if test -z "$GREP"; then
3929  ac_path_GREP_found=false
3930  # Loop through the user's path and test for each of PROGNAME-LIST
3931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3933do
3934  IFS=$as_save_IFS
3935  test -z "$as_dir" && as_dir=.
3936    for ac_prog in grep ggrep; do
3937    for ac_exec_ext in '' $ac_executable_extensions; do
3938      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3940# Check for GNU ac_path_GREP and select it if it is found.
3941  # Check for GNU $ac_path_GREP
3942case `"$ac_path_GREP" --version 2>&1` in
3943*GNU*)
3944  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3945*)
3946  ac_count=0
3947  $as_echo_n 0123456789 >"conftest.in"
3948  while :
3949  do
3950    cat "conftest.in" "conftest.in" >"conftest.tmp"
3951    mv "conftest.tmp" "conftest.in"
3952    cp "conftest.in" "conftest.nl"
3953    $as_echo 'GREP' >> "conftest.nl"
3954    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3956    as_fn_arith $ac_count + 1 && ac_count=$as_val
3957    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958      # Best one so far, save it but keep looking for a better one
3959      ac_cv_path_GREP="$ac_path_GREP"
3960      ac_path_GREP_max=$ac_count
3961    fi
3962    # 10*(2^10) chars as input seems more than enough
3963    test $ac_count -gt 10 && break
3964  done
3965  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3966esac
3967
3968      $ac_path_GREP_found && break 3
3969    done
3970  done
3971  done
3972IFS=$as_save_IFS
3973  if test -z "$ac_cv_path_GREP"; then
3974    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3975  fi
3976else
3977  ac_cv_path_GREP=$GREP
3978fi
3979
3980fi
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3982$as_echo "$ac_cv_path_GREP" >&6; }
3983 GREP="$ac_cv_path_GREP"
3984
3985
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3987$as_echo_n "checking for egrep... " >&6; }
3988if ${ac_cv_path_EGREP+:} false; then :
3989  $as_echo_n "(cached) " >&6
3990else
3991  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3992   then ac_cv_path_EGREP="$GREP -E"
3993   else
3994     if test -z "$EGREP"; then
3995  ac_path_EGREP_found=false
3996  # Loop through the user's path and test for each of PROGNAME-LIST
3997  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3999do
4000  IFS=$as_save_IFS
4001  test -z "$as_dir" && as_dir=.
4002    for ac_prog in egrep; do
4003    for ac_exec_ext in '' $ac_executable_extensions; do
4004      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4005      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4006# Check for GNU ac_path_EGREP and select it if it is found.
4007  # Check for GNU $ac_path_EGREP
4008case `"$ac_path_EGREP" --version 2>&1` in
4009*GNU*)
4010  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4011*)
4012  ac_count=0
4013  $as_echo_n 0123456789 >"conftest.in"
4014  while :
4015  do
4016    cat "conftest.in" "conftest.in" >"conftest.tmp"
4017    mv "conftest.tmp" "conftest.in"
4018    cp "conftest.in" "conftest.nl"
4019    $as_echo 'EGREP' >> "conftest.nl"
4020    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022    as_fn_arith $ac_count + 1 && ac_count=$as_val
4023    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4024      # Best one so far, save it but keep looking for a better one
4025      ac_cv_path_EGREP="$ac_path_EGREP"
4026      ac_path_EGREP_max=$ac_count
4027    fi
4028    # 10*(2^10) chars as input seems more than enough
4029    test $ac_count -gt 10 && break
4030  done
4031  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4032esac
4033
4034      $ac_path_EGREP_found && break 3
4035    done
4036  done
4037  done
4038IFS=$as_save_IFS
4039  if test -z "$ac_cv_path_EGREP"; then
4040    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4041  fi
4042else
4043  ac_cv_path_EGREP=$EGREP
4044fi
4045
4046   fi
4047fi
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4049$as_echo "$ac_cv_path_EGREP" >&6; }
4050 EGREP="$ac_cv_path_EGREP"
4051
4052
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4054$as_echo_n "checking for ANSI C header files... " >&6; }
4055if ${ac_cv_header_stdc+:} false; then :
4056  $as_echo_n "(cached) " >&6
4057else
4058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059/* end confdefs.h.  */
4060#include <stdlib.h>
4061#include <stdarg.h>
4062#include <string.h>
4063#include <float.h>
4064
4065int
4066main ()
4067{
4068
4069  ;
4070  return 0;
4071}
4072_ACEOF
4073if ac_fn_c_try_compile "$LINENO"; then :
4074  ac_cv_header_stdc=yes
4075else
4076  ac_cv_header_stdc=no
4077fi
4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079
4080if test $ac_cv_header_stdc = yes; then
4081  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083/* end confdefs.h.  */
4084#include <string.h>
4085
4086_ACEOF
4087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088  $EGREP "memchr" >/dev/null 2>&1; then :
4089
4090else
4091  ac_cv_header_stdc=no
4092fi
4093rm -f conftest*
4094
4095fi
4096
4097if test $ac_cv_header_stdc = yes; then
4098  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100/* end confdefs.h.  */
4101#include <stdlib.h>
4102
4103_ACEOF
4104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105  $EGREP "free" >/dev/null 2>&1; then :
4106
4107else
4108  ac_cv_header_stdc=no
4109fi
4110rm -f conftest*
4111
4112fi
4113
4114if test $ac_cv_header_stdc = yes; then
4115  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4116  if test "$cross_compiling" = yes; then :
4117  :
4118else
4119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120/* end confdefs.h.  */
4121#include <ctype.h>
4122#include <stdlib.h>
4123#if ((' ' & 0x0FF) == 0x020)
4124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4126#else
4127# define ISLOWER(c) \
4128		   (('a' <= (c) && (c) <= 'i') \
4129		     || ('j' <= (c) && (c) <= 'r') \
4130		     || ('s' <= (c) && (c) <= 'z'))
4131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4132#endif
4133
4134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4135int
4136main ()
4137{
4138  int i;
4139  for (i = 0; i < 256; i++)
4140    if (XOR (islower (i), ISLOWER (i))
4141	|| toupper (i) != TOUPPER (i))
4142      return 2;
4143  return 0;
4144}
4145_ACEOF
4146if ac_fn_c_try_run "$LINENO"; then :
4147
4148else
4149  ac_cv_header_stdc=no
4150fi
4151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4152  conftest.$ac_objext conftest.beam conftest.$ac_ext
4153fi
4154
4155fi
4156fi
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4158$as_echo "$ac_cv_header_stdc" >&6; }
4159if test $ac_cv_header_stdc = yes; then
4160
4161$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4162
4163fi
4164
4165# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4166for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4167		  inttypes.h stdint.h unistd.h
4168do :
4169  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4170ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4171"
4172if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4173  cat >>confdefs.h <<_ACEOF
4174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4175_ACEOF
4176
4177fi
4178
4179done
4180
4181
4182
4183
4184
4185
4186ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4187if test "x$ac_cv_have_decl___clang__" = xyes; then :
4188  CLANGCC="yes"
4189else
4190  CLANGCC="no"
4191fi
4192
4193ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4194if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4195  INTELCC="yes"
4196else
4197  INTELCC="no"
4198fi
4199
4200ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4201if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4202  SUNCC="yes"
4203else
4204  SUNCC="no"
4205fi
4206
4207
4208
4209
4210if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4211	if test -n "$ac_tool_prefix"; then
4212  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4213set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215$as_echo_n "checking for $ac_word... " >&6; }
4216if ${ac_cv_path_PKG_CONFIG+:} false; then :
4217  $as_echo_n "(cached) " >&6
4218else
4219  case $PKG_CONFIG in
4220  [\\/]* | ?:[\\/]*)
4221  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4222  ;;
4223  *)
4224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
4227  IFS=$as_save_IFS
4228  test -z "$as_dir" && as_dir=.
4229    for ac_exec_ext in '' $ac_executable_extensions; do
4230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233    break 2
4234  fi
4235done
4236  done
4237IFS=$as_save_IFS
4238
4239  ;;
4240esac
4241fi
4242PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4243if test -n "$PKG_CONFIG"; then
4244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4245$as_echo "$PKG_CONFIG" >&6; }
4246else
4247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248$as_echo "no" >&6; }
4249fi
4250
4251
4252fi
4253if test -z "$ac_cv_path_PKG_CONFIG"; then
4254  ac_pt_PKG_CONFIG=$PKG_CONFIG
4255  # Extract the first word of "pkg-config", so it can be a program name with args.
4256set dummy pkg-config; ac_word=$2
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258$as_echo_n "checking for $ac_word... " >&6; }
4259if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4260  $as_echo_n "(cached) " >&6
4261else
4262  case $ac_pt_PKG_CONFIG in
4263  [\\/]* | ?:[\\/]*)
4264  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4265  ;;
4266  *)
4267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270  IFS=$as_save_IFS
4271  test -z "$as_dir" && as_dir=.
4272    for ac_exec_ext in '' $ac_executable_extensions; do
4273  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4274    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276    break 2
4277  fi
4278done
4279  done
4280IFS=$as_save_IFS
4281
4282  ;;
4283esac
4284fi
4285ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4286if test -n "$ac_pt_PKG_CONFIG"; then
4287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4288$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4289else
4290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291$as_echo "no" >&6; }
4292fi
4293
4294  if test "x$ac_pt_PKG_CONFIG" = x; then
4295    PKG_CONFIG=""
4296  else
4297    case $cross_compiling:$ac_tool_warned in
4298yes:)
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4301ac_tool_warned=yes ;;
4302esac
4303    PKG_CONFIG=$ac_pt_PKG_CONFIG
4304  fi
4305else
4306  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4307fi
4308
4309fi
4310if test -n "$PKG_CONFIG"; then
4311	_pkg_min_version=0.9.0
4312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4313$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4314	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4315		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4316$as_echo "yes" >&6; }
4317	else
4318		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319$as_echo "no" >&6; }
4320		PKG_CONFIG=""
4321	fi
4322
4323fi
4324# Make sure we can run config.sub.
4325$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4326  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4327
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4329$as_echo_n "checking build system type... " >&6; }
4330if ${ac_cv_build+:} false; then :
4331  $as_echo_n "(cached) " >&6
4332else
4333  ac_build_alias=$build_alias
4334test "x$ac_build_alias" = x &&
4335  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4336test "x$ac_build_alias" = x &&
4337  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4338ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4339  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4340
4341fi
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4343$as_echo "$ac_cv_build" >&6; }
4344case $ac_cv_build in
4345*-*-*) ;;
4346*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4347esac
4348build=$ac_cv_build
4349ac_save_IFS=$IFS; IFS='-'
4350set x $ac_cv_build
4351shift
4352build_cpu=$1
4353build_vendor=$2
4354shift; shift
4355# Remember, the first character of IFS is used to create $*,
4356# except with old shells:
4357build_os=$*
4358IFS=$ac_save_IFS
4359case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4360
4361
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4363$as_echo_n "checking host system type... " >&6; }
4364if ${ac_cv_host+:} false; then :
4365  $as_echo_n "(cached) " >&6
4366else
4367  if test "x$host_alias" = x; then
4368  ac_cv_host=$ac_cv_build
4369else
4370  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4371    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4372fi
4373
4374fi
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4376$as_echo "$ac_cv_host" >&6; }
4377case $ac_cv_host in
4378*-*-*) ;;
4379*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4380esac
4381host=$ac_cv_host
4382ac_save_IFS=$IFS; IFS='-'
4383set x $ac_cv_host
4384shift
4385host_cpu=$1
4386host_vendor=$2
4387shift; shift
4388# Remember, the first character of IFS is used to create $*,
4389# except with old shells:
4390host_os=$*
4391IFS=$ac_save_IFS
4392case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4393
4394
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4396$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4397if ${ac_cv_path_SED+:} false; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4401     for ac_i in 1 2 3 4 5 6 7; do
4402       ac_script="$ac_script$as_nl$ac_script"
4403     done
4404     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4405     { ac_script=; unset ac_script;}
4406     if test -z "$SED"; then
4407  ac_path_SED_found=false
4408  # Loop through the user's path and test for each of PROGNAME-LIST
4409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410for as_dir in $PATH
4411do
4412  IFS=$as_save_IFS
4413  test -z "$as_dir" && as_dir=.
4414    for ac_prog in sed gsed; do
4415    for ac_exec_ext in '' $ac_executable_extensions; do
4416      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4417      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4418# Check for GNU ac_path_SED and select it if it is found.
4419  # Check for GNU $ac_path_SED
4420case `"$ac_path_SED" --version 2>&1` in
4421*GNU*)
4422  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4423*)
4424  ac_count=0
4425  $as_echo_n 0123456789 >"conftest.in"
4426  while :
4427  do
4428    cat "conftest.in" "conftest.in" >"conftest.tmp"
4429    mv "conftest.tmp" "conftest.in"
4430    cp "conftest.in" "conftest.nl"
4431    $as_echo '' >> "conftest.nl"
4432    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4433    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4434    as_fn_arith $ac_count + 1 && ac_count=$as_val
4435    if test $ac_count -gt ${ac_path_SED_max-0}; then
4436      # Best one so far, save it but keep looking for a better one
4437      ac_cv_path_SED="$ac_path_SED"
4438      ac_path_SED_max=$ac_count
4439    fi
4440    # 10*(2^10) chars as input seems more than enough
4441    test $ac_count -gt 10 && break
4442  done
4443  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4444esac
4445
4446      $ac_path_SED_found && break 3
4447    done
4448  done
4449  done
4450IFS=$as_save_IFS
4451  if test -z "$ac_cv_path_SED"; then
4452    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4453  fi
4454else
4455  ac_cv_path_SED=$SED
4456fi
4457
4458fi
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4460$as_echo "$ac_cv_path_SED" >&6; }
4461 SED="$ac_cv_path_SED"
4462  rm -f conftest.sed
4463
4464
4465
4466
4467
4468
4469# Check whether --enable-selective-werror was given.
4470if test "${enable_selective_werror+set}" = set; then :
4471  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4472else
4473  SELECTIVE_WERROR=yes
4474fi
4475
4476
4477
4478
4479
4480# -v is too short to test reliably with XORG_TESTSET_CFLAG
4481if test "x$SUNCC" = "xyes"; then
4482    BASE_CFLAGS="-v"
4483else
4484    BASE_CFLAGS=""
4485fi
4486
4487# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501xorg_testset_save_CFLAGS="$CFLAGS"
4502
4503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4508  $as_echo_n "(cached) " >&6
4509else
4510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511/* end confdefs.h.  */
4512int i;
4513_ACEOF
4514if ac_fn_c_try_compile "$LINENO"; then :
4515  xorg_cv_cc_flag_unknown_warning_option=yes
4516else
4517  xorg_cv_cc_flag_unknown_warning_option=no
4518fi
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520fi
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4524	CFLAGS="$xorg_testset_save_CFLAGS"
4525fi
4526
4527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4530	fi
4531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4535  $as_echo_n "(cached) " >&6
4536else
4537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538/* end confdefs.h.  */
4539int i;
4540_ACEOF
4541if ac_fn_c_try_compile "$LINENO"; then :
4542  xorg_cv_cc_flag_unused_command_line_argument=yes
4543else
4544  xorg_cv_cc_flag_unused_command_line_argument=no
4545fi
4546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547fi
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4551	CFLAGS="$xorg_testset_save_CFLAGS"
4552fi
4553
4554found="no"
4555
4556	if test $found = "no" ; then
4557		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4559		fi
4560
4561		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4563		fi
4564
4565		CFLAGS="$CFLAGS -Wall"
4566
4567		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4568$as_echo_n "checking if $CC supports -Wall... " >&6; }
4569		cacheid=xorg_cv_cc_flag__Wall
4570		if eval \${$cacheid+:} false; then :
4571  $as_echo_n "(cached) " >&6
4572else
4573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h.  */
4575int i;
4576int
4577main ()
4578{
4579
4580  ;
4581  return 0;
4582}
4583_ACEOF
4584if ac_fn_c_try_link "$LINENO"; then :
4585  eval $cacheid=yes
4586else
4587  eval $cacheid=no
4588fi
4589rm -f core conftest.err conftest.$ac_objext \
4590    conftest$ac_exeext conftest.$ac_ext
4591fi
4592
4593
4594		CFLAGS="$xorg_testset_save_CFLAGS"
4595
4596		eval supported=\$$cacheid
4597		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4598$as_echo "$supported" >&6; }
4599		if test "$supported" = "yes" ; then
4600			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4601			found="yes"
4602		fi
4603	fi
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619xorg_testset_save_CFLAGS="$CFLAGS"
4620
4621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4622	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4626  $as_echo_n "(cached) " >&6
4627else
4628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629/* end confdefs.h.  */
4630int i;
4631_ACEOF
4632if ac_fn_c_try_compile "$LINENO"; then :
4633  xorg_cv_cc_flag_unknown_warning_option=yes
4634else
4635  xorg_cv_cc_flag_unknown_warning_option=no
4636fi
4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4641	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4642	CFLAGS="$xorg_testset_save_CFLAGS"
4643fi
4644
4645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4646	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4647		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4648	fi
4649	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4653  $as_echo_n "(cached) " >&6
4654else
4655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656/* end confdefs.h.  */
4657int i;
4658_ACEOF
4659if ac_fn_c_try_compile "$LINENO"; then :
4660  xorg_cv_cc_flag_unused_command_line_argument=yes
4661else
4662  xorg_cv_cc_flag_unused_command_line_argument=no
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4668	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4669	CFLAGS="$xorg_testset_save_CFLAGS"
4670fi
4671
4672found="no"
4673
4674	if test $found = "no" ; then
4675		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4676			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4677		fi
4678
4679		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4680			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4681		fi
4682
4683		CFLAGS="$CFLAGS -Wpointer-arith"
4684
4685		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4686$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4687		cacheid=xorg_cv_cc_flag__Wpointer_arith
4688		if eval \${$cacheid+:} false; then :
4689  $as_echo_n "(cached) " >&6
4690else
4691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h.  */
4693int i;
4694int
4695main ()
4696{
4697
4698  ;
4699  return 0;
4700}
4701_ACEOF
4702if ac_fn_c_try_link "$LINENO"; then :
4703  eval $cacheid=yes
4704else
4705  eval $cacheid=no
4706fi
4707rm -f core conftest.err conftest.$ac_objext \
4708    conftest$ac_exeext conftest.$ac_ext
4709fi
4710
4711
4712		CFLAGS="$xorg_testset_save_CFLAGS"
4713
4714		eval supported=\$$cacheid
4715		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4716$as_echo "$supported" >&6; }
4717		if test "$supported" = "yes" ; then
4718			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4719			found="yes"
4720		fi
4721	fi
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737xorg_testset_save_CFLAGS="$CFLAGS"
4738
4739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4740	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4741	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747/* end confdefs.h.  */
4748int i;
4749_ACEOF
4750if ac_fn_c_try_compile "$LINENO"; then :
4751  xorg_cv_cc_flag_unknown_warning_option=yes
4752else
4753  xorg_cv_cc_flag_unknown_warning_option=no
4754fi
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4759	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4760	CFLAGS="$xorg_testset_save_CFLAGS"
4761fi
4762
4763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4764	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4765		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4766	fi
4767	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4771  $as_echo_n "(cached) " >&6
4772else
4773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h.  */
4775int i;
4776_ACEOF
4777if ac_fn_c_try_compile "$LINENO"; then :
4778  xorg_cv_cc_flag_unused_command_line_argument=yes
4779else
4780  xorg_cv_cc_flag_unused_command_line_argument=no
4781fi
4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783fi
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4786	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4787	CFLAGS="$xorg_testset_save_CFLAGS"
4788fi
4789
4790found="no"
4791
4792	if test $found = "no" ; then
4793		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4795		fi
4796
4797		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4799		fi
4800
4801		CFLAGS="$CFLAGS -Wmissing-declarations"
4802
4803		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4804$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4805		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4806		if eval \${$cacheid+:} false; then :
4807  $as_echo_n "(cached) " >&6
4808else
4809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810/* end confdefs.h.  */
4811int i;
4812int
4813main ()
4814{
4815
4816  ;
4817  return 0;
4818}
4819_ACEOF
4820if ac_fn_c_try_link "$LINENO"; then :
4821  eval $cacheid=yes
4822else
4823  eval $cacheid=no
4824fi
4825rm -f core conftest.err conftest.$ac_objext \
4826    conftest$ac_exeext conftest.$ac_ext
4827fi
4828
4829
4830		CFLAGS="$xorg_testset_save_CFLAGS"
4831
4832		eval supported=\$$cacheid
4833		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4834$as_echo "$supported" >&6; }
4835		if test "$supported" = "yes" ; then
4836			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4837			found="yes"
4838		fi
4839	fi
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855xorg_testset_save_CFLAGS="$CFLAGS"
4856
4857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865/* end confdefs.h.  */
4866int i;
4867_ACEOF
4868if ac_fn_c_try_compile "$LINENO"; then :
4869  xorg_cv_cc_flag_unknown_warning_option=yes
4870else
4871  xorg_cv_cc_flag_unknown_warning_option=no
4872fi
4873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874fi
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4877	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4878	CFLAGS="$xorg_testset_save_CFLAGS"
4879fi
4880
4881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4882	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4883		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4884	fi
4885	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4889  $as_echo_n "(cached) " >&6
4890else
4891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892/* end confdefs.h.  */
4893int i;
4894_ACEOF
4895if ac_fn_c_try_compile "$LINENO"; then :
4896  xorg_cv_cc_flag_unused_command_line_argument=yes
4897else
4898  xorg_cv_cc_flag_unused_command_line_argument=no
4899fi
4900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901fi
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4905	CFLAGS="$xorg_testset_save_CFLAGS"
4906fi
4907
4908found="no"
4909
4910	if test $found = "no" ; then
4911		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4913		fi
4914
4915		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4917		fi
4918
4919		CFLAGS="$CFLAGS -Wformat=2"
4920
4921		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4922$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4923		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4924		if eval \${$cacheid+:} false; then :
4925  $as_echo_n "(cached) " >&6
4926else
4927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928/* end confdefs.h.  */
4929int i;
4930int
4931main ()
4932{
4933
4934  ;
4935  return 0;
4936}
4937_ACEOF
4938if ac_fn_c_try_link "$LINENO"; then :
4939  eval $cacheid=yes
4940else
4941  eval $cacheid=no
4942fi
4943rm -f core conftest.err conftest.$ac_objext \
4944    conftest$ac_exeext conftest.$ac_ext
4945fi
4946
4947
4948		CFLAGS="$xorg_testset_save_CFLAGS"
4949
4950		eval supported=\$$cacheid
4951		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4952$as_echo "$supported" >&6; }
4953		if test "$supported" = "yes" ; then
4954			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4955			found="yes"
4956		fi
4957	fi
4958
4959	if test $found = "no" ; then
4960		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4962		fi
4963
4964		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4966		fi
4967
4968		CFLAGS="$CFLAGS -Wformat"
4969
4970		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4971$as_echo_n "checking if $CC supports -Wformat... " >&6; }
4972		cacheid=xorg_cv_cc_flag__Wformat
4973		if eval \${$cacheid+:} false; then :
4974  $as_echo_n "(cached) " >&6
4975else
4976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h.  */
4978int i;
4979int
4980main ()
4981{
4982
4983  ;
4984  return 0;
4985}
4986_ACEOF
4987if ac_fn_c_try_link "$LINENO"; then :
4988  eval $cacheid=yes
4989else
4990  eval $cacheid=no
4991fi
4992rm -f core conftest.err conftest.$ac_objext \
4993    conftest$ac_exeext conftest.$ac_ext
4994fi
4995
4996
4997		CFLAGS="$xorg_testset_save_CFLAGS"
4998
4999		eval supported=\$$cacheid
5000		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5001$as_echo "$supported" >&6; }
5002		if test "$supported" = "yes" ; then
5003			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5004			found="yes"
5005		fi
5006	fi
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024xorg_testset_save_CFLAGS="$CFLAGS"
5025
5026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h.  */
5035int i;
5036_ACEOF
5037if ac_fn_c_try_compile "$LINENO"; then :
5038  xorg_cv_cc_flag_unknown_warning_option=yes
5039else
5040  xorg_cv_cc_flag_unknown_warning_option=no
5041fi
5042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043fi
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5047	CFLAGS="$xorg_testset_save_CFLAGS"
5048fi
5049
5050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5053	fi
5054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5058  $as_echo_n "(cached) " >&6
5059else
5060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061/* end confdefs.h.  */
5062int i;
5063_ACEOF
5064if ac_fn_c_try_compile "$LINENO"; then :
5065  xorg_cv_cc_flag_unused_command_line_argument=yes
5066else
5067  xorg_cv_cc_flag_unused_command_line_argument=no
5068fi
5069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070fi
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5074	CFLAGS="$xorg_testset_save_CFLAGS"
5075fi
5076
5077found="no"
5078
5079	if test $found = "no" ; then
5080		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5082		fi
5083
5084		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5086		fi
5087
5088		CFLAGS="$CFLAGS -Wstrict-prototypes"
5089
5090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5091$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5092		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5093		if eval \${$cacheid+:} false; then :
5094  $as_echo_n "(cached) " >&6
5095else
5096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097/* end confdefs.h.  */
5098int i;
5099int
5100main ()
5101{
5102
5103  ;
5104  return 0;
5105}
5106_ACEOF
5107if ac_fn_c_try_link "$LINENO"; then :
5108  eval $cacheid=yes
5109else
5110  eval $cacheid=no
5111fi
5112rm -f core conftest.err conftest.$ac_objext \
5113    conftest$ac_exeext conftest.$ac_ext
5114fi
5115
5116
5117		CFLAGS="$xorg_testset_save_CFLAGS"
5118
5119		eval supported=\$$cacheid
5120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5121$as_echo "$supported" >&6; }
5122		if test "$supported" = "yes" ; then
5123			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5124			found="yes"
5125		fi
5126	fi
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142xorg_testset_save_CFLAGS="$CFLAGS"
5143
5144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5149  $as_echo_n "(cached) " >&6
5150else
5151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h.  */
5153int i;
5154_ACEOF
5155if ac_fn_c_try_compile "$LINENO"; then :
5156  xorg_cv_cc_flag_unknown_warning_option=yes
5157else
5158  xorg_cv_cc_flag_unknown_warning_option=no
5159fi
5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161fi
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5165	CFLAGS="$xorg_testset_save_CFLAGS"
5166fi
5167
5168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5171	fi
5172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179/* end confdefs.h.  */
5180int i;
5181_ACEOF
5182if ac_fn_c_try_compile "$LINENO"; then :
5183  xorg_cv_cc_flag_unused_command_line_argument=yes
5184else
5185  xorg_cv_cc_flag_unused_command_line_argument=no
5186fi
5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188fi
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5192	CFLAGS="$xorg_testset_save_CFLAGS"
5193fi
5194
5195found="no"
5196
5197	if test $found = "no" ; then
5198		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5200		fi
5201
5202		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5204		fi
5205
5206		CFLAGS="$CFLAGS -Wmissing-prototypes"
5207
5208		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5209$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5210		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5211		if eval \${$cacheid+:} false; then :
5212  $as_echo_n "(cached) " >&6
5213else
5214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215/* end confdefs.h.  */
5216int i;
5217int
5218main ()
5219{
5220
5221  ;
5222  return 0;
5223}
5224_ACEOF
5225if ac_fn_c_try_link "$LINENO"; then :
5226  eval $cacheid=yes
5227else
5228  eval $cacheid=no
5229fi
5230rm -f core conftest.err conftest.$ac_objext \
5231    conftest$ac_exeext conftest.$ac_ext
5232fi
5233
5234
5235		CFLAGS="$xorg_testset_save_CFLAGS"
5236
5237		eval supported=\$$cacheid
5238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5239$as_echo "$supported" >&6; }
5240		if test "$supported" = "yes" ; then
5241			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5242			found="yes"
5243		fi
5244	fi
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260xorg_testset_save_CFLAGS="$CFLAGS"
5261
5262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270/* end confdefs.h.  */
5271int i;
5272_ACEOF
5273if ac_fn_c_try_compile "$LINENO"; then :
5274  xorg_cv_cc_flag_unknown_warning_option=yes
5275else
5276  xorg_cv_cc_flag_unknown_warning_option=no
5277fi
5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5283	CFLAGS="$xorg_testset_save_CFLAGS"
5284fi
5285
5286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289	fi
5290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5294  $as_echo_n "(cached) " >&6
5295else
5296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h.  */
5298int i;
5299_ACEOF
5300if ac_fn_c_try_compile "$LINENO"; then :
5301  xorg_cv_cc_flag_unused_command_line_argument=yes
5302else
5303  xorg_cv_cc_flag_unused_command_line_argument=no
5304fi
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306fi
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5310	CFLAGS="$xorg_testset_save_CFLAGS"
5311fi
5312
5313found="no"
5314
5315	if test $found = "no" ; then
5316		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5318		fi
5319
5320		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5322		fi
5323
5324		CFLAGS="$CFLAGS -Wnested-externs"
5325
5326		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5327$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5328		cacheid=xorg_cv_cc_flag__Wnested_externs
5329		if eval \${$cacheid+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334int i;
5335int
5336main ()
5337{
5338
5339  ;
5340  return 0;
5341}
5342_ACEOF
5343if ac_fn_c_try_link "$LINENO"; then :
5344  eval $cacheid=yes
5345else
5346  eval $cacheid=no
5347fi
5348rm -f core conftest.err conftest.$ac_objext \
5349    conftest$ac_exeext conftest.$ac_ext
5350fi
5351
5352
5353		CFLAGS="$xorg_testset_save_CFLAGS"
5354
5355		eval supported=\$$cacheid
5356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5357$as_echo "$supported" >&6; }
5358		if test "$supported" = "yes" ; then
5359			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5360			found="yes"
5361		fi
5362	fi
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378xorg_testset_save_CFLAGS="$CFLAGS"
5379
5380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5381	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5385  $as_echo_n "(cached) " >&6
5386else
5387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h.  */
5389int i;
5390_ACEOF
5391if ac_fn_c_try_compile "$LINENO"; then :
5392  xorg_cv_cc_flag_unknown_warning_option=yes
5393else
5394  xorg_cv_cc_flag_unknown_warning_option=no
5395fi
5396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5401	CFLAGS="$xorg_testset_save_CFLAGS"
5402fi
5403
5404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407	fi
5408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5412  $as_echo_n "(cached) " >&6
5413else
5414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h.  */
5416int i;
5417_ACEOF
5418if ac_fn_c_try_compile "$LINENO"; then :
5419  xorg_cv_cc_flag_unused_command_line_argument=yes
5420else
5421  xorg_cv_cc_flag_unused_command_line_argument=no
5422fi
5423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424fi
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5428	CFLAGS="$xorg_testset_save_CFLAGS"
5429fi
5430
5431found="no"
5432
5433	if test $found = "no" ; then
5434		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5436		fi
5437
5438		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5440		fi
5441
5442		CFLAGS="$CFLAGS -Wbad-function-cast"
5443
5444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5445$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5446		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5447		if eval \${$cacheid+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452int i;
5453int
5454main ()
5455{
5456
5457  ;
5458  return 0;
5459}
5460_ACEOF
5461if ac_fn_c_try_link "$LINENO"; then :
5462  eval $cacheid=yes
5463else
5464  eval $cacheid=no
5465fi
5466rm -f core conftest.err conftest.$ac_objext \
5467    conftest$ac_exeext conftest.$ac_ext
5468fi
5469
5470
5471		CFLAGS="$xorg_testset_save_CFLAGS"
5472
5473		eval supported=\$$cacheid
5474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5475$as_echo "$supported" >&6; }
5476		if test "$supported" = "yes" ; then
5477			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5478			found="yes"
5479		fi
5480	fi
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496xorg_testset_save_CFLAGS="$CFLAGS"
5497
5498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5503  $as_echo_n "(cached) " >&6
5504else
5505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506/* end confdefs.h.  */
5507int i;
5508_ACEOF
5509if ac_fn_c_try_compile "$LINENO"; then :
5510  xorg_cv_cc_flag_unknown_warning_option=yes
5511else
5512  xorg_cv_cc_flag_unknown_warning_option=no
5513fi
5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5519	CFLAGS="$xorg_testset_save_CFLAGS"
5520fi
5521
5522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5525	fi
5526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5530  $as_echo_n "(cached) " >&6
5531else
5532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533/* end confdefs.h.  */
5534int i;
5535_ACEOF
5536if ac_fn_c_try_compile "$LINENO"; then :
5537  xorg_cv_cc_flag_unused_command_line_argument=yes
5538else
5539  xorg_cv_cc_flag_unused_command_line_argument=no
5540fi
5541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5546	CFLAGS="$xorg_testset_save_CFLAGS"
5547fi
5548
5549found="no"
5550
5551	if test $found = "no" ; then
5552		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5554		fi
5555
5556		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558		fi
5559
5560		CFLAGS="$CFLAGS -Wold-style-definition"
5561
5562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5563$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5564		cacheid=xorg_cv_cc_flag__Wold_style_definition
5565		if eval \${$cacheid+:} false; then :
5566  $as_echo_n "(cached) " >&6
5567else
5568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569/* end confdefs.h.  */
5570int i;
5571int
5572main ()
5573{
5574
5575  ;
5576  return 0;
5577}
5578_ACEOF
5579if ac_fn_c_try_link "$LINENO"; then :
5580  eval $cacheid=yes
5581else
5582  eval $cacheid=no
5583fi
5584rm -f core conftest.err conftest.$ac_objext \
5585    conftest$ac_exeext conftest.$ac_ext
5586fi
5587
5588
5589		CFLAGS="$xorg_testset_save_CFLAGS"
5590
5591		eval supported=\$$cacheid
5592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5593$as_echo "$supported" >&6; }
5594		if test "$supported" = "yes" ; then
5595			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5596			found="yes"
5597		fi
5598	fi
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614xorg_testset_save_CFLAGS="$CFLAGS"
5615
5616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5621  $as_echo_n "(cached) " >&6
5622else
5623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624/* end confdefs.h.  */
5625int i;
5626_ACEOF
5627if ac_fn_c_try_compile "$LINENO"; then :
5628  xorg_cv_cc_flag_unknown_warning_option=yes
5629else
5630  xorg_cv_cc_flag_unknown_warning_option=no
5631fi
5632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633fi
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5637	CFLAGS="$xorg_testset_save_CFLAGS"
5638fi
5639
5640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643	fi
5644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651/* end confdefs.h.  */
5652int i;
5653_ACEOF
5654if ac_fn_c_try_compile "$LINENO"; then :
5655  xorg_cv_cc_flag_unused_command_line_argument=yes
5656else
5657  xorg_cv_cc_flag_unused_command_line_argument=no
5658fi
5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5664	CFLAGS="$xorg_testset_save_CFLAGS"
5665fi
5666
5667found="no"
5668
5669	if test $found = "no" ; then
5670		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5672		fi
5673
5674		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676		fi
5677
5678		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5679
5680		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5681$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5682		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5683		if eval \${$cacheid+:} false; then :
5684  $as_echo_n "(cached) " >&6
5685else
5686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h.  */
5688int i;
5689int
5690main ()
5691{
5692
5693  ;
5694  return 0;
5695}
5696_ACEOF
5697if ac_fn_c_try_link "$LINENO"; then :
5698  eval $cacheid=yes
5699else
5700  eval $cacheid=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext \
5703    conftest$ac_exeext conftest.$ac_ext
5704fi
5705
5706
5707		CFLAGS="$xorg_testset_save_CFLAGS"
5708
5709		eval supported=\$$cacheid
5710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5711$as_echo "$supported" >&6; }
5712		if test "$supported" = "yes" ; then
5713			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5714			found="yes"
5715		fi
5716	fi
5717
5718
5719
5720
5721
5722# This chunk adds additional warnings that could catch undesired effects.
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736xorg_testset_save_CFLAGS="$CFLAGS"
5737
5738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5739	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5741$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5742if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5743  $as_echo_n "(cached) " >&6
5744else
5745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746/* end confdefs.h.  */
5747int i;
5748_ACEOF
5749if ac_fn_c_try_compile "$LINENO"; then :
5750  xorg_cv_cc_flag_unknown_warning_option=yes
5751else
5752  xorg_cv_cc_flag_unknown_warning_option=no
5753fi
5754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755fi
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5757$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5759	CFLAGS="$xorg_testset_save_CFLAGS"
5760fi
5761
5762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5765	fi
5766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5768$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5769if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5770  $as_echo_n "(cached) " >&6
5771else
5772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774int i;
5775_ACEOF
5776if ac_fn_c_try_compile "$LINENO"; then :
5777  xorg_cv_cc_flag_unused_command_line_argument=yes
5778else
5779  xorg_cv_cc_flag_unused_command_line_argument=no
5780fi
5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782fi
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5784$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5785	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5786	CFLAGS="$xorg_testset_save_CFLAGS"
5787fi
5788
5789found="no"
5790
5791	if test $found = "no" ; then
5792		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5793			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5794		fi
5795
5796		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5797			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5798		fi
5799
5800		CFLAGS="$CFLAGS -Wunused"
5801
5802		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5803$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5804		cacheid=xorg_cv_cc_flag__Wunused
5805		if eval \${$cacheid+:} false; then :
5806  $as_echo_n "(cached) " >&6
5807else
5808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809/* end confdefs.h.  */
5810int i;
5811int
5812main ()
5813{
5814
5815  ;
5816  return 0;
5817}
5818_ACEOF
5819if ac_fn_c_try_link "$LINENO"; then :
5820  eval $cacheid=yes
5821else
5822  eval $cacheid=no
5823fi
5824rm -f core conftest.err conftest.$ac_objext \
5825    conftest$ac_exeext conftest.$ac_ext
5826fi
5827
5828
5829		CFLAGS="$xorg_testset_save_CFLAGS"
5830
5831		eval supported=\$$cacheid
5832		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5833$as_echo "$supported" >&6; }
5834		if test "$supported" = "yes" ; then
5835			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5836			found="yes"
5837		fi
5838	fi
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854xorg_testset_save_CFLAGS="$CFLAGS"
5855
5856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5857	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5859$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5860if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5861  $as_echo_n "(cached) " >&6
5862else
5863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h.  */
5865int i;
5866_ACEOF
5867if ac_fn_c_try_compile "$LINENO"; then :
5868  xorg_cv_cc_flag_unknown_warning_option=yes
5869else
5870  xorg_cv_cc_flag_unknown_warning_option=no
5871fi
5872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873fi
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5875$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5876	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5877	CFLAGS="$xorg_testset_save_CFLAGS"
5878fi
5879
5880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5881	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5882		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5883	fi
5884	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5886$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5887if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891/* end confdefs.h.  */
5892int i;
5893_ACEOF
5894if ac_fn_c_try_compile "$LINENO"; then :
5895  xorg_cv_cc_flag_unused_command_line_argument=yes
5896else
5897  xorg_cv_cc_flag_unused_command_line_argument=no
5898fi
5899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5902$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5904	CFLAGS="$xorg_testset_save_CFLAGS"
5905fi
5906
5907found="no"
5908
5909	if test $found = "no" ; then
5910		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5912		fi
5913
5914		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5916		fi
5917
5918		CFLAGS="$CFLAGS -Wuninitialized"
5919
5920		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5921$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5922		cacheid=xorg_cv_cc_flag__Wuninitialized
5923		if eval \${$cacheid+:} false; then :
5924  $as_echo_n "(cached) " >&6
5925else
5926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927/* end confdefs.h.  */
5928int i;
5929int
5930main ()
5931{
5932
5933  ;
5934  return 0;
5935}
5936_ACEOF
5937if ac_fn_c_try_link "$LINENO"; then :
5938  eval $cacheid=yes
5939else
5940  eval $cacheid=no
5941fi
5942rm -f core conftest.err conftest.$ac_objext \
5943    conftest$ac_exeext conftest.$ac_ext
5944fi
5945
5946
5947		CFLAGS="$xorg_testset_save_CFLAGS"
5948
5949		eval supported=\$$cacheid
5950		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5951$as_echo "$supported" >&6; }
5952		if test "$supported" = "yes" ; then
5953			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5954			found="yes"
5955		fi
5956	fi
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972xorg_testset_save_CFLAGS="$CFLAGS"
5973
5974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5977$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5978if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5979  $as_echo_n "(cached) " >&6
5980else
5981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982/* end confdefs.h.  */
5983int i;
5984_ACEOF
5985if ac_fn_c_try_compile "$LINENO"; then :
5986  xorg_cv_cc_flag_unknown_warning_option=yes
5987else
5988  xorg_cv_cc_flag_unknown_warning_option=no
5989fi
5990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991fi
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5993$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5995	CFLAGS="$xorg_testset_save_CFLAGS"
5996fi
5997
5998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6001	fi
6002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6004$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6005if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6006  $as_echo_n "(cached) " >&6
6007else
6008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h.  */
6010int i;
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"; then :
6013  xorg_cv_cc_flag_unused_command_line_argument=yes
6014else
6015  xorg_cv_cc_flag_unused_command_line_argument=no
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6020$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6022	CFLAGS="$xorg_testset_save_CFLAGS"
6023fi
6024
6025found="no"
6026
6027	if test $found = "no" ; then
6028		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6030		fi
6031
6032		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6034		fi
6035
6036		CFLAGS="$CFLAGS -Wshadow"
6037
6038		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6039$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6040		cacheid=xorg_cv_cc_flag__Wshadow
6041		if eval \${$cacheid+:} false; then :
6042  $as_echo_n "(cached) " >&6
6043else
6044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h.  */
6046int i;
6047int
6048main ()
6049{
6050
6051  ;
6052  return 0;
6053}
6054_ACEOF
6055if ac_fn_c_try_link "$LINENO"; then :
6056  eval $cacheid=yes
6057else
6058  eval $cacheid=no
6059fi
6060rm -f core conftest.err conftest.$ac_objext \
6061    conftest$ac_exeext conftest.$ac_ext
6062fi
6063
6064
6065		CFLAGS="$xorg_testset_save_CFLAGS"
6066
6067		eval supported=\$$cacheid
6068		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6069$as_echo "$supported" >&6; }
6070		if test "$supported" = "yes" ; then
6071			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6072			found="yes"
6073		fi
6074	fi
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090xorg_testset_save_CFLAGS="$CFLAGS"
6091
6092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6097  $as_echo_n "(cached) " >&6
6098else
6099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100/* end confdefs.h.  */
6101int i;
6102_ACEOF
6103if ac_fn_c_try_compile "$LINENO"; then :
6104  xorg_cv_cc_flag_unknown_warning_option=yes
6105else
6106  xorg_cv_cc_flag_unknown_warning_option=no
6107fi
6108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109fi
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6112	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6113	CFLAGS="$xorg_testset_save_CFLAGS"
6114fi
6115
6116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6117	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6118		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6119	fi
6120	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6124  $as_echo_n "(cached) " >&6
6125else
6126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h.  */
6128int i;
6129_ACEOF
6130if ac_fn_c_try_compile "$LINENO"; then :
6131  xorg_cv_cc_flag_unused_command_line_argument=yes
6132else
6133  xorg_cv_cc_flag_unused_command_line_argument=no
6134fi
6135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136fi
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6140	CFLAGS="$xorg_testset_save_CFLAGS"
6141fi
6142
6143found="no"
6144
6145	if test $found = "no" ; then
6146		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6148		fi
6149
6150		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6152		fi
6153
6154		CFLAGS="$CFLAGS -Wcast-qual"
6155
6156		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6157$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6158		cacheid=xorg_cv_cc_flag__Wcast_qual
6159		if eval \${$cacheid+:} false; then :
6160  $as_echo_n "(cached) " >&6
6161else
6162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163/* end confdefs.h.  */
6164int i;
6165int
6166main ()
6167{
6168
6169  ;
6170  return 0;
6171}
6172_ACEOF
6173if ac_fn_c_try_link "$LINENO"; then :
6174  eval $cacheid=yes
6175else
6176  eval $cacheid=no
6177fi
6178rm -f core conftest.err conftest.$ac_objext \
6179    conftest$ac_exeext conftest.$ac_ext
6180fi
6181
6182
6183		CFLAGS="$xorg_testset_save_CFLAGS"
6184
6185		eval supported=\$$cacheid
6186		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6187$as_echo "$supported" >&6; }
6188		if test "$supported" = "yes" ; then
6189			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6190			found="yes"
6191		fi
6192	fi
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208xorg_testset_save_CFLAGS="$CFLAGS"
6209
6210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6211	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6215  $as_echo_n "(cached) " >&6
6216else
6217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218/* end confdefs.h.  */
6219int i;
6220_ACEOF
6221if ac_fn_c_try_compile "$LINENO"; then :
6222  xorg_cv_cc_flag_unknown_warning_option=yes
6223else
6224  xorg_cv_cc_flag_unknown_warning_option=no
6225fi
6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227fi
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6231	CFLAGS="$xorg_testset_save_CFLAGS"
6232fi
6233
6234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237	fi
6238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6239	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6242  $as_echo_n "(cached) " >&6
6243else
6244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245/* end confdefs.h.  */
6246int i;
6247_ACEOF
6248if ac_fn_c_try_compile "$LINENO"; then :
6249  xorg_cv_cc_flag_unused_command_line_argument=yes
6250else
6251  xorg_cv_cc_flag_unused_command_line_argument=no
6252fi
6253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254fi
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6257	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6258	CFLAGS="$xorg_testset_save_CFLAGS"
6259fi
6260
6261found="no"
6262
6263	if test $found = "no" ; then
6264		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6265			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6266		fi
6267
6268		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6269			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6270		fi
6271
6272		CFLAGS="$CFLAGS -Wmissing-noreturn"
6273
6274		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6275$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6276		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6277		if eval \${$cacheid+:} false; then :
6278  $as_echo_n "(cached) " >&6
6279else
6280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281/* end confdefs.h.  */
6282int i;
6283int
6284main ()
6285{
6286
6287  ;
6288  return 0;
6289}
6290_ACEOF
6291if ac_fn_c_try_link "$LINENO"; then :
6292  eval $cacheid=yes
6293else
6294  eval $cacheid=no
6295fi
6296rm -f core conftest.err conftest.$ac_objext \
6297    conftest$ac_exeext conftest.$ac_ext
6298fi
6299
6300
6301		CFLAGS="$xorg_testset_save_CFLAGS"
6302
6303		eval supported=\$$cacheid
6304		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6305$as_echo "$supported" >&6; }
6306		if test "$supported" = "yes" ; then
6307			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6308			found="yes"
6309		fi
6310	fi
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326xorg_testset_save_CFLAGS="$CFLAGS"
6327
6328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6333  $as_echo_n "(cached) " >&6
6334else
6335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336/* end confdefs.h.  */
6337int i;
6338_ACEOF
6339if ac_fn_c_try_compile "$LINENO"; then :
6340  xorg_cv_cc_flag_unknown_warning_option=yes
6341else
6342  xorg_cv_cc_flag_unknown_warning_option=no
6343fi
6344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345fi
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6349	CFLAGS="$xorg_testset_save_CFLAGS"
6350fi
6351
6352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6355	fi
6356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6357	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6360  $as_echo_n "(cached) " >&6
6361else
6362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363/* end confdefs.h.  */
6364int i;
6365_ACEOF
6366if ac_fn_c_try_compile "$LINENO"; then :
6367  xorg_cv_cc_flag_unused_command_line_argument=yes
6368else
6369  xorg_cv_cc_flag_unused_command_line_argument=no
6370fi
6371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372fi
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6376	CFLAGS="$xorg_testset_save_CFLAGS"
6377fi
6378
6379found="no"
6380
6381	if test $found = "no" ; then
6382		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6384		fi
6385
6386		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6388		fi
6389
6390		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6391
6392		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6393$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6394		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6395		if eval \${$cacheid+:} false; then :
6396  $as_echo_n "(cached) " >&6
6397else
6398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399/* end confdefs.h.  */
6400int i;
6401int
6402main ()
6403{
6404
6405  ;
6406  return 0;
6407}
6408_ACEOF
6409if ac_fn_c_try_link "$LINENO"; then :
6410  eval $cacheid=yes
6411else
6412  eval $cacheid=no
6413fi
6414rm -f core conftest.err conftest.$ac_objext \
6415    conftest$ac_exeext conftest.$ac_ext
6416fi
6417
6418
6419		CFLAGS="$xorg_testset_save_CFLAGS"
6420
6421		eval supported=\$$cacheid
6422		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6423$as_echo "$supported" >&6; }
6424		if test "$supported" = "yes" ; then
6425			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6426			found="yes"
6427		fi
6428	fi
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444xorg_testset_save_CFLAGS="$CFLAGS"
6445
6446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454/* end confdefs.h.  */
6455int i;
6456_ACEOF
6457if ac_fn_c_try_compile "$LINENO"; then :
6458  xorg_cv_cc_flag_unknown_warning_option=yes
6459else
6460  xorg_cv_cc_flag_unknown_warning_option=no
6461fi
6462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463fi
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6466	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6467	CFLAGS="$xorg_testset_save_CFLAGS"
6468fi
6469
6470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6471	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6472		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6473	fi
6474	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6475	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6478  $as_echo_n "(cached) " >&6
6479else
6480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481/* end confdefs.h.  */
6482int i;
6483_ACEOF
6484if ac_fn_c_try_compile "$LINENO"; then :
6485  xorg_cv_cc_flag_unused_command_line_argument=yes
6486else
6487  xorg_cv_cc_flag_unused_command_line_argument=no
6488fi
6489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490fi
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6494	CFLAGS="$xorg_testset_save_CFLAGS"
6495fi
6496
6497found="no"
6498
6499	if test $found = "no" ; then
6500		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6502		fi
6503
6504		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6506		fi
6507
6508		CFLAGS="$CFLAGS -Wredundant-decls"
6509
6510		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6511$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6512		cacheid=xorg_cv_cc_flag__Wredundant_decls
6513		if eval \${$cacheid+:} false; then :
6514  $as_echo_n "(cached) " >&6
6515else
6516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517/* end confdefs.h.  */
6518int i;
6519int
6520main ()
6521{
6522
6523  ;
6524  return 0;
6525}
6526_ACEOF
6527if ac_fn_c_try_link "$LINENO"; then :
6528  eval $cacheid=yes
6529else
6530  eval $cacheid=no
6531fi
6532rm -f core conftest.err conftest.$ac_objext \
6533    conftest$ac_exeext conftest.$ac_ext
6534fi
6535
6536
6537		CFLAGS="$xorg_testset_save_CFLAGS"
6538
6539		eval supported=\$$cacheid
6540		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6541$as_echo "$supported" >&6; }
6542		if test "$supported" = "yes" ; then
6543			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6544			found="yes"
6545		fi
6546	fi
6547
6548
6549
6550# These are currently disabled because they are noisy.  They will be enabled
6551# in the future once the codebase is sufficiently modernized to silence
6552# them.  For now, I don't want them to drown out the other warnings.
6553# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6554# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6555# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6556
6557# Turn some warnings into errors, so we don't accidently get successful builds
6558# when there are problems that should be fixed.
6559
6560if test "x$SELECTIVE_WERROR" = "xyes" ; then
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574xorg_testset_save_CFLAGS="$CFLAGS"
6575
6576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6581  $as_echo_n "(cached) " >&6
6582else
6583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584/* end confdefs.h.  */
6585int i;
6586_ACEOF
6587if ac_fn_c_try_compile "$LINENO"; then :
6588  xorg_cv_cc_flag_unknown_warning_option=yes
6589else
6590  xorg_cv_cc_flag_unknown_warning_option=no
6591fi
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593fi
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6597	CFLAGS="$xorg_testset_save_CFLAGS"
6598fi
6599
6600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6603	fi
6604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6608  $as_echo_n "(cached) " >&6
6609else
6610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h.  */
6612int i;
6613_ACEOF
6614if ac_fn_c_try_compile "$LINENO"; then :
6615  xorg_cv_cc_flag_unused_command_line_argument=yes
6616else
6617  xorg_cv_cc_flag_unused_command_line_argument=no
6618fi
6619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620fi
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6624	CFLAGS="$xorg_testset_save_CFLAGS"
6625fi
6626
6627found="no"
6628
6629	if test $found = "no" ; then
6630		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6632		fi
6633
6634		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6636		fi
6637
6638		CFLAGS="$CFLAGS -Werror=implicit"
6639
6640		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6641$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6642		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6643		if eval \${$cacheid+:} false; then :
6644  $as_echo_n "(cached) " >&6
6645else
6646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647/* end confdefs.h.  */
6648int i;
6649int
6650main ()
6651{
6652
6653  ;
6654  return 0;
6655}
6656_ACEOF
6657if ac_fn_c_try_link "$LINENO"; then :
6658  eval $cacheid=yes
6659else
6660  eval $cacheid=no
6661fi
6662rm -f core conftest.err conftest.$ac_objext \
6663    conftest$ac_exeext conftest.$ac_ext
6664fi
6665
6666
6667		CFLAGS="$xorg_testset_save_CFLAGS"
6668
6669		eval supported=\$$cacheid
6670		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6671$as_echo "$supported" >&6; }
6672		if test "$supported" = "yes" ; then
6673			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6674			found="yes"
6675		fi
6676	fi
6677
6678	if test $found = "no" ; then
6679		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6681		fi
6682
6683		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6685		fi
6686
6687		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6688
6689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6690$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6691		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6692		if eval \${$cacheid+:} false; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h.  */
6697int i;
6698int
6699main ()
6700{
6701
6702  ;
6703  return 0;
6704}
6705_ACEOF
6706if ac_fn_c_try_link "$LINENO"; then :
6707  eval $cacheid=yes
6708else
6709  eval $cacheid=no
6710fi
6711rm -f core conftest.err conftest.$ac_objext \
6712    conftest$ac_exeext conftest.$ac_ext
6713fi
6714
6715
6716		CFLAGS="$xorg_testset_save_CFLAGS"
6717
6718		eval supported=\$$cacheid
6719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6720$as_echo "$supported" >&6; }
6721		if test "$supported" = "yes" ; then
6722			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6723			found="yes"
6724		fi
6725	fi
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741xorg_testset_save_CFLAGS="$CFLAGS"
6742
6743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6748  $as_echo_n "(cached) " >&6
6749else
6750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751/* end confdefs.h.  */
6752int i;
6753_ACEOF
6754if ac_fn_c_try_compile "$LINENO"; then :
6755  xorg_cv_cc_flag_unknown_warning_option=yes
6756else
6757  xorg_cv_cc_flag_unknown_warning_option=no
6758fi
6759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760fi
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6764	CFLAGS="$xorg_testset_save_CFLAGS"
6765fi
6766
6767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770	fi
6771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6775  $as_echo_n "(cached) " >&6
6776else
6777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778/* end confdefs.h.  */
6779int i;
6780_ACEOF
6781if ac_fn_c_try_compile "$LINENO"; then :
6782  xorg_cv_cc_flag_unused_command_line_argument=yes
6783else
6784  xorg_cv_cc_flag_unused_command_line_argument=no
6785fi
6786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787fi
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6791	CFLAGS="$xorg_testset_save_CFLAGS"
6792fi
6793
6794found="no"
6795
6796	if test $found = "no" ; then
6797		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799		fi
6800
6801		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6803		fi
6804
6805		CFLAGS="$CFLAGS -Werror=nonnull"
6806
6807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6808$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6809		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6810		if eval \${$cacheid+:} false; then :
6811  $as_echo_n "(cached) " >&6
6812else
6813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814/* end confdefs.h.  */
6815int i;
6816int
6817main ()
6818{
6819
6820  ;
6821  return 0;
6822}
6823_ACEOF
6824if ac_fn_c_try_link "$LINENO"; then :
6825  eval $cacheid=yes
6826else
6827  eval $cacheid=no
6828fi
6829rm -f core conftest.err conftest.$ac_objext \
6830    conftest$ac_exeext conftest.$ac_ext
6831fi
6832
6833
6834		CFLAGS="$xorg_testset_save_CFLAGS"
6835
6836		eval supported=\$$cacheid
6837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6838$as_echo "$supported" >&6; }
6839		if test "$supported" = "yes" ; then
6840			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6841			found="yes"
6842		fi
6843	fi
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859xorg_testset_save_CFLAGS="$CFLAGS"
6860
6861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6866  $as_echo_n "(cached) " >&6
6867else
6868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869/* end confdefs.h.  */
6870int i;
6871_ACEOF
6872if ac_fn_c_try_compile "$LINENO"; then :
6873  xorg_cv_cc_flag_unknown_warning_option=yes
6874else
6875  xorg_cv_cc_flag_unknown_warning_option=no
6876fi
6877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878fi
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6882	CFLAGS="$xorg_testset_save_CFLAGS"
6883fi
6884
6885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888	fi
6889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896/* end confdefs.h.  */
6897int i;
6898_ACEOF
6899if ac_fn_c_try_compile "$LINENO"; then :
6900  xorg_cv_cc_flag_unused_command_line_argument=yes
6901else
6902  xorg_cv_cc_flag_unused_command_line_argument=no
6903fi
6904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905fi
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6909	CFLAGS="$xorg_testset_save_CFLAGS"
6910fi
6911
6912found="no"
6913
6914	if test $found = "no" ; then
6915		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917		fi
6918
6919		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6921		fi
6922
6923		CFLAGS="$CFLAGS -Werror=init-self"
6924
6925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6926$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6927		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6928		if eval \${$cacheid+:} false; then :
6929  $as_echo_n "(cached) " >&6
6930else
6931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932/* end confdefs.h.  */
6933int i;
6934int
6935main ()
6936{
6937
6938  ;
6939  return 0;
6940}
6941_ACEOF
6942if ac_fn_c_try_link "$LINENO"; then :
6943  eval $cacheid=yes
6944else
6945  eval $cacheid=no
6946fi
6947rm -f core conftest.err conftest.$ac_objext \
6948    conftest$ac_exeext conftest.$ac_ext
6949fi
6950
6951
6952		CFLAGS="$xorg_testset_save_CFLAGS"
6953
6954		eval supported=\$$cacheid
6955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6956$as_echo "$supported" >&6; }
6957		if test "$supported" = "yes" ; then
6958			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6959			found="yes"
6960		fi
6961	fi
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977xorg_testset_save_CFLAGS="$CFLAGS"
6978
6979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h.  */
6988int i;
6989_ACEOF
6990if ac_fn_c_try_compile "$LINENO"; then :
6991  xorg_cv_cc_flag_unknown_warning_option=yes
6992else
6993  xorg_cv_cc_flag_unknown_warning_option=no
6994fi
6995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996fi
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7000	CFLAGS="$xorg_testset_save_CFLAGS"
7001fi
7002
7003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7006	fi
7007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7011  $as_echo_n "(cached) " >&6
7012else
7013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014/* end confdefs.h.  */
7015int i;
7016_ACEOF
7017if ac_fn_c_try_compile "$LINENO"; then :
7018  xorg_cv_cc_flag_unused_command_line_argument=yes
7019else
7020  xorg_cv_cc_flag_unused_command_line_argument=no
7021fi
7022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023fi
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7027	CFLAGS="$xorg_testset_save_CFLAGS"
7028fi
7029
7030found="no"
7031
7032	if test $found = "no" ; then
7033		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7035		fi
7036
7037		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7039		fi
7040
7041		CFLAGS="$CFLAGS -Werror=main"
7042
7043		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7044$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7045		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7046		if eval \${$cacheid+:} false; then :
7047  $as_echo_n "(cached) " >&6
7048else
7049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050/* end confdefs.h.  */
7051int i;
7052int
7053main ()
7054{
7055
7056  ;
7057  return 0;
7058}
7059_ACEOF
7060if ac_fn_c_try_link "$LINENO"; then :
7061  eval $cacheid=yes
7062else
7063  eval $cacheid=no
7064fi
7065rm -f core conftest.err conftest.$ac_objext \
7066    conftest$ac_exeext conftest.$ac_ext
7067fi
7068
7069
7070		CFLAGS="$xorg_testset_save_CFLAGS"
7071
7072		eval supported=\$$cacheid
7073		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7074$as_echo "$supported" >&6; }
7075		if test "$supported" = "yes" ; then
7076			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7077			found="yes"
7078		fi
7079	fi
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095xorg_testset_save_CFLAGS="$CFLAGS"
7096
7097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7098	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7102  $as_echo_n "(cached) " >&6
7103else
7104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105/* end confdefs.h.  */
7106int i;
7107_ACEOF
7108if ac_fn_c_try_compile "$LINENO"; then :
7109  xorg_cv_cc_flag_unknown_warning_option=yes
7110else
7111  xorg_cv_cc_flag_unknown_warning_option=no
7112fi
7113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7114fi
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7118	CFLAGS="$xorg_testset_save_CFLAGS"
7119fi
7120
7121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7124	fi
7125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7129  $as_echo_n "(cached) " >&6
7130else
7131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132/* end confdefs.h.  */
7133int i;
7134_ACEOF
7135if ac_fn_c_try_compile "$LINENO"; then :
7136  xorg_cv_cc_flag_unused_command_line_argument=yes
7137else
7138  xorg_cv_cc_flag_unused_command_line_argument=no
7139fi
7140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141fi
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7145	CFLAGS="$xorg_testset_save_CFLAGS"
7146fi
7147
7148found="no"
7149
7150	if test $found = "no" ; then
7151		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7153		fi
7154
7155		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7157		fi
7158
7159		CFLAGS="$CFLAGS -Werror=missing-braces"
7160
7161		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7162$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7163		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7164		if eval \${$cacheid+:} false; then :
7165  $as_echo_n "(cached) " >&6
7166else
7167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168/* end confdefs.h.  */
7169int i;
7170int
7171main ()
7172{
7173
7174  ;
7175  return 0;
7176}
7177_ACEOF
7178if ac_fn_c_try_link "$LINENO"; then :
7179  eval $cacheid=yes
7180else
7181  eval $cacheid=no
7182fi
7183rm -f core conftest.err conftest.$ac_objext \
7184    conftest$ac_exeext conftest.$ac_ext
7185fi
7186
7187
7188		CFLAGS="$xorg_testset_save_CFLAGS"
7189
7190		eval supported=\$$cacheid
7191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7192$as_echo "$supported" >&6; }
7193		if test "$supported" = "yes" ; then
7194			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7195			found="yes"
7196		fi
7197	fi
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213xorg_testset_save_CFLAGS="$CFLAGS"
7214
7215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7220  $as_echo_n "(cached) " >&6
7221else
7222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223/* end confdefs.h.  */
7224int i;
7225_ACEOF
7226if ac_fn_c_try_compile "$LINENO"; then :
7227  xorg_cv_cc_flag_unknown_warning_option=yes
7228else
7229  xorg_cv_cc_flag_unknown_warning_option=no
7230fi
7231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232fi
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7236	CFLAGS="$xorg_testset_save_CFLAGS"
7237fi
7238
7239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242	fi
7243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7247  $as_echo_n "(cached) " >&6
7248else
7249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250/* end confdefs.h.  */
7251int i;
7252_ACEOF
7253if ac_fn_c_try_compile "$LINENO"; then :
7254  xorg_cv_cc_flag_unused_command_line_argument=yes
7255else
7256  xorg_cv_cc_flag_unused_command_line_argument=no
7257fi
7258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259fi
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7262	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7263	CFLAGS="$xorg_testset_save_CFLAGS"
7264fi
7265
7266found="no"
7267
7268	if test $found = "no" ; then
7269		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7270			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7271		fi
7272
7273		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7274			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7275		fi
7276
7277		CFLAGS="$CFLAGS -Werror=sequence-point"
7278
7279		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7280$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7281		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7282		if eval \${$cacheid+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286/* end confdefs.h.  */
7287int i;
7288int
7289main ()
7290{
7291
7292  ;
7293  return 0;
7294}
7295_ACEOF
7296if ac_fn_c_try_link "$LINENO"; then :
7297  eval $cacheid=yes
7298else
7299  eval $cacheid=no
7300fi
7301rm -f core conftest.err conftest.$ac_objext \
7302    conftest$ac_exeext conftest.$ac_ext
7303fi
7304
7305
7306		CFLAGS="$xorg_testset_save_CFLAGS"
7307
7308		eval supported=\$$cacheid
7309		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7310$as_echo "$supported" >&6; }
7311		if test "$supported" = "yes" ; then
7312			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7313			found="yes"
7314		fi
7315	fi
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331xorg_testset_save_CFLAGS="$CFLAGS"
7332
7333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7334	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7338  $as_echo_n "(cached) " >&6
7339else
7340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341/* end confdefs.h.  */
7342int i;
7343_ACEOF
7344if ac_fn_c_try_compile "$LINENO"; then :
7345  xorg_cv_cc_flag_unknown_warning_option=yes
7346else
7347  xorg_cv_cc_flag_unknown_warning_option=no
7348fi
7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7353	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7354	CFLAGS="$xorg_testset_save_CFLAGS"
7355fi
7356
7357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7358	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7359		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7360	fi
7361	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7365  $as_echo_n "(cached) " >&6
7366else
7367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368/* end confdefs.h.  */
7369int i;
7370_ACEOF
7371if ac_fn_c_try_compile "$LINENO"; then :
7372  xorg_cv_cc_flag_unused_command_line_argument=yes
7373else
7374  xorg_cv_cc_flag_unused_command_line_argument=no
7375fi
7376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377fi
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7380	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7381	CFLAGS="$xorg_testset_save_CFLAGS"
7382fi
7383
7384found="no"
7385
7386	if test $found = "no" ; then
7387		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7389		fi
7390
7391		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7393		fi
7394
7395		CFLAGS="$CFLAGS -Werror=return-type"
7396
7397		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7398$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7399		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7400		if eval \${$cacheid+:} false; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h.  */
7405int i;
7406int
7407main ()
7408{
7409
7410  ;
7411  return 0;
7412}
7413_ACEOF
7414if ac_fn_c_try_link "$LINENO"; then :
7415  eval $cacheid=yes
7416else
7417  eval $cacheid=no
7418fi
7419rm -f core conftest.err conftest.$ac_objext \
7420    conftest$ac_exeext conftest.$ac_ext
7421fi
7422
7423
7424		CFLAGS="$xorg_testset_save_CFLAGS"
7425
7426		eval supported=\$$cacheid
7427		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7428$as_echo "$supported" >&6; }
7429		if test "$supported" = "yes" ; then
7430			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7431			found="yes"
7432		fi
7433	fi
7434
7435	if test $found = "no" ; then
7436		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7438		fi
7439
7440		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7442		fi
7443
7444		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7445
7446		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7447$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7448		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7449		if eval \${$cacheid+:} false; then :
7450  $as_echo_n "(cached) " >&6
7451else
7452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453/* end confdefs.h.  */
7454int i;
7455int
7456main ()
7457{
7458
7459  ;
7460  return 0;
7461}
7462_ACEOF
7463if ac_fn_c_try_link "$LINENO"; then :
7464  eval $cacheid=yes
7465else
7466  eval $cacheid=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext \
7469    conftest$ac_exeext conftest.$ac_ext
7470fi
7471
7472
7473		CFLAGS="$xorg_testset_save_CFLAGS"
7474
7475		eval supported=\$$cacheid
7476		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7477$as_echo "$supported" >&6; }
7478		if test "$supported" = "yes" ; then
7479			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7480			found="yes"
7481		fi
7482	fi
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498xorg_testset_save_CFLAGS="$CFLAGS"
7499
7500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7502	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7505  $as_echo_n "(cached) " >&6
7506else
7507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h.  */
7509int i;
7510_ACEOF
7511if ac_fn_c_try_compile "$LINENO"; then :
7512  xorg_cv_cc_flag_unknown_warning_option=yes
7513else
7514  xorg_cv_cc_flag_unknown_warning_option=no
7515fi
7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517fi
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7520	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7521	CFLAGS="$xorg_testset_save_CFLAGS"
7522fi
7523
7524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7525	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527	fi
7528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7532  $as_echo_n "(cached) " >&6
7533else
7534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h.  */
7536int i;
7537_ACEOF
7538if ac_fn_c_try_compile "$LINENO"; then :
7539  xorg_cv_cc_flag_unused_command_line_argument=yes
7540else
7541  xorg_cv_cc_flag_unused_command_line_argument=no
7542fi
7543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544fi
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7547	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7548	CFLAGS="$xorg_testset_save_CFLAGS"
7549fi
7550
7551found="no"
7552
7553	if test $found = "no" ; then
7554		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7556		fi
7557
7558		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560		fi
7561
7562		CFLAGS="$CFLAGS -Werror=trigraphs"
7563
7564		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7565$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7566		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7567		if eval \${$cacheid+:} false; then :
7568  $as_echo_n "(cached) " >&6
7569else
7570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572int i;
7573int
7574main ()
7575{
7576
7577  ;
7578  return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_link "$LINENO"; then :
7582  eval $cacheid=yes
7583else
7584  eval $cacheid=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext \
7587    conftest$ac_exeext conftest.$ac_ext
7588fi
7589
7590
7591		CFLAGS="$xorg_testset_save_CFLAGS"
7592
7593		eval supported=\$$cacheid
7594		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7595$as_echo "$supported" >&6; }
7596		if test "$supported" = "yes" ; then
7597			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7598			found="yes"
7599		fi
7600	fi
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616xorg_testset_save_CFLAGS="$CFLAGS"
7617
7618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626/* end confdefs.h.  */
7627int i;
7628_ACEOF
7629if ac_fn_c_try_compile "$LINENO"; then :
7630  xorg_cv_cc_flag_unknown_warning_option=yes
7631else
7632  xorg_cv_cc_flag_unknown_warning_option=no
7633fi
7634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635fi
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7638	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7639	CFLAGS="$xorg_testset_save_CFLAGS"
7640fi
7641
7642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7643	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7644		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7645	fi
7646	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7650  $as_echo_n "(cached) " >&6
7651else
7652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653/* end confdefs.h.  */
7654int i;
7655_ACEOF
7656if ac_fn_c_try_compile "$LINENO"; then :
7657  xorg_cv_cc_flag_unused_command_line_argument=yes
7658else
7659  xorg_cv_cc_flag_unused_command_line_argument=no
7660fi
7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662fi
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7666	CFLAGS="$xorg_testset_save_CFLAGS"
7667fi
7668
7669found="no"
7670
7671	if test $found = "no" ; then
7672		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7674		fi
7675
7676		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678		fi
7679
7680		CFLAGS="$CFLAGS -Werror=array-bounds"
7681
7682		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7683$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7684		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7685		if eval \${$cacheid+:} false; then :
7686  $as_echo_n "(cached) " >&6
7687else
7688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689/* end confdefs.h.  */
7690int i;
7691int
7692main ()
7693{
7694
7695  ;
7696  return 0;
7697}
7698_ACEOF
7699if ac_fn_c_try_link "$LINENO"; then :
7700  eval $cacheid=yes
7701else
7702  eval $cacheid=no
7703fi
7704rm -f core conftest.err conftest.$ac_objext \
7705    conftest$ac_exeext conftest.$ac_ext
7706fi
7707
7708
7709		CFLAGS="$xorg_testset_save_CFLAGS"
7710
7711		eval supported=\$$cacheid
7712		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7713$as_echo "$supported" >&6; }
7714		if test "$supported" = "yes" ; then
7715			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7716			found="yes"
7717		fi
7718	fi
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734xorg_testset_save_CFLAGS="$CFLAGS"
7735
7736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7738	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7741  $as_echo_n "(cached) " >&6
7742else
7743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h.  */
7745int i;
7746_ACEOF
7747if ac_fn_c_try_compile "$LINENO"; then :
7748  xorg_cv_cc_flag_unknown_warning_option=yes
7749else
7750  xorg_cv_cc_flag_unknown_warning_option=no
7751fi
7752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753fi
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7757	CFLAGS="$xorg_testset_save_CFLAGS"
7758fi
7759
7760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7763	fi
7764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7768  $as_echo_n "(cached) " >&6
7769else
7770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771/* end confdefs.h.  */
7772int i;
7773_ACEOF
7774if ac_fn_c_try_compile "$LINENO"; then :
7775  xorg_cv_cc_flag_unused_command_line_argument=yes
7776else
7777  xorg_cv_cc_flag_unused_command_line_argument=no
7778fi
7779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780fi
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7783	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7784	CFLAGS="$xorg_testset_save_CFLAGS"
7785fi
7786
7787found="no"
7788
7789	if test $found = "no" ; then
7790		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7792		fi
7793
7794		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7796		fi
7797
7798		CFLAGS="$CFLAGS -Werror=write-strings"
7799
7800		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7801$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7802		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7803		if eval \${$cacheid+:} false; then :
7804  $as_echo_n "(cached) " >&6
7805else
7806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807/* end confdefs.h.  */
7808int i;
7809int
7810main ()
7811{
7812
7813  ;
7814  return 0;
7815}
7816_ACEOF
7817if ac_fn_c_try_link "$LINENO"; then :
7818  eval $cacheid=yes
7819else
7820  eval $cacheid=no
7821fi
7822rm -f core conftest.err conftest.$ac_objext \
7823    conftest$ac_exeext conftest.$ac_ext
7824fi
7825
7826
7827		CFLAGS="$xorg_testset_save_CFLAGS"
7828
7829		eval supported=\$$cacheid
7830		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7831$as_echo "$supported" >&6; }
7832		if test "$supported" = "yes" ; then
7833			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7834			found="yes"
7835		fi
7836	fi
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852xorg_testset_save_CFLAGS="$CFLAGS"
7853
7854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7855	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7859  $as_echo_n "(cached) " >&6
7860else
7861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862/* end confdefs.h.  */
7863int i;
7864_ACEOF
7865if ac_fn_c_try_compile "$LINENO"; then :
7866  xorg_cv_cc_flag_unknown_warning_option=yes
7867else
7868  xorg_cv_cc_flag_unknown_warning_option=no
7869fi
7870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871fi
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7875	CFLAGS="$xorg_testset_save_CFLAGS"
7876fi
7877
7878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7881	fi
7882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7886  $as_echo_n "(cached) " >&6
7887else
7888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889/* end confdefs.h.  */
7890int i;
7891_ACEOF
7892if ac_fn_c_try_compile "$LINENO"; then :
7893  xorg_cv_cc_flag_unused_command_line_argument=yes
7894else
7895  xorg_cv_cc_flag_unused_command_line_argument=no
7896fi
7897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898fi
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7902	CFLAGS="$xorg_testset_save_CFLAGS"
7903fi
7904
7905found="no"
7906
7907	if test $found = "no" ; then
7908		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7910		fi
7911
7912		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7914		fi
7915
7916		CFLAGS="$CFLAGS -Werror=address"
7917
7918		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7919$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7920		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7921		if eval \${$cacheid+:} false; then :
7922  $as_echo_n "(cached) " >&6
7923else
7924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h.  */
7926int i;
7927int
7928main ()
7929{
7930
7931  ;
7932  return 0;
7933}
7934_ACEOF
7935if ac_fn_c_try_link "$LINENO"; then :
7936  eval $cacheid=yes
7937else
7938  eval $cacheid=no
7939fi
7940rm -f core conftest.err conftest.$ac_objext \
7941    conftest$ac_exeext conftest.$ac_ext
7942fi
7943
7944
7945		CFLAGS="$xorg_testset_save_CFLAGS"
7946
7947		eval supported=\$$cacheid
7948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7949$as_echo "$supported" >&6; }
7950		if test "$supported" = "yes" ; then
7951			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7952			found="yes"
7953		fi
7954	fi
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970xorg_testset_save_CFLAGS="$CFLAGS"
7971
7972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7977  $as_echo_n "(cached) " >&6
7978else
7979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980/* end confdefs.h.  */
7981int i;
7982_ACEOF
7983if ac_fn_c_try_compile "$LINENO"; then :
7984  xorg_cv_cc_flag_unknown_warning_option=yes
7985else
7986  xorg_cv_cc_flag_unknown_warning_option=no
7987fi
7988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989fi
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7993	CFLAGS="$xorg_testset_save_CFLAGS"
7994fi
7995
7996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7999	fi
8000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8004  $as_echo_n "(cached) " >&6
8005else
8006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007/* end confdefs.h.  */
8008int i;
8009_ACEOF
8010if ac_fn_c_try_compile "$LINENO"; then :
8011  xorg_cv_cc_flag_unused_command_line_argument=yes
8012else
8013  xorg_cv_cc_flag_unused_command_line_argument=no
8014fi
8015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016fi
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8020	CFLAGS="$xorg_testset_save_CFLAGS"
8021fi
8022
8023found="no"
8024
8025	if test $found = "no" ; then
8026		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8028		fi
8029
8030		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8032		fi
8033
8034		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8035
8036		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8037$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8038		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8039		if eval \${$cacheid+:} false; then :
8040  $as_echo_n "(cached) " >&6
8041else
8042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043/* end confdefs.h.  */
8044int i;
8045int
8046main ()
8047{
8048
8049  ;
8050  return 0;
8051}
8052_ACEOF
8053if ac_fn_c_try_link "$LINENO"; then :
8054  eval $cacheid=yes
8055else
8056  eval $cacheid=no
8057fi
8058rm -f core conftest.err conftest.$ac_objext \
8059    conftest$ac_exeext conftest.$ac_ext
8060fi
8061
8062
8063		CFLAGS="$xorg_testset_save_CFLAGS"
8064
8065		eval supported=\$$cacheid
8066		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8067$as_echo "$supported" >&6; }
8068		if test "$supported" = "yes" ; then
8069			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8070			found="yes"
8071		fi
8072	fi
8073
8074	if test $found = "no" ; then
8075		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8076			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8077		fi
8078
8079		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8080			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8081		fi
8082
8083		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8084
8085		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8086$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8087		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8088		if eval \${$cacheid+:} false; then :
8089  $as_echo_n "(cached) " >&6
8090else
8091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092/* end confdefs.h.  */
8093int i;
8094int
8095main ()
8096{
8097
8098  ;
8099  return 0;
8100}
8101_ACEOF
8102if ac_fn_c_try_link "$LINENO"; then :
8103  eval $cacheid=yes
8104else
8105  eval $cacheid=no
8106fi
8107rm -f core conftest.err conftest.$ac_objext \
8108    conftest$ac_exeext conftest.$ac_ext
8109fi
8110
8111
8112		CFLAGS="$xorg_testset_save_CFLAGS"
8113
8114		eval supported=\$$cacheid
8115		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8116$as_echo "$supported" >&6; }
8117		if test "$supported" = "yes" ; then
8118			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8119			found="yes"
8120		fi
8121	fi
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137xorg_testset_save_CFLAGS="$CFLAGS"
8138
8139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8140	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8142$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8143if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8144  $as_echo_n "(cached) " >&6
8145else
8146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147/* end confdefs.h.  */
8148int i;
8149_ACEOF
8150if ac_fn_c_try_compile "$LINENO"; then :
8151  xorg_cv_cc_flag_unknown_warning_option=yes
8152else
8153  xorg_cv_cc_flag_unknown_warning_option=no
8154fi
8155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156fi
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8158$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8159	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8160	CFLAGS="$xorg_testset_save_CFLAGS"
8161fi
8162
8163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8164	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166	fi
8167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8169$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8170if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8171  $as_echo_n "(cached) " >&6
8172else
8173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174/* end confdefs.h.  */
8175int i;
8176_ACEOF
8177if ac_fn_c_try_compile "$LINENO"; then :
8178  xorg_cv_cc_flag_unused_command_line_argument=yes
8179else
8180  xorg_cv_cc_flag_unused_command_line_argument=no
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8185$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8186	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8187	CFLAGS="$xorg_testset_save_CFLAGS"
8188fi
8189
8190found="no"
8191
8192	if test $found = "no" ; then
8193		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8195		fi
8196
8197		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8199		fi
8200
8201		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8202
8203		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8204$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8205		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8206		if eval \${$cacheid+:} false; then :
8207  $as_echo_n "(cached) " >&6
8208else
8209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210/* end confdefs.h.  */
8211int i;
8212int
8213main ()
8214{
8215
8216  ;
8217  return 0;
8218}
8219_ACEOF
8220if ac_fn_c_try_link "$LINENO"; then :
8221  eval $cacheid=yes
8222else
8223  eval $cacheid=no
8224fi
8225rm -f core conftest.err conftest.$ac_objext \
8226    conftest$ac_exeext conftest.$ac_ext
8227fi
8228
8229
8230		CFLAGS="$xorg_testset_save_CFLAGS"
8231
8232		eval supported=\$$cacheid
8233		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8234$as_echo "$supported" >&6; }
8235		if test "$supported" = "yes" ; then
8236			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8237			found="yes"
8238		fi
8239	fi
8240
8241 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8242else
8243{ $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
8244$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;}
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258xorg_testset_save_CFLAGS="$CFLAGS"
8259
8260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8261	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8263$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8264if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8265  $as_echo_n "(cached) " >&6
8266else
8267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268/* end confdefs.h.  */
8269int i;
8270_ACEOF
8271if ac_fn_c_try_compile "$LINENO"; then :
8272  xorg_cv_cc_flag_unknown_warning_option=yes
8273else
8274  xorg_cv_cc_flag_unknown_warning_option=no
8275fi
8276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277fi
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8279$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8280	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8281	CFLAGS="$xorg_testset_save_CFLAGS"
8282fi
8283
8284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8285	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8286		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287	fi
8288	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8290$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8291if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295/* end confdefs.h.  */
8296int i;
8297_ACEOF
8298if ac_fn_c_try_compile "$LINENO"; then :
8299  xorg_cv_cc_flag_unused_command_line_argument=yes
8300else
8301  xorg_cv_cc_flag_unused_command_line_argument=no
8302fi
8303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304fi
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8306$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8307	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8308	CFLAGS="$xorg_testset_save_CFLAGS"
8309fi
8310
8311found="no"
8312
8313	if test $found = "no" ; then
8314		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8315			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8316		fi
8317
8318		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8319			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8320		fi
8321
8322		CFLAGS="$CFLAGS -Wimplicit"
8323
8324		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8325$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8326		cacheid=xorg_cv_cc_flag__Wimplicit
8327		if eval \${$cacheid+:} false; then :
8328  $as_echo_n "(cached) " >&6
8329else
8330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331/* end confdefs.h.  */
8332int i;
8333int
8334main ()
8335{
8336
8337  ;
8338  return 0;
8339}
8340_ACEOF
8341if ac_fn_c_try_link "$LINENO"; then :
8342  eval $cacheid=yes
8343else
8344  eval $cacheid=no
8345fi
8346rm -f core conftest.err conftest.$ac_objext \
8347    conftest$ac_exeext conftest.$ac_ext
8348fi
8349
8350
8351		CFLAGS="$xorg_testset_save_CFLAGS"
8352
8353		eval supported=\$$cacheid
8354		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8355$as_echo "$supported" >&6; }
8356		if test "$supported" = "yes" ; then
8357			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8358			found="yes"
8359		fi
8360	fi
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376xorg_testset_save_CFLAGS="$CFLAGS"
8377
8378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8383  $as_echo_n "(cached) " >&6
8384else
8385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386/* end confdefs.h.  */
8387int i;
8388_ACEOF
8389if ac_fn_c_try_compile "$LINENO"; then :
8390  xorg_cv_cc_flag_unknown_warning_option=yes
8391else
8392  xorg_cv_cc_flag_unknown_warning_option=no
8393fi
8394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395fi
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8398	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8399	CFLAGS="$xorg_testset_save_CFLAGS"
8400fi
8401
8402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8403	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8404		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405	fi
8406	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8410  $as_echo_n "(cached) " >&6
8411else
8412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h.  */
8414int i;
8415_ACEOF
8416if ac_fn_c_try_compile "$LINENO"; then :
8417  xorg_cv_cc_flag_unused_command_line_argument=yes
8418else
8419  xorg_cv_cc_flag_unused_command_line_argument=no
8420fi
8421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422fi
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8425	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8426	CFLAGS="$xorg_testset_save_CFLAGS"
8427fi
8428
8429found="no"
8430
8431	if test $found = "no" ; then
8432		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8434		fi
8435
8436		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8438		fi
8439
8440		CFLAGS="$CFLAGS -Wnonnull"
8441
8442		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8443$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8444		cacheid=xorg_cv_cc_flag__Wnonnull
8445		if eval \${$cacheid+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449/* end confdefs.h.  */
8450int i;
8451int
8452main ()
8453{
8454
8455  ;
8456  return 0;
8457}
8458_ACEOF
8459if ac_fn_c_try_link "$LINENO"; then :
8460  eval $cacheid=yes
8461else
8462  eval $cacheid=no
8463fi
8464rm -f core conftest.err conftest.$ac_objext \
8465    conftest$ac_exeext conftest.$ac_ext
8466fi
8467
8468
8469		CFLAGS="$xorg_testset_save_CFLAGS"
8470
8471		eval supported=\$$cacheid
8472		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8473$as_echo "$supported" >&6; }
8474		if test "$supported" = "yes" ; then
8475			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8476			found="yes"
8477		fi
8478	fi
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494xorg_testset_save_CFLAGS="$CFLAGS"
8495
8496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8497	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8501  $as_echo_n "(cached) " >&6
8502else
8503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504/* end confdefs.h.  */
8505int i;
8506_ACEOF
8507if ac_fn_c_try_compile "$LINENO"; then :
8508  xorg_cv_cc_flag_unknown_warning_option=yes
8509else
8510  xorg_cv_cc_flag_unknown_warning_option=no
8511fi
8512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513fi
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8517	CFLAGS="$xorg_testset_save_CFLAGS"
8518fi
8519
8520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523	fi
8524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8528  $as_echo_n "(cached) " >&6
8529else
8530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531/* end confdefs.h.  */
8532int i;
8533_ACEOF
8534if ac_fn_c_try_compile "$LINENO"; then :
8535  xorg_cv_cc_flag_unused_command_line_argument=yes
8536else
8537  xorg_cv_cc_flag_unused_command_line_argument=no
8538fi
8539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8543	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8544	CFLAGS="$xorg_testset_save_CFLAGS"
8545fi
8546
8547found="no"
8548
8549	if test $found = "no" ; then
8550		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8552		fi
8553
8554		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8556		fi
8557
8558		CFLAGS="$CFLAGS -Winit-self"
8559
8560		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8561$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8562		cacheid=xorg_cv_cc_flag__Winit_self
8563		if eval \${$cacheid+:} false; then :
8564  $as_echo_n "(cached) " >&6
8565else
8566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567/* end confdefs.h.  */
8568int i;
8569int
8570main ()
8571{
8572
8573  ;
8574  return 0;
8575}
8576_ACEOF
8577if ac_fn_c_try_link "$LINENO"; then :
8578  eval $cacheid=yes
8579else
8580  eval $cacheid=no
8581fi
8582rm -f core conftest.err conftest.$ac_objext \
8583    conftest$ac_exeext conftest.$ac_ext
8584fi
8585
8586
8587		CFLAGS="$xorg_testset_save_CFLAGS"
8588
8589		eval supported=\$$cacheid
8590		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8591$as_echo "$supported" >&6; }
8592		if test "$supported" = "yes" ; then
8593			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8594			found="yes"
8595		fi
8596	fi
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612xorg_testset_save_CFLAGS="$CFLAGS"
8613
8614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8619  $as_echo_n "(cached) " >&6
8620else
8621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622/* end confdefs.h.  */
8623int i;
8624_ACEOF
8625if ac_fn_c_try_compile "$LINENO"; then :
8626  xorg_cv_cc_flag_unknown_warning_option=yes
8627else
8628  xorg_cv_cc_flag_unknown_warning_option=no
8629fi
8630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631fi
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8635	CFLAGS="$xorg_testset_save_CFLAGS"
8636fi
8637
8638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641	fi
8642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8646  $as_echo_n "(cached) " >&6
8647else
8648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649/* end confdefs.h.  */
8650int i;
8651_ACEOF
8652if ac_fn_c_try_compile "$LINENO"; then :
8653  xorg_cv_cc_flag_unused_command_line_argument=yes
8654else
8655  xorg_cv_cc_flag_unused_command_line_argument=no
8656fi
8657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658fi
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8662	CFLAGS="$xorg_testset_save_CFLAGS"
8663fi
8664
8665found="no"
8666
8667	if test $found = "no" ; then
8668		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8670		fi
8671
8672		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8674		fi
8675
8676		CFLAGS="$CFLAGS -Wmain"
8677
8678		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8679$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8680		cacheid=xorg_cv_cc_flag__Wmain
8681		if eval \${$cacheid+:} false; then :
8682  $as_echo_n "(cached) " >&6
8683else
8684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685/* end confdefs.h.  */
8686int i;
8687int
8688main ()
8689{
8690
8691  ;
8692  return 0;
8693}
8694_ACEOF
8695if ac_fn_c_try_link "$LINENO"; then :
8696  eval $cacheid=yes
8697else
8698  eval $cacheid=no
8699fi
8700rm -f core conftest.err conftest.$ac_objext \
8701    conftest$ac_exeext conftest.$ac_ext
8702fi
8703
8704
8705		CFLAGS="$xorg_testset_save_CFLAGS"
8706
8707		eval supported=\$$cacheid
8708		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8709$as_echo "$supported" >&6; }
8710		if test "$supported" = "yes" ; then
8711			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8712			found="yes"
8713		fi
8714	fi
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730xorg_testset_save_CFLAGS="$CFLAGS"
8731
8732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8733	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8735$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8736if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8737  $as_echo_n "(cached) " >&6
8738else
8739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740/* end confdefs.h.  */
8741int i;
8742_ACEOF
8743if ac_fn_c_try_compile "$LINENO"; then :
8744  xorg_cv_cc_flag_unknown_warning_option=yes
8745else
8746  xorg_cv_cc_flag_unknown_warning_option=no
8747fi
8748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749fi
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8751$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8752	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8753	CFLAGS="$xorg_testset_save_CFLAGS"
8754fi
8755
8756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8757	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8758		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8759	fi
8760	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8762$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8763if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8764  $as_echo_n "(cached) " >&6
8765else
8766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767/* end confdefs.h.  */
8768int i;
8769_ACEOF
8770if ac_fn_c_try_compile "$LINENO"; then :
8771  xorg_cv_cc_flag_unused_command_line_argument=yes
8772else
8773  xorg_cv_cc_flag_unused_command_line_argument=no
8774fi
8775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8776fi
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8778$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8779	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8780	CFLAGS="$xorg_testset_save_CFLAGS"
8781fi
8782
8783found="no"
8784
8785	if test $found = "no" ; then
8786		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8787			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8788		fi
8789
8790		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8791			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8792		fi
8793
8794		CFLAGS="$CFLAGS -Wmissing-braces"
8795
8796		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8797$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8798		cacheid=xorg_cv_cc_flag__Wmissing_braces
8799		if eval \${$cacheid+:} false; then :
8800  $as_echo_n "(cached) " >&6
8801else
8802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803/* end confdefs.h.  */
8804int i;
8805int
8806main ()
8807{
8808
8809  ;
8810  return 0;
8811}
8812_ACEOF
8813if ac_fn_c_try_link "$LINENO"; then :
8814  eval $cacheid=yes
8815else
8816  eval $cacheid=no
8817fi
8818rm -f core conftest.err conftest.$ac_objext \
8819    conftest$ac_exeext conftest.$ac_ext
8820fi
8821
8822
8823		CFLAGS="$xorg_testset_save_CFLAGS"
8824
8825		eval supported=\$$cacheid
8826		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8827$as_echo "$supported" >&6; }
8828		if test "$supported" = "yes" ; then
8829			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8830			found="yes"
8831		fi
8832	fi
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848xorg_testset_save_CFLAGS="$CFLAGS"
8849
8850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8851	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8853$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8854if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8855  $as_echo_n "(cached) " >&6
8856else
8857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858/* end confdefs.h.  */
8859int i;
8860_ACEOF
8861if ac_fn_c_try_compile "$LINENO"; then :
8862  xorg_cv_cc_flag_unknown_warning_option=yes
8863else
8864  xorg_cv_cc_flag_unknown_warning_option=no
8865fi
8866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867fi
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8869$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8870	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8871	CFLAGS="$xorg_testset_save_CFLAGS"
8872fi
8873
8874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8875	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8877	fi
8878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8880$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8881if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8882  $as_echo_n "(cached) " >&6
8883else
8884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885/* end confdefs.h.  */
8886int i;
8887_ACEOF
8888if ac_fn_c_try_compile "$LINENO"; then :
8889  xorg_cv_cc_flag_unused_command_line_argument=yes
8890else
8891  xorg_cv_cc_flag_unused_command_line_argument=no
8892fi
8893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894fi
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8896$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8897	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8898	CFLAGS="$xorg_testset_save_CFLAGS"
8899fi
8900
8901found="no"
8902
8903	if test $found = "no" ; then
8904		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8905			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8906		fi
8907
8908		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8909			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8910		fi
8911
8912		CFLAGS="$CFLAGS -Wsequence-point"
8913
8914		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8915$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8916		cacheid=xorg_cv_cc_flag__Wsequence_point
8917		if eval \${$cacheid+:} false; then :
8918  $as_echo_n "(cached) " >&6
8919else
8920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h.  */
8922int i;
8923int
8924main ()
8925{
8926
8927  ;
8928  return 0;
8929}
8930_ACEOF
8931if ac_fn_c_try_link "$LINENO"; then :
8932  eval $cacheid=yes
8933else
8934  eval $cacheid=no
8935fi
8936rm -f core conftest.err conftest.$ac_objext \
8937    conftest$ac_exeext conftest.$ac_ext
8938fi
8939
8940
8941		CFLAGS="$xorg_testset_save_CFLAGS"
8942
8943		eval supported=\$$cacheid
8944		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8945$as_echo "$supported" >&6; }
8946		if test "$supported" = "yes" ; then
8947			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8948			found="yes"
8949		fi
8950	fi
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966xorg_testset_save_CFLAGS="$CFLAGS"
8967
8968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8971$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8972if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8973  $as_echo_n "(cached) " >&6
8974else
8975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977int i;
8978_ACEOF
8979if ac_fn_c_try_compile "$LINENO"; then :
8980  xorg_cv_cc_flag_unknown_warning_option=yes
8981else
8982  xorg_cv_cc_flag_unknown_warning_option=no
8983fi
8984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985fi
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8987$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8988	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8989	CFLAGS="$xorg_testset_save_CFLAGS"
8990fi
8991
8992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8993	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8994		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8995	fi
8996	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8998$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8999if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9000  $as_echo_n "(cached) " >&6
9001else
9002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003/* end confdefs.h.  */
9004int i;
9005_ACEOF
9006if ac_fn_c_try_compile "$LINENO"; then :
9007  xorg_cv_cc_flag_unused_command_line_argument=yes
9008else
9009  xorg_cv_cc_flag_unused_command_line_argument=no
9010fi
9011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012fi
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9014$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9016	CFLAGS="$xorg_testset_save_CFLAGS"
9017fi
9018
9019found="no"
9020
9021	if test $found = "no" ; then
9022		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9024		fi
9025
9026		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9028		fi
9029
9030		CFLAGS="$CFLAGS -Wreturn-type"
9031
9032		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9033$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9034		cacheid=xorg_cv_cc_flag__Wreturn_type
9035		if eval \${$cacheid+:} false; then :
9036  $as_echo_n "(cached) " >&6
9037else
9038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039/* end confdefs.h.  */
9040int i;
9041int
9042main ()
9043{
9044
9045  ;
9046  return 0;
9047}
9048_ACEOF
9049if ac_fn_c_try_link "$LINENO"; then :
9050  eval $cacheid=yes
9051else
9052  eval $cacheid=no
9053fi
9054rm -f core conftest.err conftest.$ac_objext \
9055    conftest$ac_exeext conftest.$ac_ext
9056fi
9057
9058
9059		CFLAGS="$xorg_testset_save_CFLAGS"
9060
9061		eval supported=\$$cacheid
9062		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9063$as_echo "$supported" >&6; }
9064		if test "$supported" = "yes" ; then
9065			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9066			found="yes"
9067		fi
9068	fi
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084xorg_testset_save_CFLAGS="$CFLAGS"
9085
9086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9087	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9091  $as_echo_n "(cached) " >&6
9092else
9093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094/* end confdefs.h.  */
9095int i;
9096_ACEOF
9097if ac_fn_c_try_compile "$LINENO"; then :
9098  xorg_cv_cc_flag_unknown_warning_option=yes
9099else
9100  xorg_cv_cc_flag_unknown_warning_option=no
9101fi
9102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103fi
9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9107	CFLAGS="$xorg_testset_save_CFLAGS"
9108fi
9109
9110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9113	fi
9114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9118  $as_echo_n "(cached) " >&6
9119else
9120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121/* end confdefs.h.  */
9122int i;
9123_ACEOF
9124if ac_fn_c_try_compile "$LINENO"; then :
9125  xorg_cv_cc_flag_unused_command_line_argument=yes
9126else
9127  xorg_cv_cc_flag_unused_command_line_argument=no
9128fi
9129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130fi
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9134	CFLAGS="$xorg_testset_save_CFLAGS"
9135fi
9136
9137found="no"
9138
9139	if test $found = "no" ; then
9140		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9142		fi
9143
9144		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9146		fi
9147
9148		CFLAGS="$CFLAGS -Wtrigraphs"
9149
9150		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9151$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9152		cacheid=xorg_cv_cc_flag__Wtrigraphs
9153		if eval \${$cacheid+:} false; then :
9154  $as_echo_n "(cached) " >&6
9155else
9156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157/* end confdefs.h.  */
9158int i;
9159int
9160main ()
9161{
9162
9163  ;
9164  return 0;
9165}
9166_ACEOF
9167if ac_fn_c_try_link "$LINENO"; then :
9168  eval $cacheid=yes
9169else
9170  eval $cacheid=no
9171fi
9172rm -f core conftest.err conftest.$ac_objext \
9173    conftest$ac_exeext conftest.$ac_ext
9174fi
9175
9176
9177		CFLAGS="$xorg_testset_save_CFLAGS"
9178
9179		eval supported=\$$cacheid
9180		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9181$as_echo "$supported" >&6; }
9182		if test "$supported" = "yes" ; then
9183			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9184			found="yes"
9185		fi
9186	fi
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202xorg_testset_save_CFLAGS="$CFLAGS"
9203
9204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9209  $as_echo_n "(cached) " >&6
9210else
9211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212/* end confdefs.h.  */
9213int i;
9214_ACEOF
9215if ac_fn_c_try_compile "$LINENO"; then :
9216  xorg_cv_cc_flag_unknown_warning_option=yes
9217else
9218  xorg_cv_cc_flag_unknown_warning_option=no
9219fi
9220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221fi
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9225	CFLAGS="$xorg_testset_save_CFLAGS"
9226fi
9227
9228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9231	fi
9232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9236  $as_echo_n "(cached) " >&6
9237else
9238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239/* end confdefs.h.  */
9240int i;
9241_ACEOF
9242if ac_fn_c_try_compile "$LINENO"; then :
9243  xorg_cv_cc_flag_unused_command_line_argument=yes
9244else
9245  xorg_cv_cc_flag_unused_command_line_argument=no
9246fi
9247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248fi
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9251	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9252	CFLAGS="$xorg_testset_save_CFLAGS"
9253fi
9254
9255found="no"
9256
9257	if test $found = "no" ; then
9258		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9260		fi
9261
9262		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9264		fi
9265
9266		CFLAGS="$CFLAGS -Warray-bounds"
9267
9268		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9269$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9270		cacheid=xorg_cv_cc_flag__Warray_bounds
9271		if eval \${$cacheid+:} false; then :
9272  $as_echo_n "(cached) " >&6
9273else
9274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275/* end confdefs.h.  */
9276int i;
9277int
9278main ()
9279{
9280
9281  ;
9282  return 0;
9283}
9284_ACEOF
9285if ac_fn_c_try_link "$LINENO"; then :
9286  eval $cacheid=yes
9287else
9288  eval $cacheid=no
9289fi
9290rm -f core conftest.err conftest.$ac_objext \
9291    conftest$ac_exeext conftest.$ac_ext
9292fi
9293
9294
9295		CFLAGS="$xorg_testset_save_CFLAGS"
9296
9297		eval supported=\$$cacheid
9298		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9299$as_echo "$supported" >&6; }
9300		if test "$supported" = "yes" ; then
9301			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9302			found="yes"
9303		fi
9304	fi
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320xorg_testset_save_CFLAGS="$CFLAGS"
9321
9322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330/* end confdefs.h.  */
9331int i;
9332_ACEOF
9333if ac_fn_c_try_compile "$LINENO"; then :
9334  xorg_cv_cc_flag_unknown_warning_option=yes
9335else
9336  xorg_cv_cc_flag_unknown_warning_option=no
9337fi
9338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339fi
9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9342	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9343	CFLAGS="$xorg_testset_save_CFLAGS"
9344fi
9345
9346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9347	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9348		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9349	fi
9350	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9354  $as_echo_n "(cached) " >&6
9355else
9356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357/* end confdefs.h.  */
9358int i;
9359_ACEOF
9360if ac_fn_c_try_compile "$LINENO"; then :
9361  xorg_cv_cc_flag_unused_command_line_argument=yes
9362else
9363  xorg_cv_cc_flag_unused_command_line_argument=no
9364fi
9365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366fi
9367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9370	CFLAGS="$xorg_testset_save_CFLAGS"
9371fi
9372
9373found="no"
9374
9375	if test $found = "no" ; then
9376		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9378		fi
9379
9380		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9382		fi
9383
9384		CFLAGS="$CFLAGS -Wwrite-strings"
9385
9386		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9387$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9388		cacheid=xorg_cv_cc_flag__Wwrite_strings
9389		if eval \${$cacheid+:} false; then :
9390  $as_echo_n "(cached) " >&6
9391else
9392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393/* end confdefs.h.  */
9394int i;
9395int
9396main ()
9397{
9398
9399  ;
9400  return 0;
9401}
9402_ACEOF
9403if ac_fn_c_try_link "$LINENO"; then :
9404  eval $cacheid=yes
9405else
9406  eval $cacheid=no
9407fi
9408rm -f core conftest.err conftest.$ac_objext \
9409    conftest$ac_exeext conftest.$ac_ext
9410fi
9411
9412
9413		CFLAGS="$xorg_testset_save_CFLAGS"
9414
9415		eval supported=\$$cacheid
9416		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9417$as_echo "$supported" >&6; }
9418		if test "$supported" = "yes" ; then
9419			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9420			found="yes"
9421		fi
9422	fi
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438xorg_testset_save_CFLAGS="$CFLAGS"
9439
9440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9441	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9445  $as_echo_n "(cached) " >&6
9446else
9447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448/* end confdefs.h.  */
9449int i;
9450_ACEOF
9451if ac_fn_c_try_compile "$LINENO"; then :
9452  xorg_cv_cc_flag_unknown_warning_option=yes
9453else
9454  xorg_cv_cc_flag_unknown_warning_option=no
9455fi
9456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457fi
9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9460	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9461	CFLAGS="$xorg_testset_save_CFLAGS"
9462fi
9463
9464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9465	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9466		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9467	fi
9468	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9472  $as_echo_n "(cached) " >&6
9473else
9474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475/* end confdefs.h.  */
9476int i;
9477_ACEOF
9478if ac_fn_c_try_compile "$LINENO"; then :
9479  xorg_cv_cc_flag_unused_command_line_argument=yes
9480else
9481  xorg_cv_cc_flag_unused_command_line_argument=no
9482fi
9483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9484fi
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9487	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9488	CFLAGS="$xorg_testset_save_CFLAGS"
9489fi
9490
9491found="no"
9492
9493	if test $found = "no" ; then
9494		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9496		fi
9497
9498		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9500		fi
9501
9502		CFLAGS="$CFLAGS -Waddress"
9503
9504		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9505$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9506		cacheid=xorg_cv_cc_flag__Waddress
9507		if eval \${$cacheid+:} false; then :
9508  $as_echo_n "(cached) " >&6
9509else
9510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511/* end confdefs.h.  */
9512int i;
9513int
9514main ()
9515{
9516
9517  ;
9518  return 0;
9519}
9520_ACEOF
9521if ac_fn_c_try_link "$LINENO"; then :
9522  eval $cacheid=yes
9523else
9524  eval $cacheid=no
9525fi
9526rm -f core conftest.err conftest.$ac_objext \
9527    conftest$ac_exeext conftest.$ac_ext
9528fi
9529
9530
9531		CFLAGS="$xorg_testset_save_CFLAGS"
9532
9533		eval supported=\$$cacheid
9534		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9535$as_echo "$supported" >&6; }
9536		if test "$supported" = "yes" ; then
9537			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9538			found="yes"
9539		fi
9540	fi
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556xorg_testset_save_CFLAGS="$CFLAGS"
9557
9558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9563  $as_echo_n "(cached) " >&6
9564else
9565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566/* end confdefs.h.  */
9567int i;
9568_ACEOF
9569if ac_fn_c_try_compile "$LINENO"; then :
9570  xorg_cv_cc_flag_unknown_warning_option=yes
9571else
9572  xorg_cv_cc_flag_unknown_warning_option=no
9573fi
9574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9575fi
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9579	CFLAGS="$xorg_testset_save_CFLAGS"
9580fi
9581
9582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9585	fi
9586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9590  $as_echo_n "(cached) " >&6
9591else
9592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593/* end confdefs.h.  */
9594int i;
9595_ACEOF
9596if ac_fn_c_try_compile "$LINENO"; then :
9597  xorg_cv_cc_flag_unused_command_line_argument=yes
9598else
9599  xorg_cv_cc_flag_unused_command_line_argument=no
9600fi
9601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602fi
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9605	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9606	CFLAGS="$xorg_testset_save_CFLAGS"
9607fi
9608
9609found="no"
9610
9611	if test $found = "no" ; then
9612		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614		fi
9615
9616		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9618		fi
9619
9620		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9621
9622		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9623$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9624		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9625		if eval \${$cacheid+:} false; then :
9626  $as_echo_n "(cached) " >&6
9627else
9628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629/* end confdefs.h.  */
9630int i;
9631int
9632main ()
9633{
9634
9635  ;
9636  return 0;
9637}
9638_ACEOF
9639if ac_fn_c_try_link "$LINENO"; then :
9640  eval $cacheid=yes
9641else
9642  eval $cacheid=no
9643fi
9644rm -f core conftest.err conftest.$ac_objext \
9645    conftest$ac_exeext conftest.$ac_ext
9646fi
9647
9648
9649		CFLAGS="$xorg_testset_save_CFLAGS"
9650
9651		eval supported=\$$cacheid
9652		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9653$as_echo "$supported" >&6; }
9654		if test "$supported" = "yes" ; then
9655			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9656			found="yes"
9657		fi
9658	fi
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674xorg_testset_save_CFLAGS="$CFLAGS"
9675
9676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9677	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9681  $as_echo_n "(cached) " >&6
9682else
9683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684/* end confdefs.h.  */
9685int i;
9686_ACEOF
9687if ac_fn_c_try_compile "$LINENO"; then :
9688  xorg_cv_cc_flag_unknown_warning_option=yes
9689else
9690  xorg_cv_cc_flag_unknown_warning_option=no
9691fi
9692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9693fi
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9697	CFLAGS="$xorg_testset_save_CFLAGS"
9698fi
9699
9700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9703	fi
9704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9708  $as_echo_n "(cached) " >&6
9709else
9710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711/* end confdefs.h.  */
9712int i;
9713_ACEOF
9714if ac_fn_c_try_compile "$LINENO"; then :
9715  xorg_cv_cc_flag_unused_command_line_argument=yes
9716else
9717  xorg_cv_cc_flag_unused_command_line_argument=no
9718fi
9719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720fi
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9723	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9724	CFLAGS="$xorg_testset_save_CFLAGS"
9725fi
9726
9727found="no"
9728
9729	if test $found = "no" ; then
9730		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9731			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9732		fi
9733
9734		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9735			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9736		fi
9737
9738		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9739
9740		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9741$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9742		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9743		if eval \${$cacheid+:} false; then :
9744  $as_echo_n "(cached) " >&6
9745else
9746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747/* end confdefs.h.  */
9748int i;
9749int
9750main ()
9751{
9752
9753  ;
9754  return 0;
9755}
9756_ACEOF
9757if ac_fn_c_try_link "$LINENO"; then :
9758  eval $cacheid=yes
9759else
9760  eval $cacheid=no
9761fi
9762rm -f core conftest.err conftest.$ac_objext \
9763    conftest$ac_exeext conftest.$ac_ext
9764fi
9765
9766
9767		CFLAGS="$xorg_testset_save_CFLAGS"
9768
9769		eval supported=\$$cacheid
9770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9771$as_echo "$supported" >&6; }
9772		if test "$supported" = "yes" ; then
9773			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9774			found="yes"
9775		fi
9776	fi
9777
9778
9779fi
9780
9781
9782
9783
9784
9785
9786
9787		CWARNFLAGS="$BASE_CFLAGS"
9788		if  test "x$GCC" = xyes ; then
9789		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9790		fi
9791
9792
9793
9794
9795
9796
9797
9798
9799# Check whether --enable-strict-compilation was given.
9800if test "${enable_strict_compilation+set}" = set; then :
9801  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9802else
9803  STRICT_COMPILE=no
9804fi
9805
9806
9807
9808
9809
9810
9811STRICT_CFLAGS=""
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825xorg_testset_save_CFLAGS="$CFLAGS"
9826
9827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9828	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9832  $as_echo_n "(cached) " >&6
9833else
9834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835/* end confdefs.h.  */
9836int i;
9837_ACEOF
9838if ac_fn_c_try_compile "$LINENO"; then :
9839  xorg_cv_cc_flag_unknown_warning_option=yes
9840else
9841  xorg_cv_cc_flag_unknown_warning_option=no
9842fi
9843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9844fi
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9848	CFLAGS="$xorg_testset_save_CFLAGS"
9849fi
9850
9851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854	fi
9855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9859  $as_echo_n "(cached) " >&6
9860else
9861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862/* end confdefs.h.  */
9863int i;
9864_ACEOF
9865if ac_fn_c_try_compile "$LINENO"; then :
9866  xorg_cv_cc_flag_unused_command_line_argument=yes
9867else
9868  xorg_cv_cc_flag_unused_command_line_argument=no
9869fi
9870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871fi
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9875	CFLAGS="$xorg_testset_save_CFLAGS"
9876fi
9877
9878found="no"
9879
9880	if test $found = "no" ; then
9881		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9883		fi
9884
9885		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9887		fi
9888
9889		CFLAGS="$CFLAGS -pedantic"
9890
9891		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9892$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9893		cacheid=xorg_cv_cc_flag__pedantic
9894		if eval \${$cacheid+:} false; then :
9895  $as_echo_n "(cached) " >&6
9896else
9897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899int i;
9900int
9901main ()
9902{
9903
9904  ;
9905  return 0;
9906}
9907_ACEOF
9908if ac_fn_c_try_link "$LINENO"; then :
9909  eval $cacheid=yes
9910else
9911  eval $cacheid=no
9912fi
9913rm -f core conftest.err conftest.$ac_objext \
9914    conftest$ac_exeext conftest.$ac_ext
9915fi
9916
9917
9918		CFLAGS="$xorg_testset_save_CFLAGS"
9919
9920		eval supported=\$$cacheid
9921		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9922$as_echo "$supported" >&6; }
9923		if test "$supported" = "yes" ; then
9924			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9925			found="yes"
9926		fi
9927	fi
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943xorg_testset_save_CFLAGS="$CFLAGS"
9944
9945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9950  $as_echo_n "(cached) " >&6
9951else
9952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953/* end confdefs.h.  */
9954int i;
9955_ACEOF
9956if ac_fn_c_try_compile "$LINENO"; then :
9957  xorg_cv_cc_flag_unknown_warning_option=yes
9958else
9959  xorg_cv_cc_flag_unknown_warning_option=no
9960fi
9961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9962fi
9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9965	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9966	CFLAGS="$xorg_testset_save_CFLAGS"
9967fi
9968
9969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9970	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9971		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9972	fi
9973	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9977  $as_echo_n "(cached) " >&6
9978else
9979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h.  */
9981int i;
9982_ACEOF
9983if ac_fn_c_try_compile "$LINENO"; then :
9984  xorg_cv_cc_flag_unused_command_line_argument=yes
9985else
9986  xorg_cv_cc_flag_unused_command_line_argument=no
9987fi
9988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9989fi
9990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9992	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9993	CFLAGS="$xorg_testset_save_CFLAGS"
9994fi
9995
9996found="no"
9997
9998	if test $found = "no" ; then
9999		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10000			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10001		fi
10002
10003		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10004			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005		fi
10006
10007		CFLAGS="$CFLAGS -Werror"
10008
10009		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10010$as_echo_n "checking if $CC supports -Werror... " >&6; }
10011		cacheid=xorg_cv_cc_flag__Werror
10012		if eval \${$cacheid+:} false; then :
10013  $as_echo_n "(cached) " >&6
10014else
10015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016/* end confdefs.h.  */
10017int i;
10018int
10019main ()
10020{
10021
10022  ;
10023  return 0;
10024}
10025_ACEOF
10026if ac_fn_c_try_link "$LINENO"; then :
10027  eval $cacheid=yes
10028else
10029  eval $cacheid=no
10030fi
10031rm -f core conftest.err conftest.$ac_objext \
10032    conftest$ac_exeext conftest.$ac_ext
10033fi
10034
10035
10036		CFLAGS="$xorg_testset_save_CFLAGS"
10037
10038		eval supported=\$$cacheid
10039		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10040$as_echo "$supported" >&6; }
10041		if test "$supported" = "yes" ; then
10042			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10043			found="yes"
10044		fi
10045	fi
10046
10047	if test $found = "no" ; then
10048		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10050		fi
10051
10052		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10054		fi
10055
10056		CFLAGS="$CFLAGS -errwarn"
10057
10058		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10059$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10060		cacheid=xorg_cv_cc_flag__errwarn
10061		if eval \${$cacheid+:} false; then :
10062  $as_echo_n "(cached) " >&6
10063else
10064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h.  */
10066int i;
10067int
10068main ()
10069{
10070
10071  ;
10072  return 0;
10073}
10074_ACEOF
10075if ac_fn_c_try_link "$LINENO"; then :
10076  eval $cacheid=yes
10077else
10078  eval $cacheid=no
10079fi
10080rm -f core conftest.err conftest.$ac_objext \
10081    conftest$ac_exeext conftest.$ac_ext
10082fi
10083
10084
10085		CFLAGS="$xorg_testset_save_CFLAGS"
10086
10087		eval supported=\$$cacheid
10088		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10089$as_echo "$supported" >&6; }
10090		if test "$supported" = "yes" ; then
10091			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10092			found="yes"
10093		fi
10094	fi
10095
10096
10097
10098# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10099# activate it with -Werror, so we add it here explicitly.
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113xorg_testset_save_CFLAGS="$CFLAGS"
10114
10115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10120  $as_echo_n "(cached) " >&6
10121else
10122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h.  */
10124int i;
10125_ACEOF
10126if ac_fn_c_try_compile "$LINENO"; then :
10127  xorg_cv_cc_flag_unknown_warning_option=yes
10128else
10129  xorg_cv_cc_flag_unknown_warning_option=no
10130fi
10131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10132fi
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10135	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10136	CFLAGS="$xorg_testset_save_CFLAGS"
10137fi
10138
10139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10140	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10141		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142	fi
10143	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10147  $as_echo_n "(cached) " >&6
10148else
10149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150/* end confdefs.h.  */
10151int i;
10152_ACEOF
10153if ac_fn_c_try_compile "$LINENO"; then :
10154  xorg_cv_cc_flag_unused_command_line_argument=yes
10155else
10156  xorg_cv_cc_flag_unused_command_line_argument=no
10157fi
10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159fi
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10163	CFLAGS="$xorg_testset_save_CFLAGS"
10164fi
10165
10166found="no"
10167
10168	if test $found = "no" ; then
10169		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10171		fi
10172
10173		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10175		fi
10176
10177		CFLAGS="$CFLAGS -Werror=attributes"
10178
10179		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10180$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10181		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10182		if eval \${$cacheid+:} false; then :
10183  $as_echo_n "(cached) " >&6
10184else
10185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186/* end confdefs.h.  */
10187int i;
10188int
10189main ()
10190{
10191
10192  ;
10193  return 0;
10194}
10195_ACEOF
10196if ac_fn_c_try_link "$LINENO"; then :
10197  eval $cacheid=yes
10198else
10199  eval $cacheid=no
10200fi
10201rm -f core conftest.err conftest.$ac_objext \
10202    conftest$ac_exeext conftest.$ac_ext
10203fi
10204
10205
10206		CFLAGS="$xorg_testset_save_CFLAGS"
10207
10208		eval supported=\$$cacheid
10209		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10210$as_echo "$supported" >&6; }
10211		if test "$supported" = "yes" ; then
10212			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10213			found="yes"
10214		fi
10215	fi
10216
10217
10218
10219if test "x$STRICT_COMPILE" = "xyes"; then
10220    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10221    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10222fi
10223
10224
10225
10226
10227
10228
10229cat >>confdefs.h <<_ACEOF
10230#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10231_ACEOF
10232
10233	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10234	if test "x$PVM" = "x"; then
10235		PVM="0"
10236	fi
10237
10238cat >>confdefs.h <<_ACEOF
10239#define PACKAGE_VERSION_MINOR $PVM
10240_ACEOF
10241
10242	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10243	if test "x$PVP" = "x"; then
10244		PVP="0"
10245	fi
10246
10247cat >>confdefs.h <<_ACEOF
10248#define PACKAGE_VERSION_PATCHLEVEL $PVP
10249_ACEOF
10250
10251
10252
10253CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10254mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10255|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10256echo 'git directory not found: installing possibly empty changelog.' >&2)"
10257
10258
10259
10260
10261macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10262INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10263mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10264|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10265echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10266
10267
10268
10269
10270
10271
10272if test x$APP_MAN_SUFFIX = x    ; then
10273    APP_MAN_SUFFIX=1
10274fi
10275if test x$APP_MAN_DIR = x    ; then
10276    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10277fi
10278
10279if test x$LIB_MAN_SUFFIX = x    ; then
10280    LIB_MAN_SUFFIX=3
10281fi
10282if test x$LIB_MAN_DIR = x    ; then
10283    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10284fi
10285
10286if test x$FILE_MAN_SUFFIX = x    ; then
10287    case $host_os in
10288	solaris*)	FILE_MAN_SUFFIX=4  ;;
10289	*)		FILE_MAN_SUFFIX=5  ;;
10290    esac
10291fi
10292if test x$FILE_MAN_DIR = x    ; then
10293    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10294fi
10295
10296if test x$MISC_MAN_SUFFIX = x    ; then
10297    case $host_os in
10298	solaris*)	MISC_MAN_SUFFIX=5  ;;
10299	*)		MISC_MAN_SUFFIX=7  ;;
10300    esac
10301fi
10302if test x$MISC_MAN_DIR = x    ; then
10303    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10304fi
10305
10306if test x$DRIVER_MAN_SUFFIX = x    ; then
10307    case $host_os in
10308	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10309	*)		DRIVER_MAN_SUFFIX=4  ;;
10310    esac
10311fi
10312if test x$DRIVER_MAN_DIR = x    ; then
10313    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10314fi
10315
10316if test x$ADMIN_MAN_SUFFIX = x    ; then
10317    case $host_os in
10318	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10319	*)		ADMIN_MAN_SUFFIX=8  ;;
10320    esac
10321fi
10322if test x$ADMIN_MAN_DIR = x    ; then
10323    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10324fi
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340XORG_MAN_PAGE="X Version 11"
10341
10342MAN_SUBSTS="\
10343	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10344	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10345	-e 's|__xservername__|Xorg|g' \
10346	-e 's|__xconfigfile__|xorg.conf|g' \
10347	-e 's|__projectroot__|\$(prefix)|g' \
10348	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10349	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10350	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10351	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10352	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10353	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10354	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10355
10356
10357
10358# Check whether --enable-silent-rules was given.
10359if test "${enable_silent_rules+set}" = set; then :
10360  enableval=$enable_silent_rules;
10361fi
10362
10363case $enable_silent_rules in
10364yes) AM_DEFAULT_VERBOSITY=0;;
10365no)  AM_DEFAULT_VERBOSITY=1;;
10366*)   AM_DEFAULT_VERBOSITY=0;;
10367esac
10368AM_BACKSLASH='\'
10369
10370
10371
10372ac_config_headers="$ac_config_headers config.h"
10373
10374
10375# Obtain compiler/linker options from depedencies
10376
10377pkg_failed=no
10378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDITRES" >&5
10379$as_echo_n "checking for EDITRES... " >&6; }
10380
10381if test -n "$EDITRES_CFLAGS"; then
10382    pkg_cv_EDITRES_CFLAGS="$EDITRES_CFLAGS"
10383 elif test -n "$PKG_CONFIG"; then
10384    if test -n "$PKG_CONFIG" && \
10385    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt xmu\""; } >&5
10386  ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt xmu") 2>&5
10387  ac_status=$?
10388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10389  test $ac_status = 0; }; then
10390  pkg_cv_EDITRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 x11 xt xmu" 2>/dev/null`
10391else
10392  pkg_failed=yes
10393fi
10394 else
10395    pkg_failed=untried
10396fi
10397if test -n "$EDITRES_LIBS"; then
10398    pkg_cv_EDITRES_LIBS="$EDITRES_LIBS"
10399 elif test -n "$PKG_CONFIG"; then
10400    if test -n "$PKG_CONFIG" && \
10401    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt xmu\""; } >&5
10402  ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt xmu") 2>&5
10403  ac_status=$?
10404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10405  test $ac_status = 0; }; then
10406  pkg_cv_EDITRES_LIBS=`$PKG_CONFIG --libs "xaw7 x11 xt xmu" 2>/dev/null`
10407else
10408  pkg_failed=yes
10409fi
10410 else
10411    pkg_failed=untried
10412fi
10413
10414
10415
10416if test $pkg_failed = yes; then
10417
10418if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10419        _pkg_short_errors_supported=yes
10420else
10421        _pkg_short_errors_supported=no
10422fi
10423        if test $_pkg_short_errors_supported = yes; then
10424	        EDITRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 x11 xt xmu" 2>&1`
10425        else
10426	        EDITRES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 x11 xt xmu" 2>&1`
10427        fi
10428	# Put the nasty error message in config.log where it belongs
10429	echo "$EDITRES_PKG_ERRORS" >&5
10430
10431	as_fn_error $? "Package requirements (xaw7 x11 xt xmu) were not met:
10432
10433$EDITRES_PKG_ERRORS
10434
10435Consider adjusting the PKG_CONFIG_PATH environment variable if you
10436installed software in a non-standard prefix.
10437
10438Alternatively, you may set the environment variables EDITRES_CFLAGS
10439and EDITRES_LIBS to avoid the need to call pkg-config.
10440See the pkg-config man page for more details.
10441" "$LINENO" 5
10442elif test $pkg_failed = untried; then
10443	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10445as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10446is in your PATH or set the PKG_CONFIG environment variable to the full
10447path to pkg-config.
10448
10449Alternatively, you may set the environment variables EDITRES_CFLAGS
10450and EDITRES_LIBS to avoid the need to call pkg-config.
10451See the pkg-config man page for more details.
10452
10453To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10454See \`config.log' for more details" "$LINENO" 5; }
10455else
10456	EDITRES_CFLAGS=$pkg_cv_EDITRES_CFLAGS
10457	EDITRES_LIBS=$pkg_cv_EDITRES_LIBS
10458        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10459$as_echo "yes" >&6; }
10460	:
10461fi
10462
10463
10464pkg_failed=no
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10466$as_echo_n "checking for APPDEFS... " >&6; }
10467
10468if test -n "$APPDEFS_CFLAGS"; then
10469    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10470 elif test -n "$PKG_CONFIG"; then
10471    if test -n "$PKG_CONFIG" && \
10472    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10473  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10474  ac_status=$?
10475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10476  test $ac_status = 0; }; then
10477  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10478else
10479  pkg_failed=yes
10480fi
10481 else
10482    pkg_failed=untried
10483fi
10484if test -n "$APPDEFS_LIBS"; then
10485    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10486 elif test -n "$PKG_CONFIG"; then
10487    if test -n "$PKG_CONFIG" && \
10488    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10489  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10490  ac_status=$?
10491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10492  test $ac_status = 0; }; then
10493  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10494else
10495  pkg_failed=yes
10496fi
10497 else
10498    pkg_failed=untried
10499fi
10500
10501
10502
10503if test $pkg_failed = yes; then
10504
10505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10506        _pkg_short_errors_supported=yes
10507else
10508        _pkg_short_errors_supported=no
10509fi
10510        if test $_pkg_short_errors_supported = yes; then
10511	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10512        else
10513	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10514        fi
10515	# Put the nasty error message in config.log where it belongs
10516	echo "$APPDEFS_PKG_ERRORS" >&5
10517
10518	as_fn_error $? "Package requirements (xt) were not met:
10519
10520$APPDEFS_PKG_ERRORS
10521
10522Consider adjusting the PKG_CONFIG_PATH environment variable if you
10523installed software in a non-standard prefix.
10524
10525Alternatively, you may set the environment variables APPDEFS_CFLAGS
10526and APPDEFS_LIBS to avoid the need to call pkg-config.
10527See the pkg-config man page for more details.
10528" "$LINENO" 5
10529elif test $pkg_failed = untried; then
10530	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10532as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10533is in your PATH or set the PKG_CONFIG environment variable to the full
10534path to pkg-config.
10535
10536Alternatively, you may set the environment variables APPDEFS_CFLAGS
10537and APPDEFS_LIBS to avoid the need to call pkg-config.
10538See the pkg-config man page for more details.
10539
10540To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10541See \`config.log' for more details" "$LINENO" 5; }
10542else
10543	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10544	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10545        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10546$as_echo "yes" >&6; }
10547	:
10548fi
10549xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10550
10551# Check whether --with-appdefaultdir was given.
10552if test "${with_appdefaultdir+set}" = set; then :
10553  withval=$with_appdefaultdir; appdefaultdir="$withval"
10554else
10555  appdefaultdir="${xt_appdefaultdir}"
10556fi
10557
10558
10559
10560ac_config_files="$ac_config_files Makefile man/Makefile"
10561
10562cat >confcache <<\_ACEOF
10563# This file is a shell script that caches the results of configure
10564# tests run on this system so they can be shared between configure
10565# scripts and configure runs, see configure's option --config-cache.
10566# It is not useful on other systems.  If it contains results you don't
10567# want to keep, you may remove or edit it.
10568#
10569# config.status only pays attention to the cache file if you give it
10570# the --recheck option to rerun configure.
10571#
10572# `ac_cv_env_foo' variables (set or unset) will be overridden when
10573# loading this file, other *unset* `ac_cv_foo' will be assigned the
10574# following values.
10575
10576_ACEOF
10577
10578# The following way of writing the cache mishandles newlines in values,
10579# but we know of no workaround that is simple, portable, and efficient.
10580# So, we kill variables containing newlines.
10581# Ultrix sh set writes to stderr and can't be redirected directly,
10582# and sets the high bit in the cache file unless we assign to the vars.
10583(
10584  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10585    eval ac_val=\$$ac_var
10586    case $ac_val in #(
10587    *${as_nl}*)
10588      case $ac_var in #(
10589      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10590$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10591      esac
10592      case $ac_var in #(
10593      _ | IFS | as_nl) ;; #(
10594      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10595      *) { eval $ac_var=; unset $ac_var;} ;;
10596      esac ;;
10597    esac
10598  done
10599
10600  (set) 2>&1 |
10601    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10602    *${as_nl}ac_space=\ *)
10603      # `set' does not quote correctly, so add quotes: double-quote
10604      # substitution turns \\\\ into \\, and sed turns \\ into \.
10605      sed -n \
10606	"s/'/'\\\\''/g;
10607	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10608      ;; #(
10609    *)
10610      # `set' quotes correctly as required by POSIX, so do not add quotes.
10611      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10612      ;;
10613    esac |
10614    sort
10615) |
10616  sed '
10617     /^ac_cv_env_/b end
10618     t clear
10619     :clear
10620     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10621     t end
10622     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10623     :end' >>confcache
10624if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10625  if test -w "$cache_file"; then
10626    if test "x$cache_file" != "x/dev/null"; then
10627      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10628$as_echo "$as_me: updating cache $cache_file" >&6;}
10629      if test ! -f "$cache_file" || test -h "$cache_file"; then
10630	cat confcache >"$cache_file"
10631      else
10632        case $cache_file in #(
10633        */* | ?:*)
10634	  mv -f confcache "$cache_file"$$ &&
10635	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10636        *)
10637	  mv -f confcache "$cache_file" ;;
10638	esac
10639      fi
10640    fi
10641  else
10642    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10643$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10644  fi
10645fi
10646rm -f confcache
10647
10648test "x$prefix" = xNONE && prefix=$ac_default_prefix
10649# Let make expand exec_prefix.
10650test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10651
10652DEFS=-DHAVE_CONFIG_H
10653
10654ac_libobjs=
10655ac_ltlibobjs=
10656U=
10657for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10658  # 1. Remove the extension, and $U if already installed.
10659  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10660  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10661  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10662  #    will be set to the directory where LIBOBJS objects are built.
10663  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10664  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10665done
10666LIBOBJS=$ac_libobjs
10667
10668LTLIBOBJS=$ac_ltlibobjs
10669
10670
10671 if test -n "$EXEEXT"; then
10672  am__EXEEXT_TRUE=
10673  am__EXEEXT_FALSE='#'
10674else
10675  am__EXEEXT_TRUE='#'
10676  am__EXEEXT_FALSE=
10677fi
10678
10679if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10680  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10681Usually this means the macro was only invoked conditionally." "$LINENO" 5
10682fi
10683if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10684  as_fn_error $? "conditional \"AMDEP\" was never defined.
10685Usually this means the macro was only invoked conditionally." "$LINENO" 5
10686fi
10687if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10688  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10689Usually this means the macro was only invoked conditionally." "$LINENO" 5
10690fi
10691
10692: "${CONFIG_STATUS=./config.status}"
10693ac_write_fail=0
10694ac_clean_files_save=$ac_clean_files
10695ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10696{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10697$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10698as_write_fail=0
10699cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10700#! $SHELL
10701# Generated by $as_me.
10702# Run this file to recreate the current configuration.
10703# Compiler output produced by configure, useful for debugging
10704# configure, is in config.log if it exists.
10705
10706debug=false
10707ac_cs_recheck=false
10708ac_cs_silent=false
10709
10710SHELL=\${CONFIG_SHELL-$SHELL}
10711export SHELL
10712_ASEOF
10713cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10714## -------------------- ##
10715## M4sh Initialization. ##
10716## -------------------- ##
10717
10718# Be more Bourne compatible
10719DUALCASE=1; export DUALCASE # for MKS sh
10720if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10721  emulate sh
10722  NULLCMD=:
10723  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10724  # is contrary to our usage.  Disable this feature.
10725  alias -g '${1+"$@"}'='"$@"'
10726  setopt NO_GLOB_SUBST
10727else
10728  case `(set -o) 2>/dev/null` in #(
10729  *posix*) :
10730    set -o posix ;; #(
10731  *) :
10732     ;;
10733esac
10734fi
10735
10736
10737as_nl='
10738'
10739export as_nl
10740# Printing a long string crashes Solaris 7 /usr/bin/printf.
10741as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10742as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10743as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10744# Prefer a ksh shell builtin over an external printf program on Solaris,
10745# but without wasting forks for bash or zsh.
10746if test -z "$BASH_VERSION$ZSH_VERSION" \
10747    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10748  as_echo='print -r --'
10749  as_echo_n='print -rn --'
10750elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10751  as_echo='printf %s\n'
10752  as_echo_n='printf %s'
10753else
10754  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10755    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10756    as_echo_n='/usr/ucb/echo -n'
10757  else
10758    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10759    as_echo_n_body='eval
10760      arg=$1;
10761      case $arg in #(
10762      *"$as_nl"*)
10763	expr "X$arg" : "X\\(.*\\)$as_nl";
10764	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10765      esac;
10766      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10767    '
10768    export as_echo_n_body
10769    as_echo_n='sh -c $as_echo_n_body as_echo'
10770  fi
10771  export as_echo_body
10772  as_echo='sh -c $as_echo_body as_echo'
10773fi
10774
10775# The user is always right.
10776if test "${PATH_SEPARATOR+set}" != set; then
10777  PATH_SEPARATOR=:
10778  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10779    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10780      PATH_SEPARATOR=';'
10781  }
10782fi
10783
10784
10785# IFS
10786# We need space, tab and new line, in precisely that order.  Quoting is
10787# there to prevent editors from complaining about space-tab.
10788# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10789# splitting by setting IFS to empty value.)
10790IFS=" ""	$as_nl"
10791
10792# Find who we are.  Look in the path if we contain no directory separator.
10793as_myself=
10794case $0 in #((
10795  *[\\/]* ) as_myself=$0 ;;
10796  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797for as_dir in $PATH
10798do
10799  IFS=$as_save_IFS
10800  test -z "$as_dir" && as_dir=.
10801    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10802  done
10803IFS=$as_save_IFS
10804
10805     ;;
10806esac
10807# We did not find ourselves, most probably we were run as `sh COMMAND'
10808# in which case we are not to be found in the path.
10809if test "x$as_myself" = x; then
10810  as_myself=$0
10811fi
10812if test ! -f "$as_myself"; then
10813  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10814  exit 1
10815fi
10816
10817# Unset variables that we do not need and which cause bugs (e.g. in
10818# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10819# suppresses any "Segmentation fault" message there.  '((' could
10820# trigger a bug in pdksh 5.2.14.
10821for as_var in BASH_ENV ENV MAIL MAILPATH
10822do eval test x\${$as_var+set} = xset \
10823  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10824done
10825PS1='$ '
10826PS2='> '
10827PS4='+ '
10828
10829# NLS nuisances.
10830LC_ALL=C
10831export LC_ALL
10832LANGUAGE=C
10833export LANGUAGE
10834
10835# CDPATH.
10836(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10837
10838
10839# as_fn_error STATUS ERROR [LINENO LOG_FD]
10840# ----------------------------------------
10841# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10842# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10843# script with STATUS, using 1 if that was 0.
10844as_fn_error ()
10845{
10846  as_status=$1; test $as_status -eq 0 && as_status=1
10847  if test "$4"; then
10848    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10849    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10850  fi
10851  $as_echo "$as_me: error: $2" >&2
10852  as_fn_exit $as_status
10853} # as_fn_error
10854
10855
10856# as_fn_set_status STATUS
10857# -----------------------
10858# Set $? to STATUS, without forking.
10859as_fn_set_status ()
10860{
10861  return $1
10862} # as_fn_set_status
10863
10864# as_fn_exit STATUS
10865# -----------------
10866# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10867as_fn_exit ()
10868{
10869  set +e
10870  as_fn_set_status $1
10871  exit $1
10872} # as_fn_exit
10873
10874# as_fn_unset VAR
10875# ---------------
10876# Portably unset VAR.
10877as_fn_unset ()
10878{
10879  { eval $1=; unset $1;}
10880}
10881as_unset=as_fn_unset
10882# as_fn_append VAR VALUE
10883# ----------------------
10884# Append the text in VALUE to the end of the definition contained in VAR. Take
10885# advantage of any shell optimizations that allow amortized linear growth over
10886# repeated appends, instead of the typical quadratic growth present in naive
10887# implementations.
10888if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10889  eval 'as_fn_append ()
10890  {
10891    eval $1+=\$2
10892  }'
10893else
10894  as_fn_append ()
10895  {
10896    eval $1=\$$1\$2
10897  }
10898fi # as_fn_append
10899
10900# as_fn_arith ARG...
10901# ------------------
10902# Perform arithmetic evaluation on the ARGs, and store the result in the
10903# global $as_val. Take advantage of shells that can avoid forks. The arguments
10904# must be portable across $(()) and expr.
10905if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10906  eval 'as_fn_arith ()
10907  {
10908    as_val=$(( $* ))
10909  }'
10910else
10911  as_fn_arith ()
10912  {
10913    as_val=`expr "$@" || test $? -eq 1`
10914  }
10915fi # as_fn_arith
10916
10917
10918if expr a : '\(a\)' >/dev/null 2>&1 &&
10919   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10920  as_expr=expr
10921else
10922  as_expr=false
10923fi
10924
10925if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10926  as_basename=basename
10927else
10928  as_basename=false
10929fi
10930
10931if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10932  as_dirname=dirname
10933else
10934  as_dirname=false
10935fi
10936
10937as_me=`$as_basename -- "$0" ||
10938$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10939	 X"$0" : 'X\(//\)$' \| \
10940	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10941$as_echo X/"$0" |
10942    sed '/^.*\/\([^/][^/]*\)\/*$/{
10943	    s//\1/
10944	    q
10945	  }
10946	  /^X\/\(\/\/\)$/{
10947	    s//\1/
10948	    q
10949	  }
10950	  /^X\/\(\/\).*/{
10951	    s//\1/
10952	    q
10953	  }
10954	  s/.*/./; q'`
10955
10956# Avoid depending upon Character Ranges.
10957as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10959as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10960as_cr_digits='0123456789'
10961as_cr_alnum=$as_cr_Letters$as_cr_digits
10962
10963ECHO_C= ECHO_N= ECHO_T=
10964case `echo -n x` in #(((((
10965-n*)
10966  case `echo 'xy\c'` in
10967  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10968  xy)  ECHO_C='\c';;
10969  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10970       ECHO_T='	';;
10971  esac;;
10972*)
10973  ECHO_N='-n';;
10974esac
10975
10976rm -f conf$$ conf$$.exe conf$$.file
10977if test -d conf$$.dir; then
10978  rm -f conf$$.dir/conf$$.file
10979else
10980  rm -f conf$$.dir
10981  mkdir conf$$.dir 2>/dev/null
10982fi
10983if (echo >conf$$.file) 2>/dev/null; then
10984  if ln -s conf$$.file conf$$ 2>/dev/null; then
10985    as_ln_s='ln -s'
10986    # ... but there are two gotchas:
10987    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10988    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10989    # In both cases, we have to default to `cp -p'.
10990    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10991      as_ln_s='cp -p'
10992  elif ln conf$$.file conf$$ 2>/dev/null; then
10993    as_ln_s=ln
10994  else
10995    as_ln_s='cp -p'
10996  fi
10997else
10998  as_ln_s='cp -p'
10999fi
11000rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11001rmdir conf$$.dir 2>/dev/null
11002
11003
11004# as_fn_mkdir_p
11005# -------------
11006# Create "$as_dir" as a directory, including parents if necessary.
11007as_fn_mkdir_p ()
11008{
11009
11010  case $as_dir in #(
11011  -*) as_dir=./$as_dir;;
11012  esac
11013  test -d "$as_dir" || eval $as_mkdir_p || {
11014    as_dirs=
11015    while :; do
11016      case $as_dir in #(
11017      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11018      *) as_qdir=$as_dir;;
11019      esac
11020      as_dirs="'$as_qdir' $as_dirs"
11021      as_dir=`$as_dirname -- "$as_dir" ||
11022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11023	 X"$as_dir" : 'X\(//\)[^/]' \| \
11024	 X"$as_dir" : 'X\(//\)$' \| \
11025	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11026$as_echo X"$as_dir" |
11027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11028	    s//\1/
11029	    q
11030	  }
11031	  /^X\(\/\/\)[^/].*/{
11032	    s//\1/
11033	    q
11034	  }
11035	  /^X\(\/\/\)$/{
11036	    s//\1/
11037	    q
11038	  }
11039	  /^X\(\/\).*/{
11040	    s//\1/
11041	    q
11042	  }
11043	  s/.*/./; q'`
11044      test -d "$as_dir" && break
11045    done
11046    test -z "$as_dirs" || eval "mkdir $as_dirs"
11047  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11048
11049
11050} # as_fn_mkdir_p
11051if mkdir -p . 2>/dev/null; then
11052  as_mkdir_p='mkdir -p "$as_dir"'
11053else
11054  test -d ./-p && rmdir ./-p
11055  as_mkdir_p=false
11056fi
11057
11058if test -x / >/dev/null 2>&1; then
11059  as_test_x='test -x'
11060else
11061  if ls -dL / >/dev/null 2>&1; then
11062    as_ls_L_option=L
11063  else
11064    as_ls_L_option=
11065  fi
11066  as_test_x='
11067    eval sh -c '\''
11068      if test -d "$1"; then
11069	test -d "$1/.";
11070      else
11071	case $1 in #(
11072	-*)set "./$1";;
11073	esac;
11074	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11075	???[sx]*):;;*)false;;esac;fi
11076    '\'' sh
11077  '
11078fi
11079as_executable_p=$as_test_x
11080
11081# Sed expression to map a string onto a valid CPP name.
11082as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11083
11084# Sed expression to map a string onto a valid variable name.
11085as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11086
11087
11088exec 6>&1
11089## ----------------------------------- ##
11090## Main body of $CONFIG_STATUS script. ##
11091## ----------------------------------- ##
11092_ASEOF
11093test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11094
11095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11096# Save the log message, to keep $0 and so on meaningful, and to
11097# report actual input values of CONFIG_FILES etc. instead of their
11098# values after options handling.
11099ac_log="
11100This file was extended by editres $as_me 1.0.6, which was
11101generated by GNU Autoconf 2.68.  Invocation command line was
11102
11103  CONFIG_FILES    = $CONFIG_FILES
11104  CONFIG_HEADERS  = $CONFIG_HEADERS
11105  CONFIG_LINKS    = $CONFIG_LINKS
11106  CONFIG_COMMANDS = $CONFIG_COMMANDS
11107  $ $0 $@
11108
11109on `(hostname || uname -n) 2>/dev/null | sed 1q`
11110"
11111
11112_ACEOF
11113
11114case $ac_config_files in *"
11115"*) set x $ac_config_files; shift; ac_config_files=$*;;
11116esac
11117
11118case $ac_config_headers in *"
11119"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11120esac
11121
11122
11123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11124# Files that config.status was made for.
11125config_files="$ac_config_files"
11126config_headers="$ac_config_headers"
11127config_commands="$ac_config_commands"
11128
11129_ACEOF
11130
11131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11132ac_cs_usage="\
11133\`$as_me' instantiates files and other configuration actions
11134from templates according to the current configuration.  Unless the files
11135and actions are specified as TAGs, all are instantiated by default.
11136
11137Usage: $0 [OPTION]... [TAG]...
11138
11139  -h, --help       print this help, then exit
11140  -V, --version    print version number and configuration settings, then exit
11141      --config     print configuration, then exit
11142  -q, --quiet, --silent
11143                   do not print progress messages
11144  -d, --debug      don't remove temporary files
11145      --recheck    update $as_me by reconfiguring in the same conditions
11146      --file=FILE[:TEMPLATE]
11147                   instantiate the configuration file FILE
11148      --header=FILE[:TEMPLATE]
11149                   instantiate the configuration header FILE
11150
11151Configuration files:
11152$config_files
11153
11154Configuration headers:
11155$config_headers
11156
11157Configuration commands:
11158$config_commands
11159
11160Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11161
11162_ACEOF
11163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11164ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11165ac_cs_version="\\
11166editres config.status 1.0.6
11167configured by $0, generated by GNU Autoconf 2.68,
11168  with options \\"\$ac_cs_config\\"
11169
11170Copyright (C) 2010 Free Software Foundation, Inc.
11171This config.status script is free software; the Free Software Foundation
11172gives unlimited permission to copy, distribute and modify it."
11173
11174ac_pwd='$ac_pwd'
11175srcdir='$srcdir'
11176INSTALL='$INSTALL'
11177MKDIR_P='$MKDIR_P'
11178AWK='$AWK'
11179test -n "\$AWK" || AWK=awk
11180_ACEOF
11181
11182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11183# The default lists apply if the user does not specify any file.
11184ac_need_defaults=:
11185while test $# != 0
11186do
11187  case $1 in
11188  --*=?*)
11189    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11190    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11191    ac_shift=:
11192    ;;
11193  --*=)
11194    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11195    ac_optarg=
11196    ac_shift=:
11197    ;;
11198  *)
11199    ac_option=$1
11200    ac_optarg=$2
11201    ac_shift=shift
11202    ;;
11203  esac
11204
11205  case $ac_option in
11206  # Handling of the options.
11207  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11208    ac_cs_recheck=: ;;
11209  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11210    $as_echo "$ac_cs_version"; exit ;;
11211  --config | --confi | --conf | --con | --co | --c )
11212    $as_echo "$ac_cs_config"; exit ;;
11213  --debug | --debu | --deb | --de | --d | -d )
11214    debug=: ;;
11215  --file | --fil | --fi | --f )
11216    $ac_shift
11217    case $ac_optarg in
11218    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11219    '') as_fn_error $? "missing file argument" ;;
11220    esac
11221    as_fn_append CONFIG_FILES " '$ac_optarg'"
11222    ac_need_defaults=false;;
11223  --header | --heade | --head | --hea )
11224    $ac_shift
11225    case $ac_optarg in
11226    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11227    esac
11228    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11229    ac_need_defaults=false;;
11230  --he | --h)
11231    # Conflict between --help and --header
11232    as_fn_error $? "ambiguous option: \`$1'
11233Try \`$0 --help' for more information.";;
11234  --help | --hel | -h )
11235    $as_echo "$ac_cs_usage"; exit ;;
11236  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11237  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11238    ac_cs_silent=: ;;
11239
11240  # This is an error.
11241  -*) as_fn_error $? "unrecognized option: \`$1'
11242Try \`$0 --help' for more information." ;;
11243
11244  *) as_fn_append ac_config_targets " $1"
11245     ac_need_defaults=false ;;
11246
11247  esac
11248  shift
11249done
11250
11251ac_configure_extra_args=
11252
11253if $ac_cs_silent; then
11254  exec 6>/dev/null
11255  ac_configure_extra_args="$ac_configure_extra_args --silent"
11256fi
11257
11258_ACEOF
11259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11260if \$ac_cs_recheck; then
11261  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11262  shift
11263  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11264  CONFIG_SHELL='$SHELL'
11265  export CONFIG_SHELL
11266  exec "\$@"
11267fi
11268
11269_ACEOF
11270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11271exec 5>>config.log
11272{
11273  echo
11274  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11275## Running $as_me. ##
11276_ASBOX
11277  $as_echo "$ac_log"
11278} >&5
11279
11280_ACEOF
11281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11282#
11283# INIT-COMMANDS
11284#
11285AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11286
11287_ACEOF
11288
11289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11290
11291# Handling of arguments.
11292for ac_config_target in $ac_config_targets
11293do
11294  case $ac_config_target in
11295    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11296    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11297    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11298    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11299
11300  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11301  esac
11302done
11303
11304
11305# If the user did not use the arguments to specify the items to instantiate,
11306# then the envvar interface is used.  Set only those that are not.
11307# We use the long form for the default assignment because of an extremely
11308# bizarre bug on SunOS 4.1.3.
11309if $ac_need_defaults; then
11310  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11311  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11312  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11313fi
11314
11315# Have a temporary directory for convenience.  Make it in the build tree
11316# simply because there is no reason against having it here, and in addition,
11317# creating and moving files from /tmp can sometimes cause problems.
11318# Hook for its removal unless debugging.
11319# Note that there is a small window in which the directory will not be cleaned:
11320# after its creation but before its name has been assigned to `$tmp'.
11321$debug ||
11322{
11323  tmp= ac_tmp=
11324  trap 'exit_status=$?
11325  : "${ac_tmp:=$tmp}"
11326  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11327' 0
11328  trap 'as_fn_exit 1' 1 2 13 15
11329}
11330# Create a (secure) tmp directory for tmp files.
11331
11332{
11333  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11334  test -d "$tmp"
11335}  ||
11336{
11337  tmp=./conf$$-$RANDOM
11338  (umask 077 && mkdir "$tmp")
11339} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11340ac_tmp=$tmp
11341
11342# Set up the scripts for CONFIG_FILES section.
11343# No need to generate them if there are no CONFIG_FILES.
11344# This happens for instance with `./config.status config.h'.
11345if test -n "$CONFIG_FILES"; then
11346
11347
11348ac_cr=`echo X | tr X '\015'`
11349# On cygwin, bash can eat \r inside `` if the user requested igncr.
11350# But we know of no other shell where ac_cr would be empty at this
11351# point, so we can use a bashism as a fallback.
11352if test "x$ac_cr" = x; then
11353  eval ac_cr=\$\'\\r\'
11354fi
11355ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11356if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11357  ac_cs_awk_cr='\\r'
11358else
11359  ac_cs_awk_cr=$ac_cr
11360fi
11361
11362echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11363_ACEOF
11364
11365
11366{
11367  echo "cat >conf$$subs.awk <<_ACEOF" &&
11368  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11369  echo "_ACEOF"
11370} >conf$$subs.sh ||
11371  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11372ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11373ac_delim='%!_!# '
11374for ac_last_try in false false false false false :; do
11375  . ./conf$$subs.sh ||
11376    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11377
11378  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11379  if test $ac_delim_n = $ac_delim_num; then
11380    break
11381  elif $ac_last_try; then
11382    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11383  else
11384    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11385  fi
11386done
11387rm -f conf$$subs.sh
11388
11389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11390cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11391_ACEOF
11392sed -n '
11393h
11394s/^/S["/; s/!.*/"]=/
11395p
11396g
11397s/^[^!]*!//
11398:repl
11399t repl
11400s/'"$ac_delim"'$//
11401t delim
11402:nl
11403h
11404s/\(.\{148\}\)..*/\1/
11405t more1
11406s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11407p
11408n
11409b repl
11410:more1
11411s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11412p
11413g
11414s/.\{148\}//
11415t nl
11416:delim
11417h
11418s/\(.\{148\}\)..*/\1/
11419t more2
11420s/["\\]/\\&/g; s/^/"/; s/$/"/
11421p
11422b
11423:more2
11424s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11425p
11426g
11427s/.\{148\}//
11428t delim
11429' <conf$$subs.awk | sed '
11430/^[^""]/{
11431  N
11432  s/\n//
11433}
11434' >>$CONFIG_STATUS || ac_write_fail=1
11435rm -f conf$$subs.awk
11436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11437_ACAWK
11438cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11439  for (key in S) S_is_set[key] = 1
11440  FS = ""
11441
11442}
11443{
11444  line = $ 0
11445  nfields = split(line, field, "@")
11446  substed = 0
11447  len = length(field[1])
11448  for (i = 2; i < nfields; i++) {
11449    key = field[i]
11450    keylen = length(key)
11451    if (S_is_set[key]) {
11452      value = S[key]
11453      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11454      len += length(value) + length(field[++i])
11455      substed = 1
11456    } else
11457      len += 1 + keylen
11458  }
11459
11460  print line
11461}
11462
11463_ACAWK
11464_ACEOF
11465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11466if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11467  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11468else
11469  cat
11470fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11471  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11472_ACEOF
11473
11474# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11475# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11476# trailing colons and then remove the whole line if VPATH becomes empty
11477# (actually we leave an empty line to preserve line numbers).
11478if test "x$srcdir" = x.; then
11479  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11480h
11481s///
11482s/^/:/
11483s/[	 ]*$/:/
11484s/:\$(srcdir):/:/g
11485s/:\${srcdir}:/:/g
11486s/:@srcdir@:/:/g
11487s/^:*//
11488s/:*$//
11489x
11490s/\(=[	 ]*\).*/\1/
11491G
11492s/\n//
11493s/^[^=]*=[	 ]*$//
11494}'
11495fi
11496
11497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11498fi # test -n "$CONFIG_FILES"
11499
11500# Set up the scripts for CONFIG_HEADERS section.
11501# No need to generate them if there are no CONFIG_HEADERS.
11502# This happens for instance with `./config.status Makefile'.
11503if test -n "$CONFIG_HEADERS"; then
11504cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11505BEGIN {
11506_ACEOF
11507
11508# Transform confdefs.h into an awk script `defines.awk', embedded as
11509# here-document in config.status, that substitutes the proper values into
11510# config.h.in to produce config.h.
11511
11512# Create a delimiter string that does not exist in confdefs.h, to ease
11513# handling of long lines.
11514ac_delim='%!_!# '
11515for ac_last_try in false false :; do
11516  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11517  if test -z "$ac_tt"; then
11518    break
11519  elif $ac_last_try; then
11520    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11521  else
11522    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11523  fi
11524done
11525
11526# For the awk script, D is an array of macro values keyed by name,
11527# likewise P contains macro parameters if any.  Preserve backslash
11528# newline sequences.
11529
11530ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11531sed -n '
11532s/.\{148\}/&'"$ac_delim"'/g
11533t rset
11534:rset
11535s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11536t def
11537d
11538:def
11539s/\\$//
11540t bsnl
11541s/["\\]/\\&/g
11542s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11543D["\1"]=" \3"/p
11544s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11545d
11546:bsnl
11547s/["\\]/\\&/g
11548s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11549D["\1"]=" \3\\\\\\n"\\/p
11550t cont
11551s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11552t cont
11553d
11554:cont
11555n
11556s/.\{148\}/&'"$ac_delim"'/g
11557t clear
11558:clear
11559s/\\$//
11560t bsnlc
11561s/["\\]/\\&/g; s/^/"/; s/$/"/p
11562d
11563:bsnlc
11564s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11565b cont
11566' <confdefs.h | sed '
11567s/'"$ac_delim"'/"\\\
11568"/g' >>$CONFIG_STATUS || ac_write_fail=1
11569
11570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11571  for (key in D) D_is_set[key] = 1
11572  FS = ""
11573}
11574/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11575  line = \$ 0
11576  split(line, arg, " ")
11577  if (arg[1] == "#") {
11578    defundef = arg[2]
11579    mac1 = arg[3]
11580  } else {
11581    defundef = substr(arg[1], 2)
11582    mac1 = arg[2]
11583  }
11584  split(mac1, mac2, "(") #)
11585  macro = mac2[1]
11586  prefix = substr(line, 1, index(line, defundef) - 1)
11587  if (D_is_set[macro]) {
11588    # Preserve the white space surrounding the "#".
11589    print prefix "define", macro P[macro] D[macro]
11590    next
11591  } else {
11592    # Replace #undef with comments.  This is necessary, for example,
11593    # in the case of _POSIX_SOURCE, which is predefined and required
11594    # on some systems where configure will not decide to define it.
11595    if (defundef == "undef") {
11596      print "/*", prefix defundef, macro, "*/"
11597      next
11598    }
11599  }
11600}
11601{ print }
11602_ACAWK
11603_ACEOF
11604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11605  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11606fi # test -n "$CONFIG_HEADERS"
11607
11608
11609eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11610shift
11611for ac_tag
11612do
11613  case $ac_tag in
11614  :[FHLC]) ac_mode=$ac_tag; continue;;
11615  esac
11616  case $ac_mode$ac_tag in
11617  :[FHL]*:*);;
11618  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11619  :[FH]-) ac_tag=-:-;;
11620  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11621  esac
11622  ac_save_IFS=$IFS
11623  IFS=:
11624  set x $ac_tag
11625  IFS=$ac_save_IFS
11626  shift
11627  ac_file=$1
11628  shift
11629
11630  case $ac_mode in
11631  :L) ac_source=$1;;
11632  :[FH])
11633    ac_file_inputs=
11634    for ac_f
11635    do
11636      case $ac_f in
11637      -) ac_f="$ac_tmp/stdin";;
11638      *) # Look for the file first in the build tree, then in the source tree
11639	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11640	 # because $ac_f cannot contain `:'.
11641	 test -f "$ac_f" ||
11642	   case $ac_f in
11643	   [\\/$]*) false;;
11644	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11645	   esac ||
11646	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11647      esac
11648      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11649      as_fn_append ac_file_inputs " '$ac_f'"
11650    done
11651
11652    # Let's still pretend it is `configure' which instantiates (i.e., don't
11653    # use $as_me), people would be surprised to read:
11654    #    /* config.h.  Generated by config.status.  */
11655    configure_input='Generated from '`
11656	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11657	`' by configure.'
11658    if test x"$ac_file" != x-; then
11659      configure_input="$ac_file.  $configure_input"
11660      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11661$as_echo "$as_me: creating $ac_file" >&6;}
11662    fi
11663    # Neutralize special characters interpreted by sed in replacement strings.
11664    case $configure_input in #(
11665    *\&* | *\|* | *\\* )
11666       ac_sed_conf_input=`$as_echo "$configure_input" |
11667       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11668    *) ac_sed_conf_input=$configure_input;;
11669    esac
11670
11671    case $ac_tag in
11672    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11673      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11674    esac
11675    ;;
11676  esac
11677
11678  ac_dir=`$as_dirname -- "$ac_file" ||
11679$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11680	 X"$ac_file" : 'X\(//\)[^/]' \| \
11681	 X"$ac_file" : 'X\(//\)$' \| \
11682	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11683$as_echo X"$ac_file" |
11684    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11685	    s//\1/
11686	    q
11687	  }
11688	  /^X\(\/\/\)[^/].*/{
11689	    s//\1/
11690	    q
11691	  }
11692	  /^X\(\/\/\)$/{
11693	    s//\1/
11694	    q
11695	  }
11696	  /^X\(\/\).*/{
11697	    s//\1/
11698	    q
11699	  }
11700	  s/.*/./; q'`
11701  as_dir="$ac_dir"; as_fn_mkdir_p
11702  ac_builddir=.
11703
11704case "$ac_dir" in
11705.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11706*)
11707  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11708  # A ".." for each directory in $ac_dir_suffix.
11709  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11710  case $ac_top_builddir_sub in
11711  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11712  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11713  esac ;;
11714esac
11715ac_abs_top_builddir=$ac_pwd
11716ac_abs_builddir=$ac_pwd$ac_dir_suffix
11717# for backward compatibility:
11718ac_top_builddir=$ac_top_build_prefix
11719
11720case $srcdir in
11721  .)  # We are building in place.
11722    ac_srcdir=.
11723    ac_top_srcdir=$ac_top_builddir_sub
11724    ac_abs_top_srcdir=$ac_pwd ;;
11725  [\\/]* | ?:[\\/]* )  # Absolute name.
11726    ac_srcdir=$srcdir$ac_dir_suffix;
11727    ac_top_srcdir=$srcdir
11728    ac_abs_top_srcdir=$srcdir ;;
11729  *) # Relative name.
11730    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11731    ac_top_srcdir=$ac_top_build_prefix$srcdir
11732    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11733esac
11734ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11735
11736
11737  case $ac_mode in
11738  :F)
11739  #
11740  # CONFIG_FILE
11741  #
11742
11743  case $INSTALL in
11744  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11745  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11746  esac
11747  ac_MKDIR_P=$MKDIR_P
11748  case $MKDIR_P in
11749  [\\/$]* | ?:[\\/]* ) ;;
11750  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11751  esac
11752_ACEOF
11753
11754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11755# If the template does not know about datarootdir, expand it.
11756# FIXME: This hack should be removed a few years after 2.60.
11757ac_datarootdir_hack=; ac_datarootdir_seen=
11758ac_sed_dataroot='
11759/datarootdir/ {
11760  p
11761  q
11762}
11763/@datadir@/p
11764/@docdir@/p
11765/@infodir@/p
11766/@localedir@/p
11767/@mandir@/p'
11768case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11769*datarootdir*) ac_datarootdir_seen=yes;;
11770*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11771  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11772$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11773_ACEOF
11774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11775  ac_datarootdir_hack='
11776  s&@datadir@&$datadir&g
11777  s&@docdir@&$docdir&g
11778  s&@infodir@&$infodir&g
11779  s&@localedir@&$localedir&g
11780  s&@mandir@&$mandir&g
11781  s&\\\${datarootdir}&$datarootdir&g' ;;
11782esac
11783_ACEOF
11784
11785# Neutralize VPATH when `$srcdir' = `.'.
11786# Shell code in configure.ac might set extrasub.
11787# FIXME: do we really want to maintain this feature?
11788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11789ac_sed_extra="$ac_vpsub
11790$extrasub
11791_ACEOF
11792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11793:t
11794/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11795s|@configure_input@|$ac_sed_conf_input|;t t
11796s&@top_builddir@&$ac_top_builddir_sub&;t t
11797s&@top_build_prefix@&$ac_top_build_prefix&;t t
11798s&@srcdir@&$ac_srcdir&;t t
11799s&@abs_srcdir@&$ac_abs_srcdir&;t t
11800s&@top_srcdir@&$ac_top_srcdir&;t t
11801s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11802s&@builddir@&$ac_builddir&;t t
11803s&@abs_builddir@&$ac_abs_builddir&;t t
11804s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11805s&@INSTALL@&$ac_INSTALL&;t t
11806s&@MKDIR_P@&$ac_MKDIR_P&;t t
11807$ac_datarootdir_hack
11808"
11809eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11810  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11811
11812test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11813  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11814  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11815      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11816  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11817which seems to be undefined.  Please make sure it is defined" >&5
11818$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11819which seems to be undefined.  Please make sure it is defined" >&2;}
11820
11821  rm -f "$ac_tmp/stdin"
11822  case $ac_file in
11823  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11824  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11825  esac \
11826  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11827 ;;
11828  :H)
11829  #
11830  # CONFIG_HEADER
11831  #
11832  if test x"$ac_file" != x-; then
11833    {
11834      $as_echo "/* $configure_input  */" \
11835      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11836    } >"$ac_tmp/config.h" \
11837      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11838    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11839      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11840$as_echo "$as_me: $ac_file is unchanged" >&6;}
11841    else
11842      rm -f "$ac_file"
11843      mv "$ac_tmp/config.h" "$ac_file" \
11844	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11845    fi
11846  else
11847    $as_echo "/* $configure_input  */" \
11848      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11849      || as_fn_error $? "could not create -" "$LINENO" 5
11850  fi
11851# Compute "$ac_file"'s index in $config_headers.
11852_am_arg="$ac_file"
11853_am_stamp_count=1
11854for _am_header in $config_headers :; do
11855  case $_am_header in
11856    $_am_arg | $_am_arg:* )
11857      break ;;
11858    * )
11859      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11860  esac
11861done
11862echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11863$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11864	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11865	 X"$_am_arg" : 'X\(//\)$' \| \
11866	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11867$as_echo X"$_am_arg" |
11868    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11869	    s//\1/
11870	    q
11871	  }
11872	  /^X\(\/\/\)[^/].*/{
11873	    s//\1/
11874	    q
11875	  }
11876	  /^X\(\/\/\)$/{
11877	    s//\1/
11878	    q
11879	  }
11880	  /^X\(\/\).*/{
11881	    s//\1/
11882	    q
11883	  }
11884	  s/.*/./; q'`/stamp-h$_am_stamp_count
11885 ;;
11886
11887  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11888$as_echo "$as_me: executing $ac_file commands" >&6;}
11889 ;;
11890  esac
11891
11892
11893  case $ac_file$ac_mode in
11894    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11895  # Autoconf 2.62 quotes --file arguments for eval, but not when files
11896  # are listed without --file.  Let's play safe and only enable the eval
11897  # if we detect the quoting.
11898  case $CONFIG_FILES in
11899  *\'*) eval set x "$CONFIG_FILES" ;;
11900  *)   set x $CONFIG_FILES ;;
11901  esac
11902  shift
11903  for mf
11904  do
11905    # Strip MF so we end up with the name of the file.
11906    mf=`echo "$mf" | sed -e 's/:.*$//'`
11907    # Check whether this is an Automake generated Makefile or not.
11908    # We used to match only the files named `Makefile.in', but
11909    # some people rename them; so instead we look at the file content.
11910    # Grep'ing the first line is not enough: some people post-process
11911    # each Makefile.in and add a new line on top of each file to say so.
11912    # Grep'ing the whole file is not good either: AIX grep has a line
11913    # limit of 2048, but all sed's we know have understand at least 4000.
11914    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11915      dirpart=`$as_dirname -- "$mf" ||
11916$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11917	 X"$mf" : 'X\(//\)[^/]' \| \
11918	 X"$mf" : 'X\(//\)$' \| \
11919	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11920$as_echo X"$mf" |
11921    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11922	    s//\1/
11923	    q
11924	  }
11925	  /^X\(\/\/\)[^/].*/{
11926	    s//\1/
11927	    q
11928	  }
11929	  /^X\(\/\/\)$/{
11930	    s//\1/
11931	    q
11932	  }
11933	  /^X\(\/\).*/{
11934	    s//\1/
11935	    q
11936	  }
11937	  s/.*/./; q'`
11938    else
11939      continue
11940    fi
11941    # Extract the definition of DEPDIR, am__include, and am__quote
11942    # from the Makefile without running `make'.
11943    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11944    test -z "$DEPDIR" && continue
11945    am__include=`sed -n 's/^am__include = //p' < "$mf"`
11946    test -z "am__include" && continue
11947    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11948    # When using ansi2knr, U may be empty or an underscore; expand it
11949    U=`sed -n 's/^U = //p' < "$mf"`
11950    # Find all dependency output files, they are included files with
11951    # $(DEPDIR) in their names.  We invoke sed twice because it is the
11952    # simplest approach to changing $(DEPDIR) to its actual value in the
11953    # expansion.
11954    for file in `sed -n "
11955      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11956	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11957      # Make sure the directory exists.
11958      test -f "$dirpart/$file" && continue
11959      fdir=`$as_dirname -- "$file" ||
11960$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11961	 X"$file" : 'X\(//\)[^/]' \| \
11962	 X"$file" : 'X\(//\)$' \| \
11963	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11964$as_echo X"$file" |
11965    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11966	    s//\1/
11967	    q
11968	  }
11969	  /^X\(\/\/\)[^/].*/{
11970	    s//\1/
11971	    q
11972	  }
11973	  /^X\(\/\/\)$/{
11974	    s//\1/
11975	    q
11976	  }
11977	  /^X\(\/\).*/{
11978	    s//\1/
11979	    q
11980	  }
11981	  s/.*/./; q'`
11982      as_dir=$dirpart/$fdir; as_fn_mkdir_p
11983      # echo "creating $dirpart/$file"
11984      echo '# dummy' > "$dirpart/$file"
11985    done
11986  done
11987}
11988 ;;
11989
11990  esac
11991done # for ac_tag
11992
11993
11994as_fn_exit 0
11995_ACEOF
11996ac_clean_files=$ac_clean_files_save
11997
11998test $ac_write_fail = 0 ||
11999  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12000
12001
12002# configure is writing to config.log, and then calls config.status.
12003# config.status does its own redirection, appending to config.log.
12004# Unfortunately, on DOS this fails, as config.log is still kept open
12005# by configure, so config.status won't be able to write to it; its
12006# output is simply discarded.  So we exec the FD to /dev/null,
12007# effectively closing config.log, so it can be properly (re)opened and
12008# appended to by config.status.  When coming back to configure, we
12009# need to make the FD available again.
12010if test "$no_create" != yes; then
12011  ac_cs_success=:
12012  ac_config_status_args=
12013  test "$silent" = yes &&
12014    ac_config_status_args="$ac_config_status_args --quiet"
12015  exec 5>/dev/null
12016  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12017  exec 5>>config.log
12018  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12019  # would make configure fail if this is the last instruction.
12020  $ac_cs_success || as_fn_exit 1
12021fi
12022if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12023  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12024$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12025fi
12026
12027