configure revision 6758a055
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xvidtune 1.0.3.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='xvidtune'
563PACKAGE_TARNAME='xvidtune'
564PACKAGE_VERSION='1.0.3'
565PACKAGE_STRING='xvidtune 1.0.3'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569ac_unique_file="Makefile.am"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584#  include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589#  include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_subst_vars='am__EXEEXT_FALSE
607am__EXEEXT_TRUE
608LTLIBOBJS
609LIBOBJS
610appdefaultdir
611XVIDTUNE_LIBS
612XVIDTUNE_CFLAGS
613AM_BACKSLASH
614AM_DEFAULT_VERBOSITY
615MAN_SUBSTS
616XORG_MAN_PAGE
617ADMIN_MAN_DIR
618DRIVER_MAN_DIR
619MISC_MAN_DIR
620FILE_MAN_DIR
621LIB_MAN_DIR
622APP_MAN_DIR
623ADMIN_MAN_SUFFIX
624DRIVER_MAN_SUFFIX
625MISC_MAN_SUFFIX
626FILE_MAN_SUFFIX
627LIB_MAN_SUFFIX
628APP_MAN_SUFFIX
629SED
630host_os
631host_vendor
632host_cpu
633host
634build_os
635build_vendor
636build_cpu
637build
638INSTALL_CMD
639PKG_CONFIG
640CHANGELOG_CMD
641STRICT_CFLAGS
642CWARNFLAGS
643BASE_CFLAGS
644EGREP
645GREP
646CPP
647am__fastdepCC_FALSE
648am__fastdepCC_TRUE
649CCDEPMODE
650am__nodep
651AMDEPBACKSLASH
652AMDEP_FALSE
653AMDEP_TRUE
654am__quote
655am__include
656DEPDIR
657OBJEXT
658EXEEXT
659ac_ct_CC
660CPPFLAGS
661LDFLAGS
662CFLAGS
663CC
664MAINT
665MAINTAINER_MODE_FALSE
666MAINTAINER_MODE_TRUE
667am__untar
668am__tar
669AMTAR
670am__leading_dot
671SET_MAKE
672AWK
673mkdir_p
674MKDIR_P
675INSTALL_STRIP_PROGRAM
676STRIP
677install_sh
678MAKEINFO
679AUTOHEADER
680AUTOMAKE
681AUTOCONF
682ACLOCAL
683VERSION
684PACKAGE
685CYGPATH_W
686am__isrc
687INSTALL_DATA
688INSTALL_SCRIPT
689INSTALL_PROGRAM
690target_alias
691host_alias
692build_alias
693LIBS
694ECHO_T
695ECHO_N
696ECHO_C
697DEFS
698mandir
699localedir
700libdir
701psdir
702pdfdir
703dvidir
704htmldir
705infodir
706docdir
707oldincludedir
708includedir
709localstatedir
710sharedstatedir
711sysconfdir
712datadir
713datarootdir
714libexecdir
715sbindir
716bindir
717program_transform_name
718prefix
719exec_prefix
720PACKAGE_URL
721PACKAGE_BUGREPORT
722PACKAGE_STRING
723PACKAGE_VERSION
724PACKAGE_TARNAME
725PACKAGE_NAME
726PATH_SEPARATOR
727SHELL'
728ac_subst_files=''
729ac_user_opts='
730enable_option_checking
731enable_maintainer_mode
732enable_dependency_tracking
733enable_selective_werror
734enable_strict_compilation
735enable_silent_rules
736with_appdefaultdir
737'
738      ac_precious_vars='build_alias
739host_alias
740target_alias
741CC
742CFLAGS
743LDFLAGS
744LIBS
745CPPFLAGS
746CPP
747PKG_CONFIG
748XVIDTUNE_CFLAGS
749XVIDTUNE_LIBS'
750
751
752# Initialize some variables set by options.
753ac_init_help=
754ac_init_version=false
755ac_unrecognized_opts=
756ac_unrecognized_sep=
757# The variables have the same names as the options, with
758# dashes changed to underlines.
759cache_file=/dev/null
760exec_prefix=NONE
761no_create=
762no_recursion=
763prefix=NONE
764program_prefix=NONE
765program_suffix=NONE
766program_transform_name=s,x,x,
767silent=
768site=
769srcdir=
770verbose=
771x_includes=NONE
772x_libraries=NONE
773
774# Installation directory options.
775# These are left unexpanded so users can "make install exec_prefix=/foo"
776# and all the variables that are supposed to be based on exec_prefix
777# by default will actually change.
778# Use braces instead of parens because sh, perl, etc. also accept them.
779# (The list follows the same order as the GNU Coding Standards.)
780bindir='${exec_prefix}/bin'
781sbindir='${exec_prefix}/sbin'
782libexecdir='${exec_prefix}/libexec'
783datarootdir='${prefix}/share'
784datadir='${datarootdir}'
785sysconfdir='${prefix}/etc'
786sharedstatedir='${prefix}/com'
787localstatedir='${prefix}/var'
788includedir='${prefix}/include'
789oldincludedir='/usr/include'
790docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791infodir='${datarootdir}/info'
792htmldir='${docdir}'
793dvidir='${docdir}'
794pdfdir='${docdir}'
795psdir='${docdir}'
796libdir='${exec_prefix}/lib'
797localedir='${datarootdir}/locale'
798mandir='${datarootdir}/man'
799
800ac_prev=
801ac_dashdash=
802for ac_option
803do
804  # If the previous option needs an argument, assign it.
805  if test -n "$ac_prev"; then
806    eval $ac_prev=\$ac_option
807    ac_prev=
808    continue
809  fi
810
811  case $ac_option in
812  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813  *=)   ac_optarg= ;;
814  *)    ac_optarg=yes ;;
815  esac
816
817  # Accept the important Cygnus configure options, so we can diagnose typos.
818
819  case $ac_dashdash$ac_option in
820  --)
821    ac_dashdash=yes ;;
822
823  -bindir | --bindir | --bindi | --bind | --bin | --bi)
824    ac_prev=bindir ;;
825  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826    bindir=$ac_optarg ;;
827
828  -build | --build | --buil | --bui | --bu)
829    ac_prev=build_alias ;;
830  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831    build_alias=$ac_optarg ;;
832
833  -cache-file | --cache-file | --cache-fil | --cache-fi \
834  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835    ac_prev=cache_file ;;
836  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838    cache_file=$ac_optarg ;;
839
840  --config-cache | -C)
841    cache_file=config.cache ;;
842
843  -datadir | --datadir | --datadi | --datad)
844    ac_prev=datadir ;;
845  -datadir=* | --datadir=* | --datadi=* | --datad=*)
846    datadir=$ac_optarg ;;
847
848  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849  | --dataroo | --dataro | --datar)
850    ac_prev=datarootdir ;;
851  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853    datarootdir=$ac_optarg ;;
854
855  -disable-* | --disable-*)
856    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857    # Reject names that are not valid shell variable names.
858    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859      as_fn_error $? "invalid feature name: $ac_useropt"
860    ac_useropt_orig=$ac_useropt
861    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862    case $ac_user_opts in
863      *"
864"enable_$ac_useropt"
865"*) ;;
866      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867	 ac_unrecognized_sep=', ';;
868    esac
869    eval enable_$ac_useropt=no ;;
870
871  -docdir | --docdir | --docdi | --doc | --do)
872    ac_prev=docdir ;;
873  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874    docdir=$ac_optarg ;;
875
876  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877    ac_prev=dvidir ;;
878  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879    dvidir=$ac_optarg ;;
880
881  -enable-* | --enable-*)
882    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883    # Reject names that are not valid shell variable names.
884    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885      as_fn_error $? "invalid feature name: $ac_useropt"
886    ac_useropt_orig=$ac_useropt
887    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888    case $ac_user_opts in
889      *"
890"enable_$ac_useropt"
891"*) ;;
892      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893	 ac_unrecognized_sep=', ';;
894    esac
895    eval enable_$ac_useropt=\$ac_optarg ;;
896
897  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899  | --exec | --exe | --ex)
900    ac_prev=exec_prefix ;;
901  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903  | --exec=* | --exe=* | --ex=*)
904    exec_prefix=$ac_optarg ;;
905
906  -gas | --gas | --ga | --g)
907    # Obsolete; use --with-gas.
908    with_gas=yes ;;
909
910  -help | --help | --hel | --he | -h)
911    ac_init_help=long ;;
912  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913    ac_init_help=recursive ;;
914  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915    ac_init_help=short ;;
916
917  -host | --host | --hos | --ho)
918    ac_prev=host_alias ;;
919  -host=* | --host=* | --hos=* | --ho=*)
920    host_alias=$ac_optarg ;;
921
922  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923    ac_prev=htmldir ;;
924  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925  | --ht=*)
926    htmldir=$ac_optarg ;;
927
928  -includedir | --includedir | --includedi | --included | --include \
929  | --includ | --inclu | --incl | --inc)
930    ac_prev=includedir ;;
931  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932  | --includ=* | --inclu=* | --incl=* | --inc=*)
933    includedir=$ac_optarg ;;
934
935  -infodir | --infodir | --infodi | --infod | --info | --inf)
936    ac_prev=infodir ;;
937  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938    infodir=$ac_optarg ;;
939
940  -libdir | --libdir | --libdi | --libd)
941    ac_prev=libdir ;;
942  -libdir=* | --libdir=* | --libdi=* | --libd=*)
943    libdir=$ac_optarg ;;
944
945  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946  | --libexe | --libex | --libe)
947    ac_prev=libexecdir ;;
948  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949  | --libexe=* | --libex=* | --libe=*)
950    libexecdir=$ac_optarg ;;
951
952  -localedir | --localedir | --localedi | --localed | --locale)
953    ac_prev=localedir ;;
954  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955    localedir=$ac_optarg ;;
956
957  -localstatedir | --localstatedir | --localstatedi | --localstated \
958  | --localstate | --localstat | --localsta | --localst | --locals)
959    ac_prev=localstatedir ;;
960  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962    localstatedir=$ac_optarg ;;
963
964  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965    ac_prev=mandir ;;
966  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967    mandir=$ac_optarg ;;
968
969  -nfp | --nfp | --nf)
970    # Obsolete; use --without-fp.
971    with_fp=no ;;
972
973  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974  | --no-cr | --no-c | -n)
975    no_create=yes ;;
976
977  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979    no_recursion=yes ;;
980
981  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983  | --oldin | --oldi | --old | --ol | --o)
984    ac_prev=oldincludedir ;;
985  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988    oldincludedir=$ac_optarg ;;
989
990  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991    ac_prev=prefix ;;
992  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993    prefix=$ac_optarg ;;
994
995  -program-prefix | --program-prefix | --program-prefi | --program-pref \
996  | --program-pre | --program-pr | --program-p)
997    ac_prev=program_prefix ;;
998  -program-prefix=* | --program-prefix=* | --program-prefi=* \
999  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000    program_prefix=$ac_optarg ;;
1001
1002  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003  | --program-suf | --program-su | --program-s)
1004    ac_prev=program_suffix ;;
1005  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007    program_suffix=$ac_optarg ;;
1008
1009  -program-transform-name | --program-transform-name \
1010  | --program-transform-nam | --program-transform-na \
1011  | --program-transform-n | --program-transform- \
1012  | --program-transform | --program-transfor \
1013  | --program-transfo | --program-transf \
1014  | --program-trans | --program-tran \
1015  | --progr-tra | --program-tr | --program-t)
1016    ac_prev=program_transform_name ;;
1017  -program-transform-name=* | --program-transform-name=* \
1018  | --program-transform-nam=* | --program-transform-na=* \
1019  | --program-transform-n=* | --program-transform-=* \
1020  | --program-transform=* | --program-transfor=* \
1021  | --program-transfo=* | --program-transf=* \
1022  | --program-trans=* | --program-tran=* \
1023  | --progr-tra=* | --program-tr=* | --program-t=*)
1024    program_transform_name=$ac_optarg ;;
1025
1026  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027    ac_prev=pdfdir ;;
1028  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029    pdfdir=$ac_optarg ;;
1030
1031  -psdir | --psdir | --psdi | --psd | --ps)
1032    ac_prev=psdir ;;
1033  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034    psdir=$ac_optarg ;;
1035
1036  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037  | -silent | --silent | --silen | --sile | --sil)
1038    silent=yes ;;
1039
1040  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041    ac_prev=sbindir ;;
1042  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043  | --sbi=* | --sb=*)
1044    sbindir=$ac_optarg ;;
1045
1046  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048  | --sharedst | --shareds | --shared | --share | --shar \
1049  | --sha | --sh)
1050    ac_prev=sharedstatedir ;;
1051  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054  | --sha=* | --sh=*)
1055    sharedstatedir=$ac_optarg ;;
1056
1057  -site | --site | --sit)
1058    ac_prev=site ;;
1059  -site=* | --site=* | --sit=*)
1060    site=$ac_optarg ;;
1061
1062  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063    ac_prev=srcdir ;;
1064  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065    srcdir=$ac_optarg ;;
1066
1067  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068  | --syscon | --sysco | --sysc | --sys | --sy)
1069    ac_prev=sysconfdir ;;
1070  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072    sysconfdir=$ac_optarg ;;
1073
1074  -target | --target | --targe | --targ | --tar | --ta | --t)
1075    ac_prev=target_alias ;;
1076  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077    target_alias=$ac_optarg ;;
1078
1079  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080    verbose=yes ;;
1081
1082  -version | --version | --versio | --versi | --vers | -V)
1083    ac_init_version=: ;;
1084
1085  -with-* | --with-*)
1086    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087    # Reject names that are not valid shell variable names.
1088    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089      as_fn_error $? "invalid package name: $ac_useropt"
1090    ac_useropt_orig=$ac_useropt
1091    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092    case $ac_user_opts in
1093      *"
1094"with_$ac_useropt"
1095"*) ;;
1096      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097	 ac_unrecognized_sep=', ';;
1098    esac
1099    eval with_$ac_useropt=\$ac_optarg ;;
1100
1101  -without-* | --without-*)
1102    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103    # Reject names that are not valid shell variable names.
1104    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105      as_fn_error $? "invalid package name: $ac_useropt"
1106    ac_useropt_orig=$ac_useropt
1107    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108    case $ac_user_opts in
1109      *"
1110"with_$ac_useropt"
1111"*) ;;
1112      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113	 ac_unrecognized_sep=', ';;
1114    esac
1115    eval with_$ac_useropt=no ;;
1116
1117  --x)
1118    # Obsolete; use --with-x.
1119    with_x=yes ;;
1120
1121  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122  | --x-incl | --x-inc | --x-in | --x-i)
1123    ac_prev=x_includes ;;
1124  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126    x_includes=$ac_optarg ;;
1127
1128  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130    ac_prev=x_libraries ;;
1131  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133    x_libraries=$ac_optarg ;;
1134
1135  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1136Try \`$0 --help' for more information"
1137    ;;
1138
1139  *=*)
1140    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141    # Reject names that are not valid shell variable names.
1142    case $ac_envvar in #(
1143      '' | [0-9]* | *[!_$as_cr_alnum]* )
1144      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145    esac
1146    eval $ac_envvar=\$ac_optarg
1147    export $ac_envvar ;;
1148
1149  *)
1150    # FIXME: should be removed in autoconf 3.0.
1151    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1155    ;;
1156
1157  esac
1158done
1159
1160if test -n "$ac_prev"; then
1161  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162  as_fn_error $? "missing argument to $ac_option"
1163fi
1164
1165if test -n "$ac_unrecognized_opts"; then
1166  case $enable_option_checking in
1167    no) ;;
1168    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1169    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170  esac
1171fi
1172
1173# Check all directory arguments for consistency.
1174for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175		datadir sysconfdir sharedstatedir localstatedir includedir \
1176		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177		libdir localedir mandir
1178do
1179  eval ac_val=\$$ac_var
1180  # Remove trailing slashes.
1181  case $ac_val in
1182    */ )
1183      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184      eval $ac_var=\$ac_val;;
1185  esac
1186  # Be sure to have absolute directory names.
1187  case $ac_val in
1188    [\\/$]* | ?:[\\/]* )  continue;;
1189    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190  esac
1191  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1192done
1193
1194# There might be people who depend on the old broken behavior: `$host'
1195# used to hold the argument of --host etc.
1196# FIXME: To remove some day.
1197build=$build_alias
1198host=$host_alias
1199target=$target_alias
1200
1201# FIXME: To remove some day.
1202if test "x$host_alias" != x; then
1203  if test "x$build_alias" = x; then
1204    cross_compiling=maybe
1205    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1206    If a cross compiler is detected then cross compile mode will be used" >&2
1207  elif test "x$build_alias" != "x$host_alias"; then
1208    cross_compiling=yes
1209  fi
1210fi
1211
1212ac_tool_prefix=
1213test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214
1215test "$silent" = yes && exec 6>/dev/null
1216
1217
1218ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219ac_ls_di=`ls -di .` &&
1220ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221  as_fn_error $? "working directory cannot be determined"
1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223  as_fn_error $? "pwd does not report name of working directory"
1224
1225
1226# Find the source files, if location was not specified.
1227if test -z "$srcdir"; then
1228  ac_srcdir_defaulted=yes
1229  # Try the directory containing this script, then the parent directory.
1230  ac_confdir=`$as_dirname -- "$as_myself" ||
1231$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232	 X"$as_myself" : 'X\(//\)[^/]' \| \
1233	 X"$as_myself" : 'X\(//\)$' \| \
1234	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235$as_echo X"$as_myself" |
1236    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237	    s//\1/
1238	    q
1239	  }
1240	  /^X\(\/\/\)[^/].*/{
1241	    s//\1/
1242	    q
1243	  }
1244	  /^X\(\/\/\)$/{
1245	    s//\1/
1246	    q
1247	  }
1248	  /^X\(\/\).*/{
1249	    s//\1/
1250	    q
1251	  }
1252	  s/.*/./; q'`
1253  srcdir=$ac_confdir
1254  if test ! -r "$srcdir/$ac_unique_file"; then
1255    srcdir=..
1256  fi
1257else
1258  ac_srcdir_defaulted=no
1259fi
1260if test ! -r "$srcdir/$ac_unique_file"; then
1261  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1263fi
1264ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265ac_abs_confdir=`(
1266	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1267	pwd)`
1268# When building in place, set srcdir=.
1269if test "$ac_abs_confdir" = "$ac_pwd"; then
1270  srcdir=.
1271fi
1272# Remove unnecessary trailing slashes from srcdir.
1273# Double slashes in file names in object file debugging info
1274# mess up M-x gdb in Emacs.
1275case $srcdir in
1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277esac
1278for ac_var in $ac_precious_vars; do
1279  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280  eval ac_env_${ac_var}_value=\$${ac_var}
1281  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283done
1284
1285#
1286# Report the --help message.
1287#
1288if test "$ac_init_help" = "long"; then
1289  # Omit some internal or obsolete options to make the list less imposing.
1290  # This message is too long to be a string in the A/UX 3.1 sh.
1291  cat <<_ACEOF
1292\`configure' configures xvidtune 1.0.3 to adapt to many kinds of systems.
1293
1294Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297VAR=VALUE.  See below for descriptions of some of the useful variables.
1298
1299Defaults for the options are specified in brackets.
1300
1301Configuration:
1302  -h, --help              display this help and exit
1303      --help=short        display options specific to this package
1304      --help=recursive    display the short help of all the included packages
1305  -V, --version           display version information and exit
1306  -q, --quiet, --silent   do not print \`checking ...' messages
1307      --cache-file=FILE   cache test results in FILE [disabled]
1308  -C, --config-cache      alias for \`--cache-file=config.cache'
1309  -n, --no-create         do not create output files
1310      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1311
1312Installation directories:
1313  --prefix=PREFIX         install architecture-independent files in PREFIX
1314                          [$ac_default_prefix]
1315  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1316                          [PREFIX]
1317
1318By default, \`make install' will install all the files in
1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1320an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321for instance \`--prefix=\$HOME'.
1322
1323For better control, use the options below.
1324
1325Fine tuning of the installation directories:
1326  --bindir=DIR            user executables [EPREFIX/bin]
1327  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1328  --libexecdir=DIR        program executables [EPREFIX/libexec]
1329  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1330  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1331  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1332  --libdir=DIR            object code libraries [EPREFIX/lib]
1333  --includedir=DIR        C header files [PREFIX/include]
1334  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1335  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1336  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1337  --infodir=DIR           info documentation [DATAROOTDIR/info]
1338  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1339  --mandir=DIR            man documentation [DATAROOTDIR/man]
1340  --docdir=DIR            documentation root [DATAROOTDIR/doc/xvidtune]
1341  --htmldir=DIR           html documentation [DOCDIR]
1342  --dvidir=DIR            dvi documentation [DOCDIR]
1343  --pdfdir=DIR            pdf documentation [DOCDIR]
1344  --psdir=DIR             ps documentation [DOCDIR]
1345_ACEOF
1346
1347  cat <<\_ACEOF
1348
1349Program names:
1350  --program-prefix=PREFIX            prepend PREFIX to installed program names
1351  --program-suffix=SUFFIX            append SUFFIX to installed program names
1352  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1353
1354System types:
1355  --build=BUILD     configure for building on BUILD [guessed]
1356  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1357_ACEOF
1358fi
1359
1360if test -n "$ac_init_help"; then
1361  case $ac_init_help in
1362     short | recursive ) echo "Configuration of xvidtune 1.0.3:";;
1363   esac
1364  cat <<\_ACEOF
1365
1366Optional Features:
1367  --disable-option-checking  ignore unrecognized --enable/--with options
1368  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1369  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1370  --enable-maintainer-mode  enable make rules and dependencies not useful
1371			  (and sometimes confusing) to the casual installer
1372  --disable-dependency-tracking  speeds up one-time build
1373  --enable-dependency-tracking   do not reject slow dependency extractors
1374  --disable-selective-werror
1375                          Turn off selective compiler errors. (default:
1376                          enabled)
1377  --enable-strict-compilation
1378                          Enable all warnings from compiler and make them
1379                          errors (default: disabled)
1380  --enable-silent-rules          less verbose build output (undo: `make V=1')
1381  --disable-silent-rules         verbose build output (undo: `make V=0')
1382
1383Optional Packages:
1384  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1385  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1386  --with-appdefaultdir=<pathname>
1387                          specify directory for app-defaults files (default is
1388                          autodetected)
1389
1390Some influential environment variables:
1391  CC          C compiler command
1392  CFLAGS      C compiler flags
1393  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1394              nonstandard directory <lib dir>
1395  LIBS        libraries to pass to the linker, e.g. -l<library>
1396  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1397              you have headers in a nonstandard directory <include dir>
1398  CPP         C preprocessor
1399  PKG_CONFIG  path to pkg-config utility
1400  XVIDTUNE_CFLAGS
1401              C compiler flags for XVIDTUNE, overriding pkg-config
1402  XVIDTUNE_LIBS
1403              linker flags for XVIDTUNE, overriding pkg-config
1404
1405Use these variables to override the choices made by `configure' or to help
1406it to find libraries and programs with nonstandard names/locations.
1407
1408Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1409_ACEOF
1410ac_status=$?
1411fi
1412
1413if test "$ac_init_help" = "recursive"; then
1414  # If there are subdirs, report their specific --help.
1415  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416    test -d "$ac_dir" ||
1417      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1418      continue
1419    ac_builddir=.
1420
1421case "$ac_dir" in
1422.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423*)
1424  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425  # A ".." for each directory in $ac_dir_suffix.
1426  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427  case $ac_top_builddir_sub in
1428  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430  esac ;;
1431esac
1432ac_abs_top_builddir=$ac_pwd
1433ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434# for backward compatibility:
1435ac_top_builddir=$ac_top_build_prefix
1436
1437case $srcdir in
1438  .)  # We are building in place.
1439    ac_srcdir=.
1440    ac_top_srcdir=$ac_top_builddir_sub
1441    ac_abs_top_srcdir=$ac_pwd ;;
1442  [\\/]* | ?:[\\/]* )  # Absolute name.
1443    ac_srcdir=$srcdir$ac_dir_suffix;
1444    ac_top_srcdir=$srcdir
1445    ac_abs_top_srcdir=$srcdir ;;
1446  *) # Relative name.
1447    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448    ac_top_srcdir=$ac_top_build_prefix$srcdir
1449    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450esac
1451ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452
1453    cd "$ac_dir" || { ac_status=$?; continue; }
1454    # Check for guested configure.
1455    if test -f "$ac_srcdir/configure.gnu"; then
1456      echo &&
1457      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458    elif test -f "$ac_srcdir/configure"; then
1459      echo &&
1460      $SHELL "$ac_srcdir/configure" --help=recursive
1461    else
1462      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463    fi || ac_status=$?
1464    cd "$ac_pwd" || { ac_status=$?; break; }
1465  done
1466fi
1467
1468test -n "$ac_init_help" && exit $ac_status
1469if $ac_init_version; then
1470  cat <<\_ACEOF
1471xvidtune configure 1.0.3
1472generated by GNU Autoconf 2.68
1473
1474Copyright (C) 2010 Free Software Foundation, Inc.
1475This configure script is free software; the Free Software Foundation
1476gives unlimited permission to copy, distribute and modify it.
1477_ACEOF
1478  exit
1479fi
1480
1481## ------------------------ ##
1482## Autoconf initialization. ##
1483## ------------------------ ##
1484
1485# ac_fn_c_try_compile LINENO
1486# --------------------------
1487# Try to compile conftest.$ac_ext, and return whether this succeeded.
1488ac_fn_c_try_compile ()
1489{
1490  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491  rm -f conftest.$ac_objext
1492  if { { ac_try="$ac_compile"
1493case "(($ac_try" in
1494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495  *) ac_try_echo=$ac_try;;
1496esac
1497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498$as_echo "$ac_try_echo"; } >&5
1499  (eval "$ac_compile") 2>conftest.err
1500  ac_status=$?
1501  if test -s conftest.err; then
1502    grep -v '^ *+' conftest.err >conftest.er1
1503    cat conftest.er1 >&5
1504    mv -f conftest.er1 conftest.err
1505  fi
1506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507  test $ac_status = 0; } && {
1508	 test -z "$ac_c_werror_flag" ||
1509	 test ! -s conftest.err
1510       } && test -s conftest.$ac_objext; then :
1511  ac_retval=0
1512else
1513  $as_echo "$as_me: failed program was:" >&5
1514sed 's/^/| /' conftest.$ac_ext >&5
1515
1516	ac_retval=1
1517fi
1518  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519  as_fn_set_status $ac_retval
1520
1521} # ac_fn_c_try_compile
1522
1523# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1524# ---------------------------------------------
1525# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1526# accordingly.
1527ac_fn_c_check_decl ()
1528{
1529  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530  as_decl_name=`echo $2|sed 's/ *(.*//'`
1531  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1533$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1534if eval \${$3+:} false; then :
1535  $as_echo_n "(cached) " >&6
1536else
1537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1538/* end confdefs.h.  */
1539$4
1540int
1541main ()
1542{
1543#ifndef $as_decl_name
1544#ifdef __cplusplus
1545  (void) $as_decl_use;
1546#else
1547  (void) $as_decl_name;
1548#endif
1549#endif
1550
1551  ;
1552  return 0;
1553}
1554_ACEOF
1555if ac_fn_c_try_compile "$LINENO"; then :
1556  eval "$3=yes"
1557else
1558  eval "$3=no"
1559fi
1560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1561fi
1562eval ac_res=\$$3
1563	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564$as_echo "$ac_res" >&6; }
1565  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566
1567} # ac_fn_c_check_decl
1568
1569# ac_fn_c_try_cpp LINENO
1570# ----------------------
1571# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_cpp ()
1573{
1574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575  if { { ac_try="$ac_cpp conftest.$ac_ext"
1576case "(($ac_try" in
1577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578  *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1583  ac_status=$?
1584  if test -s conftest.err; then
1585    grep -v '^ *+' conftest.err >conftest.er1
1586    cat conftest.er1 >&5
1587    mv -f conftest.er1 conftest.err
1588  fi
1589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590  test $ac_status = 0; } > conftest.i && {
1591	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1592	 test ! -s conftest.err
1593       }; then :
1594  ac_retval=0
1595else
1596  $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
1598
1599    ac_retval=1
1600fi
1601  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602  as_fn_set_status $ac_retval
1603
1604} # ac_fn_c_try_cpp
1605
1606# ac_fn_c_try_run LINENO
1607# ----------------------
1608# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1609# that executables *can* be run.
1610ac_fn_c_try_run ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  if { { ac_try="$ac_link"
1614case "(($ac_try" in
1615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616  *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620  (eval "$ac_link") 2>&5
1621  ac_status=$?
1622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1624  { { case "(($ac_try" in
1625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626  *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630  (eval "$ac_try") 2>&5
1631  ac_status=$?
1632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633  test $ac_status = 0; }; }; then :
1634  ac_retval=0
1635else
1636  $as_echo "$as_me: program exited with status $ac_status" >&5
1637       $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640       ac_retval=$ac_status
1641fi
1642  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_run
1647
1648# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649# -------------------------------------------------------
1650# Tests whether HEADER exists and can be compiled using the include files in
1651# INCLUDES, setting the cache variable VAR accordingly.
1652ac_fn_c_check_header_compile ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656$as_echo_n "checking for $2... " >&6; }
1657if eval \${$3+:} false; then :
1658  $as_echo_n "(cached) " >&6
1659else
1660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h.  */
1662$4
1663#include <$2>
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"; then :
1666  eval "$3=yes"
1667else
1668  eval "$3=no"
1669fi
1670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671fi
1672eval ac_res=\$$3
1673	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674$as_echo "$ac_res" >&6; }
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676
1677} # ac_fn_c_check_header_compile
1678
1679# ac_fn_c_try_link LINENO
1680# -----------------------
1681# Try to link conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_link ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  rm -f conftest.$ac_objext conftest$ac_exeext
1686  if { { ac_try="$ac_link"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_link") 2>conftest.err
1694  ac_status=$?
1695  if test -s conftest.err; then
1696    grep -v '^ *+' conftest.err >conftest.er1
1697    cat conftest.er1 >&5
1698    mv -f conftest.er1 conftest.err
1699  fi
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } && {
1702	 test -z "$ac_c_werror_flag" ||
1703	 test ! -s conftest.err
1704       } && test -s conftest$ac_exeext && {
1705	 test "$cross_compiling" = yes ||
1706	 $as_test_x conftest$ac_exeext
1707       }; then :
1708  ac_retval=0
1709else
1710  $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713	ac_retval=1
1714fi
1715  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717  # interfere with the next link command; also delete a directory that is
1718  # left behind by Apple's compiler.  We do this before executing the actions.
1719  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721  as_fn_set_status $ac_retval
1722
1723} # ac_fn_c_try_link
1724cat >config.log <<_ACEOF
1725This file contains any messages produced by compilers while
1726running configure, to aid debugging if configure makes a mistake.
1727
1728It was created by xvidtune $as_me 1.0.3, which was
1729generated by GNU Autoconf 2.68.  Invocation command line was
1730
1731  $ $0 $@
1732
1733_ACEOF
1734exec 5>>config.log
1735{
1736cat <<_ASUNAME
1737## --------- ##
1738## Platform. ##
1739## --------- ##
1740
1741hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745uname -v = `(uname -v) 2>/dev/null || echo unknown`
1746
1747/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1749
1750/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1751/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1752/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1754/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1755/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1756/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1757
1758_ASUNAME
1759
1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761for as_dir in $PATH
1762do
1763  IFS=$as_save_IFS
1764  test -z "$as_dir" && as_dir=.
1765    $as_echo "PATH: $as_dir"
1766  done
1767IFS=$as_save_IFS
1768
1769} >&5
1770
1771cat >&5 <<_ACEOF
1772
1773
1774## ----------- ##
1775## Core tests. ##
1776## ----------- ##
1777
1778_ACEOF
1779
1780
1781# Keep a trace of the command line.
1782# Strip out --no-create and --no-recursion so they do not pile up.
1783# Strip out --silent because we don't want to record it for future runs.
1784# Also quote any args containing shell meta-characters.
1785# Make two passes to allow for proper duplicate-argument suppression.
1786ac_configure_args=
1787ac_configure_args0=
1788ac_configure_args1=
1789ac_must_keep_next=false
1790for ac_pass in 1 2
1791do
1792  for ac_arg
1793  do
1794    case $ac_arg in
1795    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1796    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1797    | -silent | --silent | --silen | --sile | --sil)
1798      continue ;;
1799    *\'*)
1800      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1801    esac
1802    case $ac_pass in
1803    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1804    2)
1805      as_fn_append ac_configure_args1 " '$ac_arg'"
1806      if test $ac_must_keep_next = true; then
1807	ac_must_keep_next=false # Got value, back to normal.
1808      else
1809	case $ac_arg in
1810	  *=* | --config-cache | -C | -disable-* | --disable-* \
1811	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1812	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1813	  | -with-* | --with-* | -without-* | --without-* | --x)
1814	    case "$ac_configure_args0 " in
1815	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1816	    esac
1817	    ;;
1818	  -* ) ac_must_keep_next=true ;;
1819	esac
1820      fi
1821      as_fn_append ac_configure_args " '$ac_arg'"
1822      ;;
1823    esac
1824  done
1825done
1826{ ac_configure_args0=; unset ac_configure_args0;}
1827{ ac_configure_args1=; unset ac_configure_args1;}
1828
1829# When interrupted or exit'd, cleanup temporary files, and complete
1830# config.log.  We remove comments because anyway the quotes in there
1831# would cause problems or look ugly.
1832# WARNING: Use '\'' to represent an apostrophe within the trap.
1833# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1834trap 'exit_status=$?
1835  # Save into config.log some information that might help in debugging.
1836  {
1837    echo
1838
1839    $as_echo "## ---------------- ##
1840## Cache variables. ##
1841## ---------------- ##"
1842    echo
1843    # The following way of writing the cache mishandles newlines in values,
1844(
1845  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1846    eval ac_val=\$$ac_var
1847    case $ac_val in #(
1848    *${as_nl}*)
1849      case $ac_var in #(
1850      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1851$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1852      esac
1853      case $ac_var in #(
1854      _ | IFS | as_nl) ;; #(
1855      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1856      *) { eval $ac_var=; unset $ac_var;} ;;
1857      esac ;;
1858    esac
1859  done
1860  (set) 2>&1 |
1861    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1862    *${as_nl}ac_space=\ *)
1863      sed -n \
1864	"s/'\''/'\''\\\\'\'''\''/g;
1865	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1866      ;; #(
1867    *)
1868      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1869      ;;
1870    esac |
1871    sort
1872)
1873    echo
1874
1875    $as_echo "## ----------------- ##
1876## Output variables. ##
1877## ----------------- ##"
1878    echo
1879    for ac_var in $ac_subst_vars
1880    do
1881      eval ac_val=\$$ac_var
1882      case $ac_val in
1883      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884      esac
1885      $as_echo "$ac_var='\''$ac_val'\''"
1886    done | sort
1887    echo
1888
1889    if test -n "$ac_subst_files"; then
1890      $as_echo "## ------------------- ##
1891## File substitutions. ##
1892## ------------------- ##"
1893      echo
1894      for ac_var in $ac_subst_files
1895      do
1896	eval ac_val=\$$ac_var
1897	case $ac_val in
1898	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899	esac
1900	$as_echo "$ac_var='\''$ac_val'\''"
1901      done | sort
1902      echo
1903    fi
1904
1905    if test -s confdefs.h; then
1906      $as_echo "## ----------- ##
1907## confdefs.h. ##
1908## ----------- ##"
1909      echo
1910      cat confdefs.h
1911      echo
1912    fi
1913    test "$ac_signal" != 0 &&
1914      $as_echo "$as_me: caught signal $ac_signal"
1915    $as_echo "$as_me: exit $exit_status"
1916  } >&5
1917  rm -f core *.core core.conftest.* &&
1918    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1919    exit $exit_status
1920' 0
1921for ac_signal in 1 2 13 15; do
1922  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1923done
1924ac_signal=0
1925
1926# confdefs.h avoids OS command line length limits that DEFS can exceed.
1927rm -f -r conftest* confdefs.h
1928
1929$as_echo "/* confdefs.h */" > confdefs.h
1930
1931# Predefined preprocessor variables.
1932
1933cat >>confdefs.h <<_ACEOF
1934#define PACKAGE_NAME "$PACKAGE_NAME"
1935_ACEOF
1936
1937cat >>confdefs.h <<_ACEOF
1938#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1939_ACEOF
1940
1941cat >>confdefs.h <<_ACEOF
1942#define PACKAGE_VERSION "$PACKAGE_VERSION"
1943_ACEOF
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE_STRING "$PACKAGE_STRING"
1947_ACEOF
1948
1949cat >>confdefs.h <<_ACEOF
1950#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1951_ACEOF
1952
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_URL "$PACKAGE_URL"
1955_ACEOF
1956
1957
1958# Let the site file select an alternate cache file if it wants to.
1959# Prefer an explicitly selected file to automatically selected ones.
1960ac_site_file1=NONE
1961ac_site_file2=NONE
1962if test -n "$CONFIG_SITE"; then
1963  # We do not want a PATH search for config.site.
1964  case $CONFIG_SITE in #((
1965    -*)  ac_site_file1=./$CONFIG_SITE;;
1966    */*) ac_site_file1=$CONFIG_SITE;;
1967    *)   ac_site_file1=./$CONFIG_SITE;;
1968  esac
1969elif test "x$prefix" != xNONE; then
1970  ac_site_file1=$prefix/share/config.site
1971  ac_site_file2=$prefix/etc/config.site
1972else
1973  ac_site_file1=$ac_default_prefix/share/config.site
1974  ac_site_file2=$ac_default_prefix/etc/config.site
1975fi
1976for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1977do
1978  test "x$ac_site_file" = xNONE && continue
1979  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1980    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1981$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1982    sed 's/^/| /' "$ac_site_file" >&5
1983    . "$ac_site_file" \
1984      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1986as_fn_error $? "failed to load site script $ac_site_file
1987See \`config.log' for more details" "$LINENO" 5; }
1988  fi
1989done
1990
1991if test -r "$cache_file"; then
1992  # Some versions of bash will fail to source /dev/null (special files
1993  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1994  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1995    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1996$as_echo "$as_me: loading cache $cache_file" >&6;}
1997    case $cache_file in
1998      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1999      *)                      . "./$cache_file";;
2000    esac
2001  fi
2002else
2003  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2004$as_echo "$as_me: creating cache $cache_file" >&6;}
2005  >$cache_file
2006fi
2007
2008# Check that the precious variables saved in the cache have kept the same
2009# value.
2010ac_cache_corrupted=false
2011for ac_var in $ac_precious_vars; do
2012  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2013  eval ac_new_set=\$ac_env_${ac_var}_set
2014  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2015  eval ac_new_val=\$ac_env_${ac_var}_value
2016  case $ac_old_set,$ac_new_set in
2017    set,)
2018      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2019$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2020      ac_cache_corrupted=: ;;
2021    ,set)
2022      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2023$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2024      ac_cache_corrupted=: ;;
2025    ,);;
2026    *)
2027      if test "x$ac_old_val" != "x$ac_new_val"; then
2028	# differences in whitespace do not lead to failure.
2029	ac_old_val_w=`echo x $ac_old_val`
2030	ac_new_val_w=`echo x $ac_new_val`
2031	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2032	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2033$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2034	  ac_cache_corrupted=:
2035	else
2036	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2037$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2038	  eval $ac_var=\$ac_old_val
2039	fi
2040	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2041$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2042	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2043$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2044      fi;;
2045  esac
2046  # Pass precious variables to config.status.
2047  if test "$ac_new_set" = set; then
2048    case $ac_new_val in
2049    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2050    *) ac_arg=$ac_var=$ac_new_val ;;
2051    esac
2052    case " $ac_configure_args " in
2053      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2054      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2055    esac
2056  fi
2057done
2058if $ac_cache_corrupted; then
2059  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2061  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2062$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2063  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2064fi
2065## -------------------- ##
2066## Main body of script. ##
2067## -------------------- ##
2068
2069ac_ext=c
2070ac_cpp='$CPP $CPPFLAGS'
2071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073ac_compiler_gnu=$ac_cv_c_compiler_gnu
2074
2075
2076
2077ac_config_headers="$ac_config_headers config.h"
2078
2079
2080# Initialize Automake
2081am__api_version='1.11'
2082
2083ac_aux_dir=
2084for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2085  if test -f "$ac_dir/install-sh"; then
2086    ac_aux_dir=$ac_dir
2087    ac_install_sh="$ac_aux_dir/install-sh -c"
2088    break
2089  elif test -f "$ac_dir/install.sh"; then
2090    ac_aux_dir=$ac_dir
2091    ac_install_sh="$ac_aux_dir/install.sh -c"
2092    break
2093  elif test -f "$ac_dir/shtool"; then
2094    ac_aux_dir=$ac_dir
2095    ac_install_sh="$ac_aux_dir/shtool install -c"
2096    break
2097  fi
2098done
2099if test -z "$ac_aux_dir"; then
2100  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2101fi
2102
2103# These three variables are undocumented and unsupported,
2104# and are intended to be withdrawn in a future Autoconf release.
2105# They can cause serious problems if a builder's source tree is in a directory
2106# whose full name contains unusual characters.
2107ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2108ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2109ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2110
2111
2112# Find a good install program.  We prefer a C program (faster),
2113# so one script is as good as another.  But avoid the broken or
2114# incompatible versions:
2115# SysV /etc/install, /usr/sbin/install
2116# SunOS /usr/etc/install
2117# IRIX /sbin/install
2118# AIX /bin/install
2119# AmigaOS /C/install, which installs bootblocks on floppy discs
2120# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2121# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2122# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2123# OS/2's system install, which has a completely different semantic
2124# ./install, which can be erroneously created by make from ./install.sh.
2125# Reject install programs that cannot install multiple files.
2126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2127$as_echo_n "checking for a BSD-compatible install... " >&6; }
2128if test -z "$INSTALL"; then
2129if ${ac_cv_path_install+:} false; then :
2130  $as_echo_n "(cached) " >&6
2131else
2132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135  IFS=$as_save_IFS
2136  test -z "$as_dir" && as_dir=.
2137    # Account for people who put trailing slashes in PATH elements.
2138case $as_dir/ in #((
2139  ./ | .// | /[cC]/* | \
2140  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2141  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2142  /usr/ucb/* ) ;;
2143  *)
2144    # OSF1 and SCO ODT 3.0 have their own names for install.
2145    # Don't use installbsd from OSF since it installs stuff as root
2146    # by default.
2147    for ac_prog in ginstall scoinst install; do
2148      for ac_exec_ext in '' $ac_executable_extensions; do
2149	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2150	  if test $ac_prog = install &&
2151	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2152	    # AIX install.  It has an incompatible calling convention.
2153	    :
2154	  elif test $ac_prog = install &&
2155	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2156	    # program-specific install script used by HP pwplus--don't use.
2157	    :
2158	  else
2159	    rm -rf conftest.one conftest.two conftest.dir
2160	    echo one > conftest.one
2161	    echo two > conftest.two
2162	    mkdir conftest.dir
2163	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2164	      test -s conftest.one && test -s conftest.two &&
2165	      test -s conftest.dir/conftest.one &&
2166	      test -s conftest.dir/conftest.two
2167	    then
2168	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2169	      break 3
2170	    fi
2171	  fi
2172	fi
2173      done
2174    done
2175    ;;
2176esac
2177
2178  done
2179IFS=$as_save_IFS
2180
2181rm -rf conftest.one conftest.two conftest.dir
2182
2183fi
2184  if test "${ac_cv_path_install+set}" = set; then
2185    INSTALL=$ac_cv_path_install
2186  else
2187    # As a last resort, use the slow shell script.  Don't cache a
2188    # value for INSTALL within a source directory, because that will
2189    # break other packages using the cache if that directory is
2190    # removed, or if the value is a relative name.
2191    INSTALL=$ac_install_sh
2192  fi
2193fi
2194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2195$as_echo "$INSTALL" >&6; }
2196
2197# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2198# It thinks the first close brace ends the variable substitution.
2199test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2200
2201test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2202
2203test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2204
2205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2206$as_echo_n "checking whether build environment is sane... " >&6; }
2207# Just in case
2208sleep 1
2209echo timestamp > conftest.file
2210# Reject unsafe characters in $srcdir or the absolute working directory
2211# name.  Accept space and tab only in the latter.
2212am_lf='
2213'
2214case `pwd` in
2215  *[\\\"\#\$\&\'\`$am_lf]*)
2216    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2217esac
2218case $srcdir in
2219  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2220    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2221esac
2222
2223# Do `set' in a subshell so we don't clobber the current shell's
2224# arguments.  Must try -L first in case configure is actually a
2225# symlink; some systems play weird games with the mod time of symlinks
2226# (eg FreeBSD returns the mod time of the symlink's containing
2227# directory).
2228if (
2229   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2230   if test "$*" = "X"; then
2231      # -L didn't work.
2232      set X `ls -t "$srcdir/configure" conftest.file`
2233   fi
2234   rm -f conftest.file
2235   if test "$*" != "X $srcdir/configure conftest.file" \
2236      && test "$*" != "X conftest.file $srcdir/configure"; then
2237
2238      # If neither matched, then we have a broken ls.  This can happen
2239      # if, for instance, CONFIG_SHELL is bash and it inherits a
2240      # broken ls alias from the environment.  This has actually
2241      # happened.  Such a system could not be considered "sane".
2242      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2243alias in your environment" "$LINENO" 5
2244   fi
2245
2246   test "$2" = conftest.file
2247   )
2248then
2249   # Ok.
2250   :
2251else
2252   as_fn_error $? "newly created file is older than distributed files!
2253Check your system clock" "$LINENO" 5
2254fi
2255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2256$as_echo "yes" >&6; }
2257test "$program_prefix" != NONE &&
2258  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2259# Use a double $ so make ignores it.
2260test "$program_suffix" != NONE &&
2261  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2262# Double any \ or $.
2263# By default was `s,x,x', remove it if useless.
2264ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2265program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2266
2267# expand $ac_aux_dir to an absolute path
2268am_aux_dir=`cd $ac_aux_dir && pwd`
2269
2270if test x"${MISSING+set}" != xset; then
2271  case $am_aux_dir in
2272  *\ * | *\	*)
2273    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2274  *)
2275    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2276  esac
2277fi
2278# Use eval to expand $SHELL
2279if eval "$MISSING --run true"; then
2280  am_missing_run="$MISSING --run "
2281else
2282  am_missing_run=
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2284$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2285fi
2286
2287if test x"${install_sh}" != xset; then
2288  case $am_aux_dir in
2289  *\ * | *\	*)
2290    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2291  *)
2292    install_sh="\${SHELL} $am_aux_dir/install-sh"
2293  esac
2294fi
2295
2296# Installed binaries are usually stripped using `strip' when the user
2297# run `make install-strip'.  However `strip' might not be the right
2298# tool to use in cross-compilation environments, therefore Automake
2299# will honor the `STRIP' environment variable to overrule this program.
2300if test "$cross_compiling" != no; then
2301  if test -n "$ac_tool_prefix"; then
2302  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2303set dummy ${ac_tool_prefix}strip; ac_word=$2
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2305$as_echo_n "checking for $ac_word... " >&6; }
2306if ${ac_cv_prog_STRIP+:} false; then :
2307  $as_echo_n "(cached) " >&6
2308else
2309  if test -n "$STRIP"; then
2310  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2311else
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315  IFS=$as_save_IFS
2316  test -z "$as_dir" && as_dir=.
2317    for ac_exec_ext in '' $ac_executable_extensions; do
2318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2321    break 2
2322  fi
2323done
2324  done
2325IFS=$as_save_IFS
2326
2327fi
2328fi
2329STRIP=$ac_cv_prog_STRIP
2330if test -n "$STRIP"; then
2331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2332$as_echo "$STRIP" >&6; }
2333else
2334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2335$as_echo "no" >&6; }
2336fi
2337
2338
2339fi
2340if test -z "$ac_cv_prog_STRIP"; then
2341  ac_ct_STRIP=$STRIP
2342  # Extract the first word of "strip", so it can be a program name with args.
2343set dummy strip; ac_word=$2
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2345$as_echo_n "checking for $ac_word... " >&6; }
2346if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2347  $as_echo_n "(cached) " >&6
2348else
2349  if test -n "$ac_ct_STRIP"; then
2350  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2351else
2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355  IFS=$as_save_IFS
2356  test -z "$as_dir" && as_dir=.
2357    for ac_exec_ext in '' $ac_executable_extensions; do
2358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359    ac_cv_prog_ac_ct_STRIP="strip"
2360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2361    break 2
2362  fi
2363done
2364  done
2365IFS=$as_save_IFS
2366
2367fi
2368fi
2369ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2370if test -n "$ac_ct_STRIP"; then
2371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2372$as_echo "$ac_ct_STRIP" >&6; }
2373else
2374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2375$as_echo "no" >&6; }
2376fi
2377
2378  if test "x$ac_ct_STRIP" = x; then
2379    STRIP=":"
2380  else
2381    case $cross_compiling:$ac_tool_warned in
2382yes:)
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2385ac_tool_warned=yes ;;
2386esac
2387    STRIP=$ac_ct_STRIP
2388  fi
2389else
2390  STRIP="$ac_cv_prog_STRIP"
2391fi
2392
2393fi
2394INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2395
2396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2397$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2398if test -z "$MKDIR_P"; then
2399  if ${ac_cv_path_mkdir+:} false; then :
2400  $as_echo_n "(cached) " >&6
2401else
2402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2404do
2405  IFS=$as_save_IFS
2406  test -z "$as_dir" && as_dir=.
2407    for ac_prog in mkdir gmkdir; do
2408	 for ac_exec_ext in '' $ac_executable_extensions; do
2409	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2410	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2411	     'mkdir (GNU coreutils) '* | \
2412	     'mkdir (coreutils) '* | \
2413	     'mkdir (fileutils) '4.1*)
2414	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2415	       break 3;;
2416	   esac
2417	 done
2418       done
2419  done
2420IFS=$as_save_IFS
2421
2422fi
2423
2424  test -d ./--version && rmdir ./--version
2425  if test "${ac_cv_path_mkdir+set}" = set; then
2426    MKDIR_P="$ac_cv_path_mkdir -p"
2427  else
2428    # As a last resort, use the slow shell script.  Don't cache a
2429    # value for MKDIR_P within a source directory, because that will
2430    # break other packages using the cache if that directory is
2431    # removed, or if the value is a relative name.
2432    MKDIR_P="$ac_install_sh -d"
2433  fi
2434fi
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2436$as_echo "$MKDIR_P" >&6; }
2437
2438mkdir_p="$MKDIR_P"
2439case $mkdir_p in
2440  [\\/$]* | ?:[\\/]*) ;;
2441  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2442esac
2443
2444for ac_prog in gawk mawk nawk awk
2445do
2446  # Extract the first word of "$ac_prog", so it can be a program name with args.
2447set dummy $ac_prog; ac_word=$2
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2449$as_echo_n "checking for $ac_word... " >&6; }
2450if ${ac_cv_prog_AWK+:} false; then :
2451  $as_echo_n "(cached) " >&6
2452else
2453  if test -n "$AWK"; then
2454  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2455else
2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457for as_dir in $PATH
2458do
2459  IFS=$as_save_IFS
2460  test -z "$as_dir" && as_dir=.
2461    for ac_exec_ext in '' $ac_executable_extensions; do
2462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463    ac_cv_prog_AWK="$ac_prog"
2464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2465    break 2
2466  fi
2467done
2468  done
2469IFS=$as_save_IFS
2470
2471fi
2472fi
2473AWK=$ac_cv_prog_AWK
2474if test -n "$AWK"; then
2475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2476$as_echo "$AWK" >&6; }
2477else
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2479$as_echo "no" >&6; }
2480fi
2481
2482
2483  test -n "$AWK" && break
2484done
2485
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2487$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2488set x ${MAKE-make}
2489ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2490if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2491  $as_echo_n "(cached) " >&6
2492else
2493  cat >conftest.make <<\_ACEOF
2494SHELL = /bin/sh
2495all:
2496	@echo '@@@%%%=$(MAKE)=@@@%%%'
2497_ACEOF
2498# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2499case `${MAKE-make} -f conftest.make 2>/dev/null` in
2500  *@@@%%%=?*=@@@%%%*)
2501    eval ac_cv_prog_make_${ac_make}_set=yes;;
2502  *)
2503    eval ac_cv_prog_make_${ac_make}_set=no;;
2504esac
2505rm -f conftest.make
2506fi
2507if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2509$as_echo "yes" >&6; }
2510  SET_MAKE=
2511else
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513$as_echo "no" >&6; }
2514  SET_MAKE="MAKE=${MAKE-make}"
2515fi
2516
2517rm -rf .tst 2>/dev/null
2518mkdir .tst 2>/dev/null
2519if test -d .tst; then
2520  am__leading_dot=.
2521else
2522  am__leading_dot=_
2523fi
2524rmdir .tst 2>/dev/null
2525
2526if test "`cd $srcdir && pwd`" != "`pwd`"; then
2527  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2528  # is not polluted with repeated "-I."
2529  am__isrc=' -I$(srcdir)'
2530  # test to see if srcdir already configured
2531  if test -f $srcdir/config.status; then
2532    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2533  fi
2534fi
2535
2536# test whether we have cygpath
2537if test -z "$CYGPATH_W"; then
2538  if (cygpath --version) >/dev/null 2>/dev/null; then
2539    CYGPATH_W='cygpath -w'
2540  else
2541    CYGPATH_W=echo
2542  fi
2543fi
2544
2545
2546# Define the identity of the package.
2547 PACKAGE='xvidtune'
2548 VERSION='1.0.3'
2549
2550
2551cat >>confdefs.h <<_ACEOF
2552#define PACKAGE "$PACKAGE"
2553_ACEOF
2554
2555
2556cat >>confdefs.h <<_ACEOF
2557#define VERSION "$VERSION"
2558_ACEOF
2559
2560# Some tools Automake needs.
2561
2562ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2563
2564
2565AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2566
2567
2568AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2569
2570
2571AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2572
2573
2574MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2575
2576# We need awk for the "check" target.  The system "awk" is bad on
2577# some platforms.
2578# Always define AMTAR for backward compatibility.
2579
2580AMTAR=${AMTAR-"${am_missing_run}tar"}
2581
2582am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2583
2584
2585
2586
2587
2588
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2590$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2591    # Check whether --enable-maintainer-mode was given.
2592if test "${enable_maintainer_mode+set}" = set; then :
2593  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2594else
2595  USE_MAINTAINER_MODE=no
2596fi
2597
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2599$as_echo "$USE_MAINTAINER_MODE" >&6; }
2600   if test $USE_MAINTAINER_MODE = yes; then
2601  MAINTAINER_MODE_TRUE=
2602  MAINTAINER_MODE_FALSE='#'
2603else
2604  MAINTAINER_MODE_TRUE='#'
2605  MAINTAINER_MODE_FALSE=
2606fi
2607
2608  MAINT=$MAINTAINER_MODE_TRUE
2609
2610
2611
2612# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624DEPDIR="${am__leading_dot}deps"
2625
2626ac_config_commands="$ac_config_commands depfiles"
2627
2628
2629am_make=${MAKE-make}
2630cat > confinc << 'END'
2631am__doit:
2632	@echo this is the am__doit target
2633.PHONY: am__doit
2634END
2635# If we don't find an include directive, just comment out the code.
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2637$as_echo_n "checking for style of include used by $am_make... " >&6; }
2638am__include="#"
2639am__quote=
2640_am_result=none
2641# First try GNU make style include.
2642echo "include confinc" > confmf
2643# Ignore all kinds of additional output from `make'.
2644case `$am_make -s -f confmf 2> /dev/null` in #(
2645*the\ am__doit\ target*)
2646  am__include=include
2647  am__quote=
2648  _am_result=GNU
2649  ;;
2650esac
2651# Now try BSD make style include.
2652if test "$am__include" = "#"; then
2653   echo '.include "confinc"' > confmf
2654   case `$am_make -s -f confmf 2> /dev/null` in #(
2655   *the\ am__doit\ target*)
2656     am__include=.include
2657     am__quote="\""
2658     _am_result=BSD
2659     ;;
2660   esac
2661fi
2662
2663
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2665$as_echo "$_am_result" >&6; }
2666rm -f confinc confmf
2667
2668# Check whether --enable-dependency-tracking was given.
2669if test "${enable_dependency_tracking+set}" = set; then :
2670  enableval=$enable_dependency_tracking;
2671fi
2672
2673if test "x$enable_dependency_tracking" != xno; then
2674  am_depcomp="$ac_aux_dir/depcomp"
2675  AMDEPBACKSLASH='\'
2676  am__nodep='_no'
2677fi
2678 if test "x$enable_dependency_tracking" != xno; then
2679  AMDEP_TRUE=
2680  AMDEP_FALSE='#'
2681else
2682  AMDEP_TRUE='#'
2683  AMDEP_FALSE=
2684fi
2685
2686
2687ac_ext=c
2688ac_cpp='$CPP $CPPFLAGS'
2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692if test -n "$ac_tool_prefix"; then
2693  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2694set dummy ${ac_tool_prefix}gcc; ac_word=$2
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696$as_echo_n "checking for $ac_word... " >&6; }
2697if ${ac_cv_prog_CC+:} false; then :
2698  $as_echo_n "(cached) " >&6
2699else
2700  if test -n "$CC"; then
2701  ac_cv_prog_CC="$CC" # Let the user override the test.
2702else
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706  IFS=$as_save_IFS
2707  test -z "$as_dir" && as_dir=.
2708    for ac_exec_ext in '' $ac_executable_extensions; do
2709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712    break 2
2713  fi
2714done
2715  done
2716IFS=$as_save_IFS
2717
2718fi
2719fi
2720CC=$ac_cv_prog_CC
2721if test -n "$CC"; then
2722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2723$as_echo "$CC" >&6; }
2724else
2725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726$as_echo "no" >&6; }
2727fi
2728
2729
2730fi
2731if test -z "$ac_cv_prog_CC"; then
2732  ac_ct_CC=$CC
2733  # Extract the first word of "gcc", so it can be a program name with args.
2734set dummy gcc; ac_word=$2
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736$as_echo_n "checking for $ac_word... " >&6; }
2737if ${ac_cv_prog_ac_ct_CC+:} false; then :
2738  $as_echo_n "(cached) " >&6
2739else
2740  if test -n "$ac_ct_CC"; then
2741  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742else
2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744for as_dir in $PATH
2745do
2746  IFS=$as_save_IFS
2747  test -z "$as_dir" && as_dir=.
2748    for ac_exec_ext in '' $ac_executable_extensions; do
2749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750    ac_cv_prog_ac_ct_CC="gcc"
2751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752    break 2
2753  fi
2754done
2755  done
2756IFS=$as_save_IFS
2757
2758fi
2759fi
2760ac_ct_CC=$ac_cv_prog_ac_ct_CC
2761if test -n "$ac_ct_CC"; then
2762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2763$as_echo "$ac_ct_CC" >&6; }
2764else
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766$as_echo "no" >&6; }
2767fi
2768
2769  if test "x$ac_ct_CC" = x; then
2770    CC=""
2771  else
2772    case $cross_compiling:$ac_tool_warned in
2773yes:)
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776ac_tool_warned=yes ;;
2777esac
2778    CC=$ac_ct_CC
2779  fi
2780else
2781  CC="$ac_cv_prog_CC"
2782fi
2783
2784if test -z "$CC"; then
2785          if test -n "$ac_tool_prefix"; then
2786    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2787set dummy ${ac_tool_prefix}cc; ac_word=$2
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789$as_echo_n "checking for $ac_word... " >&6; }
2790if ${ac_cv_prog_CC+:} false; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  if test -n "$CC"; then
2794  ac_cv_prog_CC="$CC" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  test -z "$as_dir" && as_dir=.
2801    for ac_exec_ext in '' $ac_executable_extensions; do
2802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803    ac_cv_prog_CC="${ac_tool_prefix}cc"
2804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805    break 2
2806  fi
2807done
2808  done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813CC=$ac_cv_prog_CC
2814if test -n "$CC"; then
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816$as_echo "$CC" >&6; }
2817else
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822
2823  fi
2824fi
2825if test -z "$CC"; then
2826  # Extract the first word of "cc", so it can be a program name with args.
2827set dummy cc; ac_word=$2
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829$as_echo_n "checking for $ac_word... " >&6; }
2830if ${ac_cv_prog_CC+:} false; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  if test -n "$CC"; then
2834  ac_cv_prog_CC="$CC" # Let the user override the test.
2835else
2836  ac_prog_rejected=no
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840  IFS=$as_save_IFS
2841  test -z "$as_dir" && as_dir=.
2842    for ac_exec_ext in '' $ac_executable_extensions; do
2843  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2845       ac_prog_rejected=yes
2846       continue
2847     fi
2848    ac_cv_prog_CC="cc"
2849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850    break 2
2851  fi
2852done
2853  done
2854IFS=$as_save_IFS
2855
2856if test $ac_prog_rejected = yes; then
2857  # We found a bogon in the path, so make sure we never use it.
2858  set dummy $ac_cv_prog_CC
2859  shift
2860  if test $# != 0; then
2861    # We chose a different compiler from the bogus one.
2862    # However, it has the same basename, so the bogon will be chosen
2863    # first if we set CC to just the basename; use the full file name.
2864    shift
2865    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2866  fi
2867fi
2868fi
2869fi
2870CC=$ac_cv_prog_CC
2871if test -n "$CC"; then
2872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873$as_echo "$CC" >&6; }
2874else
2875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876$as_echo "no" >&6; }
2877fi
2878
2879
2880fi
2881if test -z "$CC"; then
2882  if test -n "$ac_tool_prefix"; then
2883  for ac_prog in cl.exe
2884  do
2885    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888$as_echo_n "checking for $ac_word... " >&6; }
2889if ${ac_cv_prog_CC+:} false; then :
2890  $as_echo_n "(cached) " >&6
2891else
2892  if test -n "$CC"; then
2893  ac_cv_prog_CC="$CC" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898  IFS=$as_save_IFS
2899  test -z "$as_dir" && as_dir=.
2900    for ac_exec_ext in '' $ac_executable_extensions; do
2901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904    break 2
2905  fi
2906done
2907  done
2908IFS=$as_save_IFS
2909
2910fi
2911fi
2912CC=$ac_cv_prog_CC
2913if test -n "$CC"; then
2914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915$as_echo "$CC" >&6; }
2916else
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918$as_echo "no" >&6; }
2919fi
2920
2921
2922    test -n "$CC" && break
2923  done
2924fi
2925if test -z "$CC"; then
2926  ac_ct_CC=$CC
2927  for ac_prog in cl.exe
2928do
2929  # Extract the first word of "$ac_prog", so it can be a program name with args.
2930set dummy $ac_prog; ac_word=$2
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if ${ac_cv_prog_ac_ct_CC+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  if test -n "$ac_ct_CC"; then
2937  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944    for ac_exec_ext in '' $ac_executable_extensions; do
2945  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946    ac_cv_prog_ac_ct_CC="$ac_prog"
2947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951  done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957if test -n "$ac_ct_CC"; then
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2959$as_echo "$ac_ct_CC" >&6; }
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965
2966  test -n "$ac_ct_CC" && break
2967done
2968
2969  if test "x$ac_ct_CC" = x; then
2970    CC=""
2971  else
2972    case $cross_compiling:$ac_tool_warned in
2973yes:)
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976ac_tool_warned=yes ;;
2977esac
2978    CC=$ac_ct_CC
2979  fi
2980fi
2981
2982fi
2983
2984
2985test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987as_fn_error $? "no acceptable C compiler found in \$PATH
2988See \`config.log' for more details" "$LINENO" 5; }
2989
2990# Provide some information about the compiler.
2991$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2992set X $ac_compile
2993ac_compiler=$2
2994for ac_option in --version -v -V -qversion; do
2995  { { ac_try="$ac_compiler $ac_option >&5"
2996case "(($ac_try" in
2997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998  *) ac_try_echo=$ac_try;;
2999esac
3000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001$as_echo "$ac_try_echo"; } >&5
3002  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3003  ac_status=$?
3004  if test -s conftest.err; then
3005    sed '10a\
3006... rest of stderr output deleted ...
3007         10q' conftest.err >conftest.er1
3008    cat conftest.er1 >&5
3009  fi
3010  rm -f conftest.er1 conftest.err
3011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012  test $ac_status = 0; }
3013done
3014
3015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016/* end confdefs.h.  */
3017
3018int
3019main ()
3020{
3021
3022  ;
3023  return 0;
3024}
3025_ACEOF
3026ac_clean_files_save=$ac_clean_files
3027ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3028# Try to create an executable without -o first, disregard a.out.
3029# It will help us diagnose broken compilers, and finding out an intuition
3030# of exeext.
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3032$as_echo_n "checking whether the C compiler works... " >&6; }
3033ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3034
3035# The possible output files:
3036ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3037
3038ac_rmfiles=
3039for ac_file in $ac_files
3040do
3041  case $ac_file in
3042    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3043    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3044  esac
3045done
3046rm -f $ac_rmfiles
3047
3048if { { ac_try="$ac_link_default"
3049case "(($ac_try" in
3050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051  *) ac_try_echo=$ac_try;;
3052esac
3053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054$as_echo "$ac_try_echo"; } >&5
3055  (eval "$ac_link_default") 2>&5
3056  ac_status=$?
3057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058  test $ac_status = 0; }; then :
3059  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3060# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3061# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3062# so that the user can short-circuit this test for compilers unknown to
3063# Autoconf.
3064for ac_file in $ac_files ''
3065do
3066  test -f "$ac_file" || continue
3067  case $ac_file in
3068    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3069	;;
3070    [ab].out )
3071	# We found the default executable, but exeext='' is most
3072	# certainly right.
3073	break;;
3074    *.* )
3075	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3076	then :; else
3077	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078	fi
3079	# We set ac_cv_exeext here because the later test for it is not
3080	# safe: cross compilers may not add the suffix if given an `-o'
3081	# argument, so we may need to know it at that point already.
3082	# Even if this section looks crufty: it has the advantage of
3083	# actually working.
3084	break;;
3085    * )
3086	break;;
3087  esac
3088done
3089test "$ac_cv_exeext" = no && ac_cv_exeext=
3090
3091else
3092  ac_file=''
3093fi
3094if test -z "$ac_file"; then :
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096$as_echo "no" >&6; }
3097$as_echo "$as_me: failed program was:" >&5
3098sed 's/^/| /' conftest.$ac_ext >&5
3099
3100{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102as_fn_error 77 "C compiler cannot create executables
3103See \`config.log' for more details" "$LINENO" 5; }
3104else
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3106$as_echo "yes" >&6; }
3107fi
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3109$as_echo_n "checking for C compiler default output file name... " >&6; }
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3111$as_echo "$ac_file" >&6; }
3112ac_exeext=$ac_cv_exeext
3113
3114rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3115ac_clean_files=$ac_clean_files_save
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3117$as_echo_n "checking for suffix of executables... " >&6; }
3118if { { ac_try="$ac_link"
3119case "(($ac_try" in
3120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121  *) ac_try_echo=$ac_try;;
3122esac
3123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124$as_echo "$ac_try_echo"; } >&5
3125  (eval "$ac_link") 2>&5
3126  ac_status=$?
3127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128  test $ac_status = 0; }; then :
3129  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3130# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3131# work properly (i.e., refer to `conftest.exe'), while it won't with
3132# `rm'.
3133for ac_file in conftest.exe conftest conftest.*; do
3134  test -f "$ac_file" || continue
3135  case $ac_file in
3136    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138	  break;;
3139    * ) break;;
3140  esac
3141done
3142else
3143  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3146See \`config.log' for more details" "$LINENO" 5; }
3147fi
3148rm -f conftest conftest$ac_cv_exeext
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3150$as_echo "$ac_cv_exeext" >&6; }
3151
3152rm -f conftest.$ac_ext
3153EXEEXT=$ac_cv_exeext
3154ac_exeext=$EXEEXT
3155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156/* end confdefs.h.  */
3157#include <stdio.h>
3158int
3159main ()
3160{
3161FILE *f = fopen ("conftest.out", "w");
3162 return ferror (f) || fclose (f) != 0;
3163
3164  ;
3165  return 0;
3166}
3167_ACEOF
3168ac_clean_files="$ac_clean_files conftest.out"
3169# Check that the compiler produces executables we can run.  If not, either
3170# the compiler is broken, or we cross compile.
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3172$as_echo_n "checking whether we are cross compiling... " >&6; }
3173if test "$cross_compiling" != yes; then
3174  { { ac_try="$ac_link"
3175case "(($ac_try" in
3176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177  *) ac_try_echo=$ac_try;;
3178esac
3179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180$as_echo "$ac_try_echo"; } >&5
3181  (eval "$ac_link") 2>&5
3182  ac_status=$?
3183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184  test $ac_status = 0; }
3185  if { ac_try='./conftest$ac_cv_exeext'
3186  { { case "(($ac_try" in
3187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188  *) ac_try_echo=$ac_try;;
3189esac
3190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191$as_echo "$ac_try_echo"; } >&5
3192  (eval "$ac_try") 2>&5
3193  ac_status=$?
3194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195  test $ac_status = 0; }; }; then
3196    cross_compiling=no
3197  else
3198    if test "$cross_compiling" = maybe; then
3199	cross_compiling=yes
3200    else
3201	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203as_fn_error $? "cannot run C compiled programs.
3204If you meant to cross compile, use \`--host'.
3205See \`config.log' for more details" "$LINENO" 5; }
3206    fi
3207  fi
3208fi
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3210$as_echo "$cross_compiling" >&6; }
3211
3212rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3213ac_clean_files=$ac_clean_files_save
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3215$as_echo_n "checking for suffix of object files... " >&6; }
3216if ${ac_cv_objext+:} false; then :
3217  $as_echo_n "(cached) " >&6
3218else
3219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220/* end confdefs.h.  */
3221
3222int
3223main ()
3224{
3225
3226  ;
3227  return 0;
3228}
3229_ACEOF
3230rm -f conftest.o conftest.obj
3231if { { ac_try="$ac_compile"
3232case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237$as_echo "$ac_try_echo"; } >&5
3238  (eval "$ac_compile") 2>&5
3239  ac_status=$?
3240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241  test $ac_status = 0; }; then :
3242  for ac_file in conftest.o conftest.obj conftest.*; do
3243  test -f "$ac_file" || continue;
3244  case $ac_file in
3245    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3246    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3247       break;;
3248  esac
3249done
3250else
3251  $as_echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
3254{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256as_fn_error $? "cannot compute suffix of object files: cannot compile
3257See \`config.log' for more details" "$LINENO" 5; }
3258fi
3259rm -f conftest.$ac_cv_objext conftest.$ac_ext
3260fi
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3262$as_echo "$ac_cv_objext" >&6; }
3263OBJEXT=$ac_cv_objext
3264ac_objext=$OBJEXT
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3266$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3267if ${ac_cv_c_compiler_gnu+:} false; then :
3268  $as_echo_n "(cached) " >&6
3269else
3270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271/* end confdefs.h.  */
3272
3273int
3274main ()
3275{
3276#ifndef __GNUC__
3277       choke me
3278#endif
3279
3280  ;
3281  return 0;
3282}
3283_ACEOF
3284if ac_fn_c_try_compile "$LINENO"; then :
3285  ac_compiler_gnu=yes
3286else
3287  ac_compiler_gnu=no
3288fi
3289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290ac_cv_c_compiler_gnu=$ac_compiler_gnu
3291
3292fi
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3294$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3295if test $ac_compiler_gnu = yes; then
3296  GCC=yes
3297else
3298  GCC=
3299fi
3300ac_test_CFLAGS=${CFLAGS+set}
3301ac_save_CFLAGS=$CFLAGS
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3303$as_echo_n "checking whether $CC accepts -g... " >&6; }
3304if ${ac_cv_prog_cc_g+:} false; then :
3305  $as_echo_n "(cached) " >&6
3306else
3307  ac_save_c_werror_flag=$ac_c_werror_flag
3308   ac_c_werror_flag=yes
3309   ac_cv_prog_cc_g=no
3310   CFLAGS="-g"
3311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312/* end confdefs.h.  */
3313
3314int
3315main ()
3316{
3317
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322if ac_fn_c_try_compile "$LINENO"; then :
3323  ac_cv_prog_cc_g=yes
3324else
3325  CFLAGS=""
3326      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327/* end confdefs.h.  */
3328
3329int
3330main ()
3331{
3332
3333  ;
3334  return 0;
3335}
3336_ACEOF
3337if ac_fn_c_try_compile "$LINENO"; then :
3338
3339else
3340  ac_c_werror_flag=$ac_save_c_werror_flag
3341	 CFLAGS="-g"
3342	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343/* end confdefs.h.  */
3344
3345int
3346main ()
3347{
3348
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353if ac_fn_c_try_compile "$LINENO"; then :
3354  ac_cv_prog_cc_g=yes
3355fi
3356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357fi
3358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359fi
3360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361   ac_c_werror_flag=$ac_save_c_werror_flag
3362fi
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3364$as_echo "$ac_cv_prog_cc_g" >&6; }
3365if test "$ac_test_CFLAGS" = set; then
3366  CFLAGS=$ac_save_CFLAGS
3367elif test $ac_cv_prog_cc_g = yes; then
3368  if test "$GCC" = yes; then
3369    CFLAGS="-g -O2"
3370  else
3371    CFLAGS="-g"
3372  fi
3373else
3374  if test "$GCC" = yes; then
3375    CFLAGS="-O2"
3376  else
3377    CFLAGS=
3378  fi
3379fi
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3381$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3382if ${ac_cv_prog_cc_c89+:} false; then :
3383  $as_echo_n "(cached) " >&6
3384else
3385  ac_cv_prog_cc_c89=no
3386ac_save_CC=$CC
3387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388/* end confdefs.h.  */
3389#include <stdarg.h>
3390#include <stdio.h>
3391#include <sys/types.h>
3392#include <sys/stat.h>
3393/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3394struct buf { int x; };
3395FILE * (*rcsopen) (struct buf *, struct stat *, int);
3396static char *e (p, i)
3397     char **p;
3398     int i;
3399{
3400  return p[i];
3401}
3402static char *f (char * (*g) (char **, int), char **p, ...)
3403{
3404  char *s;
3405  va_list v;
3406  va_start (v,p);
3407  s = g (p, va_arg (v,int));
3408  va_end (v);
3409  return s;
3410}
3411
3412/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3413   function prototypes and stuff, but not '\xHH' hex character constants.
3414   These don't provoke an error unfortunately, instead are silently treated
3415   as 'x'.  The following induces an error, until -std is added to get
3416   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3417   array size at least.  It's necessary to write '\x00'==0 to get something
3418   that's true only with -std.  */
3419int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420
3421/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3422   inside strings and character constants.  */
3423#define FOO(x) 'x'
3424int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3425
3426int test (int i, double x);
3427struct s1 {int (*f) (int a);};
3428struct s2 {int (*f) (double a);};
3429int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3430int argc;
3431char **argv;
3432int
3433main ()
3434{
3435return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3436  ;
3437  return 0;
3438}
3439_ACEOF
3440for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3441	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3442do
3443  CC="$ac_save_CC $ac_arg"
3444  if ac_fn_c_try_compile "$LINENO"; then :
3445  ac_cv_prog_cc_c89=$ac_arg
3446fi
3447rm -f core conftest.err conftest.$ac_objext
3448  test "x$ac_cv_prog_cc_c89" != "xno" && break
3449done
3450rm -f conftest.$ac_ext
3451CC=$ac_save_CC
3452
3453fi
3454# AC_CACHE_VAL
3455case "x$ac_cv_prog_cc_c89" in
3456  x)
3457    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3458$as_echo "none needed" >&6; } ;;
3459  xno)
3460    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3461$as_echo "unsupported" >&6; } ;;
3462  *)
3463    CC="$CC $ac_cv_prog_cc_c89"
3464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3465$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3466esac
3467if test "x$ac_cv_prog_cc_c89" != xno; then :
3468
3469fi
3470
3471ac_ext=c
3472ac_cpp='$CPP $CPPFLAGS'
3473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
3477depcc="$CC"   am_compiler_list=
3478
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3480$as_echo_n "checking dependency style of $depcc... " >&6; }
3481if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3482  $as_echo_n "(cached) " >&6
3483else
3484  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3485  # We make a subdir and do the tests there.  Otherwise we can end up
3486  # making bogus files that we don't know about and never remove.  For
3487  # instance it was reported that on HP-UX the gcc test will end up
3488  # making a dummy file named `D' -- because `-MD' means `put the output
3489  # in D'.
3490  rm -rf conftest.dir
3491  mkdir conftest.dir
3492  # Copy depcomp to subdir because otherwise we won't find it if we're
3493  # using a relative directory.
3494  cp "$am_depcomp" conftest.dir
3495  cd conftest.dir
3496  # We will build objects and dependencies in a subdirectory because
3497  # it helps to detect inapplicable dependency modes.  For instance
3498  # both Tru64's cc and ICC support -MD to output dependencies as a
3499  # side effect of compilation, but ICC will put the dependencies in
3500  # the current directory while Tru64 will put them in the object
3501  # directory.
3502  mkdir sub
3503
3504  am_cv_CC_dependencies_compiler_type=none
3505  if test "$am_compiler_list" = ""; then
3506     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3507  fi
3508  am__universal=false
3509  case " $depcc " in #(
3510     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3511     esac
3512
3513  for depmode in $am_compiler_list; do
3514    # Setup a source with many dependencies, because some compilers
3515    # like to wrap large dependency lists on column 80 (with \), and
3516    # we should not choose a depcomp mode which is confused by this.
3517    #
3518    # We need to recreate these files for each test, as the compiler may
3519    # overwrite some of them when testing with obscure command lines.
3520    # This happens at least with the AIX C compiler.
3521    : > sub/conftest.c
3522    for i in 1 2 3 4 5 6; do
3523      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3524      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3525      # Solaris 8's {/usr,}/bin/sh.
3526      touch sub/conftst$i.h
3527    done
3528    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3529
3530    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3531    # mode.  It turns out that the SunPro C++ compiler does not properly
3532    # handle `-M -o', and we need to detect this.  Also, some Intel
3533    # versions had trouble with output in subdirs
3534    am__obj=sub/conftest.${OBJEXT-o}
3535    am__minus_obj="-o $am__obj"
3536    case $depmode in
3537    gcc)
3538      # This depmode causes a compiler race in universal mode.
3539      test "$am__universal" = false || continue
3540      ;;
3541    nosideeffect)
3542      # after this tag, mechanisms are not by side-effect, so they'll
3543      # only be used when explicitly requested
3544      if test "x$enable_dependency_tracking" = xyes; then
3545	continue
3546      else
3547	break
3548      fi
3549      ;;
3550    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3551      # This compiler won't grok `-c -o', but also, the minuso test has
3552      # not run yet.  These depmodes are late enough in the game, and
3553      # so weak that their functioning should not be impacted.
3554      am__obj=conftest.${OBJEXT-o}
3555      am__minus_obj=
3556      ;;
3557    none) break ;;
3558    esac
3559    if depmode=$depmode \
3560       source=sub/conftest.c object=$am__obj \
3561       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3562       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3563         >/dev/null 2>conftest.err &&
3564       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3565       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3566       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3567       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3568      # icc doesn't choke on unknown options, it will just issue warnings
3569      # or remarks (even with -Werror).  So we grep stderr for any message
3570      # that says an option was ignored or not supported.
3571      # When given -MP, icc 7.0 and 7.1 complain thusly:
3572      #   icc: Command line warning: ignoring option '-M'; no argument required
3573      # The diagnosis changed in icc 8.0:
3574      #   icc: Command line remark: option '-MP' not supported
3575      if (grep 'ignoring option' conftest.err ||
3576          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3577        am_cv_CC_dependencies_compiler_type=$depmode
3578        break
3579      fi
3580    fi
3581  done
3582
3583  cd ..
3584  rm -rf conftest.dir
3585else
3586  am_cv_CC_dependencies_compiler_type=none
3587fi
3588
3589fi
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3591$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3592CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3593
3594 if
3595  test "x$enable_dependency_tracking" != xno \
3596  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3597  am__fastdepCC_TRUE=
3598  am__fastdepCC_FALSE='#'
3599else
3600  am__fastdepCC_TRUE='#'
3601  am__fastdepCC_FALSE=
3602fi
3603
3604
3605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3606$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3607if ${ac_cv_prog_cc_c99+:} false; then :
3608  $as_echo_n "(cached) " >&6
3609else
3610  ac_cv_prog_cc_c99=no
3611ac_save_CC=$CC
3612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h.  */
3614#include <stdarg.h>
3615#include <stdbool.h>
3616#include <stdlib.h>
3617#include <wchar.h>
3618#include <stdio.h>
3619
3620// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3621#define debug(...) fprintf (stderr, __VA_ARGS__)
3622#define showlist(...) puts (#__VA_ARGS__)
3623#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3624static void
3625test_varargs_macros (void)
3626{
3627  int x = 1234;
3628  int y = 5678;
3629  debug ("Flag");
3630  debug ("X = %d\n", x);
3631  showlist (The first, second, and third items.);
3632  report (x>y, "x is %d but y is %d", x, y);
3633}
3634
3635// Check long long types.
3636#define BIG64 18446744073709551615ull
3637#define BIG32 4294967295ul
3638#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3639#if !BIG_OK
3640  your preprocessor is broken;
3641#endif
3642#if BIG_OK
3643#else
3644  your preprocessor is broken;
3645#endif
3646static long long int bignum = -9223372036854775807LL;
3647static unsigned long long int ubignum = BIG64;
3648
3649struct incomplete_array
3650{
3651  int datasize;
3652  double data[];
3653};
3654
3655struct named_init {
3656  int number;
3657  const wchar_t *name;
3658  double average;
3659};
3660
3661typedef const char *ccp;
3662
3663static inline int
3664test_restrict (ccp restrict text)
3665{
3666  // See if C++-style comments work.
3667  // Iterate through items via the restricted pointer.
3668  // Also check for declarations in for loops.
3669  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3670    continue;
3671  return 0;
3672}
3673
3674// Check varargs and va_copy.
3675static void
3676test_varargs (const char *format, ...)
3677{
3678  va_list args;
3679  va_start (args, format);
3680  va_list args_copy;
3681  va_copy (args_copy, args);
3682
3683  const char *str;
3684  int number;
3685  float fnumber;
3686
3687  while (*format)
3688    {
3689      switch (*format++)
3690	{
3691	case 's': // string
3692	  str = va_arg (args_copy, const char *);
3693	  break;
3694	case 'd': // int
3695	  number = va_arg (args_copy, int);
3696	  break;
3697	case 'f': // float
3698	  fnumber = va_arg (args_copy, double);
3699	  break;
3700	default:
3701	  break;
3702	}
3703    }
3704  va_end (args_copy);
3705  va_end (args);
3706}
3707
3708int
3709main ()
3710{
3711
3712  // Check bool.
3713  _Bool success = false;
3714
3715  // Check restrict.
3716  if (test_restrict ("String literal") == 0)
3717    success = true;
3718  char *restrict newvar = "Another string";
3719
3720  // Check varargs.
3721  test_varargs ("s, d' f .", "string", 65, 34.234);
3722  test_varargs_macros ();
3723
3724  // Check flexible array members.
3725  struct incomplete_array *ia =
3726    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3727  ia->datasize = 10;
3728  for (int i = 0; i < ia->datasize; ++i)
3729    ia->data[i] = i * 1.234;
3730
3731  // Check named initializers.
3732  struct named_init ni = {
3733    .number = 34,
3734    .name = L"Test wide string",
3735    .average = 543.34343,
3736  };
3737
3738  ni.number = 58;
3739
3740  int dynamic_array[ni.number];
3741  dynamic_array[ni.number - 1] = 543;
3742
3743  // work around unused variable warnings
3744  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3745	  || dynamic_array[ni.number - 1] != 543);
3746
3747  ;
3748  return 0;
3749}
3750_ACEOF
3751for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3752do
3753  CC="$ac_save_CC $ac_arg"
3754  if ac_fn_c_try_compile "$LINENO"; then :
3755  ac_cv_prog_cc_c99=$ac_arg
3756fi
3757rm -f core conftest.err conftest.$ac_objext
3758  test "x$ac_cv_prog_cc_c99" != "xno" && break
3759done
3760rm -f conftest.$ac_ext
3761CC=$ac_save_CC
3762
3763fi
3764# AC_CACHE_VAL
3765case "x$ac_cv_prog_cc_c99" in
3766  x)
3767    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3768$as_echo "none needed" >&6; } ;;
3769  xno)
3770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3771$as_echo "unsupported" >&6; } ;;
3772  *)
3773    CC="$CC $ac_cv_prog_cc_c99"
3774    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3775$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3776esac
3777if test "x$ac_cv_prog_cc_c99" != xno; then :
3778
3779fi
3780
3781
3782
3783ac_ext=c
3784ac_cpp='$CPP $CPPFLAGS'
3785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3789$as_echo_n "checking how to run the C preprocessor... " >&6; }
3790# On Suns, sometimes $CPP names a directory.
3791if test -n "$CPP" && test -d "$CPP"; then
3792  CPP=
3793fi
3794if test -z "$CPP"; then
3795  if ${ac_cv_prog_CPP+:} false; then :
3796  $as_echo_n "(cached) " >&6
3797else
3798      # Double quotes because CPP needs to be expanded
3799    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3800    do
3801      ac_preproc_ok=false
3802for ac_c_preproc_warn_flag in '' yes
3803do
3804  # Use a header file that comes with gcc, so configuring glibc
3805  # with a fresh cross-compiler works.
3806  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807  # <limits.h> exists even on freestanding compilers.
3808  # On the NeXT, cc -E runs the code through the compiler's parser,
3809  # not just through cpp. "Syntax error" is here to catch this case.
3810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811/* end confdefs.h.  */
3812#ifdef __STDC__
3813# include <limits.h>
3814#else
3815# include <assert.h>
3816#endif
3817		     Syntax error
3818_ACEOF
3819if ac_fn_c_try_cpp "$LINENO"; then :
3820
3821else
3822  # Broken: fails on valid input.
3823continue
3824fi
3825rm -f conftest.err conftest.i conftest.$ac_ext
3826
3827  # OK, works on sane cases.  Now check whether nonexistent headers
3828  # can be detected and how.
3829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h.  */
3831#include <ac_nonexistent.h>
3832_ACEOF
3833if ac_fn_c_try_cpp "$LINENO"; then :
3834  # Broken: success on invalid input.
3835continue
3836else
3837  # Passes both tests.
3838ac_preproc_ok=:
3839break
3840fi
3841rm -f conftest.err conftest.i conftest.$ac_ext
3842
3843done
3844# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3845rm -f conftest.i conftest.err conftest.$ac_ext
3846if $ac_preproc_ok; then :
3847  break
3848fi
3849
3850    done
3851    ac_cv_prog_CPP=$CPP
3852
3853fi
3854  CPP=$ac_cv_prog_CPP
3855else
3856  ac_cv_prog_CPP=$CPP
3857fi
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3859$as_echo "$CPP" >&6; }
3860ac_preproc_ok=false
3861for ac_c_preproc_warn_flag in '' yes
3862do
3863  # Use a header file that comes with gcc, so configuring glibc
3864  # with a fresh cross-compiler works.
3865  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3866  # <limits.h> exists even on freestanding compilers.
3867  # On the NeXT, cc -E runs the code through the compiler's parser,
3868  # not just through cpp. "Syntax error" is here to catch this case.
3869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870/* end confdefs.h.  */
3871#ifdef __STDC__
3872# include <limits.h>
3873#else
3874# include <assert.h>
3875#endif
3876		     Syntax error
3877_ACEOF
3878if ac_fn_c_try_cpp "$LINENO"; then :
3879
3880else
3881  # Broken: fails on valid input.
3882continue
3883fi
3884rm -f conftest.err conftest.i conftest.$ac_ext
3885
3886  # OK, works on sane cases.  Now check whether nonexistent headers
3887  # can be detected and how.
3888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889/* end confdefs.h.  */
3890#include <ac_nonexistent.h>
3891_ACEOF
3892if ac_fn_c_try_cpp "$LINENO"; then :
3893  # Broken: success on invalid input.
3894continue
3895else
3896  # Passes both tests.
3897ac_preproc_ok=:
3898break
3899fi
3900rm -f conftest.err conftest.i conftest.$ac_ext
3901
3902done
3903# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3904rm -f conftest.i conftest.err conftest.$ac_ext
3905if $ac_preproc_ok; then :
3906
3907else
3908  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3911See \`config.log' for more details" "$LINENO" 5; }
3912fi
3913
3914ac_ext=c
3915ac_cpp='$CPP $CPPFLAGS'
3916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919
3920
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3922$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3923if ${ac_cv_path_GREP+:} false; then :
3924  $as_echo_n "(cached) " >&6
3925else
3926  if test -z "$GREP"; then
3927  ac_path_GREP_found=false
3928  # Loop through the user's path and test for each of PROGNAME-LIST
3929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3931do
3932  IFS=$as_save_IFS
3933  test -z "$as_dir" && as_dir=.
3934    for ac_prog in grep ggrep; do
3935    for ac_exec_ext in '' $ac_executable_extensions; do
3936      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3937      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3938# Check for GNU ac_path_GREP and select it if it is found.
3939  # Check for GNU $ac_path_GREP
3940case `"$ac_path_GREP" --version 2>&1` in
3941*GNU*)
3942  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3943*)
3944  ac_count=0
3945  $as_echo_n 0123456789 >"conftest.in"
3946  while :
3947  do
3948    cat "conftest.in" "conftest.in" >"conftest.tmp"
3949    mv "conftest.tmp" "conftest.in"
3950    cp "conftest.in" "conftest.nl"
3951    $as_echo 'GREP' >> "conftest.nl"
3952    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3953    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3954    as_fn_arith $ac_count + 1 && ac_count=$as_val
3955    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3956      # Best one so far, save it but keep looking for a better one
3957      ac_cv_path_GREP="$ac_path_GREP"
3958      ac_path_GREP_max=$ac_count
3959    fi
3960    # 10*(2^10) chars as input seems more than enough
3961    test $ac_count -gt 10 && break
3962  done
3963  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3964esac
3965
3966      $ac_path_GREP_found && break 3
3967    done
3968  done
3969  done
3970IFS=$as_save_IFS
3971  if test -z "$ac_cv_path_GREP"; then
3972    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3973  fi
3974else
3975  ac_cv_path_GREP=$GREP
3976fi
3977
3978fi
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3980$as_echo "$ac_cv_path_GREP" >&6; }
3981 GREP="$ac_cv_path_GREP"
3982
3983
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3985$as_echo_n "checking for egrep... " >&6; }
3986if ${ac_cv_path_EGREP+:} false; then :
3987  $as_echo_n "(cached) " >&6
3988else
3989  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3990   then ac_cv_path_EGREP="$GREP -E"
3991   else
3992     if test -z "$EGREP"; then
3993  ac_path_EGREP_found=false
3994  # Loop through the user's path and test for each of PROGNAME-LIST
3995  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997do
3998  IFS=$as_save_IFS
3999  test -z "$as_dir" && as_dir=.
4000    for ac_prog in egrep; do
4001    for ac_exec_ext in '' $ac_executable_extensions; do
4002      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4003      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4004# Check for GNU ac_path_EGREP and select it if it is found.
4005  # Check for GNU $ac_path_EGREP
4006case `"$ac_path_EGREP" --version 2>&1` in
4007*GNU*)
4008  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4009*)
4010  ac_count=0
4011  $as_echo_n 0123456789 >"conftest.in"
4012  while :
4013  do
4014    cat "conftest.in" "conftest.in" >"conftest.tmp"
4015    mv "conftest.tmp" "conftest.in"
4016    cp "conftest.in" "conftest.nl"
4017    $as_echo 'EGREP' >> "conftest.nl"
4018    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020    as_fn_arith $ac_count + 1 && ac_count=$as_val
4021    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4022      # Best one so far, save it but keep looking for a better one
4023      ac_cv_path_EGREP="$ac_path_EGREP"
4024      ac_path_EGREP_max=$ac_count
4025    fi
4026    # 10*(2^10) chars as input seems more than enough
4027    test $ac_count -gt 10 && break
4028  done
4029  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030esac
4031
4032      $ac_path_EGREP_found && break 3
4033    done
4034  done
4035  done
4036IFS=$as_save_IFS
4037  if test -z "$ac_cv_path_EGREP"; then
4038    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4039  fi
4040else
4041  ac_cv_path_EGREP=$EGREP
4042fi
4043
4044   fi
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4047$as_echo "$ac_cv_path_EGREP" >&6; }
4048 EGREP="$ac_cv_path_EGREP"
4049
4050
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4052$as_echo_n "checking for ANSI C header files... " >&6; }
4053if ${ac_cv_header_stdc+:} false; then :
4054  $as_echo_n "(cached) " >&6
4055else
4056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057/* end confdefs.h.  */
4058#include <stdlib.h>
4059#include <stdarg.h>
4060#include <string.h>
4061#include <float.h>
4062
4063int
4064main ()
4065{
4066
4067  ;
4068  return 0;
4069}
4070_ACEOF
4071if ac_fn_c_try_compile "$LINENO"; then :
4072  ac_cv_header_stdc=yes
4073else
4074  ac_cv_header_stdc=no
4075fi
4076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077
4078if test $ac_cv_header_stdc = yes; then
4079  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h.  */
4082#include <string.h>
4083
4084_ACEOF
4085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086  $EGREP "memchr" >/dev/null 2>&1; then :
4087
4088else
4089  ac_cv_header_stdc=no
4090fi
4091rm -f conftest*
4092
4093fi
4094
4095if test $ac_cv_header_stdc = yes; then
4096  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098/* end confdefs.h.  */
4099#include <stdlib.h>
4100
4101_ACEOF
4102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103  $EGREP "free" >/dev/null 2>&1; then :
4104
4105else
4106  ac_cv_header_stdc=no
4107fi
4108rm -f conftest*
4109
4110fi
4111
4112if test $ac_cv_header_stdc = yes; then
4113  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4114  if test "$cross_compiling" = yes; then :
4115  :
4116else
4117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h.  */
4119#include <ctype.h>
4120#include <stdlib.h>
4121#if ((' ' & 0x0FF) == 0x020)
4122# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4123# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4124#else
4125# define ISLOWER(c) \
4126		   (('a' <= (c) && (c) <= 'i') \
4127		     || ('j' <= (c) && (c) <= 'r') \
4128		     || ('s' <= (c) && (c) <= 'z'))
4129# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4130#endif
4131
4132#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4133int
4134main ()
4135{
4136  int i;
4137  for (i = 0; i < 256; i++)
4138    if (XOR (islower (i), ISLOWER (i))
4139	|| toupper (i) != TOUPPER (i))
4140      return 2;
4141  return 0;
4142}
4143_ACEOF
4144if ac_fn_c_try_run "$LINENO"; then :
4145
4146else
4147  ac_cv_header_stdc=no
4148fi
4149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4150  conftest.$ac_objext conftest.beam conftest.$ac_ext
4151fi
4152
4153fi
4154fi
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4156$as_echo "$ac_cv_header_stdc" >&6; }
4157if test $ac_cv_header_stdc = yes; then
4158
4159$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4160
4161fi
4162
4163# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4164for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4165		  inttypes.h stdint.h unistd.h
4166do :
4167  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4168ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4169"
4170if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4171  cat >>confdefs.h <<_ACEOF
4172#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4173_ACEOF
4174
4175fi
4176
4177done
4178
4179
4180
4181
4182
4183
4184ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4185if test "x$ac_cv_have_decl___clang__" = xyes; then :
4186  CLANGCC="yes"
4187else
4188  CLANGCC="no"
4189fi
4190
4191ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4192if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4193  INTELCC="yes"
4194else
4195  INTELCC="no"
4196fi
4197
4198ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4199if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4200  SUNCC="yes"
4201else
4202  SUNCC="no"
4203fi
4204
4205
4206
4207
4208if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4209	if test -n "$ac_tool_prefix"; then
4210  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4211set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213$as_echo_n "checking for $ac_word... " >&6; }
4214if ${ac_cv_path_PKG_CONFIG+:} false; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217  case $PKG_CONFIG in
4218  [\\/]* | ?:[\\/]*)
4219  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4220  ;;
4221  *)
4222  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225  IFS=$as_save_IFS
4226  test -z "$as_dir" && as_dir=.
4227    for ac_exec_ext in '' $ac_executable_extensions; do
4228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231    break 2
4232  fi
4233done
4234  done
4235IFS=$as_save_IFS
4236
4237  ;;
4238esac
4239fi
4240PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4241if test -n "$PKG_CONFIG"; then
4242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4243$as_echo "$PKG_CONFIG" >&6; }
4244else
4245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246$as_echo "no" >&6; }
4247fi
4248
4249
4250fi
4251if test -z "$ac_cv_path_PKG_CONFIG"; then
4252  ac_pt_PKG_CONFIG=$PKG_CONFIG
4253  # Extract the first word of "pkg-config", so it can be a program name with args.
4254set dummy pkg-config; ac_word=$2
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256$as_echo_n "checking for $ac_word... " >&6; }
4257if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4258  $as_echo_n "(cached) " >&6
4259else
4260  case $ac_pt_PKG_CONFIG in
4261  [\\/]* | ?:[\\/]*)
4262  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4263  ;;
4264  *)
4265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268  IFS=$as_save_IFS
4269  test -z "$as_dir" && as_dir=.
4270    for ac_exec_ext in '' $ac_executable_extensions; do
4271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274    break 2
4275  fi
4276done
4277  done
4278IFS=$as_save_IFS
4279
4280  ;;
4281esac
4282fi
4283ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4284if test -n "$ac_pt_PKG_CONFIG"; then
4285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4286$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4287else
4288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289$as_echo "no" >&6; }
4290fi
4291
4292  if test "x$ac_pt_PKG_CONFIG" = x; then
4293    PKG_CONFIG=""
4294  else
4295    case $cross_compiling:$ac_tool_warned in
4296yes:)
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4299ac_tool_warned=yes ;;
4300esac
4301    PKG_CONFIG=$ac_pt_PKG_CONFIG
4302  fi
4303else
4304  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4305fi
4306
4307fi
4308if test -n "$PKG_CONFIG"; then
4309	_pkg_min_version=0.9.0
4310	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4311$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4312	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4313		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4314$as_echo "yes" >&6; }
4315	else
4316		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317$as_echo "no" >&6; }
4318		PKG_CONFIG=""
4319	fi
4320
4321fi
4322# Make sure we can run config.sub.
4323$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4324  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4327$as_echo_n "checking build system type... " >&6; }
4328if ${ac_cv_build+:} false; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  ac_build_alias=$build_alias
4332test "x$ac_build_alias" = x &&
4333  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4334test "x$ac_build_alias" = x &&
4335  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4336ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4337  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4338
4339fi
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4341$as_echo "$ac_cv_build" >&6; }
4342case $ac_cv_build in
4343*-*-*) ;;
4344*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4345esac
4346build=$ac_cv_build
4347ac_save_IFS=$IFS; IFS='-'
4348set x $ac_cv_build
4349shift
4350build_cpu=$1
4351build_vendor=$2
4352shift; shift
4353# Remember, the first character of IFS is used to create $*,
4354# except with old shells:
4355build_os=$*
4356IFS=$ac_save_IFS
4357case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4358
4359
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4361$as_echo_n "checking host system type... " >&6; }
4362if ${ac_cv_host+:} false; then :
4363  $as_echo_n "(cached) " >&6
4364else
4365  if test "x$host_alias" = x; then
4366  ac_cv_host=$ac_cv_build
4367else
4368  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4369    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4370fi
4371
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4374$as_echo "$ac_cv_host" >&6; }
4375case $ac_cv_host in
4376*-*-*) ;;
4377*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4378esac
4379host=$ac_cv_host
4380ac_save_IFS=$IFS; IFS='-'
4381set x $ac_cv_host
4382shift
4383host_cpu=$1
4384host_vendor=$2
4385shift; shift
4386# Remember, the first character of IFS is used to create $*,
4387# except with old shells:
4388host_os=$*
4389IFS=$ac_save_IFS
4390case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4391
4392
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4394$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4395if ${ac_cv_path_SED+:} false; then :
4396  $as_echo_n "(cached) " >&6
4397else
4398            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4399     for ac_i in 1 2 3 4 5 6 7; do
4400       ac_script="$ac_script$as_nl$ac_script"
4401     done
4402     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4403     { ac_script=; unset ac_script;}
4404     if test -z "$SED"; then
4405  ac_path_SED_found=false
4406  # Loop through the user's path and test for each of PROGNAME-LIST
4407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412    for ac_prog in sed gsed; do
4413    for ac_exec_ext in '' $ac_executable_extensions; do
4414      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4415      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4416# Check for GNU ac_path_SED and select it if it is found.
4417  # Check for GNU $ac_path_SED
4418case `"$ac_path_SED" --version 2>&1` in
4419*GNU*)
4420  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4421*)
4422  ac_count=0
4423  $as_echo_n 0123456789 >"conftest.in"
4424  while :
4425  do
4426    cat "conftest.in" "conftest.in" >"conftest.tmp"
4427    mv "conftest.tmp" "conftest.in"
4428    cp "conftest.in" "conftest.nl"
4429    $as_echo '' >> "conftest.nl"
4430    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432    as_fn_arith $ac_count + 1 && ac_count=$as_val
4433    if test $ac_count -gt ${ac_path_SED_max-0}; then
4434      # Best one so far, save it but keep looking for a better one
4435      ac_cv_path_SED="$ac_path_SED"
4436      ac_path_SED_max=$ac_count
4437    fi
4438    # 10*(2^10) chars as input seems more than enough
4439    test $ac_count -gt 10 && break
4440  done
4441  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442esac
4443
4444      $ac_path_SED_found && break 3
4445    done
4446  done
4447  done
4448IFS=$as_save_IFS
4449  if test -z "$ac_cv_path_SED"; then
4450    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4451  fi
4452else
4453  ac_cv_path_SED=$SED
4454fi
4455
4456fi
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4458$as_echo "$ac_cv_path_SED" >&6; }
4459 SED="$ac_cv_path_SED"
4460  rm -f conftest.sed
4461
4462
4463
4464
4465
4466
4467# Check whether --enable-selective-werror was given.
4468if test "${enable_selective_werror+set}" = set; then :
4469  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4470else
4471  SELECTIVE_WERROR=yes
4472fi
4473
4474
4475
4476
4477
4478# -v is too short to test reliably with XORG_TESTSET_CFLAG
4479if test "x$SUNCC" = "xyes"; then
4480    BASE_CFLAGS="-v"
4481else
4482    BASE_CFLAGS=""
4483fi
4484
4485# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499xorg_testset_save_CFLAGS="$CFLAGS"
4500
4501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4502	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h.  */
4510int i;
4511_ACEOF
4512if ac_fn_c_try_compile "$LINENO"; then :
4513  xorg_cv_cc_flag_unknown_warning_option=yes
4514else
4515  xorg_cv_cc_flag_unknown_warning_option=no
4516fi
4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518fi
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4521	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4522	CFLAGS="$xorg_testset_save_CFLAGS"
4523fi
4524
4525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4526	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4527		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4528	fi
4529	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4530	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4533  $as_echo_n "(cached) " >&6
4534else
4535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h.  */
4537int i;
4538_ACEOF
4539if ac_fn_c_try_compile "$LINENO"; then :
4540  xorg_cv_cc_flag_unused_command_line_argument=yes
4541else
4542  xorg_cv_cc_flag_unused_command_line_argument=no
4543fi
4544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545fi
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4548	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4549	CFLAGS="$xorg_testset_save_CFLAGS"
4550fi
4551
4552found="no"
4553
4554	if test $found = "no" ; then
4555		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4556			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4557		fi
4558
4559		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4560			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4561		fi
4562
4563		CFLAGS="$CFLAGS -Wall"
4564
4565		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4566$as_echo_n "checking if $CC supports -Wall... " >&6; }
4567		cacheid=xorg_cv_cc_flag__Wall
4568		if eval \${$cacheid+:} false; then :
4569  $as_echo_n "(cached) " >&6
4570else
4571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572/* end confdefs.h.  */
4573int i;
4574int
4575main ()
4576{
4577
4578  ;
4579  return 0;
4580}
4581_ACEOF
4582if ac_fn_c_try_link "$LINENO"; then :
4583  eval $cacheid=yes
4584else
4585  eval $cacheid=no
4586fi
4587rm -f core conftest.err conftest.$ac_objext \
4588    conftest$ac_exeext conftest.$ac_ext
4589fi
4590
4591
4592		CFLAGS="$xorg_testset_save_CFLAGS"
4593
4594		eval supported=\$$cacheid
4595		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4596$as_echo "$supported" >&6; }
4597		if test "$supported" = "yes" ; then
4598			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4599			found="yes"
4600		fi
4601	fi
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617xorg_testset_save_CFLAGS="$CFLAGS"
4618
4619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4620	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4624  $as_echo_n "(cached) " >&6
4625else
4626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627/* end confdefs.h.  */
4628int i;
4629_ACEOF
4630if ac_fn_c_try_compile "$LINENO"; then :
4631  xorg_cv_cc_flag_unknown_warning_option=yes
4632else
4633  xorg_cv_cc_flag_unknown_warning_option=no
4634fi
4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636fi
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4639	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4640	CFLAGS="$xorg_testset_save_CFLAGS"
4641fi
4642
4643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4644	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4645		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4646	fi
4647	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4648	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4651  $as_echo_n "(cached) " >&6
4652else
4653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654/* end confdefs.h.  */
4655int i;
4656_ACEOF
4657if ac_fn_c_try_compile "$LINENO"; then :
4658  xorg_cv_cc_flag_unused_command_line_argument=yes
4659else
4660  xorg_cv_cc_flag_unused_command_line_argument=no
4661fi
4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663fi
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4666	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4667	CFLAGS="$xorg_testset_save_CFLAGS"
4668fi
4669
4670found="no"
4671
4672	if test $found = "no" ; then
4673		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4674			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4675		fi
4676
4677		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4678			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4679		fi
4680
4681		CFLAGS="$CFLAGS -Wpointer-arith"
4682
4683		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4684$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4685		cacheid=xorg_cv_cc_flag__Wpointer_arith
4686		if eval \${$cacheid+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690/* end confdefs.h.  */
4691int i;
4692int
4693main ()
4694{
4695
4696  ;
4697  return 0;
4698}
4699_ACEOF
4700if ac_fn_c_try_link "$LINENO"; then :
4701  eval $cacheid=yes
4702else
4703  eval $cacheid=no
4704fi
4705rm -f core conftest.err conftest.$ac_objext \
4706    conftest$ac_exeext conftest.$ac_ext
4707fi
4708
4709
4710		CFLAGS="$xorg_testset_save_CFLAGS"
4711
4712		eval supported=\$$cacheid
4713		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4714$as_echo "$supported" >&6; }
4715		if test "$supported" = "yes" ; then
4716			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4717			found="yes"
4718		fi
4719	fi
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735xorg_testset_save_CFLAGS="$CFLAGS"
4736
4737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4738	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4742  $as_echo_n "(cached) " >&6
4743else
4744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745/* end confdefs.h.  */
4746int i;
4747_ACEOF
4748if ac_fn_c_try_compile "$LINENO"; then :
4749  xorg_cv_cc_flag_unknown_warning_option=yes
4750else
4751  xorg_cv_cc_flag_unknown_warning_option=no
4752fi
4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754fi
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4757	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4758	CFLAGS="$xorg_testset_save_CFLAGS"
4759fi
4760
4761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4762	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4764	fi
4765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4769  $as_echo_n "(cached) " >&6
4770else
4771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h.  */
4773int i;
4774_ACEOF
4775if ac_fn_c_try_compile "$LINENO"; then :
4776  xorg_cv_cc_flag_unused_command_line_argument=yes
4777else
4778  xorg_cv_cc_flag_unused_command_line_argument=no
4779fi
4780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781fi
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4784	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4785	CFLAGS="$xorg_testset_save_CFLAGS"
4786fi
4787
4788found="no"
4789
4790	if test $found = "no" ; then
4791		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4792			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4793		fi
4794
4795		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4796			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4797		fi
4798
4799		CFLAGS="$CFLAGS -Wmissing-declarations"
4800
4801		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4802$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4803		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4804		if eval \${$cacheid+:} false; then :
4805  $as_echo_n "(cached) " >&6
4806else
4807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808/* end confdefs.h.  */
4809int i;
4810int
4811main ()
4812{
4813
4814  ;
4815  return 0;
4816}
4817_ACEOF
4818if ac_fn_c_try_link "$LINENO"; then :
4819  eval $cacheid=yes
4820else
4821  eval $cacheid=no
4822fi
4823rm -f core conftest.err conftest.$ac_objext \
4824    conftest$ac_exeext conftest.$ac_ext
4825fi
4826
4827
4828		CFLAGS="$xorg_testset_save_CFLAGS"
4829
4830		eval supported=\$$cacheid
4831		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4832$as_echo "$supported" >&6; }
4833		if test "$supported" = "yes" ; then
4834			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4835			found="yes"
4836		fi
4837	fi
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853xorg_testset_save_CFLAGS="$CFLAGS"
4854
4855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4856	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4857	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4860  $as_echo_n "(cached) " >&6
4861else
4862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863/* end confdefs.h.  */
4864int i;
4865_ACEOF
4866if ac_fn_c_try_compile "$LINENO"; then :
4867  xorg_cv_cc_flag_unknown_warning_option=yes
4868else
4869  xorg_cv_cc_flag_unknown_warning_option=no
4870fi
4871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872fi
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4875	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4876	CFLAGS="$xorg_testset_save_CFLAGS"
4877fi
4878
4879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4880	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4881		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4882	fi
4883	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4887  $as_echo_n "(cached) " >&6
4888else
4889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890/* end confdefs.h.  */
4891int i;
4892_ACEOF
4893if ac_fn_c_try_compile "$LINENO"; then :
4894  xorg_cv_cc_flag_unused_command_line_argument=yes
4895else
4896  xorg_cv_cc_flag_unused_command_line_argument=no
4897fi
4898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899fi
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4902	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4903	CFLAGS="$xorg_testset_save_CFLAGS"
4904fi
4905
4906found="no"
4907
4908	if test $found = "no" ; then
4909		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4910			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4911		fi
4912
4913		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4914			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4915		fi
4916
4917		CFLAGS="$CFLAGS -Wformat=2"
4918
4919		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4920$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4921		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4922		if eval \${$cacheid+:} false; then :
4923  $as_echo_n "(cached) " >&6
4924else
4925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926/* end confdefs.h.  */
4927int i;
4928int
4929main ()
4930{
4931
4932  ;
4933  return 0;
4934}
4935_ACEOF
4936if ac_fn_c_try_link "$LINENO"; then :
4937  eval $cacheid=yes
4938else
4939  eval $cacheid=no
4940fi
4941rm -f core conftest.err conftest.$ac_objext \
4942    conftest$ac_exeext conftest.$ac_ext
4943fi
4944
4945
4946		CFLAGS="$xorg_testset_save_CFLAGS"
4947
4948		eval supported=\$$cacheid
4949		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4950$as_echo "$supported" >&6; }
4951		if test "$supported" = "yes" ; then
4952			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4953			found="yes"
4954		fi
4955	fi
4956
4957	if test $found = "no" ; then
4958		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4960		fi
4961
4962		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4964		fi
4965
4966		CFLAGS="$CFLAGS -Wformat"
4967
4968		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4969$as_echo_n "checking if $CC supports -Wformat... " >&6; }
4970		cacheid=xorg_cv_cc_flag__Wformat
4971		if eval \${$cacheid+:} false; then :
4972  $as_echo_n "(cached) " >&6
4973else
4974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h.  */
4976int i;
4977int
4978main ()
4979{
4980
4981  ;
4982  return 0;
4983}
4984_ACEOF
4985if ac_fn_c_try_link "$LINENO"; then :
4986  eval $cacheid=yes
4987else
4988  eval $cacheid=no
4989fi
4990rm -f core conftest.err conftest.$ac_objext \
4991    conftest$ac_exeext conftest.$ac_ext
4992fi
4993
4994
4995		CFLAGS="$xorg_testset_save_CFLAGS"
4996
4997		eval supported=\$$cacheid
4998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4999$as_echo "$supported" >&6; }
5000		if test "$supported" = "yes" ; then
5001			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5002			found="yes"
5003		fi
5004	fi
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022xorg_testset_save_CFLAGS="$CFLAGS"
5023
5024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5029  $as_echo_n "(cached) " >&6
5030else
5031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032/* end confdefs.h.  */
5033int i;
5034_ACEOF
5035if ac_fn_c_try_compile "$LINENO"; then :
5036  xorg_cv_cc_flag_unknown_warning_option=yes
5037else
5038  xorg_cv_cc_flag_unknown_warning_option=no
5039fi
5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041fi
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5045	CFLAGS="$xorg_testset_save_CFLAGS"
5046fi
5047
5048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5051	fi
5052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5056  $as_echo_n "(cached) " >&6
5057else
5058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059/* end confdefs.h.  */
5060int i;
5061_ACEOF
5062if ac_fn_c_try_compile "$LINENO"; then :
5063  xorg_cv_cc_flag_unused_command_line_argument=yes
5064else
5065  xorg_cv_cc_flag_unused_command_line_argument=no
5066fi
5067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5071	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5072	CFLAGS="$xorg_testset_save_CFLAGS"
5073fi
5074
5075found="no"
5076
5077	if test $found = "no" ; then
5078		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5079			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5080		fi
5081
5082		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5083			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5084		fi
5085
5086		CFLAGS="$CFLAGS -Wstrict-prototypes"
5087
5088		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5089$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5090		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5091		if eval \${$cacheid+:} false; then :
5092  $as_echo_n "(cached) " >&6
5093else
5094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095/* end confdefs.h.  */
5096int i;
5097int
5098main ()
5099{
5100
5101  ;
5102  return 0;
5103}
5104_ACEOF
5105if ac_fn_c_try_link "$LINENO"; then :
5106  eval $cacheid=yes
5107else
5108  eval $cacheid=no
5109fi
5110rm -f core conftest.err conftest.$ac_objext \
5111    conftest$ac_exeext conftest.$ac_ext
5112fi
5113
5114
5115		CFLAGS="$xorg_testset_save_CFLAGS"
5116
5117		eval supported=\$$cacheid
5118		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5119$as_echo "$supported" >&6; }
5120		if test "$supported" = "yes" ; then
5121			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5122			found="yes"
5123		fi
5124	fi
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140xorg_testset_save_CFLAGS="$CFLAGS"
5141
5142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5145$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5146if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5147  $as_echo_n "(cached) " >&6
5148else
5149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h.  */
5151int i;
5152_ACEOF
5153if ac_fn_c_try_compile "$LINENO"; then :
5154  xorg_cv_cc_flag_unknown_warning_option=yes
5155else
5156  xorg_cv_cc_flag_unknown_warning_option=no
5157fi
5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5161$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5163	CFLAGS="$xorg_testset_save_CFLAGS"
5164fi
5165
5166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5169	fi
5170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5172$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5173if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5174  $as_echo_n "(cached) " >&6
5175else
5176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h.  */
5178int i;
5179_ACEOF
5180if ac_fn_c_try_compile "$LINENO"; then :
5181  xorg_cv_cc_flag_unused_command_line_argument=yes
5182else
5183  xorg_cv_cc_flag_unused_command_line_argument=no
5184fi
5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186fi
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5188$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5189	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5190	CFLAGS="$xorg_testset_save_CFLAGS"
5191fi
5192
5193found="no"
5194
5195	if test $found = "no" ; then
5196		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198		fi
5199
5200		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5202		fi
5203
5204		CFLAGS="$CFLAGS -Wmissing-prototypes"
5205
5206		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5207$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5208		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5209		if eval \${$cacheid+:} false; then :
5210  $as_echo_n "(cached) " >&6
5211else
5212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213/* end confdefs.h.  */
5214int i;
5215int
5216main ()
5217{
5218
5219  ;
5220  return 0;
5221}
5222_ACEOF
5223if ac_fn_c_try_link "$LINENO"; then :
5224  eval $cacheid=yes
5225else
5226  eval $cacheid=no
5227fi
5228rm -f core conftest.err conftest.$ac_objext \
5229    conftest$ac_exeext conftest.$ac_ext
5230fi
5231
5232
5233		CFLAGS="$xorg_testset_save_CFLAGS"
5234
5235		eval supported=\$$cacheid
5236		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5237$as_echo "$supported" >&6; }
5238		if test "$supported" = "yes" ; then
5239			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5240			found="yes"
5241		fi
5242	fi
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258xorg_testset_save_CFLAGS="$CFLAGS"
5259
5260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5261	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5263$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5264if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268/* end confdefs.h.  */
5269int i;
5270_ACEOF
5271if ac_fn_c_try_compile "$LINENO"; then :
5272  xorg_cv_cc_flag_unknown_warning_option=yes
5273else
5274  xorg_cv_cc_flag_unknown_warning_option=no
5275fi
5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277fi
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5279$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5280	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5281	CFLAGS="$xorg_testset_save_CFLAGS"
5282fi
5283
5284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5285	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5286		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5287	fi
5288	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5290$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5291if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h.  */
5296int i;
5297_ACEOF
5298if ac_fn_c_try_compile "$LINENO"; then :
5299  xorg_cv_cc_flag_unused_command_line_argument=yes
5300else
5301  xorg_cv_cc_flag_unused_command_line_argument=no
5302fi
5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304fi
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5306$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5307	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5308	CFLAGS="$xorg_testset_save_CFLAGS"
5309fi
5310
5311found="no"
5312
5313	if test $found = "no" ; then
5314		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5315			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5316		fi
5317
5318		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5319			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5320		fi
5321
5322		CFLAGS="$CFLAGS -Wnested-externs"
5323
5324		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5325$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5326		cacheid=xorg_cv_cc_flag__Wnested_externs
5327		if eval \${$cacheid+:} false; then :
5328  $as_echo_n "(cached) " >&6
5329else
5330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331/* end confdefs.h.  */
5332int i;
5333int
5334main ()
5335{
5336
5337  ;
5338  return 0;
5339}
5340_ACEOF
5341if ac_fn_c_try_link "$LINENO"; then :
5342  eval $cacheid=yes
5343else
5344  eval $cacheid=no
5345fi
5346rm -f core conftest.err conftest.$ac_objext \
5347    conftest$ac_exeext conftest.$ac_ext
5348fi
5349
5350
5351		CFLAGS="$xorg_testset_save_CFLAGS"
5352
5353		eval supported=\$$cacheid
5354		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5355$as_echo "$supported" >&6; }
5356		if test "$supported" = "yes" ; then
5357			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5358			found="yes"
5359		fi
5360	fi
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376xorg_testset_save_CFLAGS="$CFLAGS"
5377
5378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5383  $as_echo_n "(cached) " >&6
5384else
5385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386/* end confdefs.h.  */
5387int i;
5388_ACEOF
5389if ac_fn_c_try_compile "$LINENO"; then :
5390  xorg_cv_cc_flag_unknown_warning_option=yes
5391else
5392  xorg_cv_cc_flag_unknown_warning_option=no
5393fi
5394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5398	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5399	CFLAGS="$xorg_testset_save_CFLAGS"
5400fi
5401
5402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5403	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5404		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5405	fi
5406	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5410  $as_echo_n "(cached) " >&6
5411else
5412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h.  */
5414int i;
5415_ACEOF
5416if ac_fn_c_try_compile "$LINENO"; then :
5417  xorg_cv_cc_flag_unused_command_line_argument=yes
5418else
5419  xorg_cv_cc_flag_unused_command_line_argument=no
5420fi
5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5425	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5426	CFLAGS="$xorg_testset_save_CFLAGS"
5427fi
5428
5429found="no"
5430
5431	if test $found = "no" ; then
5432		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5434		fi
5435
5436		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5438		fi
5439
5440		CFLAGS="$CFLAGS -Wbad-function-cast"
5441
5442		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5443$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5444		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5445		if eval \${$cacheid+:} false; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h.  */
5450int i;
5451int
5452main ()
5453{
5454
5455  ;
5456  return 0;
5457}
5458_ACEOF
5459if ac_fn_c_try_link "$LINENO"; then :
5460  eval $cacheid=yes
5461else
5462  eval $cacheid=no
5463fi
5464rm -f core conftest.err conftest.$ac_objext \
5465    conftest$ac_exeext conftest.$ac_ext
5466fi
5467
5468
5469		CFLAGS="$xorg_testset_save_CFLAGS"
5470
5471		eval supported=\$$cacheid
5472		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5473$as_echo "$supported" >&6; }
5474		if test "$supported" = "yes" ; then
5475			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5476			found="yes"
5477		fi
5478	fi
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494xorg_testset_save_CFLAGS="$CFLAGS"
5495
5496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5497	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5501  $as_echo_n "(cached) " >&6
5502else
5503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504/* end confdefs.h.  */
5505int i;
5506_ACEOF
5507if ac_fn_c_try_compile "$LINENO"; then :
5508  xorg_cv_cc_flag_unknown_warning_option=yes
5509else
5510  xorg_cv_cc_flag_unknown_warning_option=no
5511fi
5512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513fi
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5517	CFLAGS="$xorg_testset_save_CFLAGS"
5518fi
5519
5520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5523	fi
5524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5528  $as_echo_n "(cached) " >&6
5529else
5530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531/* end confdefs.h.  */
5532int i;
5533_ACEOF
5534if ac_fn_c_try_compile "$LINENO"; then :
5535  xorg_cv_cc_flag_unused_command_line_argument=yes
5536else
5537  xorg_cv_cc_flag_unused_command_line_argument=no
5538fi
5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5543	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5544	CFLAGS="$xorg_testset_save_CFLAGS"
5545fi
5546
5547found="no"
5548
5549	if test $found = "no" ; then
5550		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5552		fi
5553
5554		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5556		fi
5557
5558		CFLAGS="$CFLAGS -Wold-style-definition"
5559
5560		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5561$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5562		cacheid=xorg_cv_cc_flag__Wold_style_definition
5563		if eval \${$cacheid+:} false; then :
5564  $as_echo_n "(cached) " >&6
5565else
5566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567/* end confdefs.h.  */
5568int i;
5569int
5570main ()
5571{
5572
5573  ;
5574  return 0;
5575}
5576_ACEOF
5577if ac_fn_c_try_link "$LINENO"; then :
5578  eval $cacheid=yes
5579else
5580  eval $cacheid=no
5581fi
5582rm -f core conftest.err conftest.$ac_objext \
5583    conftest$ac_exeext conftest.$ac_ext
5584fi
5585
5586
5587		CFLAGS="$xorg_testset_save_CFLAGS"
5588
5589		eval supported=\$$cacheid
5590		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5591$as_echo "$supported" >&6; }
5592		if test "$supported" = "yes" ; then
5593			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5594			found="yes"
5595		fi
5596	fi
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612xorg_testset_save_CFLAGS="$CFLAGS"
5613
5614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5619  $as_echo_n "(cached) " >&6
5620else
5621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622/* end confdefs.h.  */
5623int i;
5624_ACEOF
5625if ac_fn_c_try_compile "$LINENO"; then :
5626  xorg_cv_cc_flag_unknown_warning_option=yes
5627else
5628  xorg_cv_cc_flag_unknown_warning_option=no
5629fi
5630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631fi
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5635	CFLAGS="$xorg_testset_save_CFLAGS"
5636fi
5637
5638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5641	fi
5642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h.  */
5650int i;
5651_ACEOF
5652if ac_fn_c_try_compile "$LINENO"; then :
5653  xorg_cv_cc_flag_unused_command_line_argument=yes
5654else
5655  xorg_cv_cc_flag_unused_command_line_argument=no
5656fi
5657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658fi
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5662	CFLAGS="$xorg_testset_save_CFLAGS"
5663fi
5664
5665found="no"
5666
5667	if test $found = "no" ; then
5668		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5670		fi
5671
5672		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5674		fi
5675
5676		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5677
5678		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5679$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5680		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5681		if eval \${$cacheid+:} false; then :
5682  $as_echo_n "(cached) " >&6
5683else
5684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685/* end confdefs.h.  */
5686int i;
5687int
5688main ()
5689{
5690
5691  ;
5692  return 0;
5693}
5694_ACEOF
5695if ac_fn_c_try_link "$LINENO"; then :
5696  eval $cacheid=yes
5697else
5698  eval $cacheid=no
5699fi
5700rm -f core conftest.err conftest.$ac_objext \
5701    conftest$ac_exeext conftest.$ac_ext
5702fi
5703
5704
5705		CFLAGS="$xorg_testset_save_CFLAGS"
5706
5707		eval supported=\$$cacheid
5708		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5709$as_echo "$supported" >&6; }
5710		if test "$supported" = "yes" ; then
5711			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5712			found="yes"
5713		fi
5714	fi
5715
5716
5717
5718
5719
5720# This chunk adds additional warnings that could catch undesired effects.
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734xorg_testset_save_CFLAGS="$CFLAGS"
5735
5736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5738	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5741  $as_echo_n "(cached) " >&6
5742else
5743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744/* end confdefs.h.  */
5745int i;
5746_ACEOF
5747if ac_fn_c_try_compile "$LINENO"; then :
5748  xorg_cv_cc_flag_unknown_warning_option=yes
5749else
5750  xorg_cv_cc_flag_unknown_warning_option=no
5751fi
5752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753fi
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5757	CFLAGS="$xorg_testset_save_CFLAGS"
5758fi
5759
5760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5763	fi
5764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5768  $as_echo_n "(cached) " >&6
5769else
5770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h.  */
5772int i;
5773_ACEOF
5774if ac_fn_c_try_compile "$LINENO"; then :
5775  xorg_cv_cc_flag_unused_command_line_argument=yes
5776else
5777  xorg_cv_cc_flag_unused_command_line_argument=no
5778fi
5779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780fi
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5783	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5784	CFLAGS="$xorg_testset_save_CFLAGS"
5785fi
5786
5787found="no"
5788
5789	if test $found = "no" ; then
5790		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5792		fi
5793
5794		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5796		fi
5797
5798		CFLAGS="$CFLAGS -Wunused"
5799
5800		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5801$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5802		cacheid=xorg_cv_cc_flag__Wunused
5803		if eval \${$cacheid+:} false; then :
5804  $as_echo_n "(cached) " >&6
5805else
5806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807/* end confdefs.h.  */
5808int i;
5809int
5810main ()
5811{
5812
5813  ;
5814  return 0;
5815}
5816_ACEOF
5817if ac_fn_c_try_link "$LINENO"; then :
5818  eval $cacheid=yes
5819else
5820  eval $cacheid=no
5821fi
5822rm -f core conftest.err conftest.$ac_objext \
5823    conftest$ac_exeext conftest.$ac_ext
5824fi
5825
5826
5827		CFLAGS="$xorg_testset_save_CFLAGS"
5828
5829		eval supported=\$$cacheid
5830		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5831$as_echo "$supported" >&6; }
5832		if test "$supported" = "yes" ; then
5833			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5834			found="yes"
5835		fi
5836	fi
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852xorg_testset_save_CFLAGS="$CFLAGS"
5853
5854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5855	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5859  $as_echo_n "(cached) " >&6
5860else
5861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862/* end confdefs.h.  */
5863int i;
5864_ACEOF
5865if ac_fn_c_try_compile "$LINENO"; then :
5866  xorg_cv_cc_flag_unknown_warning_option=yes
5867else
5868  xorg_cv_cc_flag_unknown_warning_option=no
5869fi
5870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871fi
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5875	CFLAGS="$xorg_testset_save_CFLAGS"
5876fi
5877
5878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5881	fi
5882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h.  */
5890int i;
5891_ACEOF
5892if ac_fn_c_try_compile "$LINENO"; then :
5893  xorg_cv_cc_flag_unused_command_line_argument=yes
5894else
5895  xorg_cv_cc_flag_unused_command_line_argument=no
5896fi
5897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898fi
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5902	CFLAGS="$xorg_testset_save_CFLAGS"
5903fi
5904
5905found="no"
5906
5907	if test $found = "no" ; then
5908		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5910		fi
5911
5912		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5914		fi
5915
5916		CFLAGS="$CFLAGS -Wuninitialized"
5917
5918		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5919$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5920		cacheid=xorg_cv_cc_flag__Wuninitialized
5921		if eval \${$cacheid+:} false; then :
5922  $as_echo_n "(cached) " >&6
5923else
5924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h.  */
5926int i;
5927int
5928main ()
5929{
5930
5931  ;
5932  return 0;
5933}
5934_ACEOF
5935if ac_fn_c_try_link "$LINENO"; then :
5936  eval $cacheid=yes
5937else
5938  eval $cacheid=no
5939fi
5940rm -f core conftest.err conftest.$ac_objext \
5941    conftest$ac_exeext conftest.$ac_ext
5942fi
5943
5944
5945		CFLAGS="$xorg_testset_save_CFLAGS"
5946
5947		eval supported=\$$cacheid
5948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5949$as_echo "$supported" >&6; }
5950		if test "$supported" = "yes" ; then
5951			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5952			found="yes"
5953		fi
5954	fi
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970xorg_testset_save_CFLAGS="$CFLAGS"
5971
5972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5977  $as_echo_n "(cached) " >&6
5978else
5979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980/* end confdefs.h.  */
5981int i;
5982_ACEOF
5983if ac_fn_c_try_compile "$LINENO"; then :
5984  xorg_cv_cc_flag_unknown_warning_option=yes
5985else
5986  xorg_cv_cc_flag_unknown_warning_option=no
5987fi
5988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989fi
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5993	CFLAGS="$xorg_testset_save_CFLAGS"
5994fi
5995
5996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5999	fi
6000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h.  */
6008int i;
6009_ACEOF
6010if ac_fn_c_try_compile "$LINENO"; then :
6011  xorg_cv_cc_flag_unused_command_line_argument=yes
6012else
6013  xorg_cv_cc_flag_unused_command_line_argument=no
6014fi
6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016fi
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6020	CFLAGS="$xorg_testset_save_CFLAGS"
6021fi
6022
6023found="no"
6024
6025	if test $found = "no" ; then
6026		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6028		fi
6029
6030		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6032		fi
6033
6034		CFLAGS="$CFLAGS -Wshadow"
6035
6036		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6037$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6038		cacheid=xorg_cv_cc_flag__Wshadow
6039		if eval \${$cacheid+:} false; then :
6040  $as_echo_n "(cached) " >&6
6041else
6042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043/* end confdefs.h.  */
6044int i;
6045int
6046main ()
6047{
6048
6049  ;
6050  return 0;
6051}
6052_ACEOF
6053if ac_fn_c_try_link "$LINENO"; then :
6054  eval $cacheid=yes
6055else
6056  eval $cacheid=no
6057fi
6058rm -f core conftest.err conftest.$ac_objext \
6059    conftest$ac_exeext conftest.$ac_ext
6060fi
6061
6062
6063		CFLAGS="$xorg_testset_save_CFLAGS"
6064
6065		eval supported=\$$cacheid
6066		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6067$as_echo "$supported" >&6; }
6068		if test "$supported" = "yes" ; then
6069			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6070			found="yes"
6071		fi
6072	fi
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088xorg_testset_save_CFLAGS="$CFLAGS"
6089
6090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6091	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6092	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6095  $as_echo_n "(cached) " >&6
6096else
6097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098/* end confdefs.h.  */
6099int i;
6100_ACEOF
6101if ac_fn_c_try_compile "$LINENO"; then :
6102  xorg_cv_cc_flag_unknown_warning_option=yes
6103else
6104  xorg_cv_cc_flag_unknown_warning_option=no
6105fi
6106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107fi
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6111	CFLAGS="$xorg_testset_save_CFLAGS"
6112fi
6113
6114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117	fi
6118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6122  $as_echo_n "(cached) " >&6
6123else
6124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h.  */
6126int i;
6127_ACEOF
6128if ac_fn_c_try_compile "$LINENO"; then :
6129  xorg_cv_cc_flag_unused_command_line_argument=yes
6130else
6131  xorg_cv_cc_flag_unused_command_line_argument=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134fi
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6137	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6138	CFLAGS="$xorg_testset_save_CFLAGS"
6139fi
6140
6141found="no"
6142
6143	if test $found = "no" ; then
6144		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6146		fi
6147
6148		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6150		fi
6151
6152		CFLAGS="$CFLAGS -Wcast-qual"
6153
6154		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6155$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6156		cacheid=xorg_cv_cc_flag__Wcast_qual
6157		if eval \${$cacheid+:} false; then :
6158  $as_echo_n "(cached) " >&6
6159else
6160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161/* end confdefs.h.  */
6162int i;
6163int
6164main ()
6165{
6166
6167  ;
6168  return 0;
6169}
6170_ACEOF
6171if ac_fn_c_try_link "$LINENO"; then :
6172  eval $cacheid=yes
6173else
6174  eval $cacheid=no
6175fi
6176rm -f core conftest.err conftest.$ac_objext \
6177    conftest$ac_exeext conftest.$ac_ext
6178fi
6179
6180
6181		CFLAGS="$xorg_testset_save_CFLAGS"
6182
6183		eval supported=\$$cacheid
6184		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6185$as_echo "$supported" >&6; }
6186		if test "$supported" = "yes" ; then
6187			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6188			found="yes"
6189		fi
6190	fi
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206xorg_testset_save_CFLAGS="$CFLAGS"
6207
6208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6213  $as_echo_n "(cached) " >&6
6214else
6215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216/* end confdefs.h.  */
6217int i;
6218_ACEOF
6219if ac_fn_c_try_compile "$LINENO"; then :
6220  xorg_cv_cc_flag_unknown_warning_option=yes
6221else
6222  xorg_cv_cc_flag_unknown_warning_option=no
6223fi
6224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225fi
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6229	CFLAGS="$xorg_testset_save_CFLAGS"
6230fi
6231
6232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6235	fi
6236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h.  */
6244int i;
6245_ACEOF
6246if ac_fn_c_try_compile "$LINENO"; then :
6247  xorg_cv_cc_flag_unused_command_line_argument=yes
6248else
6249  xorg_cv_cc_flag_unused_command_line_argument=no
6250fi
6251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252fi
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6256	CFLAGS="$xorg_testset_save_CFLAGS"
6257fi
6258
6259found="no"
6260
6261	if test $found = "no" ; then
6262		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264		fi
6265
6266		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6268		fi
6269
6270		CFLAGS="$CFLAGS -Wmissing-noreturn"
6271
6272		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6273$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6274		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6275		if eval \${$cacheid+:} false; then :
6276  $as_echo_n "(cached) " >&6
6277else
6278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279/* end confdefs.h.  */
6280int i;
6281int
6282main ()
6283{
6284
6285  ;
6286  return 0;
6287}
6288_ACEOF
6289if ac_fn_c_try_link "$LINENO"; then :
6290  eval $cacheid=yes
6291else
6292  eval $cacheid=no
6293fi
6294rm -f core conftest.err conftest.$ac_objext \
6295    conftest$ac_exeext conftest.$ac_ext
6296fi
6297
6298
6299		CFLAGS="$xorg_testset_save_CFLAGS"
6300
6301		eval supported=\$$cacheid
6302		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6303$as_echo "$supported" >&6; }
6304		if test "$supported" = "yes" ; then
6305			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6306			found="yes"
6307		fi
6308	fi
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324xorg_testset_save_CFLAGS="$CFLAGS"
6325
6326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6331  $as_echo_n "(cached) " >&6
6332else
6333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h.  */
6335int i;
6336_ACEOF
6337if ac_fn_c_try_compile "$LINENO"; then :
6338  xorg_cv_cc_flag_unknown_warning_option=yes
6339else
6340  xorg_cv_cc_flag_unknown_warning_option=no
6341fi
6342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343fi
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6347	CFLAGS="$xorg_testset_save_CFLAGS"
6348fi
6349
6350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6353	fi
6354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362int i;
6363_ACEOF
6364if ac_fn_c_try_compile "$LINENO"; then :
6365  xorg_cv_cc_flag_unused_command_line_argument=yes
6366else
6367  xorg_cv_cc_flag_unused_command_line_argument=no
6368fi
6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6374	CFLAGS="$xorg_testset_save_CFLAGS"
6375fi
6376
6377found="no"
6378
6379	if test $found = "no" ; then
6380		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6382		fi
6383
6384		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6386		fi
6387
6388		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6389
6390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6391$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6392		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6393		if eval \${$cacheid+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397/* end confdefs.h.  */
6398int i;
6399int
6400main ()
6401{
6402
6403  ;
6404  return 0;
6405}
6406_ACEOF
6407if ac_fn_c_try_link "$LINENO"; then :
6408  eval $cacheid=yes
6409else
6410  eval $cacheid=no
6411fi
6412rm -f core conftest.err conftest.$ac_objext \
6413    conftest$ac_exeext conftest.$ac_ext
6414fi
6415
6416
6417		CFLAGS="$xorg_testset_save_CFLAGS"
6418
6419		eval supported=\$$cacheid
6420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6421$as_echo "$supported" >&6; }
6422		if test "$supported" = "yes" ; then
6423			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6424			found="yes"
6425		fi
6426	fi
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442xorg_testset_save_CFLAGS="$CFLAGS"
6443
6444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6449  $as_echo_n "(cached) " >&6
6450else
6451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h.  */
6453int i;
6454_ACEOF
6455if ac_fn_c_try_compile "$LINENO"; then :
6456  xorg_cv_cc_flag_unknown_warning_option=yes
6457else
6458  xorg_cv_cc_flag_unknown_warning_option=no
6459fi
6460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461fi
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6465	CFLAGS="$xorg_testset_save_CFLAGS"
6466fi
6467
6468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471	fi
6472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h.  */
6480int i;
6481_ACEOF
6482if ac_fn_c_try_compile "$LINENO"; then :
6483  xorg_cv_cc_flag_unused_command_line_argument=yes
6484else
6485  xorg_cv_cc_flag_unused_command_line_argument=no
6486fi
6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488fi
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6492	CFLAGS="$xorg_testset_save_CFLAGS"
6493fi
6494
6495found="no"
6496
6497	if test $found = "no" ; then
6498		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6500		fi
6501
6502		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6504		fi
6505
6506		CFLAGS="$CFLAGS -Wredundant-decls"
6507
6508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6509$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6510		cacheid=xorg_cv_cc_flag__Wredundant_decls
6511		if eval \${$cacheid+:} false; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515/* end confdefs.h.  */
6516int i;
6517int
6518main ()
6519{
6520
6521  ;
6522  return 0;
6523}
6524_ACEOF
6525if ac_fn_c_try_link "$LINENO"; then :
6526  eval $cacheid=yes
6527else
6528  eval $cacheid=no
6529fi
6530rm -f core conftest.err conftest.$ac_objext \
6531    conftest$ac_exeext conftest.$ac_ext
6532fi
6533
6534
6535		CFLAGS="$xorg_testset_save_CFLAGS"
6536
6537		eval supported=\$$cacheid
6538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6539$as_echo "$supported" >&6; }
6540		if test "$supported" = "yes" ; then
6541			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6542			found="yes"
6543		fi
6544	fi
6545
6546
6547
6548# These are currently disabled because they are noisy.  They will be enabled
6549# in the future once the codebase is sufficiently modernized to silence
6550# them.  For now, I don't want them to drown out the other warnings.
6551# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6552# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6553# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6554
6555# Turn some warnings into errors, so we don't accidently get successful builds
6556# when there are problems that should be fixed.
6557
6558if test "x$SELECTIVE_WERROR" = "xyes" ; then
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572xorg_testset_save_CFLAGS="$CFLAGS"
6573
6574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6575	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6579  $as_echo_n "(cached) " >&6
6580else
6581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582/* end confdefs.h.  */
6583int i;
6584_ACEOF
6585if ac_fn_c_try_compile "$LINENO"; then :
6586  xorg_cv_cc_flag_unknown_warning_option=yes
6587else
6588  xorg_cv_cc_flag_unknown_warning_option=no
6589fi
6590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591fi
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6594	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6595	CFLAGS="$xorg_testset_save_CFLAGS"
6596fi
6597
6598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6599	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6600		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6601	fi
6602	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6606  $as_echo_n "(cached) " >&6
6607else
6608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609/* end confdefs.h.  */
6610int i;
6611_ACEOF
6612if ac_fn_c_try_compile "$LINENO"; then :
6613  xorg_cv_cc_flag_unused_command_line_argument=yes
6614else
6615  xorg_cv_cc_flag_unused_command_line_argument=no
6616fi
6617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618fi
6619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6621	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6622	CFLAGS="$xorg_testset_save_CFLAGS"
6623fi
6624
6625found="no"
6626
6627	if test $found = "no" ; then
6628		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6629			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6630		fi
6631
6632		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6633			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6634		fi
6635
6636		CFLAGS="$CFLAGS -Werror=implicit"
6637
6638		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6639$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6640		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6641		if eval \${$cacheid+:} false; then :
6642  $as_echo_n "(cached) " >&6
6643else
6644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645/* end confdefs.h.  */
6646int i;
6647int
6648main ()
6649{
6650
6651  ;
6652  return 0;
6653}
6654_ACEOF
6655if ac_fn_c_try_link "$LINENO"; then :
6656  eval $cacheid=yes
6657else
6658  eval $cacheid=no
6659fi
6660rm -f core conftest.err conftest.$ac_objext \
6661    conftest$ac_exeext conftest.$ac_ext
6662fi
6663
6664
6665		CFLAGS="$xorg_testset_save_CFLAGS"
6666
6667		eval supported=\$$cacheid
6668		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6669$as_echo "$supported" >&6; }
6670		if test "$supported" = "yes" ; then
6671			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6672			found="yes"
6673		fi
6674	fi
6675
6676	if test $found = "no" ; then
6677		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679		fi
6680
6681		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6683		fi
6684
6685		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6686
6687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6688$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6689		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6690		if eval \${$cacheid+:} false; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694/* end confdefs.h.  */
6695int i;
6696int
6697main ()
6698{
6699
6700  ;
6701  return 0;
6702}
6703_ACEOF
6704if ac_fn_c_try_link "$LINENO"; then :
6705  eval $cacheid=yes
6706else
6707  eval $cacheid=no
6708fi
6709rm -f core conftest.err conftest.$ac_objext \
6710    conftest$ac_exeext conftest.$ac_ext
6711fi
6712
6713
6714		CFLAGS="$xorg_testset_save_CFLAGS"
6715
6716		eval supported=\$$cacheid
6717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6718$as_echo "$supported" >&6; }
6719		if test "$supported" = "yes" ; then
6720			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6721			found="yes"
6722		fi
6723	fi
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739xorg_testset_save_CFLAGS="$CFLAGS"
6740
6741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6742	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750int i;
6751_ACEOF
6752if ac_fn_c_try_compile "$LINENO"; then :
6753  xorg_cv_cc_flag_unknown_warning_option=yes
6754else
6755  xorg_cv_cc_flag_unknown_warning_option=no
6756fi
6757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758fi
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6761	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6762	CFLAGS="$xorg_testset_save_CFLAGS"
6763fi
6764
6765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6766	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6767		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6768	fi
6769	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h.  */
6777int i;
6778_ACEOF
6779if ac_fn_c_try_compile "$LINENO"; then :
6780  xorg_cv_cc_flag_unused_command_line_argument=yes
6781else
6782  xorg_cv_cc_flag_unused_command_line_argument=no
6783fi
6784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785fi
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6789	CFLAGS="$xorg_testset_save_CFLAGS"
6790fi
6791
6792found="no"
6793
6794	if test $found = "no" ; then
6795		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797		fi
6798
6799		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6801		fi
6802
6803		CFLAGS="$CFLAGS -Werror=nonnull"
6804
6805		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6806$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6807		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6808		if eval \${$cacheid+:} false; then :
6809  $as_echo_n "(cached) " >&6
6810else
6811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812/* end confdefs.h.  */
6813int i;
6814int
6815main ()
6816{
6817
6818  ;
6819  return 0;
6820}
6821_ACEOF
6822if ac_fn_c_try_link "$LINENO"; then :
6823  eval $cacheid=yes
6824else
6825  eval $cacheid=no
6826fi
6827rm -f core conftest.err conftest.$ac_objext \
6828    conftest$ac_exeext conftest.$ac_ext
6829fi
6830
6831
6832		CFLAGS="$xorg_testset_save_CFLAGS"
6833
6834		eval supported=\$$cacheid
6835		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6836$as_echo "$supported" >&6; }
6837		if test "$supported" = "yes" ; then
6838			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6839			found="yes"
6840		fi
6841	fi
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857xorg_testset_save_CFLAGS="$CFLAGS"
6858
6859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6860	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6861	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6864  $as_echo_n "(cached) " >&6
6865else
6866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867/* end confdefs.h.  */
6868int i;
6869_ACEOF
6870if ac_fn_c_try_compile "$LINENO"; then :
6871  xorg_cv_cc_flag_unknown_warning_option=yes
6872else
6873  xorg_cv_cc_flag_unknown_warning_option=no
6874fi
6875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876fi
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6879	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6880	CFLAGS="$xorg_testset_save_CFLAGS"
6881fi
6882
6883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6884	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6885		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6886	fi
6887	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6891  $as_echo_n "(cached) " >&6
6892else
6893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895int i;
6896_ACEOF
6897if ac_fn_c_try_compile "$LINENO"; then :
6898  xorg_cv_cc_flag_unused_command_line_argument=yes
6899else
6900  xorg_cv_cc_flag_unused_command_line_argument=no
6901fi
6902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903fi
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6906	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6907	CFLAGS="$xorg_testset_save_CFLAGS"
6908fi
6909
6910found="no"
6911
6912	if test $found = "no" ; then
6913		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6914			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915		fi
6916
6917		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6918			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6919		fi
6920
6921		CFLAGS="$CFLAGS -Werror=init-self"
6922
6923		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6924$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6925		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6926		if eval \${$cacheid+:} false; then :
6927  $as_echo_n "(cached) " >&6
6928else
6929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h.  */
6931int i;
6932int
6933main ()
6934{
6935
6936  ;
6937  return 0;
6938}
6939_ACEOF
6940if ac_fn_c_try_link "$LINENO"; then :
6941  eval $cacheid=yes
6942else
6943  eval $cacheid=no
6944fi
6945rm -f core conftest.err conftest.$ac_objext \
6946    conftest$ac_exeext conftest.$ac_ext
6947fi
6948
6949
6950		CFLAGS="$xorg_testset_save_CFLAGS"
6951
6952		eval supported=\$$cacheid
6953		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6954$as_echo "$supported" >&6; }
6955		if test "$supported" = "yes" ; then
6956			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6957			found="yes"
6958		fi
6959	fi
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975xorg_testset_save_CFLAGS="$CFLAGS"
6976
6977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6978	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6980$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6981if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6982  $as_echo_n "(cached) " >&6
6983else
6984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985/* end confdefs.h.  */
6986int i;
6987_ACEOF
6988if ac_fn_c_try_compile "$LINENO"; then :
6989  xorg_cv_cc_flag_unknown_warning_option=yes
6990else
6991  xorg_cv_cc_flag_unknown_warning_option=no
6992fi
6993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994fi
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6996$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6997	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6998	CFLAGS="$xorg_testset_save_CFLAGS"
6999fi
7000
7001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7002	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7004	fi
7005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7007$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7008if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7009  $as_echo_n "(cached) " >&6
7010else
7011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012/* end confdefs.h.  */
7013int i;
7014_ACEOF
7015if ac_fn_c_try_compile "$LINENO"; then :
7016  xorg_cv_cc_flag_unused_command_line_argument=yes
7017else
7018  xorg_cv_cc_flag_unused_command_line_argument=no
7019fi
7020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021fi
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7023$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7024	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7025	CFLAGS="$xorg_testset_save_CFLAGS"
7026fi
7027
7028found="no"
7029
7030	if test $found = "no" ; then
7031		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7032			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7033		fi
7034
7035		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7036			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7037		fi
7038
7039		CFLAGS="$CFLAGS -Werror=main"
7040
7041		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7042$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7043		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7044		if eval \${$cacheid+:} false; then :
7045  $as_echo_n "(cached) " >&6
7046else
7047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048/* end confdefs.h.  */
7049int i;
7050int
7051main ()
7052{
7053
7054  ;
7055  return 0;
7056}
7057_ACEOF
7058if ac_fn_c_try_link "$LINENO"; then :
7059  eval $cacheid=yes
7060else
7061  eval $cacheid=no
7062fi
7063rm -f core conftest.err conftest.$ac_objext \
7064    conftest$ac_exeext conftest.$ac_ext
7065fi
7066
7067
7068		CFLAGS="$xorg_testset_save_CFLAGS"
7069
7070		eval supported=\$$cacheid
7071		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7072$as_echo "$supported" >&6; }
7073		if test "$supported" = "yes" ; then
7074			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7075			found="yes"
7076		fi
7077	fi
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093xorg_testset_save_CFLAGS="$CFLAGS"
7094
7095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7096	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7097	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7098$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7099if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7100  $as_echo_n "(cached) " >&6
7101else
7102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103/* end confdefs.h.  */
7104int i;
7105_ACEOF
7106if ac_fn_c_try_compile "$LINENO"; then :
7107  xorg_cv_cc_flag_unknown_warning_option=yes
7108else
7109  xorg_cv_cc_flag_unknown_warning_option=no
7110fi
7111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7112fi
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7114$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7115	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7116	CFLAGS="$xorg_testset_save_CFLAGS"
7117fi
7118
7119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7120	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7121		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7122	fi
7123	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7125$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7126if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130/* end confdefs.h.  */
7131int i;
7132_ACEOF
7133if ac_fn_c_try_compile "$LINENO"; then :
7134  xorg_cv_cc_flag_unused_command_line_argument=yes
7135else
7136  xorg_cv_cc_flag_unused_command_line_argument=no
7137fi
7138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139fi
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7141$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7143	CFLAGS="$xorg_testset_save_CFLAGS"
7144fi
7145
7146found="no"
7147
7148	if test $found = "no" ; then
7149		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7151		fi
7152
7153		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7155		fi
7156
7157		CFLAGS="$CFLAGS -Werror=missing-braces"
7158
7159		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7160$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7161		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7162		if eval \${$cacheid+:} false; then :
7163  $as_echo_n "(cached) " >&6
7164else
7165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166/* end confdefs.h.  */
7167int i;
7168int
7169main ()
7170{
7171
7172  ;
7173  return 0;
7174}
7175_ACEOF
7176if ac_fn_c_try_link "$LINENO"; then :
7177  eval $cacheid=yes
7178else
7179  eval $cacheid=no
7180fi
7181rm -f core conftest.err conftest.$ac_objext \
7182    conftest$ac_exeext conftest.$ac_ext
7183fi
7184
7185
7186		CFLAGS="$xorg_testset_save_CFLAGS"
7187
7188		eval supported=\$$cacheid
7189		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7190$as_echo "$supported" >&6; }
7191		if test "$supported" = "yes" ; then
7192			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7193			found="yes"
7194		fi
7195	fi
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211xorg_testset_save_CFLAGS="$CFLAGS"
7212
7213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7218  $as_echo_n "(cached) " >&6
7219else
7220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221/* end confdefs.h.  */
7222int i;
7223_ACEOF
7224if ac_fn_c_try_compile "$LINENO"; then :
7225  xorg_cv_cc_flag_unknown_warning_option=yes
7226else
7227  xorg_cv_cc_flag_unknown_warning_option=no
7228fi
7229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230fi
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7233	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7234	CFLAGS="$xorg_testset_save_CFLAGS"
7235fi
7236
7237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7238	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7240	fi
7241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7245  $as_echo_n "(cached) " >&6
7246else
7247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249int i;
7250_ACEOF
7251if ac_fn_c_try_compile "$LINENO"; then :
7252  xorg_cv_cc_flag_unused_command_line_argument=yes
7253else
7254  xorg_cv_cc_flag_unused_command_line_argument=no
7255fi
7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257fi
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7261	CFLAGS="$xorg_testset_save_CFLAGS"
7262fi
7263
7264found="no"
7265
7266	if test $found = "no" ; then
7267		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269		fi
7270
7271		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7273		fi
7274
7275		CFLAGS="$CFLAGS -Werror=sequence-point"
7276
7277		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7278$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7279		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7280		if eval \${$cacheid+:} false; then :
7281  $as_echo_n "(cached) " >&6
7282else
7283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284/* end confdefs.h.  */
7285int i;
7286int
7287main ()
7288{
7289
7290  ;
7291  return 0;
7292}
7293_ACEOF
7294if ac_fn_c_try_link "$LINENO"; then :
7295  eval $cacheid=yes
7296else
7297  eval $cacheid=no
7298fi
7299rm -f core conftest.err conftest.$ac_objext \
7300    conftest$ac_exeext conftest.$ac_ext
7301fi
7302
7303
7304		CFLAGS="$xorg_testset_save_CFLAGS"
7305
7306		eval supported=\$$cacheid
7307		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7308$as_echo "$supported" >&6; }
7309		if test "$supported" = "yes" ; then
7310			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7311			found="yes"
7312		fi
7313	fi
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329xorg_testset_save_CFLAGS="$CFLAGS"
7330
7331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7336  $as_echo_n "(cached) " >&6
7337else
7338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339/* end confdefs.h.  */
7340int i;
7341_ACEOF
7342if ac_fn_c_try_compile "$LINENO"; then :
7343  xorg_cv_cc_flag_unknown_warning_option=yes
7344else
7345  xorg_cv_cc_flag_unknown_warning_option=no
7346fi
7347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348fi
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7352	CFLAGS="$xorg_testset_save_CFLAGS"
7353fi
7354
7355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358	fi
7359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h.  */
7367int i;
7368_ACEOF
7369if ac_fn_c_try_compile "$LINENO"; then :
7370  xorg_cv_cc_flag_unused_command_line_argument=yes
7371else
7372  xorg_cv_cc_flag_unused_command_line_argument=no
7373fi
7374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375fi
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7379	CFLAGS="$xorg_testset_save_CFLAGS"
7380fi
7381
7382found="no"
7383
7384	if test $found = "no" ; then
7385		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7387		fi
7388
7389		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7391		fi
7392
7393		CFLAGS="$CFLAGS -Werror=return-type"
7394
7395		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7396$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7397		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7398		if eval \${$cacheid+:} false; then :
7399  $as_echo_n "(cached) " >&6
7400else
7401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h.  */
7403int i;
7404int
7405main ()
7406{
7407
7408  ;
7409  return 0;
7410}
7411_ACEOF
7412if ac_fn_c_try_link "$LINENO"; then :
7413  eval $cacheid=yes
7414else
7415  eval $cacheid=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext \
7418    conftest$ac_exeext conftest.$ac_ext
7419fi
7420
7421
7422		CFLAGS="$xorg_testset_save_CFLAGS"
7423
7424		eval supported=\$$cacheid
7425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7426$as_echo "$supported" >&6; }
7427		if test "$supported" = "yes" ; then
7428			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7429			found="yes"
7430		fi
7431	fi
7432
7433	if test $found = "no" ; then
7434		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7436		fi
7437
7438		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7440		fi
7441
7442		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7443
7444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7445$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7446		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7447		if eval \${$cacheid+:} false; then :
7448  $as_echo_n "(cached) " >&6
7449else
7450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451/* end confdefs.h.  */
7452int i;
7453int
7454main ()
7455{
7456
7457  ;
7458  return 0;
7459}
7460_ACEOF
7461if ac_fn_c_try_link "$LINENO"; then :
7462  eval $cacheid=yes
7463else
7464  eval $cacheid=no
7465fi
7466rm -f core conftest.err conftest.$ac_objext \
7467    conftest$ac_exeext conftest.$ac_ext
7468fi
7469
7470
7471		CFLAGS="$xorg_testset_save_CFLAGS"
7472
7473		eval supported=\$$cacheid
7474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7475$as_echo "$supported" >&6; }
7476		if test "$supported" = "yes" ; then
7477			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7478			found="yes"
7479		fi
7480	fi
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496xorg_testset_save_CFLAGS="$CFLAGS"
7497
7498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7503  $as_echo_n "(cached) " >&6
7504else
7505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506/* end confdefs.h.  */
7507int i;
7508_ACEOF
7509if ac_fn_c_try_compile "$LINENO"; then :
7510  xorg_cv_cc_flag_unknown_warning_option=yes
7511else
7512  xorg_cv_cc_flag_unknown_warning_option=no
7513fi
7514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515fi
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7519	CFLAGS="$xorg_testset_save_CFLAGS"
7520fi
7521
7522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7525	fi
7526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h.  */
7534int i;
7535_ACEOF
7536if ac_fn_c_try_compile "$LINENO"; then :
7537  xorg_cv_cc_flag_unused_command_line_argument=yes
7538else
7539  xorg_cv_cc_flag_unused_command_line_argument=no
7540fi
7541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542fi
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7546	CFLAGS="$xorg_testset_save_CFLAGS"
7547fi
7548
7549found="no"
7550
7551	if test $found = "no" ; then
7552		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7554		fi
7555
7556		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7558		fi
7559
7560		CFLAGS="$CFLAGS -Werror=trigraphs"
7561
7562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7563$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7564		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7565		if eval \${$cacheid+:} false; then :
7566  $as_echo_n "(cached) " >&6
7567else
7568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569/* end confdefs.h.  */
7570int i;
7571int
7572main ()
7573{
7574
7575  ;
7576  return 0;
7577}
7578_ACEOF
7579if ac_fn_c_try_link "$LINENO"; then :
7580  eval $cacheid=yes
7581else
7582  eval $cacheid=no
7583fi
7584rm -f core conftest.err conftest.$ac_objext \
7585    conftest$ac_exeext conftest.$ac_ext
7586fi
7587
7588
7589		CFLAGS="$xorg_testset_save_CFLAGS"
7590
7591		eval supported=\$$cacheid
7592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7593$as_echo "$supported" >&6; }
7594		if test "$supported" = "yes" ; then
7595			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7596			found="yes"
7597		fi
7598	fi
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614xorg_testset_save_CFLAGS="$CFLAGS"
7615
7616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7621  $as_echo_n "(cached) " >&6
7622else
7623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624/* end confdefs.h.  */
7625int i;
7626_ACEOF
7627if ac_fn_c_try_compile "$LINENO"; then :
7628  xorg_cv_cc_flag_unknown_warning_option=yes
7629else
7630  xorg_cv_cc_flag_unknown_warning_option=no
7631fi
7632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633fi
7634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7637	CFLAGS="$xorg_testset_save_CFLAGS"
7638fi
7639
7640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7643	fi
7644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7648  $as_echo_n "(cached) " >&6
7649else
7650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h.  */
7652int i;
7653_ACEOF
7654if ac_fn_c_try_compile "$LINENO"; then :
7655  xorg_cv_cc_flag_unused_command_line_argument=yes
7656else
7657  xorg_cv_cc_flag_unused_command_line_argument=no
7658fi
7659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660fi
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7664	CFLAGS="$xorg_testset_save_CFLAGS"
7665fi
7666
7667found="no"
7668
7669	if test $found = "no" ; then
7670		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7672		fi
7673
7674		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7676		fi
7677
7678		CFLAGS="$CFLAGS -Werror=array-bounds"
7679
7680		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7681$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7682		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7683		if eval \${$cacheid+:} false; then :
7684  $as_echo_n "(cached) " >&6
7685else
7686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687/* end confdefs.h.  */
7688int i;
7689int
7690main ()
7691{
7692
7693  ;
7694  return 0;
7695}
7696_ACEOF
7697if ac_fn_c_try_link "$LINENO"; then :
7698  eval $cacheid=yes
7699else
7700  eval $cacheid=no
7701fi
7702rm -f core conftest.err conftest.$ac_objext \
7703    conftest$ac_exeext conftest.$ac_ext
7704fi
7705
7706
7707		CFLAGS="$xorg_testset_save_CFLAGS"
7708
7709		eval supported=\$$cacheid
7710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7711$as_echo "$supported" >&6; }
7712		if test "$supported" = "yes" ; then
7713			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7714			found="yes"
7715		fi
7716	fi
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732xorg_testset_save_CFLAGS="$CFLAGS"
7733
7734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7739  $as_echo_n "(cached) " >&6
7740else
7741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742/* end confdefs.h.  */
7743int i;
7744_ACEOF
7745if ac_fn_c_try_compile "$LINENO"; then :
7746  xorg_cv_cc_flag_unknown_warning_option=yes
7747else
7748  xorg_cv_cc_flag_unknown_warning_option=no
7749fi
7750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751fi
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7754	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7755	CFLAGS="$xorg_testset_save_CFLAGS"
7756fi
7757
7758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7759	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7760		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7761	fi
7762	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769/* end confdefs.h.  */
7770int i;
7771_ACEOF
7772if ac_fn_c_try_compile "$LINENO"; then :
7773  xorg_cv_cc_flag_unused_command_line_argument=yes
7774else
7775  xorg_cv_cc_flag_unused_command_line_argument=no
7776fi
7777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778fi
7779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7781	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7782	CFLAGS="$xorg_testset_save_CFLAGS"
7783fi
7784
7785found="no"
7786
7787	if test $found = "no" ; then
7788		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7789			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7790		fi
7791
7792		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7793			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7794		fi
7795
7796		CFLAGS="$CFLAGS -Werror=write-strings"
7797
7798		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7799$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7800		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7801		if eval \${$cacheid+:} false; then :
7802  $as_echo_n "(cached) " >&6
7803else
7804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805/* end confdefs.h.  */
7806int i;
7807int
7808main ()
7809{
7810
7811  ;
7812  return 0;
7813}
7814_ACEOF
7815if ac_fn_c_try_link "$LINENO"; then :
7816  eval $cacheid=yes
7817else
7818  eval $cacheid=no
7819fi
7820rm -f core conftest.err conftest.$ac_objext \
7821    conftest$ac_exeext conftest.$ac_ext
7822fi
7823
7824
7825		CFLAGS="$xorg_testset_save_CFLAGS"
7826
7827		eval supported=\$$cacheid
7828		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7829$as_echo "$supported" >&6; }
7830		if test "$supported" = "yes" ; then
7831			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7832			found="yes"
7833		fi
7834	fi
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850xorg_testset_save_CFLAGS="$CFLAGS"
7851
7852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7853	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7855$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7856if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7857  $as_echo_n "(cached) " >&6
7858else
7859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860/* end confdefs.h.  */
7861int i;
7862_ACEOF
7863if ac_fn_c_try_compile "$LINENO"; then :
7864  xorg_cv_cc_flag_unknown_warning_option=yes
7865else
7866  xorg_cv_cc_flag_unknown_warning_option=no
7867fi
7868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869fi
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7871$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7872	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7873	CFLAGS="$xorg_testset_save_CFLAGS"
7874fi
7875
7876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7877	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7878		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7879	fi
7880	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7882$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7883if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7884  $as_echo_n "(cached) " >&6
7885else
7886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887/* end confdefs.h.  */
7888int i;
7889_ACEOF
7890if ac_fn_c_try_compile "$LINENO"; then :
7891  xorg_cv_cc_flag_unused_command_line_argument=yes
7892else
7893  xorg_cv_cc_flag_unused_command_line_argument=no
7894fi
7895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896fi
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7898$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7899	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7900	CFLAGS="$xorg_testset_save_CFLAGS"
7901fi
7902
7903found="no"
7904
7905	if test $found = "no" ; then
7906		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7908		fi
7909
7910		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7912		fi
7913
7914		CFLAGS="$CFLAGS -Werror=address"
7915
7916		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7917$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7918		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7919		if eval \${$cacheid+:} false; then :
7920  $as_echo_n "(cached) " >&6
7921else
7922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h.  */
7924int i;
7925int
7926main ()
7927{
7928
7929  ;
7930  return 0;
7931}
7932_ACEOF
7933if ac_fn_c_try_link "$LINENO"; then :
7934  eval $cacheid=yes
7935else
7936  eval $cacheid=no
7937fi
7938rm -f core conftest.err conftest.$ac_objext \
7939    conftest$ac_exeext conftest.$ac_ext
7940fi
7941
7942
7943		CFLAGS="$xorg_testset_save_CFLAGS"
7944
7945		eval supported=\$$cacheid
7946		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7947$as_echo "$supported" >&6; }
7948		if test "$supported" = "yes" ; then
7949			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7950			found="yes"
7951		fi
7952	fi
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968xorg_testset_save_CFLAGS="$CFLAGS"
7969
7970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7971	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7975  $as_echo_n "(cached) " >&6
7976else
7977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978/* end confdefs.h.  */
7979int i;
7980_ACEOF
7981if ac_fn_c_try_compile "$LINENO"; then :
7982  xorg_cv_cc_flag_unknown_warning_option=yes
7983else
7984  xorg_cv_cc_flag_unknown_warning_option=no
7985fi
7986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987fi
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7991	CFLAGS="$xorg_testset_save_CFLAGS"
7992fi
7993
7994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7997	fi
7998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8002  $as_echo_n "(cached) " >&6
8003else
8004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h.  */
8006int i;
8007_ACEOF
8008if ac_fn_c_try_compile "$LINENO"; then :
8009  xorg_cv_cc_flag_unused_command_line_argument=yes
8010else
8011  xorg_cv_cc_flag_unused_command_line_argument=no
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014fi
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8017	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8018	CFLAGS="$xorg_testset_save_CFLAGS"
8019fi
8020
8021found="no"
8022
8023	if test $found = "no" ; then
8024		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8025			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8026		fi
8027
8028		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8029			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8030		fi
8031
8032		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8033
8034		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8035$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8036		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8037		if eval \${$cacheid+:} false; then :
8038  $as_echo_n "(cached) " >&6
8039else
8040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041/* end confdefs.h.  */
8042int i;
8043int
8044main ()
8045{
8046
8047  ;
8048  return 0;
8049}
8050_ACEOF
8051if ac_fn_c_try_link "$LINENO"; then :
8052  eval $cacheid=yes
8053else
8054  eval $cacheid=no
8055fi
8056rm -f core conftest.err conftest.$ac_objext \
8057    conftest$ac_exeext conftest.$ac_ext
8058fi
8059
8060
8061		CFLAGS="$xorg_testset_save_CFLAGS"
8062
8063		eval supported=\$$cacheid
8064		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8065$as_echo "$supported" >&6; }
8066		if test "$supported" = "yes" ; then
8067			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8068			found="yes"
8069		fi
8070	fi
8071
8072	if test $found = "no" ; then
8073		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8074			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075		fi
8076
8077		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8078			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8079		fi
8080
8081		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8082
8083		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8084$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8085		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8086		if eval \${$cacheid+:} false; then :
8087  $as_echo_n "(cached) " >&6
8088else
8089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090/* end confdefs.h.  */
8091int i;
8092int
8093main ()
8094{
8095
8096  ;
8097  return 0;
8098}
8099_ACEOF
8100if ac_fn_c_try_link "$LINENO"; then :
8101  eval $cacheid=yes
8102else
8103  eval $cacheid=no
8104fi
8105rm -f core conftest.err conftest.$ac_objext \
8106    conftest$ac_exeext conftest.$ac_ext
8107fi
8108
8109
8110		CFLAGS="$xorg_testset_save_CFLAGS"
8111
8112		eval supported=\$$cacheid
8113		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8114$as_echo "$supported" >&6; }
8115		if test "$supported" = "yes" ; then
8116			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8117			found="yes"
8118		fi
8119	fi
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135xorg_testset_save_CFLAGS="$CFLAGS"
8136
8137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8138	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145/* end confdefs.h.  */
8146int i;
8147_ACEOF
8148if ac_fn_c_try_compile "$LINENO"; then :
8149  xorg_cv_cc_flag_unknown_warning_option=yes
8150else
8151  xorg_cv_cc_flag_unknown_warning_option=no
8152fi
8153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154fi
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8158	CFLAGS="$xorg_testset_save_CFLAGS"
8159fi
8160
8161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8164	fi
8165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173int i;
8174_ACEOF
8175if ac_fn_c_try_compile "$LINENO"; then :
8176  xorg_cv_cc_flag_unused_command_line_argument=yes
8177else
8178  xorg_cv_cc_flag_unused_command_line_argument=no
8179fi
8180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181fi
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8184	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8185	CFLAGS="$xorg_testset_save_CFLAGS"
8186fi
8187
8188found="no"
8189
8190	if test $found = "no" ; then
8191		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8192			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8193		fi
8194
8195		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8196			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8197		fi
8198
8199		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8200
8201		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8202$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8203		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8204		if eval \${$cacheid+:} false; then :
8205  $as_echo_n "(cached) " >&6
8206else
8207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209int i;
8210int
8211main ()
8212{
8213
8214  ;
8215  return 0;
8216}
8217_ACEOF
8218if ac_fn_c_try_link "$LINENO"; then :
8219  eval $cacheid=yes
8220else
8221  eval $cacheid=no
8222fi
8223rm -f core conftest.err conftest.$ac_objext \
8224    conftest$ac_exeext conftest.$ac_ext
8225fi
8226
8227
8228		CFLAGS="$xorg_testset_save_CFLAGS"
8229
8230		eval supported=\$$cacheid
8231		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8232$as_echo "$supported" >&6; }
8233		if test "$supported" = "yes" ; then
8234			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8235			found="yes"
8236		fi
8237	fi
8238
8239 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8240else
8241{ $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
8242$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;}
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256xorg_testset_save_CFLAGS="$CFLAGS"
8257
8258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8259	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8260	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8263  $as_echo_n "(cached) " >&6
8264else
8265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266/* end confdefs.h.  */
8267int i;
8268_ACEOF
8269if ac_fn_c_try_compile "$LINENO"; then :
8270  xorg_cv_cc_flag_unknown_warning_option=yes
8271else
8272  xorg_cv_cc_flag_unknown_warning_option=no
8273fi
8274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275fi
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8278	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8279	CFLAGS="$xorg_testset_save_CFLAGS"
8280fi
8281
8282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8283	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8284		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8285	fi
8286	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8290  $as_echo_n "(cached) " >&6
8291else
8292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293/* end confdefs.h.  */
8294int i;
8295_ACEOF
8296if ac_fn_c_try_compile "$LINENO"; then :
8297  xorg_cv_cc_flag_unused_command_line_argument=yes
8298else
8299  xorg_cv_cc_flag_unused_command_line_argument=no
8300fi
8301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302fi
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8305	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8306	CFLAGS="$xorg_testset_save_CFLAGS"
8307fi
8308
8309found="no"
8310
8311	if test $found = "no" ; then
8312		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8313			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314		fi
8315
8316		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8317			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8318		fi
8319
8320		CFLAGS="$CFLAGS -Wimplicit"
8321
8322		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8323$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8324		cacheid=xorg_cv_cc_flag__Wimplicit
8325		if eval \${$cacheid+:} false; then :
8326  $as_echo_n "(cached) " >&6
8327else
8328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329/* end confdefs.h.  */
8330int i;
8331int
8332main ()
8333{
8334
8335  ;
8336  return 0;
8337}
8338_ACEOF
8339if ac_fn_c_try_link "$LINENO"; then :
8340  eval $cacheid=yes
8341else
8342  eval $cacheid=no
8343fi
8344rm -f core conftest.err conftest.$ac_objext \
8345    conftest$ac_exeext conftest.$ac_ext
8346fi
8347
8348
8349		CFLAGS="$xorg_testset_save_CFLAGS"
8350
8351		eval supported=\$$cacheid
8352		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8353$as_echo "$supported" >&6; }
8354		if test "$supported" = "yes" ; then
8355			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8356			found="yes"
8357		fi
8358	fi
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374xorg_testset_save_CFLAGS="$CFLAGS"
8375
8376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8377	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8381  $as_echo_n "(cached) " >&6
8382else
8383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384/* end confdefs.h.  */
8385int i;
8386_ACEOF
8387if ac_fn_c_try_compile "$LINENO"; then :
8388  xorg_cv_cc_flag_unknown_warning_option=yes
8389else
8390  xorg_cv_cc_flag_unknown_warning_option=no
8391fi
8392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393fi
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8396	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8397	CFLAGS="$xorg_testset_save_CFLAGS"
8398fi
8399
8400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8401	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8402		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403	fi
8404	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8408  $as_echo_n "(cached) " >&6
8409else
8410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411/* end confdefs.h.  */
8412int i;
8413_ACEOF
8414if ac_fn_c_try_compile "$LINENO"; then :
8415  xorg_cv_cc_flag_unused_command_line_argument=yes
8416else
8417  xorg_cv_cc_flag_unused_command_line_argument=no
8418fi
8419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420fi
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8423	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8424	CFLAGS="$xorg_testset_save_CFLAGS"
8425fi
8426
8427found="no"
8428
8429	if test $found = "no" ; then
8430		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432		fi
8433
8434		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8436		fi
8437
8438		CFLAGS="$CFLAGS -Wnonnull"
8439
8440		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8441$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8442		cacheid=xorg_cv_cc_flag__Wnonnull
8443		if eval \${$cacheid+:} false; then :
8444  $as_echo_n "(cached) " >&6
8445else
8446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447/* end confdefs.h.  */
8448int i;
8449int
8450main ()
8451{
8452
8453  ;
8454  return 0;
8455}
8456_ACEOF
8457if ac_fn_c_try_link "$LINENO"; then :
8458  eval $cacheid=yes
8459else
8460  eval $cacheid=no
8461fi
8462rm -f core conftest.err conftest.$ac_objext \
8463    conftest$ac_exeext conftest.$ac_ext
8464fi
8465
8466
8467		CFLAGS="$xorg_testset_save_CFLAGS"
8468
8469		eval supported=\$$cacheid
8470		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8471$as_echo "$supported" >&6; }
8472		if test "$supported" = "yes" ; then
8473			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8474			found="yes"
8475		fi
8476	fi
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492xorg_testset_save_CFLAGS="$CFLAGS"
8493
8494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8499  $as_echo_n "(cached) " >&6
8500else
8501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502/* end confdefs.h.  */
8503int i;
8504_ACEOF
8505if ac_fn_c_try_compile "$LINENO"; then :
8506  xorg_cv_cc_flag_unknown_warning_option=yes
8507else
8508  xorg_cv_cc_flag_unknown_warning_option=no
8509fi
8510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511fi
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8514	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8515	CFLAGS="$xorg_testset_save_CFLAGS"
8516fi
8517
8518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8519	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521	fi
8522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8526  $as_echo_n "(cached) " >&6
8527else
8528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529/* end confdefs.h.  */
8530int i;
8531_ACEOF
8532if ac_fn_c_try_compile "$LINENO"; then :
8533  xorg_cv_cc_flag_unused_command_line_argument=yes
8534else
8535  xorg_cv_cc_flag_unused_command_line_argument=no
8536fi
8537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8541	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8542	CFLAGS="$xorg_testset_save_CFLAGS"
8543fi
8544
8545found="no"
8546
8547	if test $found = "no" ; then
8548		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8549			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8550		fi
8551
8552		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8553			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8554		fi
8555
8556		CFLAGS="$CFLAGS -Winit-self"
8557
8558		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8559$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8560		cacheid=xorg_cv_cc_flag__Winit_self
8561		if eval \${$cacheid+:} false; then :
8562  $as_echo_n "(cached) " >&6
8563else
8564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565/* end confdefs.h.  */
8566int i;
8567int
8568main ()
8569{
8570
8571  ;
8572  return 0;
8573}
8574_ACEOF
8575if ac_fn_c_try_link "$LINENO"; then :
8576  eval $cacheid=yes
8577else
8578  eval $cacheid=no
8579fi
8580rm -f core conftest.err conftest.$ac_objext \
8581    conftest$ac_exeext conftest.$ac_ext
8582fi
8583
8584
8585		CFLAGS="$xorg_testset_save_CFLAGS"
8586
8587		eval supported=\$$cacheid
8588		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8589$as_echo "$supported" >&6; }
8590		if test "$supported" = "yes" ; then
8591			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8592			found="yes"
8593		fi
8594	fi
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610xorg_testset_save_CFLAGS="$CFLAGS"
8611
8612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8615$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8616if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8617  $as_echo_n "(cached) " >&6
8618else
8619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620/* end confdefs.h.  */
8621int i;
8622_ACEOF
8623if ac_fn_c_try_compile "$LINENO"; then :
8624  xorg_cv_cc_flag_unknown_warning_option=yes
8625else
8626  xorg_cv_cc_flag_unknown_warning_option=no
8627fi
8628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629fi
8630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8631$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8632	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8633	CFLAGS="$xorg_testset_save_CFLAGS"
8634fi
8635
8636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8637	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8638		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639	fi
8640	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8642$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8643if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8644  $as_echo_n "(cached) " >&6
8645else
8646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647/* end confdefs.h.  */
8648int i;
8649_ACEOF
8650if ac_fn_c_try_compile "$LINENO"; then :
8651  xorg_cv_cc_flag_unused_command_line_argument=yes
8652else
8653  xorg_cv_cc_flag_unused_command_line_argument=no
8654fi
8655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656fi
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8658$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8659	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8660	CFLAGS="$xorg_testset_save_CFLAGS"
8661fi
8662
8663found="no"
8664
8665	if test $found = "no" ; then
8666		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8667			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8668		fi
8669
8670		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8671			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8672		fi
8673
8674		CFLAGS="$CFLAGS -Wmain"
8675
8676		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8677$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8678		cacheid=xorg_cv_cc_flag__Wmain
8679		if eval \${$cacheid+:} false; then :
8680  $as_echo_n "(cached) " >&6
8681else
8682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683/* end confdefs.h.  */
8684int i;
8685int
8686main ()
8687{
8688
8689  ;
8690  return 0;
8691}
8692_ACEOF
8693if ac_fn_c_try_link "$LINENO"; then :
8694  eval $cacheid=yes
8695else
8696  eval $cacheid=no
8697fi
8698rm -f core conftest.err conftest.$ac_objext \
8699    conftest$ac_exeext conftest.$ac_ext
8700fi
8701
8702
8703		CFLAGS="$xorg_testset_save_CFLAGS"
8704
8705		eval supported=\$$cacheid
8706		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8707$as_echo "$supported" >&6; }
8708		if test "$supported" = "yes" ; then
8709			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8710			found="yes"
8711		fi
8712	fi
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728xorg_testset_save_CFLAGS="$CFLAGS"
8729
8730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8731	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8735  $as_echo_n "(cached) " >&6
8736else
8737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738/* end confdefs.h.  */
8739int i;
8740_ACEOF
8741if ac_fn_c_try_compile "$LINENO"; then :
8742  xorg_cv_cc_flag_unknown_warning_option=yes
8743else
8744  xorg_cv_cc_flag_unknown_warning_option=no
8745fi
8746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747fi
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8751	CFLAGS="$xorg_testset_save_CFLAGS"
8752fi
8753
8754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757	fi
8758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8762  $as_echo_n "(cached) " >&6
8763else
8764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765/* end confdefs.h.  */
8766int i;
8767_ACEOF
8768if ac_fn_c_try_compile "$LINENO"; then :
8769  xorg_cv_cc_flag_unused_command_line_argument=yes
8770else
8771  xorg_cv_cc_flag_unused_command_line_argument=no
8772fi
8773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774fi
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8777	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8778	CFLAGS="$xorg_testset_save_CFLAGS"
8779fi
8780
8781found="no"
8782
8783	if test $found = "no" ; then
8784		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8786		fi
8787
8788		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8790		fi
8791
8792		CFLAGS="$CFLAGS -Wmissing-braces"
8793
8794		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8795$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8796		cacheid=xorg_cv_cc_flag__Wmissing_braces
8797		if eval \${$cacheid+:} false; then :
8798  $as_echo_n "(cached) " >&6
8799else
8800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801/* end confdefs.h.  */
8802int i;
8803int
8804main ()
8805{
8806
8807  ;
8808  return 0;
8809}
8810_ACEOF
8811if ac_fn_c_try_link "$LINENO"; then :
8812  eval $cacheid=yes
8813else
8814  eval $cacheid=no
8815fi
8816rm -f core conftest.err conftest.$ac_objext \
8817    conftest$ac_exeext conftest.$ac_ext
8818fi
8819
8820
8821		CFLAGS="$xorg_testset_save_CFLAGS"
8822
8823		eval supported=\$$cacheid
8824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8825$as_echo "$supported" >&6; }
8826		if test "$supported" = "yes" ; then
8827			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8828			found="yes"
8829		fi
8830	fi
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846xorg_testset_save_CFLAGS="$CFLAGS"
8847
8848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8853  $as_echo_n "(cached) " >&6
8854else
8855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856/* end confdefs.h.  */
8857int i;
8858_ACEOF
8859if ac_fn_c_try_compile "$LINENO"; then :
8860  xorg_cv_cc_flag_unknown_warning_option=yes
8861else
8862  xorg_cv_cc_flag_unknown_warning_option=no
8863fi
8864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865fi
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8869	CFLAGS="$xorg_testset_save_CFLAGS"
8870fi
8871
8872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8875	fi
8876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8880  $as_echo_n "(cached) " >&6
8881else
8882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883/* end confdefs.h.  */
8884int i;
8885_ACEOF
8886if ac_fn_c_try_compile "$LINENO"; then :
8887  xorg_cv_cc_flag_unused_command_line_argument=yes
8888else
8889  xorg_cv_cc_flag_unused_command_line_argument=no
8890fi
8891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892fi
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8896	CFLAGS="$xorg_testset_save_CFLAGS"
8897fi
8898
8899found="no"
8900
8901	if test $found = "no" ; then
8902		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8904		fi
8905
8906		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8908		fi
8909
8910		CFLAGS="$CFLAGS -Wsequence-point"
8911
8912		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8913$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8914		cacheid=xorg_cv_cc_flag__Wsequence_point
8915		if eval \${$cacheid+:} false; then :
8916  $as_echo_n "(cached) " >&6
8917else
8918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h.  */
8920int i;
8921int
8922main ()
8923{
8924
8925  ;
8926  return 0;
8927}
8928_ACEOF
8929if ac_fn_c_try_link "$LINENO"; then :
8930  eval $cacheid=yes
8931else
8932  eval $cacheid=no
8933fi
8934rm -f core conftest.err conftest.$ac_objext \
8935    conftest$ac_exeext conftest.$ac_ext
8936fi
8937
8938
8939		CFLAGS="$xorg_testset_save_CFLAGS"
8940
8941		eval supported=\$$cacheid
8942		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8943$as_echo "$supported" >&6; }
8944		if test "$supported" = "yes" ; then
8945			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8946			found="yes"
8947		fi
8948	fi
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964xorg_testset_save_CFLAGS="$CFLAGS"
8965
8966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8971  $as_echo_n "(cached) " >&6
8972else
8973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974/* end confdefs.h.  */
8975int i;
8976_ACEOF
8977if ac_fn_c_try_compile "$LINENO"; then :
8978  xorg_cv_cc_flag_unknown_warning_option=yes
8979else
8980  xorg_cv_cc_flag_unknown_warning_option=no
8981fi
8982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983fi
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8987	CFLAGS="$xorg_testset_save_CFLAGS"
8988fi
8989
8990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8993	fi
8994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8998  $as_echo_n "(cached) " >&6
8999else
9000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003_ACEOF
9004if ac_fn_c_try_compile "$LINENO"; then :
9005  xorg_cv_cc_flag_unused_command_line_argument=yes
9006else
9007  xorg_cv_cc_flag_unused_command_line_argument=no
9008fi
9009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010fi
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9014	CFLAGS="$xorg_testset_save_CFLAGS"
9015fi
9016
9017found="no"
9018
9019	if test $found = "no" ; then
9020		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9022		fi
9023
9024		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9026		fi
9027
9028		CFLAGS="$CFLAGS -Wreturn-type"
9029
9030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9031$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9032		cacheid=xorg_cv_cc_flag__Wreturn_type
9033		if eval \${$cacheid+:} false; then :
9034  $as_echo_n "(cached) " >&6
9035else
9036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037/* end confdefs.h.  */
9038int i;
9039int
9040main ()
9041{
9042
9043  ;
9044  return 0;
9045}
9046_ACEOF
9047if ac_fn_c_try_link "$LINENO"; then :
9048  eval $cacheid=yes
9049else
9050  eval $cacheid=no
9051fi
9052rm -f core conftest.err conftest.$ac_objext \
9053    conftest$ac_exeext conftest.$ac_ext
9054fi
9055
9056
9057		CFLAGS="$xorg_testset_save_CFLAGS"
9058
9059		eval supported=\$$cacheid
9060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9061$as_echo "$supported" >&6; }
9062		if test "$supported" = "yes" ; then
9063			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9064			found="yes"
9065		fi
9066	fi
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082xorg_testset_save_CFLAGS="$CFLAGS"
9083
9084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9089  $as_echo_n "(cached) " >&6
9090else
9091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092/* end confdefs.h.  */
9093int i;
9094_ACEOF
9095if ac_fn_c_try_compile "$LINENO"; then :
9096  xorg_cv_cc_flag_unknown_warning_option=yes
9097else
9098  xorg_cv_cc_flag_unknown_warning_option=no
9099fi
9100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101fi
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9105	CFLAGS="$xorg_testset_save_CFLAGS"
9106fi
9107
9108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9111	fi
9112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9116  $as_echo_n "(cached) " >&6
9117else
9118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h.  */
9120int i;
9121_ACEOF
9122if ac_fn_c_try_compile "$LINENO"; then :
9123  xorg_cv_cc_flag_unused_command_line_argument=yes
9124else
9125  xorg_cv_cc_flag_unused_command_line_argument=no
9126fi
9127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128fi
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9132	CFLAGS="$xorg_testset_save_CFLAGS"
9133fi
9134
9135found="no"
9136
9137	if test $found = "no" ; then
9138		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9140		fi
9141
9142		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9144		fi
9145
9146		CFLAGS="$CFLAGS -Wtrigraphs"
9147
9148		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9149$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9150		cacheid=xorg_cv_cc_flag__Wtrigraphs
9151		if eval \${$cacheid+:} false; then :
9152  $as_echo_n "(cached) " >&6
9153else
9154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h.  */
9156int i;
9157int
9158main ()
9159{
9160
9161  ;
9162  return 0;
9163}
9164_ACEOF
9165if ac_fn_c_try_link "$LINENO"; then :
9166  eval $cacheid=yes
9167else
9168  eval $cacheid=no
9169fi
9170rm -f core conftest.err conftest.$ac_objext \
9171    conftest$ac_exeext conftest.$ac_ext
9172fi
9173
9174
9175		CFLAGS="$xorg_testset_save_CFLAGS"
9176
9177		eval supported=\$$cacheid
9178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9179$as_echo "$supported" >&6; }
9180		if test "$supported" = "yes" ; then
9181			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9182			found="yes"
9183		fi
9184	fi
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200xorg_testset_save_CFLAGS="$CFLAGS"
9201
9202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9207  $as_echo_n "(cached) " >&6
9208else
9209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210/* end confdefs.h.  */
9211int i;
9212_ACEOF
9213if ac_fn_c_try_compile "$LINENO"; then :
9214  xorg_cv_cc_flag_unknown_warning_option=yes
9215else
9216  xorg_cv_cc_flag_unknown_warning_option=no
9217fi
9218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219fi
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9223	CFLAGS="$xorg_testset_save_CFLAGS"
9224fi
9225
9226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9229	fi
9230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9234  $as_echo_n "(cached) " >&6
9235else
9236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238int i;
9239_ACEOF
9240if ac_fn_c_try_compile "$LINENO"; then :
9241  xorg_cv_cc_flag_unused_command_line_argument=yes
9242else
9243  xorg_cv_cc_flag_unused_command_line_argument=no
9244fi
9245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246fi
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9250	CFLAGS="$xorg_testset_save_CFLAGS"
9251fi
9252
9253found="no"
9254
9255	if test $found = "no" ; then
9256		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9258		fi
9259
9260		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9262		fi
9263
9264		CFLAGS="$CFLAGS -Warray-bounds"
9265
9266		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9267$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9268		cacheid=xorg_cv_cc_flag__Warray_bounds
9269		if eval \${$cacheid+:} false; then :
9270  $as_echo_n "(cached) " >&6
9271else
9272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273/* end confdefs.h.  */
9274int i;
9275int
9276main ()
9277{
9278
9279  ;
9280  return 0;
9281}
9282_ACEOF
9283if ac_fn_c_try_link "$LINENO"; then :
9284  eval $cacheid=yes
9285else
9286  eval $cacheid=no
9287fi
9288rm -f core conftest.err conftest.$ac_objext \
9289    conftest$ac_exeext conftest.$ac_ext
9290fi
9291
9292
9293		CFLAGS="$xorg_testset_save_CFLAGS"
9294
9295		eval supported=\$$cacheid
9296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9297$as_echo "$supported" >&6; }
9298		if test "$supported" = "yes" ; then
9299			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9300			found="yes"
9301		fi
9302	fi
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318xorg_testset_save_CFLAGS="$CFLAGS"
9319
9320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9325  $as_echo_n "(cached) " >&6
9326else
9327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328/* end confdefs.h.  */
9329int i;
9330_ACEOF
9331if ac_fn_c_try_compile "$LINENO"; then :
9332  xorg_cv_cc_flag_unknown_warning_option=yes
9333else
9334  xorg_cv_cc_flag_unknown_warning_option=no
9335fi
9336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337fi
9338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9341	CFLAGS="$xorg_testset_save_CFLAGS"
9342fi
9343
9344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9347	fi
9348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9352  $as_echo_n "(cached) " >&6
9353else
9354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355/* end confdefs.h.  */
9356int i;
9357_ACEOF
9358if ac_fn_c_try_compile "$LINENO"; then :
9359  xorg_cv_cc_flag_unused_command_line_argument=yes
9360else
9361  xorg_cv_cc_flag_unused_command_line_argument=no
9362fi
9363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364fi
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9368	CFLAGS="$xorg_testset_save_CFLAGS"
9369fi
9370
9371found="no"
9372
9373	if test $found = "no" ; then
9374		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9376		fi
9377
9378		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9380		fi
9381
9382		CFLAGS="$CFLAGS -Wwrite-strings"
9383
9384		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9385$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9386		cacheid=xorg_cv_cc_flag__Wwrite_strings
9387		if eval \${$cacheid+:} false; then :
9388  $as_echo_n "(cached) " >&6
9389else
9390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391/* end confdefs.h.  */
9392int i;
9393int
9394main ()
9395{
9396
9397  ;
9398  return 0;
9399}
9400_ACEOF
9401if ac_fn_c_try_link "$LINENO"; then :
9402  eval $cacheid=yes
9403else
9404  eval $cacheid=no
9405fi
9406rm -f core conftest.err conftest.$ac_objext \
9407    conftest$ac_exeext conftest.$ac_ext
9408fi
9409
9410
9411		CFLAGS="$xorg_testset_save_CFLAGS"
9412
9413		eval supported=\$$cacheid
9414		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9415$as_echo "$supported" >&6; }
9416		if test "$supported" = "yes" ; then
9417			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9418			found="yes"
9419		fi
9420	fi
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436xorg_testset_save_CFLAGS="$CFLAGS"
9437
9438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9443  $as_echo_n "(cached) " >&6
9444else
9445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446/* end confdefs.h.  */
9447int i;
9448_ACEOF
9449if ac_fn_c_try_compile "$LINENO"; then :
9450  xorg_cv_cc_flag_unknown_warning_option=yes
9451else
9452  xorg_cv_cc_flag_unknown_warning_option=no
9453fi
9454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9455fi
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9459	CFLAGS="$xorg_testset_save_CFLAGS"
9460fi
9461
9462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9465	fi
9466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9470  $as_echo_n "(cached) " >&6
9471else
9472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474int i;
9475_ACEOF
9476if ac_fn_c_try_compile "$LINENO"; then :
9477  xorg_cv_cc_flag_unused_command_line_argument=yes
9478else
9479  xorg_cv_cc_flag_unused_command_line_argument=no
9480fi
9481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9482fi
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9486	CFLAGS="$xorg_testset_save_CFLAGS"
9487fi
9488
9489found="no"
9490
9491	if test $found = "no" ; then
9492		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9494		fi
9495
9496		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9498		fi
9499
9500		CFLAGS="$CFLAGS -Waddress"
9501
9502		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9503$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9504		cacheid=xorg_cv_cc_flag__Waddress
9505		if eval \${$cacheid+:} false; then :
9506  $as_echo_n "(cached) " >&6
9507else
9508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509/* end confdefs.h.  */
9510int i;
9511int
9512main ()
9513{
9514
9515  ;
9516  return 0;
9517}
9518_ACEOF
9519if ac_fn_c_try_link "$LINENO"; then :
9520  eval $cacheid=yes
9521else
9522  eval $cacheid=no
9523fi
9524rm -f core conftest.err conftest.$ac_objext \
9525    conftest$ac_exeext conftest.$ac_ext
9526fi
9527
9528
9529		CFLAGS="$xorg_testset_save_CFLAGS"
9530
9531		eval supported=\$$cacheid
9532		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9533$as_echo "$supported" >&6; }
9534		if test "$supported" = "yes" ; then
9535			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9536			found="yes"
9537		fi
9538	fi
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554xorg_testset_save_CFLAGS="$CFLAGS"
9555
9556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9561  $as_echo_n "(cached) " >&6
9562else
9563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564/* end confdefs.h.  */
9565int i;
9566_ACEOF
9567if ac_fn_c_try_compile "$LINENO"; then :
9568  xorg_cv_cc_flag_unknown_warning_option=yes
9569else
9570  xorg_cv_cc_flag_unknown_warning_option=no
9571fi
9572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573fi
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9577	CFLAGS="$xorg_testset_save_CFLAGS"
9578fi
9579
9580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583	fi
9584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9588  $as_echo_n "(cached) " >&6
9589else
9590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591/* end confdefs.h.  */
9592int i;
9593_ACEOF
9594if ac_fn_c_try_compile "$LINENO"; then :
9595  xorg_cv_cc_flag_unused_command_line_argument=yes
9596else
9597  xorg_cv_cc_flag_unused_command_line_argument=no
9598fi
9599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600fi
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9604	CFLAGS="$xorg_testset_save_CFLAGS"
9605fi
9606
9607found="no"
9608
9609	if test $found = "no" ; then
9610		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9612		fi
9613
9614		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9616		fi
9617
9618		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9619
9620		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9621$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9622		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9623		if eval \${$cacheid+:} false; then :
9624  $as_echo_n "(cached) " >&6
9625else
9626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h.  */
9628int i;
9629int
9630main ()
9631{
9632
9633  ;
9634  return 0;
9635}
9636_ACEOF
9637if ac_fn_c_try_link "$LINENO"; then :
9638  eval $cacheid=yes
9639else
9640  eval $cacheid=no
9641fi
9642rm -f core conftest.err conftest.$ac_objext \
9643    conftest$ac_exeext conftest.$ac_ext
9644fi
9645
9646
9647		CFLAGS="$xorg_testset_save_CFLAGS"
9648
9649		eval supported=\$$cacheid
9650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9651$as_echo "$supported" >&6; }
9652		if test "$supported" = "yes" ; then
9653			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9654			found="yes"
9655		fi
9656	fi
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672xorg_testset_save_CFLAGS="$CFLAGS"
9673
9674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9679  $as_echo_n "(cached) " >&6
9680else
9681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682/* end confdefs.h.  */
9683int i;
9684_ACEOF
9685if ac_fn_c_try_compile "$LINENO"; then :
9686  xorg_cv_cc_flag_unknown_warning_option=yes
9687else
9688  xorg_cv_cc_flag_unknown_warning_option=no
9689fi
9690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691fi
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9695	CFLAGS="$xorg_testset_save_CFLAGS"
9696fi
9697
9698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9701	fi
9702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9706  $as_echo_n "(cached) " >&6
9707else
9708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709/* end confdefs.h.  */
9710int i;
9711_ACEOF
9712if ac_fn_c_try_compile "$LINENO"; then :
9713  xorg_cv_cc_flag_unused_command_line_argument=yes
9714else
9715  xorg_cv_cc_flag_unused_command_line_argument=no
9716fi
9717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718fi
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9722	CFLAGS="$xorg_testset_save_CFLAGS"
9723fi
9724
9725found="no"
9726
9727	if test $found = "no" ; then
9728		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730		fi
9731
9732		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9734		fi
9735
9736		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9737
9738		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9739$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9740		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9741		if eval \${$cacheid+:} false; then :
9742  $as_echo_n "(cached) " >&6
9743else
9744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h.  */
9746int i;
9747int
9748main ()
9749{
9750
9751  ;
9752  return 0;
9753}
9754_ACEOF
9755if ac_fn_c_try_link "$LINENO"; then :
9756  eval $cacheid=yes
9757else
9758  eval $cacheid=no
9759fi
9760rm -f core conftest.err conftest.$ac_objext \
9761    conftest$ac_exeext conftest.$ac_ext
9762fi
9763
9764
9765		CFLAGS="$xorg_testset_save_CFLAGS"
9766
9767		eval supported=\$$cacheid
9768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9769$as_echo "$supported" >&6; }
9770		if test "$supported" = "yes" ; then
9771			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9772			found="yes"
9773		fi
9774	fi
9775
9776
9777fi
9778
9779
9780
9781
9782
9783
9784
9785		CWARNFLAGS="$BASE_CFLAGS"
9786		if  test "x$GCC" = xyes ; then
9787		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9788		fi
9789
9790
9791
9792
9793
9794
9795
9796
9797# Check whether --enable-strict-compilation was given.
9798if test "${enable_strict_compilation+set}" = set; then :
9799  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9800else
9801  STRICT_COMPILE=no
9802fi
9803
9804
9805
9806
9807
9808
9809STRICT_CFLAGS=""
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823xorg_testset_save_CFLAGS="$CFLAGS"
9824
9825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9830  $as_echo_n "(cached) " >&6
9831else
9832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833/* end confdefs.h.  */
9834int i;
9835_ACEOF
9836if ac_fn_c_try_compile "$LINENO"; then :
9837  xorg_cv_cc_flag_unknown_warning_option=yes
9838else
9839  xorg_cv_cc_flag_unknown_warning_option=no
9840fi
9841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842fi
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9846	CFLAGS="$xorg_testset_save_CFLAGS"
9847fi
9848
9849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9852	fi
9853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9857  $as_echo_n "(cached) " >&6
9858else
9859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860/* end confdefs.h.  */
9861int i;
9862_ACEOF
9863if ac_fn_c_try_compile "$LINENO"; then :
9864  xorg_cv_cc_flag_unused_command_line_argument=yes
9865else
9866  xorg_cv_cc_flag_unused_command_line_argument=no
9867fi
9868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869fi
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9872	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9873	CFLAGS="$xorg_testset_save_CFLAGS"
9874fi
9875
9876found="no"
9877
9878	if test $found = "no" ; then
9879		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9880			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881		fi
9882
9883		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9884			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9885		fi
9886
9887		CFLAGS="$CFLAGS -pedantic"
9888
9889		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9890$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9891		cacheid=xorg_cv_cc_flag__pedantic
9892		if eval \${$cacheid+:} false; then :
9893  $as_echo_n "(cached) " >&6
9894else
9895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896/* end confdefs.h.  */
9897int i;
9898int
9899main ()
9900{
9901
9902  ;
9903  return 0;
9904}
9905_ACEOF
9906if ac_fn_c_try_link "$LINENO"; then :
9907  eval $cacheid=yes
9908else
9909  eval $cacheid=no
9910fi
9911rm -f core conftest.err conftest.$ac_objext \
9912    conftest$ac_exeext conftest.$ac_ext
9913fi
9914
9915
9916		CFLAGS="$xorg_testset_save_CFLAGS"
9917
9918		eval supported=\$$cacheid
9919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9920$as_echo "$supported" >&6; }
9921		if test "$supported" = "yes" ; then
9922			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9923			found="yes"
9924		fi
9925	fi
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941xorg_testset_save_CFLAGS="$CFLAGS"
9942
9943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9948  $as_echo_n "(cached) " >&6
9949else
9950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951/* end confdefs.h.  */
9952int i;
9953_ACEOF
9954if ac_fn_c_try_compile "$LINENO"; then :
9955  xorg_cv_cc_flag_unknown_warning_option=yes
9956else
9957  xorg_cv_cc_flag_unknown_warning_option=no
9958fi
9959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9960fi
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9964	CFLAGS="$xorg_testset_save_CFLAGS"
9965fi
9966
9967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9970	fi
9971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9975  $as_echo_n "(cached) " >&6
9976else
9977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h.  */
9979int i;
9980_ACEOF
9981if ac_fn_c_try_compile "$LINENO"; then :
9982  xorg_cv_cc_flag_unused_command_line_argument=yes
9983else
9984  xorg_cv_cc_flag_unused_command_line_argument=no
9985fi
9986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987fi
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9991	CFLAGS="$xorg_testset_save_CFLAGS"
9992fi
9993
9994found="no"
9995
9996	if test $found = "no" ; then
9997		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9999		fi
10000
10001		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10003		fi
10004
10005		CFLAGS="$CFLAGS -Werror"
10006
10007		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10008$as_echo_n "checking if $CC supports -Werror... " >&6; }
10009		cacheid=xorg_cv_cc_flag__Werror
10010		if eval \${$cacheid+:} false; then :
10011  $as_echo_n "(cached) " >&6
10012else
10013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h.  */
10015int i;
10016int
10017main ()
10018{
10019
10020  ;
10021  return 0;
10022}
10023_ACEOF
10024if ac_fn_c_try_link "$LINENO"; then :
10025  eval $cacheid=yes
10026else
10027  eval $cacheid=no
10028fi
10029rm -f core conftest.err conftest.$ac_objext \
10030    conftest$ac_exeext conftest.$ac_ext
10031fi
10032
10033
10034		CFLAGS="$xorg_testset_save_CFLAGS"
10035
10036		eval supported=\$$cacheid
10037		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10038$as_echo "$supported" >&6; }
10039		if test "$supported" = "yes" ; then
10040			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10041			found="yes"
10042		fi
10043	fi
10044
10045	if test $found = "no" ; then
10046		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10047			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10048		fi
10049
10050		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10051			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10052		fi
10053
10054		CFLAGS="$CFLAGS -errwarn"
10055
10056		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10057$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10058		cacheid=xorg_cv_cc_flag__errwarn
10059		if eval \${$cacheid+:} false; then :
10060  $as_echo_n "(cached) " >&6
10061else
10062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063/* end confdefs.h.  */
10064int i;
10065int
10066main ()
10067{
10068
10069  ;
10070  return 0;
10071}
10072_ACEOF
10073if ac_fn_c_try_link "$LINENO"; then :
10074  eval $cacheid=yes
10075else
10076  eval $cacheid=no
10077fi
10078rm -f core conftest.err conftest.$ac_objext \
10079    conftest$ac_exeext conftest.$ac_ext
10080fi
10081
10082
10083		CFLAGS="$xorg_testset_save_CFLAGS"
10084
10085		eval supported=\$$cacheid
10086		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10087$as_echo "$supported" >&6; }
10088		if test "$supported" = "yes" ; then
10089			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10090			found="yes"
10091		fi
10092	fi
10093
10094
10095
10096# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10097# activate it with -Werror, so we add it here explicitly.
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111xorg_testset_save_CFLAGS="$CFLAGS"
10112
10113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10114	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10116$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10117if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10118  $as_echo_n "(cached) " >&6
10119else
10120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h.  */
10122int i;
10123_ACEOF
10124if ac_fn_c_try_compile "$LINENO"; then :
10125  xorg_cv_cc_flag_unknown_warning_option=yes
10126else
10127  xorg_cv_cc_flag_unknown_warning_option=no
10128fi
10129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130fi
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10132$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10134	CFLAGS="$xorg_testset_save_CFLAGS"
10135fi
10136
10137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10140	fi
10141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10143$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10144if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10145  $as_echo_n "(cached) " >&6
10146else
10147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148/* end confdefs.h.  */
10149int i;
10150_ACEOF
10151if ac_fn_c_try_compile "$LINENO"; then :
10152  xorg_cv_cc_flag_unused_command_line_argument=yes
10153else
10154  xorg_cv_cc_flag_unused_command_line_argument=no
10155fi
10156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157fi
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10159$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10161	CFLAGS="$xorg_testset_save_CFLAGS"
10162fi
10163
10164found="no"
10165
10166	if test $found = "no" ; then
10167		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10169		fi
10170
10171		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10173		fi
10174
10175		CFLAGS="$CFLAGS -Werror=attributes"
10176
10177		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10178$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10179		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10180		if eval \${$cacheid+:} false; then :
10181  $as_echo_n "(cached) " >&6
10182else
10183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h.  */
10185int i;
10186int
10187main ()
10188{
10189
10190  ;
10191  return 0;
10192}
10193_ACEOF
10194if ac_fn_c_try_link "$LINENO"; then :
10195  eval $cacheid=yes
10196else
10197  eval $cacheid=no
10198fi
10199rm -f core conftest.err conftest.$ac_objext \
10200    conftest$ac_exeext conftest.$ac_ext
10201fi
10202
10203
10204		CFLAGS="$xorg_testset_save_CFLAGS"
10205
10206		eval supported=\$$cacheid
10207		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10208$as_echo "$supported" >&6; }
10209		if test "$supported" = "yes" ; then
10210			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10211			found="yes"
10212		fi
10213	fi
10214
10215
10216
10217if test "x$STRICT_COMPILE" = "xyes"; then
10218    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10219    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10220fi
10221
10222
10223
10224
10225
10226
10227cat >>confdefs.h <<_ACEOF
10228#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10229_ACEOF
10230
10231	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10232	if test "x$PVM" = "x"; then
10233		PVM="0"
10234	fi
10235
10236cat >>confdefs.h <<_ACEOF
10237#define PACKAGE_VERSION_MINOR $PVM
10238_ACEOF
10239
10240	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10241	if test "x$PVP" = "x"; then
10242		PVP="0"
10243	fi
10244
10245cat >>confdefs.h <<_ACEOF
10246#define PACKAGE_VERSION_PATCHLEVEL $PVP
10247_ACEOF
10248
10249
10250
10251CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10252mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10253|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10254echo 'git directory not found: installing possibly empty changelog.' >&2)"
10255
10256
10257
10258
10259macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10260INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10261mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10262|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10263echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10264
10265
10266
10267
10268
10269
10270if test x$APP_MAN_SUFFIX = x    ; then
10271    APP_MAN_SUFFIX=1
10272fi
10273if test x$APP_MAN_DIR = x    ; then
10274    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10275fi
10276
10277if test x$LIB_MAN_SUFFIX = x    ; then
10278    LIB_MAN_SUFFIX=3
10279fi
10280if test x$LIB_MAN_DIR = x    ; then
10281    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10282fi
10283
10284if test x$FILE_MAN_SUFFIX = x    ; then
10285    case $host_os in
10286	solaris*)	FILE_MAN_SUFFIX=4  ;;
10287	*)		FILE_MAN_SUFFIX=5  ;;
10288    esac
10289fi
10290if test x$FILE_MAN_DIR = x    ; then
10291    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10292fi
10293
10294if test x$MISC_MAN_SUFFIX = x    ; then
10295    case $host_os in
10296	solaris*)	MISC_MAN_SUFFIX=5  ;;
10297	*)		MISC_MAN_SUFFIX=7  ;;
10298    esac
10299fi
10300if test x$MISC_MAN_DIR = x    ; then
10301    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10302fi
10303
10304if test x$DRIVER_MAN_SUFFIX = x    ; then
10305    case $host_os in
10306	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10307	*)		DRIVER_MAN_SUFFIX=4  ;;
10308    esac
10309fi
10310if test x$DRIVER_MAN_DIR = x    ; then
10311    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10312fi
10313
10314if test x$ADMIN_MAN_SUFFIX = x    ; then
10315    case $host_os in
10316	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10317	*)		ADMIN_MAN_SUFFIX=8  ;;
10318    esac
10319fi
10320if test x$ADMIN_MAN_DIR = x    ; then
10321    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10322fi
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338XORG_MAN_PAGE="X Version 11"
10339
10340MAN_SUBSTS="\
10341	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10342	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10343	-e 's|__xservername__|Xorg|g' \
10344	-e 's|__xconfigfile__|xorg.conf|g' \
10345	-e 's|__projectroot__|\$(prefix)|g' \
10346	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10347	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10348	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10349	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10350	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10351	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10352	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10353
10354
10355
10356# Check whether --enable-silent-rules was given.
10357if test "${enable_silent_rules+set}" = set; then :
10358  enableval=$enable_silent_rules;
10359fi
10360
10361case $enable_silent_rules in
10362yes) AM_DEFAULT_VERBOSITY=0;;
10363no)  AM_DEFAULT_VERBOSITY=1;;
10364*)   AM_DEFAULT_VERBOSITY=0;;
10365esac
10366AM_BACKSLASH='\'
10367
10368
10369
10370# Checks for pkg-config packages
10371
10372pkg_failed=no
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVIDTUNE" >&5
10374$as_echo_n "checking for XVIDTUNE... " >&6; }
10375
10376if test -n "$XVIDTUNE_CFLAGS"; then
10377    pkg_cv_XVIDTUNE_CFLAGS="$XVIDTUNE_CFLAGS"
10378 elif test -n "$PKG_CONFIG"; then
10379    if test -n "$PKG_CONFIG" && \
10380    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm xt xaw7 xmu x11\""; } >&5
10381  ($PKG_CONFIG --exists --print-errors "xxf86vm xt xaw7 xmu x11") 2>&5
10382  ac_status=$?
10383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10384  test $ac_status = 0; }; then
10385  pkg_cv_XVIDTUNE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm xt xaw7 xmu x11" 2>/dev/null`
10386else
10387  pkg_failed=yes
10388fi
10389 else
10390    pkg_failed=untried
10391fi
10392if test -n "$XVIDTUNE_LIBS"; then
10393    pkg_cv_XVIDTUNE_LIBS="$XVIDTUNE_LIBS"
10394 elif test -n "$PKG_CONFIG"; then
10395    if test -n "$PKG_CONFIG" && \
10396    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm xt xaw7 xmu x11\""; } >&5
10397  ($PKG_CONFIG --exists --print-errors "xxf86vm xt xaw7 xmu x11") 2>&5
10398  ac_status=$?
10399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10400  test $ac_status = 0; }; then
10401  pkg_cv_XVIDTUNE_LIBS=`$PKG_CONFIG --libs "xxf86vm xt xaw7 xmu x11" 2>/dev/null`
10402else
10403  pkg_failed=yes
10404fi
10405 else
10406    pkg_failed=untried
10407fi
10408
10409
10410
10411if test $pkg_failed = yes; then
10412
10413if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10414        _pkg_short_errors_supported=yes
10415else
10416        _pkg_short_errors_supported=no
10417fi
10418        if test $_pkg_short_errors_supported = yes; then
10419	        XVIDTUNE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86vm xt xaw7 xmu x11" 2>&1`
10420        else
10421	        XVIDTUNE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86vm xt xaw7 xmu x11" 2>&1`
10422        fi
10423	# Put the nasty error message in config.log where it belongs
10424	echo "$XVIDTUNE_PKG_ERRORS" >&5
10425
10426	as_fn_error $? "Package requirements (xxf86vm xt xaw7 xmu x11) were not met:
10427
10428$XVIDTUNE_PKG_ERRORS
10429
10430Consider adjusting the PKG_CONFIG_PATH environment variable if you
10431installed software in a non-standard prefix.
10432
10433Alternatively, you may set the environment variables XVIDTUNE_CFLAGS
10434and XVIDTUNE_LIBS to avoid the need to call pkg-config.
10435See the pkg-config man page for more details.
10436" "$LINENO" 5
10437elif test $pkg_failed = untried; then
10438	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10440as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10441is in your PATH or set the PKG_CONFIG environment variable to the full
10442path to pkg-config.
10443
10444Alternatively, you may set the environment variables XVIDTUNE_CFLAGS
10445and XVIDTUNE_LIBS to avoid the need to call pkg-config.
10446See the pkg-config man page for more details.
10447
10448To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10449See \`config.log' for more details" "$LINENO" 5; }
10450else
10451	XVIDTUNE_CFLAGS=$pkg_cv_XVIDTUNE_CFLAGS
10452	XVIDTUNE_LIBS=$pkg_cv_XVIDTUNE_LIBS
10453        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10454$as_echo "yes" >&6; }
10455	:
10456fi
10457xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10458
10459# Check whether --with-appdefaultdir was given.
10460if test "${with_appdefaultdir+set}" = set; then :
10461  withval=$with_appdefaultdir; appdefaultdir="$withval"
10462else
10463  appdefaultdir="${xt_appdefaultdir}"
10464fi
10465
10466
10467
10468
10469ac_config_files="$ac_config_files Makefile man/Makefile"
10470
10471cat >confcache <<\_ACEOF
10472# This file is a shell script that caches the results of configure
10473# tests run on this system so they can be shared between configure
10474# scripts and configure runs, see configure's option --config-cache.
10475# It is not useful on other systems.  If it contains results you don't
10476# want to keep, you may remove or edit it.
10477#
10478# config.status only pays attention to the cache file if you give it
10479# the --recheck option to rerun configure.
10480#
10481# `ac_cv_env_foo' variables (set or unset) will be overridden when
10482# loading this file, other *unset* `ac_cv_foo' will be assigned the
10483# following values.
10484
10485_ACEOF
10486
10487# The following way of writing the cache mishandles newlines in values,
10488# but we know of no workaround that is simple, portable, and efficient.
10489# So, we kill variables containing newlines.
10490# Ultrix sh set writes to stderr and can't be redirected directly,
10491# and sets the high bit in the cache file unless we assign to the vars.
10492(
10493  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10494    eval ac_val=\$$ac_var
10495    case $ac_val in #(
10496    *${as_nl}*)
10497      case $ac_var in #(
10498      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10499$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10500      esac
10501      case $ac_var in #(
10502      _ | IFS | as_nl) ;; #(
10503      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10504      *) { eval $ac_var=; unset $ac_var;} ;;
10505      esac ;;
10506    esac
10507  done
10508
10509  (set) 2>&1 |
10510    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10511    *${as_nl}ac_space=\ *)
10512      # `set' does not quote correctly, so add quotes: double-quote
10513      # substitution turns \\\\ into \\, and sed turns \\ into \.
10514      sed -n \
10515	"s/'/'\\\\''/g;
10516	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10517      ;; #(
10518    *)
10519      # `set' quotes correctly as required by POSIX, so do not add quotes.
10520      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10521      ;;
10522    esac |
10523    sort
10524) |
10525  sed '
10526     /^ac_cv_env_/b end
10527     t clear
10528     :clear
10529     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10530     t end
10531     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10532     :end' >>confcache
10533if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10534  if test -w "$cache_file"; then
10535    if test "x$cache_file" != "x/dev/null"; then
10536      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10537$as_echo "$as_me: updating cache $cache_file" >&6;}
10538      if test ! -f "$cache_file" || test -h "$cache_file"; then
10539	cat confcache >"$cache_file"
10540      else
10541        case $cache_file in #(
10542        */* | ?:*)
10543	  mv -f confcache "$cache_file"$$ &&
10544	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10545        *)
10546	  mv -f confcache "$cache_file" ;;
10547	esac
10548      fi
10549    fi
10550  else
10551    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10552$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10553  fi
10554fi
10555rm -f confcache
10556
10557test "x$prefix" = xNONE && prefix=$ac_default_prefix
10558# Let make expand exec_prefix.
10559test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10560
10561DEFS=-DHAVE_CONFIG_H
10562
10563ac_libobjs=
10564ac_ltlibobjs=
10565U=
10566for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10567  # 1. Remove the extension, and $U if already installed.
10568  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10569  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10570  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10571  #    will be set to the directory where LIBOBJS objects are built.
10572  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10573  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10574done
10575LIBOBJS=$ac_libobjs
10576
10577LTLIBOBJS=$ac_ltlibobjs
10578
10579
10580 if test -n "$EXEEXT"; then
10581  am__EXEEXT_TRUE=
10582  am__EXEEXT_FALSE='#'
10583else
10584  am__EXEEXT_TRUE='#'
10585  am__EXEEXT_FALSE=
10586fi
10587
10588if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10589  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10590Usually this means the macro was only invoked conditionally." "$LINENO" 5
10591fi
10592if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10593  as_fn_error $? "conditional \"AMDEP\" was never defined.
10594Usually this means the macro was only invoked conditionally." "$LINENO" 5
10595fi
10596if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10597  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10598Usually this means the macro was only invoked conditionally." "$LINENO" 5
10599fi
10600
10601: "${CONFIG_STATUS=./config.status}"
10602ac_write_fail=0
10603ac_clean_files_save=$ac_clean_files
10604ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10606$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10607as_write_fail=0
10608cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10609#! $SHELL
10610# Generated by $as_me.
10611# Run this file to recreate the current configuration.
10612# Compiler output produced by configure, useful for debugging
10613# configure, is in config.log if it exists.
10614
10615debug=false
10616ac_cs_recheck=false
10617ac_cs_silent=false
10618
10619SHELL=\${CONFIG_SHELL-$SHELL}
10620export SHELL
10621_ASEOF
10622cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10623## -------------------- ##
10624## M4sh Initialization. ##
10625## -------------------- ##
10626
10627# Be more Bourne compatible
10628DUALCASE=1; export DUALCASE # for MKS sh
10629if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10630  emulate sh
10631  NULLCMD=:
10632  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10633  # is contrary to our usage.  Disable this feature.
10634  alias -g '${1+"$@"}'='"$@"'
10635  setopt NO_GLOB_SUBST
10636else
10637  case `(set -o) 2>/dev/null` in #(
10638  *posix*) :
10639    set -o posix ;; #(
10640  *) :
10641     ;;
10642esac
10643fi
10644
10645
10646as_nl='
10647'
10648export as_nl
10649# Printing a long string crashes Solaris 7 /usr/bin/printf.
10650as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10651as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10652as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10653# Prefer a ksh shell builtin over an external printf program on Solaris,
10654# but without wasting forks for bash or zsh.
10655if test -z "$BASH_VERSION$ZSH_VERSION" \
10656    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10657  as_echo='print -r --'
10658  as_echo_n='print -rn --'
10659elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10660  as_echo='printf %s\n'
10661  as_echo_n='printf %s'
10662else
10663  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10664    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10665    as_echo_n='/usr/ucb/echo -n'
10666  else
10667    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10668    as_echo_n_body='eval
10669      arg=$1;
10670      case $arg in #(
10671      *"$as_nl"*)
10672	expr "X$arg" : "X\\(.*\\)$as_nl";
10673	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10674      esac;
10675      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10676    '
10677    export as_echo_n_body
10678    as_echo_n='sh -c $as_echo_n_body as_echo'
10679  fi
10680  export as_echo_body
10681  as_echo='sh -c $as_echo_body as_echo'
10682fi
10683
10684# The user is always right.
10685if test "${PATH_SEPARATOR+set}" != set; then
10686  PATH_SEPARATOR=:
10687  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10688    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10689      PATH_SEPARATOR=';'
10690  }
10691fi
10692
10693
10694# IFS
10695# We need space, tab and new line, in precisely that order.  Quoting is
10696# there to prevent editors from complaining about space-tab.
10697# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10698# splitting by setting IFS to empty value.)
10699IFS=" ""	$as_nl"
10700
10701# Find who we are.  Look in the path if we contain no directory separator.
10702as_myself=
10703case $0 in #((
10704  *[\\/]* ) as_myself=$0 ;;
10705  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706for as_dir in $PATH
10707do
10708  IFS=$as_save_IFS
10709  test -z "$as_dir" && as_dir=.
10710    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10711  done
10712IFS=$as_save_IFS
10713
10714     ;;
10715esac
10716# We did not find ourselves, most probably we were run as `sh COMMAND'
10717# in which case we are not to be found in the path.
10718if test "x$as_myself" = x; then
10719  as_myself=$0
10720fi
10721if test ! -f "$as_myself"; then
10722  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10723  exit 1
10724fi
10725
10726# Unset variables that we do not need and which cause bugs (e.g. in
10727# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10728# suppresses any "Segmentation fault" message there.  '((' could
10729# trigger a bug in pdksh 5.2.14.
10730for as_var in BASH_ENV ENV MAIL MAILPATH
10731do eval test x\${$as_var+set} = xset \
10732  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10733done
10734PS1='$ '
10735PS2='> '
10736PS4='+ '
10737
10738# NLS nuisances.
10739LC_ALL=C
10740export LC_ALL
10741LANGUAGE=C
10742export LANGUAGE
10743
10744# CDPATH.
10745(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10746
10747
10748# as_fn_error STATUS ERROR [LINENO LOG_FD]
10749# ----------------------------------------
10750# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10751# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10752# script with STATUS, using 1 if that was 0.
10753as_fn_error ()
10754{
10755  as_status=$1; test $as_status -eq 0 && as_status=1
10756  if test "$4"; then
10757    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10758    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10759  fi
10760  $as_echo "$as_me: error: $2" >&2
10761  as_fn_exit $as_status
10762} # as_fn_error
10763
10764
10765# as_fn_set_status STATUS
10766# -----------------------
10767# Set $? to STATUS, without forking.
10768as_fn_set_status ()
10769{
10770  return $1
10771} # as_fn_set_status
10772
10773# as_fn_exit STATUS
10774# -----------------
10775# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10776as_fn_exit ()
10777{
10778  set +e
10779  as_fn_set_status $1
10780  exit $1
10781} # as_fn_exit
10782
10783# as_fn_unset VAR
10784# ---------------
10785# Portably unset VAR.
10786as_fn_unset ()
10787{
10788  { eval $1=; unset $1;}
10789}
10790as_unset=as_fn_unset
10791# as_fn_append VAR VALUE
10792# ----------------------
10793# Append the text in VALUE to the end of the definition contained in VAR. Take
10794# advantage of any shell optimizations that allow amortized linear growth over
10795# repeated appends, instead of the typical quadratic growth present in naive
10796# implementations.
10797if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10798  eval 'as_fn_append ()
10799  {
10800    eval $1+=\$2
10801  }'
10802else
10803  as_fn_append ()
10804  {
10805    eval $1=\$$1\$2
10806  }
10807fi # as_fn_append
10808
10809# as_fn_arith ARG...
10810# ------------------
10811# Perform arithmetic evaluation on the ARGs, and store the result in the
10812# global $as_val. Take advantage of shells that can avoid forks. The arguments
10813# must be portable across $(()) and expr.
10814if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10815  eval 'as_fn_arith ()
10816  {
10817    as_val=$(( $* ))
10818  }'
10819else
10820  as_fn_arith ()
10821  {
10822    as_val=`expr "$@" || test $? -eq 1`
10823  }
10824fi # as_fn_arith
10825
10826
10827if expr a : '\(a\)' >/dev/null 2>&1 &&
10828   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10829  as_expr=expr
10830else
10831  as_expr=false
10832fi
10833
10834if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10835  as_basename=basename
10836else
10837  as_basename=false
10838fi
10839
10840if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10841  as_dirname=dirname
10842else
10843  as_dirname=false
10844fi
10845
10846as_me=`$as_basename -- "$0" ||
10847$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10848	 X"$0" : 'X\(//\)$' \| \
10849	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10850$as_echo X/"$0" |
10851    sed '/^.*\/\([^/][^/]*\)\/*$/{
10852	    s//\1/
10853	    q
10854	  }
10855	  /^X\/\(\/\/\)$/{
10856	    s//\1/
10857	    q
10858	  }
10859	  /^X\/\(\/\).*/{
10860	    s//\1/
10861	    q
10862	  }
10863	  s/.*/./; q'`
10864
10865# Avoid depending upon Character Ranges.
10866as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10867as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10868as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10869as_cr_digits='0123456789'
10870as_cr_alnum=$as_cr_Letters$as_cr_digits
10871
10872ECHO_C= ECHO_N= ECHO_T=
10873case `echo -n x` in #(((((
10874-n*)
10875  case `echo 'xy\c'` in
10876  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10877  xy)  ECHO_C='\c';;
10878  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10879       ECHO_T='	';;
10880  esac;;
10881*)
10882  ECHO_N='-n';;
10883esac
10884
10885rm -f conf$$ conf$$.exe conf$$.file
10886if test -d conf$$.dir; then
10887  rm -f conf$$.dir/conf$$.file
10888else
10889  rm -f conf$$.dir
10890  mkdir conf$$.dir 2>/dev/null
10891fi
10892if (echo >conf$$.file) 2>/dev/null; then
10893  if ln -s conf$$.file conf$$ 2>/dev/null; then
10894    as_ln_s='ln -s'
10895    # ... but there are two gotchas:
10896    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10897    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10898    # In both cases, we have to default to `cp -p'.
10899    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10900      as_ln_s='cp -p'
10901  elif ln conf$$.file conf$$ 2>/dev/null; then
10902    as_ln_s=ln
10903  else
10904    as_ln_s='cp -p'
10905  fi
10906else
10907  as_ln_s='cp -p'
10908fi
10909rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10910rmdir conf$$.dir 2>/dev/null
10911
10912
10913# as_fn_mkdir_p
10914# -------------
10915# Create "$as_dir" as a directory, including parents if necessary.
10916as_fn_mkdir_p ()
10917{
10918
10919  case $as_dir in #(
10920  -*) as_dir=./$as_dir;;
10921  esac
10922  test -d "$as_dir" || eval $as_mkdir_p || {
10923    as_dirs=
10924    while :; do
10925      case $as_dir in #(
10926      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10927      *) as_qdir=$as_dir;;
10928      esac
10929      as_dirs="'$as_qdir' $as_dirs"
10930      as_dir=`$as_dirname -- "$as_dir" ||
10931$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10932	 X"$as_dir" : 'X\(//\)[^/]' \| \
10933	 X"$as_dir" : 'X\(//\)$' \| \
10934	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10935$as_echo X"$as_dir" |
10936    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10937	    s//\1/
10938	    q
10939	  }
10940	  /^X\(\/\/\)[^/].*/{
10941	    s//\1/
10942	    q
10943	  }
10944	  /^X\(\/\/\)$/{
10945	    s//\1/
10946	    q
10947	  }
10948	  /^X\(\/\).*/{
10949	    s//\1/
10950	    q
10951	  }
10952	  s/.*/./; q'`
10953      test -d "$as_dir" && break
10954    done
10955    test -z "$as_dirs" || eval "mkdir $as_dirs"
10956  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10957
10958
10959} # as_fn_mkdir_p
10960if mkdir -p . 2>/dev/null; then
10961  as_mkdir_p='mkdir -p "$as_dir"'
10962else
10963  test -d ./-p && rmdir ./-p
10964  as_mkdir_p=false
10965fi
10966
10967if test -x / >/dev/null 2>&1; then
10968  as_test_x='test -x'
10969else
10970  if ls -dL / >/dev/null 2>&1; then
10971    as_ls_L_option=L
10972  else
10973    as_ls_L_option=
10974  fi
10975  as_test_x='
10976    eval sh -c '\''
10977      if test -d "$1"; then
10978	test -d "$1/.";
10979      else
10980	case $1 in #(
10981	-*)set "./$1";;
10982	esac;
10983	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10984	???[sx]*):;;*)false;;esac;fi
10985    '\'' sh
10986  '
10987fi
10988as_executable_p=$as_test_x
10989
10990# Sed expression to map a string onto a valid CPP name.
10991as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10992
10993# Sed expression to map a string onto a valid variable name.
10994as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10995
10996
10997exec 6>&1
10998## ----------------------------------- ##
10999## Main body of $CONFIG_STATUS script. ##
11000## ----------------------------------- ##
11001_ASEOF
11002test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11003
11004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11005# Save the log message, to keep $0 and so on meaningful, and to
11006# report actual input values of CONFIG_FILES etc. instead of their
11007# values after options handling.
11008ac_log="
11009This file was extended by xvidtune $as_me 1.0.3, which was
11010generated by GNU Autoconf 2.68.  Invocation command line was
11011
11012  CONFIG_FILES    = $CONFIG_FILES
11013  CONFIG_HEADERS  = $CONFIG_HEADERS
11014  CONFIG_LINKS    = $CONFIG_LINKS
11015  CONFIG_COMMANDS = $CONFIG_COMMANDS
11016  $ $0 $@
11017
11018on `(hostname || uname -n) 2>/dev/null | sed 1q`
11019"
11020
11021_ACEOF
11022
11023case $ac_config_files in *"
11024"*) set x $ac_config_files; shift; ac_config_files=$*;;
11025esac
11026
11027case $ac_config_headers in *"
11028"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11029esac
11030
11031
11032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11033# Files that config.status was made for.
11034config_files="$ac_config_files"
11035config_headers="$ac_config_headers"
11036config_commands="$ac_config_commands"
11037
11038_ACEOF
11039
11040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11041ac_cs_usage="\
11042\`$as_me' instantiates files and other configuration actions
11043from templates according to the current configuration.  Unless the files
11044and actions are specified as TAGs, all are instantiated by default.
11045
11046Usage: $0 [OPTION]... [TAG]...
11047
11048  -h, --help       print this help, then exit
11049  -V, --version    print version number and configuration settings, then exit
11050      --config     print configuration, then exit
11051  -q, --quiet, --silent
11052                   do not print progress messages
11053  -d, --debug      don't remove temporary files
11054      --recheck    update $as_me by reconfiguring in the same conditions
11055      --file=FILE[:TEMPLATE]
11056                   instantiate the configuration file FILE
11057      --header=FILE[:TEMPLATE]
11058                   instantiate the configuration header FILE
11059
11060Configuration files:
11061$config_files
11062
11063Configuration headers:
11064$config_headers
11065
11066Configuration commands:
11067$config_commands
11068
11069Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11070
11071_ACEOF
11072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11073ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11074ac_cs_version="\\
11075xvidtune config.status 1.0.3
11076configured by $0, generated by GNU Autoconf 2.68,
11077  with options \\"\$ac_cs_config\\"
11078
11079Copyright (C) 2010 Free Software Foundation, Inc.
11080This config.status script is free software; the Free Software Foundation
11081gives unlimited permission to copy, distribute and modify it."
11082
11083ac_pwd='$ac_pwd'
11084srcdir='$srcdir'
11085INSTALL='$INSTALL'
11086MKDIR_P='$MKDIR_P'
11087AWK='$AWK'
11088test -n "\$AWK" || AWK=awk
11089_ACEOF
11090
11091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11092# The default lists apply if the user does not specify any file.
11093ac_need_defaults=:
11094while test $# != 0
11095do
11096  case $1 in
11097  --*=?*)
11098    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11099    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11100    ac_shift=:
11101    ;;
11102  --*=)
11103    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11104    ac_optarg=
11105    ac_shift=:
11106    ;;
11107  *)
11108    ac_option=$1
11109    ac_optarg=$2
11110    ac_shift=shift
11111    ;;
11112  esac
11113
11114  case $ac_option in
11115  # Handling of the options.
11116  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11117    ac_cs_recheck=: ;;
11118  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11119    $as_echo "$ac_cs_version"; exit ;;
11120  --config | --confi | --conf | --con | --co | --c )
11121    $as_echo "$ac_cs_config"; exit ;;
11122  --debug | --debu | --deb | --de | --d | -d )
11123    debug=: ;;
11124  --file | --fil | --fi | --f )
11125    $ac_shift
11126    case $ac_optarg in
11127    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11128    '') as_fn_error $? "missing file argument" ;;
11129    esac
11130    as_fn_append CONFIG_FILES " '$ac_optarg'"
11131    ac_need_defaults=false;;
11132  --header | --heade | --head | --hea )
11133    $ac_shift
11134    case $ac_optarg in
11135    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11136    esac
11137    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11138    ac_need_defaults=false;;
11139  --he | --h)
11140    # Conflict between --help and --header
11141    as_fn_error $? "ambiguous option: \`$1'
11142Try \`$0 --help' for more information.";;
11143  --help | --hel | -h )
11144    $as_echo "$ac_cs_usage"; exit ;;
11145  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11146  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11147    ac_cs_silent=: ;;
11148
11149  # This is an error.
11150  -*) as_fn_error $? "unrecognized option: \`$1'
11151Try \`$0 --help' for more information." ;;
11152
11153  *) as_fn_append ac_config_targets " $1"
11154     ac_need_defaults=false ;;
11155
11156  esac
11157  shift
11158done
11159
11160ac_configure_extra_args=
11161
11162if $ac_cs_silent; then
11163  exec 6>/dev/null
11164  ac_configure_extra_args="$ac_configure_extra_args --silent"
11165fi
11166
11167_ACEOF
11168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11169if \$ac_cs_recheck; then
11170  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11171  shift
11172  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11173  CONFIG_SHELL='$SHELL'
11174  export CONFIG_SHELL
11175  exec "\$@"
11176fi
11177
11178_ACEOF
11179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11180exec 5>>config.log
11181{
11182  echo
11183  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11184## Running $as_me. ##
11185_ASBOX
11186  $as_echo "$ac_log"
11187} >&5
11188
11189_ACEOF
11190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11191#
11192# INIT-COMMANDS
11193#
11194AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11195
11196_ACEOF
11197
11198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11199
11200# Handling of arguments.
11201for ac_config_target in $ac_config_targets
11202do
11203  case $ac_config_target in
11204    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11205    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11206    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11207    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11208
11209  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11210  esac
11211done
11212
11213
11214# If the user did not use the arguments to specify the items to instantiate,
11215# then the envvar interface is used.  Set only those that are not.
11216# We use the long form for the default assignment because of an extremely
11217# bizarre bug on SunOS 4.1.3.
11218if $ac_need_defaults; then
11219  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11220  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11221  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11222fi
11223
11224# Have a temporary directory for convenience.  Make it in the build tree
11225# simply because there is no reason against having it here, and in addition,
11226# creating and moving files from /tmp can sometimes cause problems.
11227# Hook for its removal unless debugging.
11228# Note that there is a small window in which the directory will not be cleaned:
11229# after its creation but before its name has been assigned to `$tmp'.
11230$debug ||
11231{
11232  tmp= ac_tmp=
11233  trap 'exit_status=$?
11234  : "${ac_tmp:=$tmp}"
11235  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11236' 0
11237  trap 'as_fn_exit 1' 1 2 13 15
11238}
11239# Create a (secure) tmp directory for tmp files.
11240
11241{
11242  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11243  test -d "$tmp"
11244}  ||
11245{
11246  tmp=./conf$$-$RANDOM
11247  (umask 077 && mkdir "$tmp")
11248} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11249ac_tmp=$tmp
11250
11251# Set up the scripts for CONFIG_FILES section.
11252# No need to generate them if there are no CONFIG_FILES.
11253# This happens for instance with `./config.status config.h'.
11254if test -n "$CONFIG_FILES"; then
11255
11256
11257ac_cr=`echo X | tr X '\015'`
11258# On cygwin, bash can eat \r inside `` if the user requested igncr.
11259# But we know of no other shell where ac_cr would be empty at this
11260# point, so we can use a bashism as a fallback.
11261if test "x$ac_cr" = x; then
11262  eval ac_cr=\$\'\\r\'
11263fi
11264ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11265if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11266  ac_cs_awk_cr='\\r'
11267else
11268  ac_cs_awk_cr=$ac_cr
11269fi
11270
11271echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11272_ACEOF
11273
11274
11275{
11276  echo "cat >conf$$subs.awk <<_ACEOF" &&
11277  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11278  echo "_ACEOF"
11279} >conf$$subs.sh ||
11280  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11281ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11282ac_delim='%!_!# '
11283for ac_last_try in false false false false false :; do
11284  . ./conf$$subs.sh ||
11285    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11286
11287  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11288  if test $ac_delim_n = $ac_delim_num; then
11289    break
11290  elif $ac_last_try; then
11291    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11292  else
11293    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11294  fi
11295done
11296rm -f conf$$subs.sh
11297
11298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11299cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11300_ACEOF
11301sed -n '
11302h
11303s/^/S["/; s/!.*/"]=/
11304p
11305g
11306s/^[^!]*!//
11307:repl
11308t repl
11309s/'"$ac_delim"'$//
11310t delim
11311:nl
11312h
11313s/\(.\{148\}\)..*/\1/
11314t more1
11315s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11316p
11317n
11318b repl
11319:more1
11320s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11321p
11322g
11323s/.\{148\}//
11324t nl
11325:delim
11326h
11327s/\(.\{148\}\)..*/\1/
11328t more2
11329s/["\\]/\\&/g; s/^/"/; s/$/"/
11330p
11331b
11332:more2
11333s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11334p
11335g
11336s/.\{148\}//
11337t delim
11338' <conf$$subs.awk | sed '
11339/^[^""]/{
11340  N
11341  s/\n//
11342}
11343' >>$CONFIG_STATUS || ac_write_fail=1
11344rm -f conf$$subs.awk
11345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11346_ACAWK
11347cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11348  for (key in S) S_is_set[key] = 1
11349  FS = ""
11350
11351}
11352{
11353  line = $ 0
11354  nfields = split(line, field, "@")
11355  substed = 0
11356  len = length(field[1])
11357  for (i = 2; i < nfields; i++) {
11358    key = field[i]
11359    keylen = length(key)
11360    if (S_is_set[key]) {
11361      value = S[key]
11362      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11363      len += length(value) + length(field[++i])
11364      substed = 1
11365    } else
11366      len += 1 + keylen
11367  }
11368
11369  print line
11370}
11371
11372_ACAWK
11373_ACEOF
11374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11375if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11376  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11377else
11378  cat
11379fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11380  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11381_ACEOF
11382
11383# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11384# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11385# trailing colons and then remove the whole line if VPATH becomes empty
11386# (actually we leave an empty line to preserve line numbers).
11387if test "x$srcdir" = x.; then
11388  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11389h
11390s///
11391s/^/:/
11392s/[	 ]*$/:/
11393s/:\$(srcdir):/:/g
11394s/:\${srcdir}:/:/g
11395s/:@srcdir@:/:/g
11396s/^:*//
11397s/:*$//
11398x
11399s/\(=[	 ]*\).*/\1/
11400G
11401s/\n//
11402s/^[^=]*=[	 ]*$//
11403}'
11404fi
11405
11406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11407fi # test -n "$CONFIG_FILES"
11408
11409# Set up the scripts for CONFIG_HEADERS section.
11410# No need to generate them if there are no CONFIG_HEADERS.
11411# This happens for instance with `./config.status Makefile'.
11412if test -n "$CONFIG_HEADERS"; then
11413cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11414BEGIN {
11415_ACEOF
11416
11417# Transform confdefs.h into an awk script `defines.awk', embedded as
11418# here-document in config.status, that substitutes the proper values into
11419# config.h.in to produce config.h.
11420
11421# Create a delimiter string that does not exist in confdefs.h, to ease
11422# handling of long lines.
11423ac_delim='%!_!# '
11424for ac_last_try in false false :; do
11425  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11426  if test -z "$ac_tt"; then
11427    break
11428  elif $ac_last_try; then
11429    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11430  else
11431    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11432  fi
11433done
11434
11435# For the awk script, D is an array of macro values keyed by name,
11436# likewise P contains macro parameters if any.  Preserve backslash
11437# newline sequences.
11438
11439ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11440sed -n '
11441s/.\{148\}/&'"$ac_delim"'/g
11442t rset
11443:rset
11444s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11445t def
11446d
11447:def
11448s/\\$//
11449t bsnl
11450s/["\\]/\\&/g
11451s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11452D["\1"]=" \3"/p
11453s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11454d
11455:bsnl
11456s/["\\]/\\&/g
11457s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11458D["\1"]=" \3\\\\\\n"\\/p
11459t cont
11460s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11461t cont
11462d
11463:cont
11464n
11465s/.\{148\}/&'"$ac_delim"'/g
11466t clear
11467:clear
11468s/\\$//
11469t bsnlc
11470s/["\\]/\\&/g; s/^/"/; s/$/"/p
11471d
11472:bsnlc
11473s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11474b cont
11475' <confdefs.h | sed '
11476s/'"$ac_delim"'/"\\\
11477"/g' >>$CONFIG_STATUS || ac_write_fail=1
11478
11479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11480  for (key in D) D_is_set[key] = 1
11481  FS = ""
11482}
11483/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11484  line = \$ 0
11485  split(line, arg, " ")
11486  if (arg[1] == "#") {
11487    defundef = arg[2]
11488    mac1 = arg[3]
11489  } else {
11490    defundef = substr(arg[1], 2)
11491    mac1 = arg[2]
11492  }
11493  split(mac1, mac2, "(") #)
11494  macro = mac2[1]
11495  prefix = substr(line, 1, index(line, defundef) - 1)
11496  if (D_is_set[macro]) {
11497    # Preserve the white space surrounding the "#".
11498    print prefix "define", macro P[macro] D[macro]
11499    next
11500  } else {
11501    # Replace #undef with comments.  This is necessary, for example,
11502    # in the case of _POSIX_SOURCE, which is predefined and required
11503    # on some systems where configure will not decide to define it.
11504    if (defundef == "undef") {
11505      print "/*", prefix defundef, macro, "*/"
11506      next
11507    }
11508  }
11509}
11510{ print }
11511_ACAWK
11512_ACEOF
11513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11514  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11515fi # test -n "$CONFIG_HEADERS"
11516
11517
11518eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11519shift
11520for ac_tag
11521do
11522  case $ac_tag in
11523  :[FHLC]) ac_mode=$ac_tag; continue;;
11524  esac
11525  case $ac_mode$ac_tag in
11526  :[FHL]*:*);;
11527  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11528  :[FH]-) ac_tag=-:-;;
11529  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11530  esac
11531  ac_save_IFS=$IFS
11532  IFS=:
11533  set x $ac_tag
11534  IFS=$ac_save_IFS
11535  shift
11536  ac_file=$1
11537  shift
11538
11539  case $ac_mode in
11540  :L) ac_source=$1;;
11541  :[FH])
11542    ac_file_inputs=
11543    for ac_f
11544    do
11545      case $ac_f in
11546      -) ac_f="$ac_tmp/stdin";;
11547      *) # Look for the file first in the build tree, then in the source tree
11548	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11549	 # because $ac_f cannot contain `:'.
11550	 test -f "$ac_f" ||
11551	   case $ac_f in
11552	   [\\/$]*) false;;
11553	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11554	   esac ||
11555	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11556      esac
11557      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11558      as_fn_append ac_file_inputs " '$ac_f'"
11559    done
11560
11561    # Let's still pretend it is `configure' which instantiates (i.e., don't
11562    # use $as_me), people would be surprised to read:
11563    #    /* config.h.  Generated by config.status.  */
11564    configure_input='Generated from '`
11565	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11566	`' by configure.'
11567    if test x"$ac_file" != x-; then
11568      configure_input="$ac_file.  $configure_input"
11569      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11570$as_echo "$as_me: creating $ac_file" >&6;}
11571    fi
11572    # Neutralize special characters interpreted by sed in replacement strings.
11573    case $configure_input in #(
11574    *\&* | *\|* | *\\* )
11575       ac_sed_conf_input=`$as_echo "$configure_input" |
11576       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11577    *) ac_sed_conf_input=$configure_input;;
11578    esac
11579
11580    case $ac_tag in
11581    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11582      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11583    esac
11584    ;;
11585  esac
11586
11587  ac_dir=`$as_dirname -- "$ac_file" ||
11588$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11589	 X"$ac_file" : 'X\(//\)[^/]' \| \
11590	 X"$ac_file" : 'X\(//\)$' \| \
11591	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11592$as_echo X"$ac_file" |
11593    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11594	    s//\1/
11595	    q
11596	  }
11597	  /^X\(\/\/\)[^/].*/{
11598	    s//\1/
11599	    q
11600	  }
11601	  /^X\(\/\/\)$/{
11602	    s//\1/
11603	    q
11604	  }
11605	  /^X\(\/\).*/{
11606	    s//\1/
11607	    q
11608	  }
11609	  s/.*/./; q'`
11610  as_dir="$ac_dir"; as_fn_mkdir_p
11611  ac_builddir=.
11612
11613case "$ac_dir" in
11614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11615*)
11616  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11617  # A ".." for each directory in $ac_dir_suffix.
11618  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11619  case $ac_top_builddir_sub in
11620  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11621  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11622  esac ;;
11623esac
11624ac_abs_top_builddir=$ac_pwd
11625ac_abs_builddir=$ac_pwd$ac_dir_suffix
11626# for backward compatibility:
11627ac_top_builddir=$ac_top_build_prefix
11628
11629case $srcdir in
11630  .)  # We are building in place.
11631    ac_srcdir=.
11632    ac_top_srcdir=$ac_top_builddir_sub
11633    ac_abs_top_srcdir=$ac_pwd ;;
11634  [\\/]* | ?:[\\/]* )  # Absolute name.
11635    ac_srcdir=$srcdir$ac_dir_suffix;
11636    ac_top_srcdir=$srcdir
11637    ac_abs_top_srcdir=$srcdir ;;
11638  *) # Relative name.
11639    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11640    ac_top_srcdir=$ac_top_build_prefix$srcdir
11641    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11642esac
11643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11644
11645
11646  case $ac_mode in
11647  :F)
11648  #
11649  # CONFIG_FILE
11650  #
11651
11652  case $INSTALL in
11653  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11654  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11655  esac
11656  ac_MKDIR_P=$MKDIR_P
11657  case $MKDIR_P in
11658  [\\/$]* | ?:[\\/]* ) ;;
11659  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11660  esac
11661_ACEOF
11662
11663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11664# If the template does not know about datarootdir, expand it.
11665# FIXME: This hack should be removed a few years after 2.60.
11666ac_datarootdir_hack=; ac_datarootdir_seen=
11667ac_sed_dataroot='
11668/datarootdir/ {
11669  p
11670  q
11671}
11672/@datadir@/p
11673/@docdir@/p
11674/@infodir@/p
11675/@localedir@/p
11676/@mandir@/p'
11677case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11678*datarootdir*) ac_datarootdir_seen=yes;;
11679*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11680  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11681$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11682_ACEOF
11683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11684  ac_datarootdir_hack='
11685  s&@datadir@&$datadir&g
11686  s&@docdir@&$docdir&g
11687  s&@infodir@&$infodir&g
11688  s&@localedir@&$localedir&g
11689  s&@mandir@&$mandir&g
11690  s&\\\${datarootdir}&$datarootdir&g' ;;
11691esac
11692_ACEOF
11693
11694# Neutralize VPATH when `$srcdir' = `.'.
11695# Shell code in configure.ac might set extrasub.
11696# FIXME: do we really want to maintain this feature?
11697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11698ac_sed_extra="$ac_vpsub
11699$extrasub
11700_ACEOF
11701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11702:t
11703/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11704s|@configure_input@|$ac_sed_conf_input|;t t
11705s&@top_builddir@&$ac_top_builddir_sub&;t t
11706s&@top_build_prefix@&$ac_top_build_prefix&;t t
11707s&@srcdir@&$ac_srcdir&;t t
11708s&@abs_srcdir@&$ac_abs_srcdir&;t t
11709s&@top_srcdir@&$ac_top_srcdir&;t t
11710s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11711s&@builddir@&$ac_builddir&;t t
11712s&@abs_builddir@&$ac_abs_builddir&;t t
11713s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11714s&@INSTALL@&$ac_INSTALL&;t t
11715s&@MKDIR_P@&$ac_MKDIR_P&;t t
11716$ac_datarootdir_hack
11717"
11718eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11719  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11720
11721test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11722  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11723  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11724      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11725  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11726which seems to be undefined.  Please make sure it is defined" >&5
11727$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11728which seems to be undefined.  Please make sure it is defined" >&2;}
11729
11730  rm -f "$ac_tmp/stdin"
11731  case $ac_file in
11732  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11733  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11734  esac \
11735  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11736 ;;
11737  :H)
11738  #
11739  # CONFIG_HEADER
11740  #
11741  if test x"$ac_file" != x-; then
11742    {
11743      $as_echo "/* $configure_input  */" \
11744      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11745    } >"$ac_tmp/config.h" \
11746      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11747    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11748      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11749$as_echo "$as_me: $ac_file is unchanged" >&6;}
11750    else
11751      rm -f "$ac_file"
11752      mv "$ac_tmp/config.h" "$ac_file" \
11753	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11754    fi
11755  else
11756    $as_echo "/* $configure_input  */" \
11757      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11758      || as_fn_error $? "could not create -" "$LINENO" 5
11759  fi
11760# Compute "$ac_file"'s index in $config_headers.
11761_am_arg="$ac_file"
11762_am_stamp_count=1
11763for _am_header in $config_headers :; do
11764  case $_am_header in
11765    $_am_arg | $_am_arg:* )
11766      break ;;
11767    * )
11768      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11769  esac
11770done
11771echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11772$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11773	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11774	 X"$_am_arg" : 'X\(//\)$' \| \
11775	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11776$as_echo X"$_am_arg" |
11777    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11778	    s//\1/
11779	    q
11780	  }
11781	  /^X\(\/\/\)[^/].*/{
11782	    s//\1/
11783	    q
11784	  }
11785	  /^X\(\/\/\)$/{
11786	    s//\1/
11787	    q
11788	  }
11789	  /^X\(\/\).*/{
11790	    s//\1/
11791	    q
11792	  }
11793	  s/.*/./; q'`/stamp-h$_am_stamp_count
11794 ;;
11795
11796  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11797$as_echo "$as_me: executing $ac_file commands" >&6;}
11798 ;;
11799  esac
11800
11801
11802  case $ac_file$ac_mode in
11803    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11804  # Autoconf 2.62 quotes --file arguments for eval, but not when files
11805  # are listed without --file.  Let's play safe and only enable the eval
11806  # if we detect the quoting.
11807  case $CONFIG_FILES in
11808  *\'*) eval set x "$CONFIG_FILES" ;;
11809  *)   set x $CONFIG_FILES ;;
11810  esac
11811  shift
11812  for mf
11813  do
11814    # Strip MF so we end up with the name of the file.
11815    mf=`echo "$mf" | sed -e 's/:.*$//'`
11816    # Check whether this is an Automake generated Makefile or not.
11817    # We used to match only the files named `Makefile.in', but
11818    # some people rename them; so instead we look at the file content.
11819    # Grep'ing the first line is not enough: some people post-process
11820    # each Makefile.in and add a new line on top of each file to say so.
11821    # Grep'ing the whole file is not good either: AIX grep has a line
11822    # limit of 2048, but all sed's we know have understand at least 4000.
11823    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11824      dirpart=`$as_dirname -- "$mf" ||
11825$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11826	 X"$mf" : 'X\(//\)[^/]' \| \
11827	 X"$mf" : 'X\(//\)$' \| \
11828	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11829$as_echo X"$mf" |
11830    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11831	    s//\1/
11832	    q
11833	  }
11834	  /^X\(\/\/\)[^/].*/{
11835	    s//\1/
11836	    q
11837	  }
11838	  /^X\(\/\/\)$/{
11839	    s//\1/
11840	    q
11841	  }
11842	  /^X\(\/\).*/{
11843	    s//\1/
11844	    q
11845	  }
11846	  s/.*/./; q'`
11847    else
11848      continue
11849    fi
11850    # Extract the definition of DEPDIR, am__include, and am__quote
11851    # from the Makefile without running `make'.
11852    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11853    test -z "$DEPDIR" && continue
11854    am__include=`sed -n 's/^am__include = //p' < "$mf"`
11855    test -z "am__include" && continue
11856    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11857    # When using ansi2knr, U may be empty or an underscore; expand it
11858    U=`sed -n 's/^U = //p' < "$mf"`
11859    # Find all dependency output files, they are included files with
11860    # $(DEPDIR) in their names.  We invoke sed twice because it is the
11861    # simplest approach to changing $(DEPDIR) to its actual value in the
11862    # expansion.
11863    for file in `sed -n "
11864      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11865	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11866      # Make sure the directory exists.
11867      test -f "$dirpart/$file" && continue
11868      fdir=`$as_dirname -- "$file" ||
11869$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11870	 X"$file" : 'X\(//\)[^/]' \| \
11871	 X"$file" : 'X\(//\)$' \| \
11872	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11873$as_echo X"$file" |
11874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11875	    s//\1/
11876	    q
11877	  }
11878	  /^X\(\/\/\)[^/].*/{
11879	    s//\1/
11880	    q
11881	  }
11882	  /^X\(\/\/\)$/{
11883	    s//\1/
11884	    q
11885	  }
11886	  /^X\(\/\).*/{
11887	    s//\1/
11888	    q
11889	  }
11890	  s/.*/./; q'`
11891      as_dir=$dirpart/$fdir; as_fn_mkdir_p
11892      # echo "creating $dirpart/$file"
11893      echo '# dummy' > "$dirpart/$file"
11894    done
11895  done
11896}
11897 ;;
11898
11899  esac
11900done # for ac_tag
11901
11902
11903as_fn_exit 0
11904_ACEOF
11905ac_clean_files=$ac_clean_files_save
11906
11907test $ac_write_fail = 0 ||
11908  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11909
11910
11911# configure is writing to config.log, and then calls config.status.
11912# config.status does its own redirection, appending to config.log.
11913# Unfortunately, on DOS this fails, as config.log is still kept open
11914# by configure, so config.status won't be able to write to it; its
11915# output is simply discarded.  So we exec the FD to /dev/null,
11916# effectively closing config.log, so it can be properly (re)opened and
11917# appended to by config.status.  When coming back to configure, we
11918# need to make the FD available again.
11919if test "$no_create" != yes; then
11920  ac_cs_success=:
11921  ac_config_status_args=
11922  test "$silent" = yes &&
11923    ac_config_status_args="$ac_config_status_args --quiet"
11924  exec 5>/dev/null
11925  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11926  exec 5>>config.log
11927  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11928  # would make configure fail if this is the last instruction.
11929  $ac_cs_success || as_fn_exit 1
11930fi
11931if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11932  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11933$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11934fi
11935
11936