configure revision 34f90d55
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xfs 1.1.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
540as_awk_strverscmp='
541  # Use only awk features that work with 7th edition Unix awk (1978).
542  # My, what an old awk you have, Mr. Solaris!
543  END {
544    while (length(v1) && length(v2)) {
545      # Set d1 to be the next thing to compare from v1, and likewise for d2.
546      # Normally this is a single character, but if v1 and v2 contain digits,
547      # compare them as integers and fractions as strverscmp does.
548      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
549	# Split v1 and v2 into their leading digit string components d1 and d2,
550	# and advance v1 and v2 past the leading digit strings.
551	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
552	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
553	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
554	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
555	if (d1 ~ /^0/) {
556	  if (d2 ~ /^0/) {
557	    # Compare two fractions.
558	    while (d1 ~ /^0/ && d2 ~ /^0/) {
559	      d1 = substr(d1, 2); len1--
560	      d2 = substr(d2, 2); len2--
561	    }
562	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
563	      # The two components differ in length, and the common prefix
564	      # contains only leading zeros.  Consider the longer to be less.
565	      d1 = -len1
566	      d2 = -len2
567	    } else {
568	      # Otherwise, compare as strings.
569	      d1 = "x" d1
570	      d2 = "x" d2
571	    }
572	  } else {
573	    # A fraction is less than an integer.
574	    exit 1
575	  }
576	} else {
577	  if (d2 ~ /^0/) {
578	    # An integer is greater than a fraction.
579	    exit 2
580	  } else {
581	    # Compare two integers.
582	    d1 += 0
583	    d2 += 0
584	  }
585	}
586      } else {
587	# The normal case, without worrying about digits.
588	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
589	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
590      }
591      if (d1 < d2) exit 1
592      if (d1 > d2) exit 2
593    }
594    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
595    # which mishandles some comparisons of empty strings to integers.
596    if (length(v2)) exit 1
597    if (length(v1)) exit 2
598  }
599'
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='xfs'
623PACKAGE_TARNAME='xfs'
624PACKAGE_VERSION='1.1.3'
625PACKAGE_STRING='xfs 1.1.3'
626PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
627PACKAGE_URL=''
628
629# Factoring default headers for most tests.
630ac_includes_default="\
631#include <stdio.h>
632#ifdef HAVE_SYS_TYPES_H
633# include <sys/types.h>
634#endif
635#ifdef HAVE_SYS_STAT_H
636# include <sys/stat.h>
637#endif
638#ifdef STDC_HEADERS
639# include <stdlib.h>
640# include <stddef.h>
641#else
642# ifdef HAVE_STDLIB_H
643#  include <stdlib.h>
644# endif
645#endif
646#ifdef HAVE_STRING_H
647# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
648#  include <memory.h>
649# endif
650# include <string.h>
651#endif
652#ifdef HAVE_STRINGS_H
653# include <strings.h>
654#endif
655#ifdef HAVE_INTTYPES_H
656# include <inttypes.h>
657#endif
658#ifdef HAVE_STDINT_H
659# include <stdint.h>
660#endif
661#ifdef HAVE_UNISTD_H
662# include <unistd.h>
663#endif"
664
665ac_subst_vars='am__EXEEXT_FALSE
666am__EXEEXT_TRUE
667LTLIBOBJS
668LIBOBJS
669XFS_LIBS
670XFS_CFLAGS
671FONTPATH
672FONT100DPIDIR
673FONT75DPIDIR
674FONTTYPE1DIR
675FONTTTFDIR
676FONTOTFDIR
677FONTMISCDIR
678FONTROOTDIR
679CONFIG_FILE_PATH
680CONFIG_FILE_DESC
681DEFAULT_CONFIG_FILE
682LINT_FALSE
683LINT_TRUE
684LINT_FLAGS
685LINT
686HAVE_STYLESHEETS_FALSE
687HAVE_STYLESHEETS_TRUE
688XSL_STYLESHEET
689STYLESHEET_SRCDIR
690XORG_SGML_PATH
691HAVE_FOP_FALSE
692HAVE_FOP_TRUE
693FOP
694HAVE_XMLTO_FALSE
695HAVE_XMLTO_TRUE
696HAVE_XMLTO_TEXT_FALSE
697HAVE_XMLTO_TEXT_TRUE
698XMLTO
699ENABLE_DEVEL_DOCS_FALSE
700ENABLE_DEVEL_DOCS_TRUE
701AM_BACKSLASH
702AM_DEFAULT_VERBOSITY
703MAN_SUBSTS
704XORG_MAN_PAGE
705ADMIN_MAN_DIR
706DRIVER_MAN_DIR
707MISC_MAN_DIR
708FILE_MAN_DIR
709LIB_MAN_DIR
710APP_MAN_DIR
711ADMIN_MAN_SUFFIX
712DRIVER_MAN_SUFFIX
713MISC_MAN_SUFFIX
714FILE_MAN_SUFFIX
715LIB_MAN_SUFFIX
716APP_MAN_SUFFIX
717SED
718host_os
719host_vendor
720host_cpu
721host
722build_os
723build_vendor
724build_cpu
725build
726INSTALL_CMD
727PKG_CONFIG
728CHANGELOG_CMD
729STRICT_CFLAGS
730CWARNFLAGS
731BASE_CFLAGS
732MAINT
733MAINTAINER_MODE_FALSE
734MAINTAINER_MODE_TRUE
735am__fastdepCC_FALSE
736am__fastdepCC_TRUE
737CCDEPMODE
738am__nodep
739AMDEPBACKSLASH
740AMDEP_FALSE
741AMDEP_TRUE
742am__quote
743am__include
744DEPDIR
745am__untar
746am__tar
747AMTAR
748am__leading_dot
749SET_MAKE
750AWK
751mkdir_p
752MKDIR_P
753INSTALL_STRIP_PROGRAM
754STRIP
755install_sh
756MAKEINFO
757AUTOHEADER
758AUTOMAKE
759AUTOCONF
760ACLOCAL
761VERSION
762PACKAGE
763CYGPATH_W
764am__isrc
765INSTALL_DATA
766INSTALL_SCRIPT
767INSTALL_PROGRAM
768EGREP
769GREP
770CPP
771OBJEXT
772EXEEXT
773ac_ct_CC
774CPPFLAGS
775LDFLAGS
776CFLAGS
777CC
778target_alias
779host_alias
780build_alias
781LIBS
782ECHO_T
783ECHO_N
784ECHO_C
785DEFS
786mandir
787localedir
788libdir
789psdir
790pdfdir
791dvidir
792htmldir
793infodir
794docdir
795oldincludedir
796includedir
797localstatedir
798sharedstatedir
799sysconfdir
800datadir
801datarootdir
802libexecdir
803sbindir
804bindir
805program_transform_name
806prefix
807exec_prefix
808PACKAGE_URL
809PACKAGE_BUGREPORT
810PACKAGE_STRING
811PACKAGE_VERSION
812PACKAGE_TARNAME
813PACKAGE_NAME
814PATH_SEPARATOR
815SHELL'
816ac_subst_files=''
817ac_user_opts='
818enable_option_checking
819enable_dependency_tracking
820enable_maintainer_mode
821enable_selective_werror
822enable_strict_compilation
823enable_silent_rules
824enable_devel_docs
825with_xmlto
826with_fop
827with_lint
828with_default_config_file
829with_fontrootdir
830with_fontmiscdir
831with_fontotfdir
832with_fontttfdir
833with_fonttype1dir
834with_font75dpidir
835with_font100dpidir
836with_default_font_path
837enable_inetd
838enable_syslog
839enable_unix_transport
840enable_tcp_transport
841enable_ipv6
842enable_local_transport
843'
844      ac_precious_vars='build_alias
845host_alias
846target_alias
847CC
848CFLAGS
849LDFLAGS
850LIBS
851CPPFLAGS
852CPP
853PKG_CONFIG
854XMLTO
855FOP
856LINT
857LINT_FLAGS
858XFS_CFLAGS
859XFS_LIBS'
860
861
862# Initialize some variables set by options.
863ac_init_help=
864ac_init_version=false
865ac_unrecognized_opts=
866ac_unrecognized_sep=
867# The variables have the same names as the options, with
868# dashes changed to underlines.
869cache_file=/dev/null
870exec_prefix=NONE
871no_create=
872no_recursion=
873prefix=NONE
874program_prefix=NONE
875program_suffix=NONE
876program_transform_name=s,x,x,
877silent=
878site=
879srcdir=
880verbose=
881x_includes=NONE
882x_libraries=NONE
883
884# Installation directory options.
885# These are left unexpanded so users can "make install exec_prefix=/foo"
886# and all the variables that are supposed to be based on exec_prefix
887# by default will actually change.
888# Use braces instead of parens because sh, perl, etc. also accept them.
889# (The list follows the same order as the GNU Coding Standards.)
890bindir='${exec_prefix}/bin'
891sbindir='${exec_prefix}/sbin'
892libexecdir='${exec_prefix}/libexec'
893datarootdir='${prefix}/share'
894datadir='${datarootdir}'
895sysconfdir='${prefix}/etc'
896sharedstatedir='${prefix}/com'
897localstatedir='${prefix}/var'
898includedir='${prefix}/include'
899oldincludedir='/usr/include'
900docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901infodir='${datarootdir}/info'
902htmldir='${docdir}'
903dvidir='${docdir}'
904pdfdir='${docdir}'
905psdir='${docdir}'
906libdir='${exec_prefix}/lib'
907localedir='${datarootdir}/locale'
908mandir='${datarootdir}/man'
909
910ac_prev=
911ac_dashdash=
912for ac_option
913do
914  # If the previous option needs an argument, assign it.
915  if test -n "$ac_prev"; then
916    eval $ac_prev=\$ac_option
917    ac_prev=
918    continue
919  fi
920
921  case $ac_option in
922  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923  *=)   ac_optarg= ;;
924  *)    ac_optarg=yes ;;
925  esac
926
927  # Accept the important Cygnus configure options, so we can diagnose typos.
928
929  case $ac_dashdash$ac_option in
930  --)
931    ac_dashdash=yes ;;
932
933  -bindir | --bindir | --bindi | --bind | --bin | --bi)
934    ac_prev=bindir ;;
935  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936    bindir=$ac_optarg ;;
937
938  -build | --build | --buil | --bui | --bu)
939    ac_prev=build_alias ;;
940  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941    build_alias=$ac_optarg ;;
942
943  -cache-file | --cache-file | --cache-fil | --cache-fi \
944  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945    ac_prev=cache_file ;;
946  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948    cache_file=$ac_optarg ;;
949
950  --config-cache | -C)
951    cache_file=config.cache ;;
952
953  -datadir | --datadir | --datadi | --datad)
954    ac_prev=datadir ;;
955  -datadir=* | --datadir=* | --datadi=* | --datad=*)
956    datadir=$ac_optarg ;;
957
958  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959  | --dataroo | --dataro | --datar)
960    ac_prev=datarootdir ;;
961  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963    datarootdir=$ac_optarg ;;
964
965  -disable-* | --disable-*)
966    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967    # Reject names that are not valid shell variable names.
968    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969      as_fn_error $? "invalid feature name: $ac_useropt"
970    ac_useropt_orig=$ac_useropt
971    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972    case $ac_user_opts in
973      *"
974"enable_$ac_useropt"
975"*) ;;
976      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977	 ac_unrecognized_sep=', ';;
978    esac
979    eval enable_$ac_useropt=no ;;
980
981  -docdir | --docdir | --docdi | --doc | --do)
982    ac_prev=docdir ;;
983  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984    docdir=$ac_optarg ;;
985
986  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987    ac_prev=dvidir ;;
988  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989    dvidir=$ac_optarg ;;
990
991  -enable-* | --enable-*)
992    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993    # Reject names that are not valid shell variable names.
994    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995      as_fn_error $? "invalid feature name: $ac_useropt"
996    ac_useropt_orig=$ac_useropt
997    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998    case $ac_user_opts in
999      *"
1000"enable_$ac_useropt"
1001"*) ;;
1002      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003	 ac_unrecognized_sep=', ';;
1004    esac
1005    eval enable_$ac_useropt=\$ac_optarg ;;
1006
1007  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009  | --exec | --exe | --ex)
1010    ac_prev=exec_prefix ;;
1011  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013  | --exec=* | --exe=* | --ex=*)
1014    exec_prefix=$ac_optarg ;;
1015
1016  -gas | --gas | --ga | --g)
1017    # Obsolete; use --with-gas.
1018    with_gas=yes ;;
1019
1020  -help | --help | --hel | --he | -h)
1021    ac_init_help=long ;;
1022  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023    ac_init_help=recursive ;;
1024  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025    ac_init_help=short ;;
1026
1027  -host | --host | --hos | --ho)
1028    ac_prev=host_alias ;;
1029  -host=* | --host=* | --hos=* | --ho=*)
1030    host_alias=$ac_optarg ;;
1031
1032  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033    ac_prev=htmldir ;;
1034  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035  | --ht=*)
1036    htmldir=$ac_optarg ;;
1037
1038  -includedir | --includedir | --includedi | --included | --include \
1039  | --includ | --inclu | --incl | --inc)
1040    ac_prev=includedir ;;
1041  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042  | --includ=* | --inclu=* | --incl=* | --inc=*)
1043    includedir=$ac_optarg ;;
1044
1045  -infodir | --infodir | --infodi | --infod | --info | --inf)
1046    ac_prev=infodir ;;
1047  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048    infodir=$ac_optarg ;;
1049
1050  -libdir | --libdir | --libdi | --libd)
1051    ac_prev=libdir ;;
1052  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053    libdir=$ac_optarg ;;
1054
1055  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056  | --libexe | --libex | --libe)
1057    ac_prev=libexecdir ;;
1058  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059  | --libexe=* | --libex=* | --libe=*)
1060    libexecdir=$ac_optarg ;;
1061
1062  -localedir | --localedir | --localedi | --localed | --locale)
1063    ac_prev=localedir ;;
1064  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065    localedir=$ac_optarg ;;
1066
1067  -localstatedir | --localstatedir | --localstatedi | --localstated \
1068  | --localstate | --localstat | --localsta | --localst | --locals)
1069    ac_prev=localstatedir ;;
1070  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072    localstatedir=$ac_optarg ;;
1073
1074  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075    ac_prev=mandir ;;
1076  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077    mandir=$ac_optarg ;;
1078
1079  -nfp | --nfp | --nf)
1080    # Obsolete; use --without-fp.
1081    with_fp=no ;;
1082
1083  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084  | --no-cr | --no-c | -n)
1085    no_create=yes ;;
1086
1087  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089    no_recursion=yes ;;
1090
1091  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093  | --oldin | --oldi | --old | --ol | --o)
1094    ac_prev=oldincludedir ;;
1095  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098    oldincludedir=$ac_optarg ;;
1099
1100  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101    ac_prev=prefix ;;
1102  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103    prefix=$ac_optarg ;;
1104
1105  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106  | --program-pre | --program-pr | --program-p)
1107    ac_prev=program_prefix ;;
1108  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110    program_prefix=$ac_optarg ;;
1111
1112  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113  | --program-suf | --program-su | --program-s)
1114    ac_prev=program_suffix ;;
1115  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117    program_suffix=$ac_optarg ;;
1118
1119  -program-transform-name | --program-transform-name \
1120  | --program-transform-nam | --program-transform-na \
1121  | --program-transform-n | --program-transform- \
1122  | --program-transform | --program-transfor \
1123  | --program-transfo | --program-transf \
1124  | --program-trans | --program-tran \
1125  | --progr-tra | --program-tr | --program-t)
1126    ac_prev=program_transform_name ;;
1127  -program-transform-name=* | --program-transform-name=* \
1128  | --program-transform-nam=* | --program-transform-na=* \
1129  | --program-transform-n=* | --program-transform-=* \
1130  | --program-transform=* | --program-transfor=* \
1131  | --program-transfo=* | --program-transf=* \
1132  | --program-trans=* | --program-tran=* \
1133  | --progr-tra=* | --program-tr=* | --program-t=*)
1134    program_transform_name=$ac_optarg ;;
1135
1136  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137    ac_prev=pdfdir ;;
1138  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139    pdfdir=$ac_optarg ;;
1140
1141  -psdir | --psdir | --psdi | --psd | --ps)
1142    ac_prev=psdir ;;
1143  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144    psdir=$ac_optarg ;;
1145
1146  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147  | -silent | --silent | --silen | --sile | --sil)
1148    silent=yes ;;
1149
1150  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151    ac_prev=sbindir ;;
1152  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153  | --sbi=* | --sb=*)
1154    sbindir=$ac_optarg ;;
1155
1156  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158  | --sharedst | --shareds | --shared | --share | --shar \
1159  | --sha | --sh)
1160    ac_prev=sharedstatedir ;;
1161  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164  | --sha=* | --sh=*)
1165    sharedstatedir=$ac_optarg ;;
1166
1167  -site | --site | --sit)
1168    ac_prev=site ;;
1169  -site=* | --site=* | --sit=*)
1170    site=$ac_optarg ;;
1171
1172  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173    ac_prev=srcdir ;;
1174  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175    srcdir=$ac_optarg ;;
1176
1177  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178  | --syscon | --sysco | --sysc | --sys | --sy)
1179    ac_prev=sysconfdir ;;
1180  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182    sysconfdir=$ac_optarg ;;
1183
1184  -target | --target | --targe | --targ | --tar | --ta | --t)
1185    ac_prev=target_alias ;;
1186  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187    target_alias=$ac_optarg ;;
1188
1189  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190    verbose=yes ;;
1191
1192  -version | --version | --versio | --versi | --vers | -V)
1193    ac_init_version=: ;;
1194
1195  -with-* | --with-*)
1196    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197    # Reject names that are not valid shell variable names.
1198    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199      as_fn_error $? "invalid package name: $ac_useropt"
1200    ac_useropt_orig=$ac_useropt
1201    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202    case $ac_user_opts in
1203      *"
1204"with_$ac_useropt"
1205"*) ;;
1206      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207	 ac_unrecognized_sep=', ';;
1208    esac
1209    eval with_$ac_useropt=\$ac_optarg ;;
1210
1211  -without-* | --without-*)
1212    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215      as_fn_error $? "invalid package name: $ac_useropt"
1216    ac_useropt_orig=$ac_useropt
1217    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218    case $ac_user_opts in
1219      *"
1220"with_$ac_useropt"
1221"*) ;;
1222      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223	 ac_unrecognized_sep=', ';;
1224    esac
1225    eval with_$ac_useropt=no ;;
1226
1227  --x)
1228    # Obsolete; use --with-x.
1229    with_x=yes ;;
1230
1231  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232  | --x-incl | --x-inc | --x-in | --x-i)
1233    ac_prev=x_includes ;;
1234  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236    x_includes=$ac_optarg ;;
1237
1238  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240    ac_prev=x_libraries ;;
1241  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243    x_libraries=$ac_optarg ;;
1244
1245  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246Try \`$0 --help' for more information"
1247    ;;
1248
1249  *=*)
1250    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251    # Reject names that are not valid shell variable names.
1252    case $ac_envvar in #(
1253      '' | [0-9]* | *[!_$as_cr_alnum]* )
1254      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1255    esac
1256    eval $ac_envvar=\$ac_optarg
1257    export $ac_envvar ;;
1258
1259  *)
1260    # FIXME: should be removed in autoconf 3.0.
1261    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265    ;;
1266
1267  esac
1268done
1269
1270if test -n "$ac_prev"; then
1271  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272  as_fn_error $? "missing argument to $ac_option"
1273fi
1274
1275if test -n "$ac_unrecognized_opts"; then
1276  case $enable_option_checking in
1277    no) ;;
1278    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280  esac
1281fi
1282
1283# Check all directory arguments for consistency.
1284for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285		datadir sysconfdir sharedstatedir localstatedir includedir \
1286		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287		libdir localedir mandir
1288do
1289  eval ac_val=\$$ac_var
1290  # Remove trailing slashes.
1291  case $ac_val in
1292    */ )
1293      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294      eval $ac_var=\$ac_val;;
1295  esac
1296  # Be sure to have absolute directory names.
1297  case $ac_val in
1298    [\\/$]* | ?:[\\/]* )  continue;;
1299    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300  esac
1301  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302done
1303
1304# There might be people who depend on the old broken behavior: `$host'
1305# used to hold the argument of --host etc.
1306# FIXME: To remove some day.
1307build=$build_alias
1308host=$host_alias
1309target=$target_alias
1310
1311# FIXME: To remove some day.
1312if test "x$host_alias" != x; then
1313  if test "x$build_alias" = x; then
1314    cross_compiling=maybe
1315    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1316    If a cross compiler is detected then cross compile mode will be used" >&2
1317  elif test "x$build_alias" != "x$host_alias"; then
1318    cross_compiling=yes
1319  fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331  as_fn_error $? "working directory cannot be determined"
1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333  as_fn_error $? "pwd does not report name of working directory"
1334
1335
1336# Find the source files, if location was not specified.
1337if test -z "$srcdir"; then
1338  ac_srcdir_defaulted=yes
1339  # Try the directory containing this script, then the parent directory.
1340  ac_confdir=`$as_dirname -- "$as_myself" ||
1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342	 X"$as_myself" : 'X\(//\)[^/]' \| \
1343	 X"$as_myself" : 'X\(//\)$' \| \
1344	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345$as_echo X"$as_myself" |
1346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)[^/].*/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\/\)$/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\).*/{
1359	    s//\1/
1360	    q
1361	  }
1362	  s/.*/./; q'`
1363  srcdir=$ac_confdir
1364  if test ! -r "$srcdir/$ac_unique_file"; then
1365    srcdir=..
1366  fi
1367else
1368  ac_srcdir_defaulted=no
1369fi
1370if test ! -r "$srcdir/$ac_unique_file"; then
1371  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373fi
1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
1376	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377	pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380  srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_env_${ac_var}_value=\$${ac_var}
1391  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399  # Omit some internal or obsolete options to make the list less imposing.
1400  # This message is too long to be a string in the A/UX 3.1 sh.
1401  cat <<_ACEOF
1402\`configure' configures xfs 1.1.3 to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE.  See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412  -h, --help              display this help and exit
1413      --help=short        display options specific to this package
1414      --help=recursive    display the short help of all the included packages
1415  -V, --version           display version information and exit
1416  -q, --quiet, --silent   do not print \`checking ...' messages
1417      --cache-file=FILE   cache test results in FILE [disabled]
1418  -C, --config-cache      alias for \`--cache-file=config.cache'
1419  -n, --no-create         do not create output files
1420      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423  --prefix=PREFIX         install architecture-independent files in PREFIX
1424                          [$ac_default_prefix]
1425  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426                          [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436  --bindir=DIR            user executables [EPREFIX/bin]
1437  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1438  --libexecdir=DIR        program executables [EPREFIX/libexec]
1439  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1440  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1441  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1442  --libdir=DIR            object code libraries [EPREFIX/lib]
1443  --includedir=DIR        C header files [PREFIX/include]
1444  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1445  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1446  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1447  --infodir=DIR           info documentation [DATAROOTDIR/info]
1448  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1449  --mandir=DIR            man documentation [DATAROOTDIR/man]
1450  --docdir=DIR            documentation root [DATAROOTDIR/doc/xfs]
1451  --htmldir=DIR           html documentation [DOCDIR]
1452  --dvidir=DIR            dvi documentation [DOCDIR]
1453  --pdfdir=DIR            pdf documentation [DOCDIR]
1454  --psdir=DIR             ps documentation [DOCDIR]
1455_ACEOF
1456
1457  cat <<\_ACEOF
1458
1459Program names:
1460  --program-prefix=PREFIX            prepend PREFIX to installed program names
1461  --program-suffix=SUFFIX            append SUFFIX to installed program names
1462  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1463
1464System types:
1465  --build=BUILD     configure for building on BUILD [guessed]
1466  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467_ACEOF
1468fi
1469
1470if test -n "$ac_init_help"; then
1471  case $ac_init_help in
1472     short | recursive ) echo "Configuration of xfs 1.1.3:";;
1473   esac
1474  cat <<\_ACEOF
1475
1476Optional Features:
1477  --disable-option-checking  ignore unrecognized --enable/--with options
1478  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480  --disable-dependency-tracking  speeds up one-time build
1481  --enable-dependency-tracking   do not reject slow dependency extractors
1482  --enable-maintainer-mode  enable make rules and dependencies not useful
1483			  (and sometimes confusing) to the casual installer
1484  --disable-selective-werror
1485                          Turn off selective compiler errors. (default:
1486                          enabled)
1487  --enable-strict-compilation
1488                          Enable all warnings from compiler and make them
1489                          errors (default: disabled)
1490  --enable-silent-rules          less verbose build output (undo: `make V=1')
1491  --disable-silent-rules         verbose build output (undo: `make V=0')
1492  --enable-devel-docs     Enable building the developer documentation
1493                          (default: yes)
1494  --enable-inetd          Support -inetd flag for starting from inetd
1495                          (default: enabled)
1496  --enable-syslog         Support option for logging via syslog (default:
1497                          enabled)
1498  --enable-unix-transport Enable UNIX domain socket transport
1499  --enable-tcp-transport  Enable TCP socket transport
1500  --enable-ipv6           Enable IPv6 support
1501  --enable-local-transport
1502                          Enable os-specific local transport
1503
1504Optional Packages:
1505  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507  --with-xmlto            Use xmlto to regenerate documentation (default:
1508                          auto)
1509  --with-fop              Use fop to regenerate documentation (default: auto)
1510  --with-lint             Use a lint-style source code checker (default:
1511                          disabled)
1512  --with-default-config-file=PATH
1513                          comma-separated list of paths to look for config
1514                          file when not specified (default:
1515                          ${sysconfdir}/X11/fs/config)
1516  --with-fontrootdir=DIR  Path to root directory for font files
1517  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
1518  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
1519  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
1520  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
1521  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
1522  --with-font100dpidir=DIR
1523                          Path to 100dpi files [FONTROOTDIR/100dpi]
1524  --with-default-font-path=PATH
1525                          Comma separated list of font dirs
1526
1527Some influential environment variables:
1528  CC          C compiler command
1529  CFLAGS      C compiler flags
1530  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1531              nonstandard directory <lib dir>
1532  LIBS        libraries to pass to the linker, e.g. -l<library>
1533  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534              you have headers in a nonstandard directory <include dir>
1535  CPP         C preprocessor
1536  PKG_CONFIG  path to pkg-config utility
1537  XMLTO       Path to xmlto command
1538  FOP         Path to fop command
1539  LINT        Path to a lint-style command
1540  LINT_FLAGS  Flags for the lint-style command
1541  XFS_CFLAGS  C compiler flags for XFS, overriding pkg-config
1542  XFS_LIBS    linker flags for XFS, overriding pkg-config
1543
1544Use these variables to override the choices made by `configure' or to help
1545it to find libraries and programs with nonstandard names/locations.
1546
1547Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1548_ACEOF
1549ac_status=$?
1550fi
1551
1552if test "$ac_init_help" = "recursive"; then
1553  # If there are subdirs, report their specific --help.
1554  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555    test -d "$ac_dir" ||
1556      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557      continue
1558    ac_builddir=.
1559
1560case "$ac_dir" in
1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562*)
1563  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564  # A ".." for each directory in $ac_dir_suffix.
1565  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566  case $ac_top_builddir_sub in
1567  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569  esac ;;
1570esac
1571ac_abs_top_builddir=$ac_pwd
1572ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573# for backward compatibility:
1574ac_top_builddir=$ac_top_build_prefix
1575
1576case $srcdir in
1577  .)  # We are building in place.
1578    ac_srcdir=.
1579    ac_top_srcdir=$ac_top_builddir_sub
1580    ac_abs_top_srcdir=$ac_pwd ;;
1581  [\\/]* | ?:[\\/]* )  # Absolute name.
1582    ac_srcdir=$srcdir$ac_dir_suffix;
1583    ac_top_srcdir=$srcdir
1584    ac_abs_top_srcdir=$srcdir ;;
1585  *) # Relative name.
1586    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587    ac_top_srcdir=$ac_top_build_prefix$srcdir
1588    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589esac
1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592    cd "$ac_dir" || { ac_status=$?; continue; }
1593    # Check for guested configure.
1594    if test -f "$ac_srcdir/configure.gnu"; then
1595      echo &&
1596      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597    elif test -f "$ac_srcdir/configure"; then
1598      echo &&
1599      $SHELL "$ac_srcdir/configure" --help=recursive
1600    else
1601      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602    fi || ac_status=$?
1603    cd "$ac_pwd" || { ac_status=$?; break; }
1604  done
1605fi
1606
1607test -n "$ac_init_help" && exit $ac_status
1608if $ac_init_version; then
1609  cat <<\_ACEOF
1610xfs configure 1.1.3
1611generated by GNU Autoconf 2.68
1612
1613Copyright (C) 2010 Free Software Foundation, Inc.
1614This configure script is free software; the Free Software Foundation
1615gives unlimited permission to copy, distribute and modify it.
1616_ACEOF
1617  exit
1618fi
1619
1620## ------------------------ ##
1621## Autoconf initialization. ##
1622## ------------------------ ##
1623
1624# ac_fn_c_try_compile LINENO
1625# --------------------------
1626# Try to compile conftest.$ac_ext, and return whether this succeeded.
1627ac_fn_c_try_compile ()
1628{
1629  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630  rm -f conftest.$ac_objext
1631  if { { ac_try="$ac_compile"
1632case "(($ac_try" in
1633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634  *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638  (eval "$ac_compile") 2>conftest.err
1639  ac_status=$?
1640  if test -s conftest.err; then
1641    grep -v '^ *+' conftest.err >conftest.er1
1642    cat conftest.er1 >&5
1643    mv -f conftest.er1 conftest.err
1644  fi
1645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646  test $ac_status = 0; } && {
1647	 test -z "$ac_c_werror_flag" ||
1648	 test ! -s conftest.err
1649       } && test -s conftest.$ac_objext; then :
1650  ac_retval=0
1651else
1652  $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655	ac_retval=1
1656fi
1657  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658  as_fn_set_status $ac_retval
1659
1660} # ac_fn_c_try_compile
1661
1662# ac_fn_c_try_cpp LINENO
1663# ----------------------
1664# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1665ac_fn_c_try_cpp ()
1666{
1667  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668  if { { ac_try="$ac_cpp conftest.$ac_ext"
1669case "(($ac_try" in
1670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671  *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1676  ac_status=$?
1677  if test -s conftest.err; then
1678    grep -v '^ *+' conftest.err >conftest.er1
1679    cat conftest.er1 >&5
1680    mv -f conftest.er1 conftest.err
1681  fi
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; } > conftest.i && {
1684	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1685	 test ! -s conftest.err
1686       }; then :
1687  ac_retval=0
1688else
1689  $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692    ac_retval=1
1693fi
1694  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695  as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_cpp
1698
1699# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1700# -------------------------------------------------------
1701# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1702# the include files in INCLUDES and setting the cache variable VAR
1703# accordingly.
1704ac_fn_c_check_header_mongrel ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  if eval \${$3+:} false; then :
1708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709$as_echo_n "checking for $2... " >&6; }
1710if eval \${$3+:} false; then :
1711  $as_echo_n "(cached) " >&6
1712fi
1713eval ac_res=\$$3
1714	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715$as_echo "$ac_res" >&6; }
1716else
1717  # Is the header compilable?
1718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1719$as_echo_n "checking $2 usability... " >&6; }
1720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h.  */
1722$4
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_compile "$LINENO"; then :
1726  ac_header_compiler=yes
1727else
1728  ac_header_compiler=no
1729fi
1730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1732$as_echo "$ac_header_compiler" >&6; }
1733
1734# Is the header present?
1735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1736$as_echo_n "checking $2 presence... " >&6; }
1737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738/* end confdefs.h.  */
1739#include <$2>
1740_ACEOF
1741if ac_fn_c_try_cpp "$LINENO"; then :
1742  ac_header_preproc=yes
1743else
1744  ac_header_preproc=no
1745fi
1746rm -f conftest.err conftest.i conftest.$ac_ext
1747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1748$as_echo "$ac_header_preproc" >&6; }
1749
1750# So?  What about this header?
1751case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1752  yes:no: )
1753    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1754$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1755    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1756$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1757    ;;
1758  no:yes:* )
1759    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1760$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1761    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1762$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1763    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1764$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1765    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1766$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1767    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769( $as_echo "## ---------------------------------------------------------------------- ##
1770## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1771## ---------------------------------------------------------------------- ##"
1772     ) | sed "s/^/$as_me: WARNING:     /" >&2
1773    ;;
1774esac
1775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776$as_echo_n "checking for $2... " >&6; }
1777if eval \${$3+:} false; then :
1778  $as_echo_n "(cached) " >&6
1779else
1780  eval "$3=\$ac_header_compiler"
1781fi
1782eval ac_res=\$$3
1783	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784$as_echo "$ac_res" >&6; }
1785fi
1786  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788} # ac_fn_c_check_header_mongrel
1789
1790# ac_fn_c_try_run LINENO
1791# ----------------------
1792# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1793# that executables *can* be run.
1794ac_fn_c_try_run ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  if { { ac_try="$ac_link"
1798case "(($ac_try" in
1799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800  *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804  (eval "$ac_link") 2>&5
1805  ac_status=$?
1806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1808  { { case "(($ac_try" in
1809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810  *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814  (eval "$ac_try") 2>&5
1815  ac_status=$?
1816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817  test $ac_status = 0; }; }; then :
1818  ac_retval=0
1819else
1820  $as_echo "$as_me: program exited with status $ac_status" >&5
1821       $as_echo "$as_me: failed program was:" >&5
1822sed 's/^/| /' conftest.$ac_ext >&5
1823
1824       ac_retval=$ac_status
1825fi
1826  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828  as_fn_set_status $ac_retval
1829
1830} # ac_fn_c_try_run
1831
1832# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1833# -------------------------------------------------------
1834# Tests whether HEADER exists and can be compiled using the include files in
1835# INCLUDES, setting the cache variable VAR accordingly.
1836ac_fn_c_check_header_compile ()
1837{
1838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
1841if eval \${$3+:} false; then :
1842  $as_echo_n "(cached) " >&6
1843else
1844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h.  */
1846$4
1847#include <$2>
1848_ACEOF
1849if ac_fn_c_try_compile "$LINENO"; then :
1850  eval "$3=yes"
1851else
1852  eval "$3=no"
1853fi
1854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855fi
1856eval ac_res=\$$3
1857	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861} # ac_fn_c_check_header_compile
1862
1863# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1864# ---------------------------------------------
1865# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1866# accordingly.
1867ac_fn_c_check_decl ()
1868{
1869  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870  as_decl_name=`echo $2|sed 's/ *(.*//'`
1871  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1873$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1874if eval \${$3+:} false; then :
1875  $as_echo_n "(cached) " >&6
1876else
1877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h.  */
1879$4
1880int
1881main ()
1882{
1883#ifndef $as_decl_name
1884#ifdef __cplusplus
1885  (void) $as_decl_use;
1886#else
1887  (void) $as_decl_name;
1888#endif
1889#endif
1890
1891  ;
1892  return 0;
1893}
1894_ACEOF
1895if ac_fn_c_try_compile "$LINENO"; then :
1896  eval "$3=yes"
1897else
1898  eval "$3=no"
1899fi
1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901fi
1902eval ac_res=\$$3
1903	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904$as_echo "$ac_res" >&6; }
1905  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906
1907} # ac_fn_c_check_decl
1908
1909# ac_fn_c_try_link LINENO
1910# -----------------------
1911# Try to link conftest.$ac_ext, and return whether this succeeded.
1912ac_fn_c_try_link ()
1913{
1914  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915  rm -f conftest.$ac_objext conftest$ac_exeext
1916  if { { ac_try="$ac_link"
1917case "(($ac_try" in
1918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919  *) ac_try_echo=$ac_try;;
1920esac
1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922$as_echo "$ac_try_echo"; } >&5
1923  (eval "$ac_link") 2>conftest.err
1924  ac_status=$?
1925  if test -s conftest.err; then
1926    grep -v '^ *+' conftest.err >conftest.er1
1927    cat conftest.er1 >&5
1928    mv -f conftest.er1 conftest.err
1929  fi
1930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931  test $ac_status = 0; } && {
1932	 test -z "$ac_c_werror_flag" ||
1933	 test ! -s conftest.err
1934       } && test -s conftest$ac_exeext && {
1935	 test "$cross_compiling" = yes ||
1936	 $as_test_x conftest$ac_exeext
1937       }; then :
1938  ac_retval=0
1939else
1940  $as_echo "$as_me: failed program was:" >&5
1941sed 's/^/| /' conftest.$ac_ext >&5
1942
1943	ac_retval=1
1944fi
1945  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947  # interfere with the next link command; also delete a directory that is
1948  # left behind by Apple's compiler.  We do this before executing the actions.
1949  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951  as_fn_set_status $ac_retval
1952
1953} # ac_fn_c_try_link
1954
1955# ac_fn_c_check_func LINENO FUNC VAR
1956# ----------------------------------
1957# Tests whether FUNC exists, setting the cache variable VAR accordingly
1958ac_fn_c_check_func ()
1959{
1960  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962$as_echo_n "checking for $2... " >&6; }
1963if eval \${$3+:} false; then :
1964  $as_echo_n "(cached) " >&6
1965else
1966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h.  */
1968/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1969   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1970#define $2 innocuous_$2
1971
1972/* System header to define __stub macros and hopefully few prototypes,
1973    which can conflict with char $2 (); below.
1974    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1975    <limits.h> exists even on freestanding compilers.  */
1976
1977#ifdef __STDC__
1978# include <limits.h>
1979#else
1980# include <assert.h>
1981#endif
1982
1983#undef $2
1984
1985/* Override any GCC internal prototype to avoid an error.
1986   Use char because int might match the return type of a GCC
1987   builtin and then its argument prototype would still apply.  */
1988#ifdef __cplusplus
1989extern "C"
1990#endif
1991char $2 ();
1992/* The GNU C library defines this for functions which it implements
1993    to always fail with ENOSYS.  Some functions are actually named
1994    something starting with __ and the normal name is an alias.  */
1995#if defined __stub_$2 || defined __stub___$2
1996choke me
1997#endif
1998
1999int
2000main ()
2001{
2002return $2 ();
2003  ;
2004  return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_link "$LINENO"; then :
2008  eval "$3=yes"
2009else
2010  eval "$3=no"
2011fi
2012rm -f core conftest.err conftest.$ac_objext \
2013    conftest$ac_exeext conftest.$ac_ext
2014fi
2015eval ac_res=\$$3
2016	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017$as_echo "$ac_res" >&6; }
2018  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019
2020} # ac_fn_c_check_func
2021
2022# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2023# ----------------------------------------------------
2024# Tries to find if the field MEMBER exists in type AGGR, after including
2025# INCLUDES, setting cache variable VAR accordingly.
2026ac_fn_c_check_member ()
2027{
2028  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2030$as_echo_n "checking for $2.$3... " >&6; }
2031if eval \${$4+:} false; then :
2032  $as_echo_n "(cached) " >&6
2033else
2034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h.  */
2036$5
2037int
2038main ()
2039{
2040static $2 ac_aggr;
2041if (ac_aggr.$3)
2042return 0;
2043  ;
2044  return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_compile "$LINENO"; then :
2048  eval "$4=yes"
2049else
2050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051/* end confdefs.h.  */
2052$5
2053int
2054main ()
2055{
2056static $2 ac_aggr;
2057if (sizeof ac_aggr.$3)
2058return 0;
2059  ;
2060  return 0;
2061}
2062_ACEOF
2063if ac_fn_c_try_compile "$LINENO"; then :
2064  eval "$4=yes"
2065else
2066  eval "$4=no"
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071fi
2072eval ac_res=\$$4
2073	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074$as_echo "$ac_res" >&6; }
2075  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076
2077} # ac_fn_c_check_member
2078
2079# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2080# -------------------------------------------
2081# Tests whether TYPE exists after having included INCLUDES, setting cache
2082# variable VAR accordingly.
2083ac_fn_c_check_type ()
2084{
2085  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087$as_echo_n "checking for $2... " >&6; }
2088if eval \${$3+:} false; then :
2089  $as_echo_n "(cached) " >&6
2090else
2091  eval "$3=no"
2092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h.  */
2094$4
2095int
2096main ()
2097{
2098if (sizeof ($2))
2099	 return 0;
2100  ;
2101  return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106/* end confdefs.h.  */
2107$4
2108int
2109main ()
2110{
2111if (sizeof (($2)))
2112	    return 0;
2113  ;
2114  return 0;
2115}
2116_ACEOF
2117if ac_fn_c_try_compile "$LINENO"; then :
2118
2119else
2120  eval "$3=yes"
2121fi
2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125fi
2126eval ac_res=\$$3
2127	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128$as_echo "$ac_res" >&6; }
2129  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130
2131} # ac_fn_c_check_type
2132cat >config.log <<_ACEOF
2133This file contains any messages produced by compilers while
2134running configure, to aid debugging if configure makes a mistake.
2135
2136It was created by xfs $as_me 1.1.3, which was
2137generated by GNU Autoconf 2.68.  Invocation command line was
2138
2139  $ $0 $@
2140
2141_ACEOF
2142exec 5>>config.log
2143{
2144cat <<_ASUNAME
2145## --------- ##
2146## Platform. ##
2147## --------- ##
2148
2149hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2150uname -m = `(uname -m) 2>/dev/null || echo unknown`
2151uname -r = `(uname -r) 2>/dev/null || echo unknown`
2152uname -s = `(uname -s) 2>/dev/null || echo unknown`
2153uname -v = `(uname -v) 2>/dev/null || echo unknown`
2154
2155/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2156/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2157
2158/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2159/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2160/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2161/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2162/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2163/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2164/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2165
2166_ASUNAME
2167
2168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169for as_dir in $PATH
2170do
2171  IFS=$as_save_IFS
2172  test -z "$as_dir" && as_dir=.
2173    $as_echo "PATH: $as_dir"
2174  done
2175IFS=$as_save_IFS
2176
2177} >&5
2178
2179cat >&5 <<_ACEOF
2180
2181
2182## ----------- ##
2183## Core tests. ##
2184## ----------- ##
2185
2186_ACEOF
2187
2188
2189# Keep a trace of the command line.
2190# Strip out --no-create and --no-recursion so they do not pile up.
2191# Strip out --silent because we don't want to record it for future runs.
2192# Also quote any args containing shell meta-characters.
2193# Make two passes to allow for proper duplicate-argument suppression.
2194ac_configure_args=
2195ac_configure_args0=
2196ac_configure_args1=
2197ac_must_keep_next=false
2198for ac_pass in 1 2
2199do
2200  for ac_arg
2201  do
2202    case $ac_arg in
2203    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2204    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2205    | -silent | --silent | --silen | --sile | --sil)
2206      continue ;;
2207    *\'*)
2208      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2209    esac
2210    case $ac_pass in
2211    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2212    2)
2213      as_fn_append ac_configure_args1 " '$ac_arg'"
2214      if test $ac_must_keep_next = true; then
2215	ac_must_keep_next=false # Got value, back to normal.
2216      else
2217	case $ac_arg in
2218	  *=* | --config-cache | -C | -disable-* | --disable-* \
2219	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2220	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2221	  | -with-* | --with-* | -without-* | --without-* | --x)
2222	    case "$ac_configure_args0 " in
2223	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2224	    esac
2225	    ;;
2226	  -* ) ac_must_keep_next=true ;;
2227	esac
2228      fi
2229      as_fn_append ac_configure_args " '$ac_arg'"
2230      ;;
2231    esac
2232  done
2233done
2234{ ac_configure_args0=; unset ac_configure_args0;}
2235{ ac_configure_args1=; unset ac_configure_args1;}
2236
2237# When interrupted or exit'd, cleanup temporary files, and complete
2238# config.log.  We remove comments because anyway the quotes in there
2239# would cause problems or look ugly.
2240# WARNING: Use '\'' to represent an apostrophe within the trap.
2241# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2242trap 'exit_status=$?
2243  # Save into config.log some information that might help in debugging.
2244  {
2245    echo
2246
2247    $as_echo "## ---------------- ##
2248## Cache variables. ##
2249## ---------------- ##"
2250    echo
2251    # The following way of writing the cache mishandles newlines in values,
2252(
2253  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2254    eval ac_val=\$$ac_var
2255    case $ac_val in #(
2256    *${as_nl}*)
2257      case $ac_var in #(
2258      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2259$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2260      esac
2261      case $ac_var in #(
2262      _ | IFS | as_nl) ;; #(
2263      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2264      *) { eval $ac_var=; unset $ac_var;} ;;
2265      esac ;;
2266    esac
2267  done
2268  (set) 2>&1 |
2269    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2270    *${as_nl}ac_space=\ *)
2271      sed -n \
2272	"s/'\''/'\''\\\\'\'''\''/g;
2273	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2274      ;; #(
2275    *)
2276      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2277      ;;
2278    esac |
2279    sort
2280)
2281    echo
2282
2283    $as_echo "## ----------------- ##
2284## Output variables. ##
2285## ----------------- ##"
2286    echo
2287    for ac_var in $ac_subst_vars
2288    do
2289      eval ac_val=\$$ac_var
2290      case $ac_val in
2291      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2292      esac
2293      $as_echo "$ac_var='\''$ac_val'\''"
2294    done | sort
2295    echo
2296
2297    if test -n "$ac_subst_files"; then
2298      $as_echo "## ------------------- ##
2299## File substitutions. ##
2300## ------------------- ##"
2301      echo
2302      for ac_var in $ac_subst_files
2303      do
2304	eval ac_val=\$$ac_var
2305	case $ac_val in
2306	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2307	esac
2308	$as_echo "$ac_var='\''$ac_val'\''"
2309      done | sort
2310      echo
2311    fi
2312
2313    if test -s confdefs.h; then
2314      $as_echo "## ----------- ##
2315## confdefs.h. ##
2316## ----------- ##"
2317      echo
2318      cat confdefs.h
2319      echo
2320    fi
2321    test "$ac_signal" != 0 &&
2322      $as_echo "$as_me: caught signal $ac_signal"
2323    $as_echo "$as_me: exit $exit_status"
2324  } >&5
2325  rm -f core *.core core.conftest.* &&
2326    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2327    exit $exit_status
2328' 0
2329for ac_signal in 1 2 13 15; do
2330  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2331done
2332ac_signal=0
2333
2334# confdefs.h avoids OS command line length limits that DEFS can exceed.
2335rm -f -r conftest* confdefs.h
2336
2337$as_echo "/* confdefs.h */" > confdefs.h
2338
2339# Predefined preprocessor variables.
2340
2341cat >>confdefs.h <<_ACEOF
2342#define PACKAGE_NAME "$PACKAGE_NAME"
2343_ACEOF
2344
2345cat >>confdefs.h <<_ACEOF
2346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2347_ACEOF
2348
2349cat >>confdefs.h <<_ACEOF
2350#define PACKAGE_VERSION "$PACKAGE_VERSION"
2351_ACEOF
2352
2353cat >>confdefs.h <<_ACEOF
2354#define PACKAGE_STRING "$PACKAGE_STRING"
2355_ACEOF
2356
2357cat >>confdefs.h <<_ACEOF
2358#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2359_ACEOF
2360
2361cat >>confdefs.h <<_ACEOF
2362#define PACKAGE_URL "$PACKAGE_URL"
2363_ACEOF
2364
2365
2366# Let the site file select an alternate cache file if it wants to.
2367# Prefer an explicitly selected file to automatically selected ones.
2368ac_site_file1=NONE
2369ac_site_file2=NONE
2370if test -n "$CONFIG_SITE"; then
2371  # We do not want a PATH search for config.site.
2372  case $CONFIG_SITE in #((
2373    -*)  ac_site_file1=./$CONFIG_SITE;;
2374    */*) ac_site_file1=$CONFIG_SITE;;
2375    *)   ac_site_file1=./$CONFIG_SITE;;
2376  esac
2377elif test "x$prefix" != xNONE; then
2378  ac_site_file1=$prefix/share/config.site
2379  ac_site_file2=$prefix/etc/config.site
2380else
2381  ac_site_file1=$ac_default_prefix/share/config.site
2382  ac_site_file2=$ac_default_prefix/etc/config.site
2383fi
2384for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2385do
2386  test "x$ac_site_file" = xNONE && continue
2387  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2388    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2389$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2390    sed 's/^/| /' "$ac_site_file" >&5
2391    . "$ac_site_file" \
2392      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2394as_fn_error $? "failed to load site script $ac_site_file
2395See \`config.log' for more details" "$LINENO" 5; }
2396  fi
2397done
2398
2399if test -r "$cache_file"; then
2400  # Some versions of bash will fail to source /dev/null (special files
2401  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2402  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2403    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2404$as_echo "$as_me: loading cache $cache_file" >&6;}
2405    case $cache_file in
2406      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2407      *)                      . "./$cache_file";;
2408    esac
2409  fi
2410else
2411  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2412$as_echo "$as_me: creating cache $cache_file" >&6;}
2413  >$cache_file
2414fi
2415
2416# Check that the precious variables saved in the cache have kept the same
2417# value.
2418ac_cache_corrupted=false
2419for ac_var in $ac_precious_vars; do
2420  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2421  eval ac_new_set=\$ac_env_${ac_var}_set
2422  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2423  eval ac_new_val=\$ac_env_${ac_var}_value
2424  case $ac_old_set,$ac_new_set in
2425    set,)
2426      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2427$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2428      ac_cache_corrupted=: ;;
2429    ,set)
2430      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2431$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2432      ac_cache_corrupted=: ;;
2433    ,);;
2434    *)
2435      if test "x$ac_old_val" != "x$ac_new_val"; then
2436	# differences in whitespace do not lead to failure.
2437	ac_old_val_w=`echo x $ac_old_val`
2438	ac_new_val_w=`echo x $ac_new_val`
2439	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2440	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2441$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2442	  ac_cache_corrupted=:
2443	else
2444	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2445$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2446	  eval $ac_var=\$ac_old_val
2447	fi
2448	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2449$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2450	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2451$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2452      fi;;
2453  esac
2454  # Pass precious variables to config.status.
2455  if test "$ac_new_set" = set; then
2456    case $ac_new_val in
2457    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2458    *) ac_arg=$ac_var=$ac_new_val ;;
2459    esac
2460    case " $ac_configure_args " in
2461      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2462      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2463    esac
2464  fi
2465done
2466if $ac_cache_corrupted; then
2467  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2470$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2471  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2472fi
2473## -------------------- ##
2474## Main body of script. ##
2475## -------------------- ##
2476
2477ac_ext=c
2478ac_cpp='$CPP $CPPFLAGS'
2479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482
2483
2484# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2485# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2486ac_ext=c
2487ac_cpp='$CPP $CPPFLAGS'
2488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490ac_compiler_gnu=$ac_cv_c_compiler_gnu
2491if test -n "$ac_tool_prefix"; then
2492  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2493set dummy ${ac_tool_prefix}gcc; ac_word=$2
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495$as_echo_n "checking for $ac_word... " >&6; }
2496if ${ac_cv_prog_CC+:} false; then :
2497  $as_echo_n "(cached) " >&6
2498else
2499  if test -n "$CC"; then
2500  ac_cv_prog_CC="$CC" # Let the user override the test.
2501else
2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503for as_dir in $PATH
2504do
2505  IFS=$as_save_IFS
2506  test -z "$as_dir" && as_dir=.
2507    for ac_exec_ext in '' $ac_executable_extensions; do
2508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511    break 2
2512  fi
2513done
2514  done
2515IFS=$as_save_IFS
2516
2517fi
2518fi
2519CC=$ac_cv_prog_CC
2520if test -n "$CC"; then
2521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2522$as_echo "$CC" >&6; }
2523else
2524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525$as_echo "no" >&6; }
2526fi
2527
2528
2529fi
2530if test -z "$ac_cv_prog_CC"; then
2531  ac_ct_CC=$CC
2532  # Extract the first word of "gcc", so it can be a program name with args.
2533set dummy gcc; ac_word=$2
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535$as_echo_n "checking for $ac_word... " >&6; }
2536if ${ac_cv_prog_ac_ct_CC+:} false; then :
2537  $as_echo_n "(cached) " >&6
2538else
2539  if test -n "$ac_ct_CC"; then
2540  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2541else
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545  IFS=$as_save_IFS
2546  test -z "$as_dir" && as_dir=.
2547    for ac_exec_ext in '' $ac_executable_extensions; do
2548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549    ac_cv_prog_ac_ct_CC="gcc"
2550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551    break 2
2552  fi
2553done
2554  done
2555IFS=$as_save_IFS
2556
2557fi
2558fi
2559ac_ct_CC=$ac_cv_prog_ac_ct_CC
2560if test -n "$ac_ct_CC"; then
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2562$as_echo "$ac_ct_CC" >&6; }
2563else
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565$as_echo "no" >&6; }
2566fi
2567
2568  if test "x$ac_ct_CC" = x; then
2569    CC=""
2570  else
2571    case $cross_compiling:$ac_tool_warned in
2572yes:)
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2575ac_tool_warned=yes ;;
2576esac
2577    CC=$ac_ct_CC
2578  fi
2579else
2580  CC="$ac_cv_prog_CC"
2581fi
2582
2583if test -z "$CC"; then
2584          if test -n "$ac_tool_prefix"; then
2585    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2586set dummy ${ac_tool_prefix}cc; ac_word=$2
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588$as_echo_n "checking for $ac_word... " >&6; }
2589if ${ac_cv_prog_CC+:} false; then :
2590  $as_echo_n "(cached) " >&6
2591else
2592  if test -n "$CC"; then
2593  ac_cv_prog_CC="$CC" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598  IFS=$as_save_IFS
2599  test -z "$as_dir" && as_dir=.
2600    for ac_exec_ext in '' $ac_executable_extensions; do
2601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602    ac_cv_prog_CC="${ac_tool_prefix}cc"
2603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604    break 2
2605  fi
2606done
2607  done
2608IFS=$as_save_IFS
2609
2610fi
2611fi
2612CC=$ac_cv_prog_CC
2613if test -n "$CC"; then
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2615$as_echo "$CC" >&6; }
2616else
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618$as_echo "no" >&6; }
2619fi
2620
2621
2622  fi
2623fi
2624if test -z "$CC"; then
2625  # Extract the first word of "cc", so it can be a program name with args.
2626set dummy cc; ac_word=$2
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628$as_echo_n "checking for $ac_word... " >&6; }
2629if ${ac_cv_prog_CC+:} false; then :
2630  $as_echo_n "(cached) " >&6
2631else
2632  if test -n "$CC"; then
2633  ac_cv_prog_CC="$CC" # Let the user override the test.
2634else
2635  ac_prog_rejected=no
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639  IFS=$as_save_IFS
2640  test -z "$as_dir" && as_dir=.
2641    for ac_exec_ext in '' $ac_executable_extensions; do
2642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2644       ac_prog_rejected=yes
2645       continue
2646     fi
2647    ac_cv_prog_CC="cc"
2648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649    break 2
2650  fi
2651done
2652  done
2653IFS=$as_save_IFS
2654
2655if test $ac_prog_rejected = yes; then
2656  # We found a bogon in the path, so make sure we never use it.
2657  set dummy $ac_cv_prog_CC
2658  shift
2659  if test $# != 0; then
2660    # We chose a different compiler from the bogus one.
2661    # However, it has the same basename, so the bogon will be chosen
2662    # first if we set CC to just the basename; use the full file name.
2663    shift
2664    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2665  fi
2666fi
2667fi
2668fi
2669CC=$ac_cv_prog_CC
2670if test -n "$CC"; then
2671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2672$as_echo "$CC" >&6; }
2673else
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675$as_echo "no" >&6; }
2676fi
2677
2678
2679fi
2680if test -z "$CC"; then
2681  if test -n "$ac_tool_prefix"; then
2682  for ac_prog in cl.exe
2683  do
2684    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2685set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687$as_echo_n "checking for $ac_word... " >&6; }
2688if ${ac_cv_prog_CC+:} false; then :
2689  $as_echo_n "(cached) " >&6
2690else
2691  if test -n "$CC"; then
2692  ac_cv_prog_CC="$CC" # Let the user override the test.
2693else
2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697  IFS=$as_save_IFS
2698  test -z "$as_dir" && as_dir=.
2699    for ac_exec_ext in '' $ac_executable_extensions; do
2700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703    break 2
2704  fi
2705done
2706  done
2707IFS=$as_save_IFS
2708
2709fi
2710fi
2711CC=$ac_cv_prog_CC
2712if test -n "$CC"; then
2713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2714$as_echo "$CC" >&6; }
2715else
2716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717$as_echo "no" >&6; }
2718fi
2719
2720
2721    test -n "$CC" && break
2722  done
2723fi
2724if test -z "$CC"; then
2725  ac_ct_CC=$CC
2726  for ac_prog in cl.exe
2727do
2728  # Extract the first word of "$ac_prog", so it can be a program name with args.
2729set dummy $ac_prog; ac_word=$2
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731$as_echo_n "checking for $ac_word... " >&6; }
2732if ${ac_cv_prog_ac_ct_CC+:} false; then :
2733  $as_echo_n "(cached) " >&6
2734else
2735  if test -n "$ac_ct_CC"; then
2736  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737else
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741  IFS=$as_save_IFS
2742  test -z "$as_dir" && as_dir=.
2743    for ac_exec_ext in '' $ac_executable_extensions; do
2744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745    ac_cv_prog_ac_ct_CC="$ac_prog"
2746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747    break 2
2748  fi
2749done
2750  done
2751IFS=$as_save_IFS
2752
2753fi
2754fi
2755ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756if test -n "$ac_ct_CC"; then
2757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2758$as_echo "$ac_ct_CC" >&6; }
2759else
2760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761$as_echo "no" >&6; }
2762fi
2763
2764
2765  test -n "$ac_ct_CC" && break
2766done
2767
2768  if test "x$ac_ct_CC" = x; then
2769    CC=""
2770  else
2771    case $cross_compiling:$ac_tool_warned in
2772yes:)
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775ac_tool_warned=yes ;;
2776esac
2777    CC=$ac_ct_CC
2778  fi
2779fi
2780
2781fi
2782
2783
2784test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2786as_fn_error $? "no acceptable C compiler found in \$PATH
2787See \`config.log' for more details" "$LINENO" 5; }
2788
2789# Provide some information about the compiler.
2790$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2791set X $ac_compile
2792ac_compiler=$2
2793for ac_option in --version -v -V -qversion; do
2794  { { ac_try="$ac_compiler $ac_option >&5"
2795case "(($ac_try" in
2796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797  *) ac_try_echo=$ac_try;;
2798esac
2799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800$as_echo "$ac_try_echo"; } >&5
2801  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2802  ac_status=$?
2803  if test -s conftest.err; then
2804    sed '10a\
2805... rest of stderr output deleted ...
2806         10q' conftest.err >conftest.er1
2807    cat conftest.er1 >&5
2808  fi
2809  rm -f conftest.er1 conftest.err
2810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2811  test $ac_status = 0; }
2812done
2813
2814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815/* end confdefs.h.  */
2816
2817int
2818main ()
2819{
2820
2821  ;
2822  return 0;
2823}
2824_ACEOF
2825ac_clean_files_save=$ac_clean_files
2826ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2827# Try to create an executable without -o first, disregard a.out.
2828# It will help us diagnose broken compilers, and finding out an intuition
2829# of exeext.
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2831$as_echo_n "checking whether the C compiler works... " >&6; }
2832ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2833
2834# The possible output files:
2835ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2836
2837ac_rmfiles=
2838for ac_file in $ac_files
2839do
2840  case $ac_file in
2841    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2842    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2843  esac
2844done
2845rm -f $ac_rmfiles
2846
2847if { { ac_try="$ac_link_default"
2848case "(($ac_try" in
2849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850  *) ac_try_echo=$ac_try;;
2851esac
2852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853$as_echo "$ac_try_echo"; } >&5
2854  (eval "$ac_link_default") 2>&5
2855  ac_status=$?
2856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857  test $ac_status = 0; }; then :
2858  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2859# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2860# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2861# so that the user can short-circuit this test for compilers unknown to
2862# Autoconf.
2863for ac_file in $ac_files ''
2864do
2865  test -f "$ac_file" || continue
2866  case $ac_file in
2867    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2868	;;
2869    [ab].out )
2870	# We found the default executable, but exeext='' is most
2871	# certainly right.
2872	break;;
2873    *.* )
2874	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2875	then :; else
2876	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2877	fi
2878	# We set ac_cv_exeext here because the later test for it is not
2879	# safe: cross compilers may not add the suffix if given an `-o'
2880	# argument, so we may need to know it at that point already.
2881	# Even if this section looks crufty: it has the advantage of
2882	# actually working.
2883	break;;
2884    * )
2885	break;;
2886  esac
2887done
2888test "$ac_cv_exeext" = no && ac_cv_exeext=
2889
2890else
2891  ac_file=''
2892fi
2893if test -z "$ac_file"; then :
2894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895$as_echo "no" >&6; }
2896$as_echo "$as_me: failed program was:" >&5
2897sed 's/^/| /' conftest.$ac_ext >&5
2898
2899{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901as_fn_error 77 "C compiler cannot create executables
2902See \`config.log' for more details" "$LINENO" 5; }
2903else
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2905$as_echo "yes" >&6; }
2906fi
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2908$as_echo_n "checking for C compiler default output file name... " >&6; }
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2910$as_echo "$ac_file" >&6; }
2911ac_exeext=$ac_cv_exeext
2912
2913rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2914ac_clean_files=$ac_clean_files_save
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2916$as_echo_n "checking for suffix of executables... " >&6; }
2917if { { ac_try="$ac_link"
2918case "(($ac_try" in
2919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920  *) ac_try_echo=$ac_try;;
2921esac
2922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2923$as_echo "$ac_try_echo"; } >&5
2924  (eval "$ac_link") 2>&5
2925  ac_status=$?
2926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2927  test $ac_status = 0; }; then :
2928  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2929# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2930# work properly (i.e., refer to `conftest.exe'), while it won't with
2931# `rm'.
2932for ac_file in conftest.exe conftest conftest.*; do
2933  test -f "$ac_file" || continue
2934  case $ac_file in
2935    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2936    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2937	  break;;
2938    * ) break;;
2939  esac
2940done
2941else
2942  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2945See \`config.log' for more details" "$LINENO" 5; }
2946fi
2947rm -f conftest conftest$ac_cv_exeext
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2949$as_echo "$ac_cv_exeext" >&6; }
2950
2951rm -f conftest.$ac_ext
2952EXEEXT=$ac_cv_exeext
2953ac_exeext=$EXEEXT
2954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955/* end confdefs.h.  */
2956#include <stdio.h>
2957int
2958main ()
2959{
2960FILE *f = fopen ("conftest.out", "w");
2961 return ferror (f) || fclose (f) != 0;
2962
2963  ;
2964  return 0;
2965}
2966_ACEOF
2967ac_clean_files="$ac_clean_files conftest.out"
2968# Check that the compiler produces executables we can run.  If not, either
2969# the compiler is broken, or we cross compile.
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2971$as_echo_n "checking whether we are cross compiling... " >&6; }
2972if test "$cross_compiling" != yes; then
2973  { { ac_try="$ac_link"
2974case "(($ac_try" in
2975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976  *) ac_try_echo=$ac_try;;
2977esac
2978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979$as_echo "$ac_try_echo"; } >&5
2980  (eval "$ac_link") 2>&5
2981  ac_status=$?
2982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983  test $ac_status = 0; }
2984  if { ac_try='./conftest$ac_cv_exeext'
2985  { { case "(($ac_try" in
2986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987  *) ac_try_echo=$ac_try;;
2988esac
2989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990$as_echo "$ac_try_echo"; } >&5
2991  (eval "$ac_try") 2>&5
2992  ac_status=$?
2993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994  test $ac_status = 0; }; }; then
2995    cross_compiling=no
2996  else
2997    if test "$cross_compiling" = maybe; then
2998	cross_compiling=yes
2999    else
3000	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002as_fn_error $? "cannot run C compiled programs.
3003If you meant to cross compile, use \`--host'.
3004See \`config.log' for more details" "$LINENO" 5; }
3005    fi
3006  fi
3007fi
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3009$as_echo "$cross_compiling" >&6; }
3010
3011rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3012ac_clean_files=$ac_clean_files_save
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3014$as_echo_n "checking for suffix of object files... " >&6; }
3015if ${ac_cv_objext+:} false; then :
3016  $as_echo_n "(cached) " >&6
3017else
3018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019/* end confdefs.h.  */
3020
3021int
3022main ()
3023{
3024
3025  ;
3026  return 0;
3027}
3028_ACEOF
3029rm -f conftest.o conftest.obj
3030if { { ac_try="$ac_compile"
3031case "(($ac_try" in
3032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033  *) ac_try_echo=$ac_try;;
3034esac
3035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036$as_echo "$ac_try_echo"; } >&5
3037  (eval "$ac_compile") 2>&5
3038  ac_status=$?
3039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040  test $ac_status = 0; }; then :
3041  for ac_file in conftest.o conftest.obj conftest.*; do
3042  test -f "$ac_file" || continue;
3043  case $ac_file in
3044    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3045    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3046       break;;
3047  esac
3048done
3049else
3050  $as_echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055as_fn_error $? "cannot compute suffix of object files: cannot compile
3056See \`config.log' for more details" "$LINENO" 5; }
3057fi
3058rm -f conftest.$ac_cv_objext conftest.$ac_ext
3059fi
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3061$as_echo "$ac_cv_objext" >&6; }
3062OBJEXT=$ac_cv_objext
3063ac_objext=$OBJEXT
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3065$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3066if ${ac_cv_c_compiler_gnu+:} false; then :
3067  $as_echo_n "(cached) " >&6
3068else
3069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070/* end confdefs.h.  */
3071
3072int
3073main ()
3074{
3075#ifndef __GNUC__
3076       choke me
3077#endif
3078
3079  ;
3080  return 0;
3081}
3082_ACEOF
3083if ac_fn_c_try_compile "$LINENO"; then :
3084  ac_compiler_gnu=yes
3085else
3086  ac_compiler_gnu=no
3087fi
3088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089ac_cv_c_compiler_gnu=$ac_compiler_gnu
3090
3091fi
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3093$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3094if test $ac_compiler_gnu = yes; then
3095  GCC=yes
3096else
3097  GCC=
3098fi
3099ac_test_CFLAGS=${CFLAGS+set}
3100ac_save_CFLAGS=$CFLAGS
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3102$as_echo_n "checking whether $CC accepts -g... " >&6; }
3103if ${ac_cv_prog_cc_g+:} false; then :
3104  $as_echo_n "(cached) " >&6
3105else
3106  ac_save_c_werror_flag=$ac_c_werror_flag
3107   ac_c_werror_flag=yes
3108   ac_cv_prog_cc_g=no
3109   CFLAGS="-g"
3110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111/* end confdefs.h.  */
3112
3113int
3114main ()
3115{
3116
3117  ;
3118  return 0;
3119}
3120_ACEOF
3121if ac_fn_c_try_compile "$LINENO"; then :
3122  ac_cv_prog_cc_g=yes
3123else
3124  CFLAGS=""
3125      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126/* end confdefs.h.  */
3127
3128int
3129main ()
3130{
3131
3132  ;
3133  return 0;
3134}
3135_ACEOF
3136if ac_fn_c_try_compile "$LINENO"; then :
3137
3138else
3139  ac_c_werror_flag=$ac_save_c_werror_flag
3140	 CFLAGS="-g"
3141	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142/* end confdefs.h.  */
3143
3144int
3145main ()
3146{
3147
3148  ;
3149  return 0;
3150}
3151_ACEOF
3152if ac_fn_c_try_compile "$LINENO"; then :
3153  ac_cv_prog_cc_g=yes
3154fi
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156fi
3157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158fi
3159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160   ac_c_werror_flag=$ac_save_c_werror_flag
3161fi
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3163$as_echo "$ac_cv_prog_cc_g" >&6; }
3164if test "$ac_test_CFLAGS" = set; then
3165  CFLAGS=$ac_save_CFLAGS
3166elif test $ac_cv_prog_cc_g = yes; then
3167  if test "$GCC" = yes; then
3168    CFLAGS="-g -O2"
3169  else
3170    CFLAGS="-g"
3171  fi
3172else
3173  if test "$GCC" = yes; then
3174    CFLAGS="-O2"
3175  else
3176    CFLAGS=
3177  fi
3178fi
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3180$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3181if ${ac_cv_prog_cc_c89+:} false; then :
3182  $as_echo_n "(cached) " >&6
3183else
3184  ac_cv_prog_cc_c89=no
3185ac_save_CC=$CC
3186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187/* end confdefs.h.  */
3188#include <stdarg.h>
3189#include <stdio.h>
3190#include <sys/types.h>
3191#include <sys/stat.h>
3192/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3193struct buf { int x; };
3194FILE * (*rcsopen) (struct buf *, struct stat *, int);
3195static char *e (p, i)
3196     char **p;
3197     int i;
3198{
3199  return p[i];
3200}
3201static char *f (char * (*g) (char **, int), char **p, ...)
3202{
3203  char *s;
3204  va_list v;
3205  va_start (v,p);
3206  s = g (p, va_arg (v,int));
3207  va_end (v);
3208  return s;
3209}
3210
3211/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3212   function prototypes and stuff, but not '\xHH' hex character constants.
3213   These don't provoke an error unfortunately, instead are silently treated
3214   as 'x'.  The following induces an error, until -std is added to get
3215   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3216   array size at least.  It's necessary to write '\x00'==0 to get something
3217   that's true only with -std.  */
3218int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3219
3220/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3221   inside strings and character constants.  */
3222#define FOO(x) 'x'
3223int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3224
3225int test (int i, double x);
3226struct s1 {int (*f) (int a);};
3227struct s2 {int (*f) (double a);};
3228int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3229int argc;
3230char **argv;
3231int
3232main ()
3233{
3234return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3235  ;
3236  return 0;
3237}
3238_ACEOF
3239for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3240	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3241do
3242  CC="$ac_save_CC $ac_arg"
3243  if ac_fn_c_try_compile "$LINENO"; then :
3244  ac_cv_prog_cc_c89=$ac_arg
3245fi
3246rm -f core conftest.err conftest.$ac_objext
3247  test "x$ac_cv_prog_cc_c89" != "xno" && break
3248done
3249rm -f conftest.$ac_ext
3250CC=$ac_save_CC
3251
3252fi
3253# AC_CACHE_VAL
3254case "x$ac_cv_prog_cc_c89" in
3255  x)
3256    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3257$as_echo "none needed" >&6; } ;;
3258  xno)
3259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3260$as_echo "unsupported" >&6; } ;;
3261  *)
3262    CC="$CC $ac_cv_prog_cc_c89"
3263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3264$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3265esac
3266if test "x$ac_cv_prog_cc_c89" != xno; then :
3267
3268fi
3269
3270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276
3277ac_ext=c
3278ac_cpp='$CPP $CPPFLAGS'
3279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3283$as_echo_n "checking how to run the C preprocessor... " >&6; }
3284# On Suns, sometimes $CPP names a directory.
3285if test -n "$CPP" && test -d "$CPP"; then
3286  CPP=
3287fi
3288if test -z "$CPP"; then
3289  if ${ac_cv_prog_CPP+:} false; then :
3290  $as_echo_n "(cached) " >&6
3291else
3292      # Double quotes because CPP needs to be expanded
3293    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3294    do
3295      ac_preproc_ok=false
3296for ac_c_preproc_warn_flag in '' yes
3297do
3298  # Use a header file that comes with gcc, so configuring glibc
3299  # with a fresh cross-compiler works.
3300  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3301  # <limits.h> exists even on freestanding compilers.
3302  # On the NeXT, cc -E runs the code through the compiler's parser,
3303  # not just through cpp. "Syntax error" is here to catch this case.
3304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h.  */
3306#ifdef __STDC__
3307# include <limits.h>
3308#else
3309# include <assert.h>
3310#endif
3311		     Syntax error
3312_ACEOF
3313if ac_fn_c_try_cpp "$LINENO"; then :
3314
3315else
3316  # Broken: fails on valid input.
3317continue
3318fi
3319rm -f conftest.err conftest.i conftest.$ac_ext
3320
3321  # OK, works on sane cases.  Now check whether nonexistent headers
3322  # can be detected and how.
3323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324/* end confdefs.h.  */
3325#include <ac_nonexistent.h>
3326_ACEOF
3327if ac_fn_c_try_cpp "$LINENO"; then :
3328  # Broken: success on invalid input.
3329continue
3330else
3331  # Passes both tests.
3332ac_preproc_ok=:
3333break
3334fi
3335rm -f conftest.err conftest.i conftest.$ac_ext
3336
3337done
3338# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339rm -f conftest.i conftest.err conftest.$ac_ext
3340if $ac_preproc_ok; then :
3341  break
3342fi
3343
3344    done
3345    ac_cv_prog_CPP=$CPP
3346
3347fi
3348  CPP=$ac_cv_prog_CPP
3349else
3350  ac_cv_prog_CPP=$CPP
3351fi
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3353$as_echo "$CPP" >&6; }
3354ac_preproc_ok=false
3355for ac_c_preproc_warn_flag in '' yes
3356do
3357  # Use a header file that comes with gcc, so configuring glibc
3358  # with a fresh cross-compiler works.
3359  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360  # <limits.h> exists even on freestanding compilers.
3361  # On the NeXT, cc -E runs the code through the compiler's parser,
3362  # not just through cpp. "Syntax error" is here to catch this case.
3363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364/* end confdefs.h.  */
3365#ifdef __STDC__
3366# include <limits.h>
3367#else
3368# include <assert.h>
3369#endif
3370		     Syntax error
3371_ACEOF
3372if ac_fn_c_try_cpp "$LINENO"; then :
3373
3374else
3375  # Broken: fails on valid input.
3376continue
3377fi
3378rm -f conftest.err conftest.i conftest.$ac_ext
3379
3380  # OK, works on sane cases.  Now check whether nonexistent headers
3381  # can be detected and how.
3382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383/* end confdefs.h.  */
3384#include <ac_nonexistent.h>
3385_ACEOF
3386if ac_fn_c_try_cpp "$LINENO"; then :
3387  # Broken: success on invalid input.
3388continue
3389else
3390  # Passes both tests.
3391ac_preproc_ok=:
3392break
3393fi
3394rm -f conftest.err conftest.i conftest.$ac_ext
3395
3396done
3397# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3398rm -f conftest.i conftest.err conftest.$ac_ext
3399if $ac_preproc_ok; then :
3400
3401else
3402  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3405See \`config.log' for more details" "$LINENO" 5; }
3406fi
3407
3408ac_ext=c
3409ac_cpp='$CPP $CPPFLAGS'
3410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413
3414
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3416$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3417if ${ac_cv_path_GREP+:} false; then :
3418  $as_echo_n "(cached) " >&6
3419else
3420  if test -z "$GREP"; then
3421  ac_path_GREP_found=false
3422  # Loop through the user's path and test for each of PROGNAME-LIST
3423  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3425do
3426  IFS=$as_save_IFS
3427  test -z "$as_dir" && as_dir=.
3428    for ac_prog in grep ggrep; do
3429    for ac_exec_ext in '' $ac_executable_extensions; do
3430      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3431      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3432# Check for GNU ac_path_GREP and select it if it is found.
3433  # Check for GNU $ac_path_GREP
3434case `"$ac_path_GREP" --version 2>&1` in
3435*GNU*)
3436  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3437*)
3438  ac_count=0
3439  $as_echo_n 0123456789 >"conftest.in"
3440  while :
3441  do
3442    cat "conftest.in" "conftest.in" >"conftest.tmp"
3443    mv "conftest.tmp" "conftest.in"
3444    cp "conftest.in" "conftest.nl"
3445    $as_echo 'GREP' >> "conftest.nl"
3446    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3447    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3448    as_fn_arith $ac_count + 1 && ac_count=$as_val
3449    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3450      # Best one so far, save it but keep looking for a better one
3451      ac_cv_path_GREP="$ac_path_GREP"
3452      ac_path_GREP_max=$ac_count
3453    fi
3454    # 10*(2^10) chars as input seems more than enough
3455    test $ac_count -gt 10 && break
3456  done
3457  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3458esac
3459
3460      $ac_path_GREP_found && break 3
3461    done
3462  done
3463  done
3464IFS=$as_save_IFS
3465  if test -z "$ac_cv_path_GREP"; then
3466    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3467  fi
3468else
3469  ac_cv_path_GREP=$GREP
3470fi
3471
3472fi
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3474$as_echo "$ac_cv_path_GREP" >&6; }
3475 GREP="$ac_cv_path_GREP"
3476
3477
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3479$as_echo_n "checking for egrep... " >&6; }
3480if ${ac_cv_path_EGREP+:} false; then :
3481  $as_echo_n "(cached) " >&6
3482else
3483  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3484   then ac_cv_path_EGREP="$GREP -E"
3485   else
3486     if test -z "$EGREP"; then
3487  ac_path_EGREP_found=false
3488  # Loop through the user's path and test for each of PROGNAME-LIST
3489  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3491do
3492  IFS=$as_save_IFS
3493  test -z "$as_dir" && as_dir=.
3494    for ac_prog in egrep; do
3495    for ac_exec_ext in '' $ac_executable_extensions; do
3496      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3497      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3498# Check for GNU ac_path_EGREP and select it if it is found.
3499  # Check for GNU $ac_path_EGREP
3500case `"$ac_path_EGREP" --version 2>&1` in
3501*GNU*)
3502  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3503*)
3504  ac_count=0
3505  $as_echo_n 0123456789 >"conftest.in"
3506  while :
3507  do
3508    cat "conftest.in" "conftest.in" >"conftest.tmp"
3509    mv "conftest.tmp" "conftest.in"
3510    cp "conftest.in" "conftest.nl"
3511    $as_echo 'EGREP' >> "conftest.nl"
3512    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3513    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3514    as_fn_arith $ac_count + 1 && ac_count=$as_val
3515    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3516      # Best one so far, save it but keep looking for a better one
3517      ac_cv_path_EGREP="$ac_path_EGREP"
3518      ac_path_EGREP_max=$ac_count
3519    fi
3520    # 10*(2^10) chars as input seems more than enough
3521    test $ac_count -gt 10 && break
3522  done
3523  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3524esac
3525
3526      $ac_path_EGREP_found && break 3
3527    done
3528  done
3529  done
3530IFS=$as_save_IFS
3531  if test -z "$ac_cv_path_EGREP"; then
3532    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3533  fi
3534else
3535  ac_cv_path_EGREP=$EGREP
3536fi
3537
3538   fi
3539fi
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3541$as_echo "$ac_cv_path_EGREP" >&6; }
3542 EGREP="$ac_cv_path_EGREP"
3543
3544
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3546$as_echo_n "checking for ANSI C header files... " >&6; }
3547if ${ac_cv_header_stdc+:} false; then :
3548  $as_echo_n "(cached) " >&6
3549else
3550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551/* end confdefs.h.  */
3552#include <stdlib.h>
3553#include <stdarg.h>
3554#include <string.h>
3555#include <float.h>
3556
3557int
3558main ()
3559{
3560
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565if ac_fn_c_try_compile "$LINENO"; then :
3566  ac_cv_header_stdc=yes
3567else
3568  ac_cv_header_stdc=no
3569fi
3570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571
3572if test $ac_cv_header_stdc = yes; then
3573  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576#include <string.h>
3577
3578_ACEOF
3579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580  $EGREP "memchr" >/dev/null 2>&1; then :
3581
3582else
3583  ac_cv_header_stdc=no
3584fi
3585rm -f conftest*
3586
3587fi
3588
3589if test $ac_cv_header_stdc = yes; then
3590  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592/* end confdefs.h.  */
3593#include <stdlib.h>
3594
3595_ACEOF
3596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3597  $EGREP "free" >/dev/null 2>&1; then :
3598
3599else
3600  ac_cv_header_stdc=no
3601fi
3602rm -f conftest*
3603
3604fi
3605
3606if test $ac_cv_header_stdc = yes; then
3607  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3608  if test "$cross_compiling" = yes; then :
3609  :
3610else
3611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h.  */
3613#include <ctype.h>
3614#include <stdlib.h>
3615#if ((' ' & 0x0FF) == 0x020)
3616# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3617# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3618#else
3619# define ISLOWER(c) \
3620		   (('a' <= (c) && (c) <= 'i') \
3621		     || ('j' <= (c) && (c) <= 'r') \
3622		     || ('s' <= (c) && (c) <= 'z'))
3623# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3624#endif
3625
3626#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3627int
3628main ()
3629{
3630  int i;
3631  for (i = 0; i < 256; i++)
3632    if (XOR (islower (i), ISLOWER (i))
3633	|| toupper (i) != TOUPPER (i))
3634      return 2;
3635  return 0;
3636}
3637_ACEOF
3638if ac_fn_c_try_run "$LINENO"; then :
3639
3640else
3641  ac_cv_header_stdc=no
3642fi
3643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3644  conftest.$ac_objext conftest.beam conftest.$ac_ext
3645fi
3646
3647fi
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3650$as_echo "$ac_cv_header_stdc" >&6; }
3651if test $ac_cv_header_stdc = yes; then
3652
3653$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3654
3655fi
3656
3657# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3658for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3659		  inttypes.h stdint.h unistd.h
3660do :
3661  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3662ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3663"
3664if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3665  cat >>confdefs.h <<_ACEOF
3666#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3667_ACEOF
3668
3669fi
3670
3671done
3672
3673
3674
3675  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3676if test "x$ac_cv_header_minix_config_h" = xyes; then :
3677  MINIX=yes
3678else
3679  MINIX=
3680fi
3681
3682
3683  if test "$MINIX" = yes; then
3684
3685$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3686
3687
3688$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3689
3690
3691$as_echo "#define _MINIX 1" >>confdefs.h
3692
3693  fi
3694
3695
3696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3697$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3698if ${ac_cv_safe_to_define___extensions__+:} false; then :
3699  $as_echo_n "(cached) " >&6
3700else
3701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h.  */
3703
3704#	  define __EXTENSIONS__ 1
3705	  $ac_includes_default
3706int
3707main ()
3708{
3709
3710  ;
3711  return 0;
3712}
3713_ACEOF
3714if ac_fn_c_try_compile "$LINENO"; then :
3715  ac_cv_safe_to_define___extensions__=yes
3716else
3717  ac_cv_safe_to_define___extensions__=no
3718fi
3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720fi
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3722$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3723  test $ac_cv_safe_to_define___extensions__ = yes &&
3724    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3725
3726  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3727
3728  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3729
3730  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3731
3732  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3733
3734
3735ac_config_headers="$ac_config_headers config.h"
3736
3737
3738
3739# Initialize Automake
3740am__api_version='1.11'
3741
3742ac_aux_dir=
3743for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3744  if test -f "$ac_dir/install-sh"; then
3745    ac_aux_dir=$ac_dir
3746    ac_install_sh="$ac_aux_dir/install-sh -c"
3747    break
3748  elif test -f "$ac_dir/install.sh"; then
3749    ac_aux_dir=$ac_dir
3750    ac_install_sh="$ac_aux_dir/install.sh -c"
3751    break
3752  elif test -f "$ac_dir/shtool"; then
3753    ac_aux_dir=$ac_dir
3754    ac_install_sh="$ac_aux_dir/shtool install -c"
3755    break
3756  fi
3757done
3758if test -z "$ac_aux_dir"; then
3759  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3760fi
3761
3762# These three variables are undocumented and unsupported,
3763# and are intended to be withdrawn in a future Autoconf release.
3764# They can cause serious problems if a builder's source tree is in a directory
3765# whose full name contains unusual characters.
3766ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3767ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3768ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3769
3770
3771# Find a good install program.  We prefer a C program (faster),
3772# so one script is as good as another.  But avoid the broken or
3773# incompatible versions:
3774# SysV /etc/install, /usr/sbin/install
3775# SunOS /usr/etc/install
3776# IRIX /sbin/install
3777# AIX /bin/install
3778# AmigaOS /C/install, which installs bootblocks on floppy discs
3779# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3780# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3781# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3782# OS/2's system install, which has a completely different semantic
3783# ./install, which can be erroneously created by make from ./install.sh.
3784# Reject install programs that cannot install multiple files.
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3786$as_echo_n "checking for a BSD-compatible install... " >&6; }
3787if test -z "$INSTALL"; then
3788if ${ac_cv_path_install+:} false; then :
3789  $as_echo_n "(cached) " >&6
3790else
3791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792for as_dir in $PATH
3793do
3794  IFS=$as_save_IFS
3795  test -z "$as_dir" && as_dir=.
3796    # Account for people who put trailing slashes in PATH elements.
3797case $as_dir/ in #((
3798  ./ | .// | /[cC]/* | \
3799  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3800  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3801  /usr/ucb/* ) ;;
3802  *)
3803    # OSF1 and SCO ODT 3.0 have their own names for install.
3804    # Don't use installbsd from OSF since it installs stuff as root
3805    # by default.
3806    for ac_prog in ginstall scoinst install; do
3807      for ac_exec_ext in '' $ac_executable_extensions; do
3808	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3809	  if test $ac_prog = install &&
3810	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3811	    # AIX install.  It has an incompatible calling convention.
3812	    :
3813	  elif test $ac_prog = install &&
3814	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3815	    # program-specific install script used by HP pwplus--don't use.
3816	    :
3817	  else
3818	    rm -rf conftest.one conftest.two conftest.dir
3819	    echo one > conftest.one
3820	    echo two > conftest.two
3821	    mkdir conftest.dir
3822	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3823	      test -s conftest.one && test -s conftest.two &&
3824	      test -s conftest.dir/conftest.one &&
3825	      test -s conftest.dir/conftest.two
3826	    then
3827	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3828	      break 3
3829	    fi
3830	  fi
3831	fi
3832      done
3833    done
3834    ;;
3835esac
3836
3837  done
3838IFS=$as_save_IFS
3839
3840rm -rf conftest.one conftest.two conftest.dir
3841
3842fi
3843  if test "${ac_cv_path_install+set}" = set; then
3844    INSTALL=$ac_cv_path_install
3845  else
3846    # As a last resort, use the slow shell script.  Don't cache a
3847    # value for INSTALL within a source directory, because that will
3848    # break other packages using the cache if that directory is
3849    # removed, or if the value is a relative name.
3850    INSTALL=$ac_install_sh
3851  fi
3852fi
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3854$as_echo "$INSTALL" >&6; }
3855
3856# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3857# It thinks the first close brace ends the variable substitution.
3858test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3859
3860test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3861
3862test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3863
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3865$as_echo_n "checking whether build environment is sane... " >&6; }
3866# Just in case
3867sleep 1
3868echo timestamp > conftest.file
3869# Reject unsafe characters in $srcdir or the absolute working directory
3870# name.  Accept space and tab only in the latter.
3871am_lf='
3872'
3873case `pwd` in
3874  *[\\\"\#\$\&\'\`$am_lf]*)
3875    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3876esac
3877case $srcdir in
3878  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3879    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3880esac
3881
3882# Do `set' in a subshell so we don't clobber the current shell's
3883# arguments.  Must try -L first in case configure is actually a
3884# symlink; some systems play weird games with the mod time of symlinks
3885# (eg FreeBSD returns the mod time of the symlink's containing
3886# directory).
3887if (
3888   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3889   if test "$*" = "X"; then
3890      # -L didn't work.
3891      set X `ls -t "$srcdir/configure" conftest.file`
3892   fi
3893   rm -f conftest.file
3894   if test "$*" != "X $srcdir/configure conftest.file" \
3895      && test "$*" != "X conftest.file $srcdir/configure"; then
3896
3897      # If neither matched, then we have a broken ls.  This can happen
3898      # if, for instance, CONFIG_SHELL is bash and it inherits a
3899      # broken ls alias from the environment.  This has actually
3900      # happened.  Such a system could not be considered "sane".
3901      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3902alias in your environment" "$LINENO" 5
3903   fi
3904
3905   test "$2" = conftest.file
3906   )
3907then
3908   # Ok.
3909   :
3910else
3911   as_fn_error $? "newly created file is older than distributed files!
3912Check your system clock" "$LINENO" 5
3913fi
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3915$as_echo "yes" >&6; }
3916test "$program_prefix" != NONE &&
3917  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3918# Use a double $ so make ignores it.
3919test "$program_suffix" != NONE &&
3920  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3921# Double any \ or $.
3922# By default was `s,x,x', remove it if useless.
3923ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3924program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3925
3926# expand $ac_aux_dir to an absolute path
3927am_aux_dir=`cd $ac_aux_dir && pwd`
3928
3929if test x"${MISSING+set}" != xset; then
3930  case $am_aux_dir in
3931  *\ * | *\	*)
3932    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3933  *)
3934    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3935  esac
3936fi
3937# Use eval to expand $SHELL
3938if eval "$MISSING --run true"; then
3939  am_missing_run="$MISSING --run "
3940else
3941  am_missing_run=
3942  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3943$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3944fi
3945
3946if test x"${install_sh}" != xset; then
3947  case $am_aux_dir in
3948  *\ * | *\	*)
3949    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3950  *)
3951    install_sh="\${SHELL} $am_aux_dir/install-sh"
3952  esac
3953fi
3954
3955# Installed binaries are usually stripped using `strip' when the user
3956# run `make install-strip'.  However `strip' might not be the right
3957# tool to use in cross-compilation environments, therefore Automake
3958# will honor the `STRIP' environment variable to overrule this program.
3959if test "$cross_compiling" != no; then
3960  if test -n "$ac_tool_prefix"; then
3961  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3962set dummy ${ac_tool_prefix}strip; ac_word=$2
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964$as_echo_n "checking for $ac_word... " >&6; }
3965if ${ac_cv_prog_STRIP+:} false; then :
3966  $as_echo_n "(cached) " >&6
3967else
3968  if test -n "$STRIP"; then
3969  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3970else
3971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972for as_dir in $PATH
3973do
3974  IFS=$as_save_IFS
3975  test -z "$as_dir" && as_dir=.
3976    for ac_exec_ext in '' $ac_executable_extensions; do
3977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980    break 2
3981  fi
3982done
3983  done
3984IFS=$as_save_IFS
3985
3986fi
3987fi
3988STRIP=$ac_cv_prog_STRIP
3989if test -n "$STRIP"; then
3990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3991$as_echo "$STRIP" >&6; }
3992else
3993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994$as_echo "no" >&6; }
3995fi
3996
3997
3998fi
3999if test -z "$ac_cv_prog_STRIP"; then
4000  ac_ct_STRIP=$STRIP
4001  # Extract the first word of "strip", so it can be a program name with args.
4002set dummy strip; ac_word=$2
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004$as_echo_n "checking for $ac_word... " >&6; }
4005if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4006  $as_echo_n "(cached) " >&6
4007else
4008  if test -n "$ac_ct_STRIP"; then
4009  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4010else
4011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012for as_dir in $PATH
4013do
4014  IFS=$as_save_IFS
4015  test -z "$as_dir" && as_dir=.
4016    for ac_exec_ext in '' $ac_executable_extensions; do
4017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4018    ac_cv_prog_ac_ct_STRIP="strip"
4019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020    break 2
4021  fi
4022done
4023  done
4024IFS=$as_save_IFS
4025
4026fi
4027fi
4028ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4029if test -n "$ac_ct_STRIP"; then
4030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4031$as_echo "$ac_ct_STRIP" >&6; }
4032else
4033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034$as_echo "no" >&6; }
4035fi
4036
4037  if test "x$ac_ct_STRIP" = x; then
4038    STRIP=":"
4039  else
4040    case $cross_compiling:$ac_tool_warned in
4041yes:)
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4044ac_tool_warned=yes ;;
4045esac
4046    STRIP=$ac_ct_STRIP
4047  fi
4048else
4049  STRIP="$ac_cv_prog_STRIP"
4050fi
4051
4052fi
4053INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4054
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4056$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4057if test -z "$MKDIR_P"; then
4058  if ${ac_cv_path_mkdir+:} false; then :
4059  $as_echo_n "(cached) " >&6
4060else
4061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4063do
4064  IFS=$as_save_IFS
4065  test -z "$as_dir" && as_dir=.
4066    for ac_prog in mkdir gmkdir; do
4067	 for ac_exec_ext in '' $ac_executable_extensions; do
4068	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4069	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4070	     'mkdir (GNU coreutils) '* | \
4071	     'mkdir (coreutils) '* | \
4072	     'mkdir (fileutils) '4.1*)
4073	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4074	       break 3;;
4075	   esac
4076	 done
4077       done
4078  done
4079IFS=$as_save_IFS
4080
4081fi
4082
4083  test -d ./--version && rmdir ./--version
4084  if test "${ac_cv_path_mkdir+set}" = set; then
4085    MKDIR_P="$ac_cv_path_mkdir -p"
4086  else
4087    # As a last resort, use the slow shell script.  Don't cache a
4088    # value for MKDIR_P within a source directory, because that will
4089    # break other packages using the cache if that directory is
4090    # removed, or if the value is a relative name.
4091    MKDIR_P="$ac_install_sh -d"
4092  fi
4093fi
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4095$as_echo "$MKDIR_P" >&6; }
4096
4097mkdir_p="$MKDIR_P"
4098case $mkdir_p in
4099  [\\/$]* | ?:[\\/]*) ;;
4100  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4101esac
4102
4103for ac_prog in gawk mawk nawk awk
4104do
4105  # Extract the first word of "$ac_prog", so it can be a program name with args.
4106set dummy $ac_prog; ac_word=$2
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108$as_echo_n "checking for $ac_word... " >&6; }
4109if ${ac_cv_prog_AWK+:} false; then :
4110  $as_echo_n "(cached) " >&6
4111else
4112  if test -n "$AWK"; then
4113  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4114else
4115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116for as_dir in $PATH
4117do
4118  IFS=$as_save_IFS
4119  test -z "$as_dir" && as_dir=.
4120    for ac_exec_ext in '' $ac_executable_extensions; do
4121  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4122    ac_cv_prog_AWK="$ac_prog"
4123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124    break 2
4125  fi
4126done
4127  done
4128IFS=$as_save_IFS
4129
4130fi
4131fi
4132AWK=$ac_cv_prog_AWK
4133if test -n "$AWK"; then
4134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4135$as_echo "$AWK" >&6; }
4136else
4137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138$as_echo "no" >&6; }
4139fi
4140
4141
4142  test -n "$AWK" && break
4143done
4144
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4146$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4147set x ${MAKE-make}
4148ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4149if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4150  $as_echo_n "(cached) " >&6
4151else
4152  cat >conftest.make <<\_ACEOF
4153SHELL = /bin/sh
4154all:
4155	@echo '@@@%%%=$(MAKE)=@@@%%%'
4156_ACEOF
4157# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4158case `${MAKE-make} -f conftest.make 2>/dev/null` in
4159  *@@@%%%=?*=@@@%%%*)
4160    eval ac_cv_prog_make_${ac_make}_set=yes;;
4161  *)
4162    eval ac_cv_prog_make_${ac_make}_set=no;;
4163esac
4164rm -f conftest.make
4165fi
4166if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4168$as_echo "yes" >&6; }
4169  SET_MAKE=
4170else
4171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172$as_echo "no" >&6; }
4173  SET_MAKE="MAKE=${MAKE-make}"
4174fi
4175
4176rm -rf .tst 2>/dev/null
4177mkdir .tst 2>/dev/null
4178if test -d .tst; then
4179  am__leading_dot=.
4180else
4181  am__leading_dot=_
4182fi
4183rmdir .tst 2>/dev/null
4184
4185DEPDIR="${am__leading_dot}deps"
4186
4187ac_config_commands="$ac_config_commands depfiles"
4188
4189
4190am_make=${MAKE-make}
4191cat > confinc << 'END'
4192am__doit:
4193	@echo this is the am__doit target
4194.PHONY: am__doit
4195END
4196# If we don't find an include directive, just comment out the code.
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4198$as_echo_n "checking for style of include used by $am_make... " >&6; }
4199am__include="#"
4200am__quote=
4201_am_result=none
4202# First try GNU make style include.
4203echo "include confinc" > confmf
4204# Ignore all kinds of additional output from `make'.
4205case `$am_make -s -f confmf 2> /dev/null` in #(
4206*the\ am__doit\ target*)
4207  am__include=include
4208  am__quote=
4209  _am_result=GNU
4210  ;;
4211esac
4212# Now try BSD make style include.
4213if test "$am__include" = "#"; then
4214   echo '.include "confinc"' > confmf
4215   case `$am_make -s -f confmf 2> /dev/null` in #(
4216   *the\ am__doit\ target*)
4217     am__include=.include
4218     am__quote="\""
4219     _am_result=BSD
4220     ;;
4221   esac
4222fi
4223
4224
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4226$as_echo "$_am_result" >&6; }
4227rm -f confinc confmf
4228
4229# Check whether --enable-dependency-tracking was given.
4230if test "${enable_dependency_tracking+set}" = set; then :
4231  enableval=$enable_dependency_tracking;
4232fi
4233
4234if test "x$enable_dependency_tracking" != xno; then
4235  am_depcomp="$ac_aux_dir/depcomp"
4236  AMDEPBACKSLASH='\'
4237  am__nodep='_no'
4238fi
4239 if test "x$enable_dependency_tracking" != xno; then
4240  AMDEP_TRUE=
4241  AMDEP_FALSE='#'
4242else
4243  AMDEP_TRUE='#'
4244  AMDEP_FALSE=
4245fi
4246
4247
4248if test "`cd $srcdir && pwd`" != "`pwd`"; then
4249  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4250  # is not polluted with repeated "-I."
4251  am__isrc=' -I$(srcdir)'
4252  # test to see if srcdir already configured
4253  if test -f $srcdir/config.status; then
4254    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4255  fi
4256fi
4257
4258# test whether we have cygpath
4259if test -z "$CYGPATH_W"; then
4260  if (cygpath --version) >/dev/null 2>/dev/null; then
4261    CYGPATH_W='cygpath -w'
4262  else
4263    CYGPATH_W=echo
4264  fi
4265fi
4266
4267
4268# Define the identity of the package.
4269 PACKAGE='xfs'
4270 VERSION='1.1.3'
4271
4272
4273cat >>confdefs.h <<_ACEOF
4274#define PACKAGE "$PACKAGE"
4275_ACEOF
4276
4277
4278cat >>confdefs.h <<_ACEOF
4279#define VERSION "$VERSION"
4280_ACEOF
4281
4282# Some tools Automake needs.
4283
4284ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4285
4286
4287AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4288
4289
4290AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4291
4292
4293AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4294
4295
4296MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4297
4298# We need awk for the "check" target.  The system "awk" is bad on
4299# some platforms.
4300# Always define AMTAR for backward compatibility.
4301
4302AMTAR=${AMTAR-"${am_missing_run}tar"}
4303
4304am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4305
4306
4307
4308
4309depcc="$CC"   am_compiler_list=
4310
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4312$as_echo_n "checking dependency style of $depcc... " >&6; }
4313if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4314  $as_echo_n "(cached) " >&6
4315else
4316  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4317  # We make a subdir and do the tests there.  Otherwise we can end up
4318  # making bogus files that we don't know about and never remove.  For
4319  # instance it was reported that on HP-UX the gcc test will end up
4320  # making a dummy file named `D' -- because `-MD' means `put the output
4321  # in D'.
4322  rm -rf conftest.dir
4323  mkdir conftest.dir
4324  # Copy depcomp to subdir because otherwise we won't find it if we're
4325  # using a relative directory.
4326  cp "$am_depcomp" conftest.dir
4327  cd conftest.dir
4328  # We will build objects and dependencies in a subdirectory because
4329  # it helps to detect inapplicable dependency modes.  For instance
4330  # both Tru64's cc and ICC support -MD to output dependencies as a
4331  # side effect of compilation, but ICC will put the dependencies in
4332  # the current directory while Tru64 will put them in the object
4333  # directory.
4334  mkdir sub
4335
4336  am_cv_CC_dependencies_compiler_type=none
4337  if test "$am_compiler_list" = ""; then
4338     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4339  fi
4340  am__universal=false
4341  case " $depcc " in #(
4342     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4343     esac
4344
4345  for depmode in $am_compiler_list; do
4346    # Setup a source with many dependencies, because some compilers
4347    # like to wrap large dependency lists on column 80 (with \), and
4348    # we should not choose a depcomp mode which is confused by this.
4349    #
4350    # We need to recreate these files for each test, as the compiler may
4351    # overwrite some of them when testing with obscure command lines.
4352    # This happens at least with the AIX C compiler.
4353    : > sub/conftest.c
4354    for i in 1 2 3 4 5 6; do
4355      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4356      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4357      # Solaris 8's {/usr,}/bin/sh.
4358      touch sub/conftst$i.h
4359    done
4360    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4361
4362    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4363    # mode.  It turns out that the SunPro C++ compiler does not properly
4364    # handle `-M -o', and we need to detect this.  Also, some Intel
4365    # versions had trouble with output in subdirs
4366    am__obj=sub/conftest.${OBJEXT-o}
4367    am__minus_obj="-o $am__obj"
4368    case $depmode in
4369    gcc)
4370      # This depmode causes a compiler race in universal mode.
4371      test "$am__universal" = false || continue
4372      ;;
4373    nosideeffect)
4374      # after this tag, mechanisms are not by side-effect, so they'll
4375      # only be used when explicitly requested
4376      if test "x$enable_dependency_tracking" = xyes; then
4377	continue
4378      else
4379	break
4380      fi
4381      ;;
4382    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4383      # This compiler won't grok `-c -o', but also, the minuso test has
4384      # not run yet.  These depmodes are late enough in the game, and
4385      # so weak that their functioning should not be impacted.
4386      am__obj=conftest.${OBJEXT-o}
4387      am__minus_obj=
4388      ;;
4389    none) break ;;
4390    esac
4391    if depmode=$depmode \
4392       source=sub/conftest.c object=$am__obj \
4393       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4394       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4395         >/dev/null 2>conftest.err &&
4396       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4397       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4398       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4399       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4400      # icc doesn't choke on unknown options, it will just issue warnings
4401      # or remarks (even with -Werror).  So we grep stderr for any message
4402      # that says an option was ignored or not supported.
4403      # When given -MP, icc 7.0 and 7.1 complain thusly:
4404      #   icc: Command line warning: ignoring option '-M'; no argument required
4405      # The diagnosis changed in icc 8.0:
4406      #   icc: Command line remark: option '-MP' not supported
4407      if (grep 'ignoring option' conftest.err ||
4408          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4409        am_cv_CC_dependencies_compiler_type=$depmode
4410        break
4411      fi
4412    fi
4413  done
4414
4415  cd ..
4416  rm -rf conftest.dir
4417else
4418  am_cv_CC_dependencies_compiler_type=none
4419fi
4420
4421fi
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4423$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4424CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4425
4426 if
4427  test "x$enable_dependency_tracking" != xno \
4428  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4429  am__fastdepCC_TRUE=
4430  am__fastdepCC_FALSE='#'
4431else
4432  am__fastdepCC_TRUE='#'
4433  am__fastdepCC_FALSE=
4434fi
4435
4436
4437
4438
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4440$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4441    # Check whether --enable-maintainer-mode was given.
4442if test "${enable_maintainer_mode+set}" = set; then :
4443  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4444else
4445  USE_MAINTAINER_MODE=no
4446fi
4447
4448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4449$as_echo "$USE_MAINTAINER_MODE" >&6; }
4450   if test $USE_MAINTAINER_MODE = yes; then
4451  MAINTAINER_MODE_TRUE=
4452  MAINTAINER_MODE_FALSE='#'
4453else
4454  MAINTAINER_MODE_TRUE='#'
4455  MAINTAINER_MODE_FALSE=
4456fi
4457
4458  MAINT=$MAINTAINER_MODE_TRUE
4459
4460
4461
4462# Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4475$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4476if ${ac_cv_prog_cc_c99+:} false; then :
4477  $as_echo_n "(cached) " >&6
4478else
4479  ac_cv_prog_cc_c99=no
4480ac_save_CC=$CC
4481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482/* end confdefs.h.  */
4483#include <stdarg.h>
4484#include <stdbool.h>
4485#include <stdlib.h>
4486#include <wchar.h>
4487#include <stdio.h>
4488
4489// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4490#define debug(...) fprintf (stderr, __VA_ARGS__)
4491#define showlist(...) puts (#__VA_ARGS__)
4492#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4493static void
4494test_varargs_macros (void)
4495{
4496  int x = 1234;
4497  int y = 5678;
4498  debug ("Flag");
4499  debug ("X = %d\n", x);
4500  showlist (The first, second, and third items.);
4501  report (x>y, "x is %d but y is %d", x, y);
4502}
4503
4504// Check long long types.
4505#define BIG64 18446744073709551615ull
4506#define BIG32 4294967295ul
4507#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4508#if !BIG_OK
4509  your preprocessor is broken;
4510#endif
4511#if BIG_OK
4512#else
4513  your preprocessor is broken;
4514#endif
4515static long long int bignum = -9223372036854775807LL;
4516static unsigned long long int ubignum = BIG64;
4517
4518struct incomplete_array
4519{
4520  int datasize;
4521  double data[];
4522};
4523
4524struct named_init {
4525  int number;
4526  const wchar_t *name;
4527  double average;
4528};
4529
4530typedef const char *ccp;
4531
4532static inline int
4533test_restrict (ccp restrict text)
4534{
4535  // See if C++-style comments work.
4536  // Iterate through items via the restricted pointer.
4537  // Also check for declarations in for loops.
4538  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4539    continue;
4540  return 0;
4541}
4542
4543// Check varargs and va_copy.
4544static void
4545test_varargs (const char *format, ...)
4546{
4547  va_list args;
4548  va_start (args, format);
4549  va_list args_copy;
4550  va_copy (args_copy, args);
4551
4552  const char *str;
4553  int number;
4554  float fnumber;
4555
4556  while (*format)
4557    {
4558      switch (*format++)
4559	{
4560	case 's': // string
4561	  str = va_arg (args_copy, const char *);
4562	  break;
4563	case 'd': // int
4564	  number = va_arg (args_copy, int);
4565	  break;
4566	case 'f': // float
4567	  fnumber = va_arg (args_copy, double);
4568	  break;
4569	default:
4570	  break;
4571	}
4572    }
4573  va_end (args_copy);
4574  va_end (args);
4575}
4576
4577int
4578main ()
4579{
4580
4581  // Check bool.
4582  _Bool success = false;
4583
4584  // Check restrict.
4585  if (test_restrict ("String literal") == 0)
4586    success = true;
4587  char *restrict newvar = "Another string";
4588
4589  // Check varargs.
4590  test_varargs ("s, d' f .", "string", 65, 34.234);
4591  test_varargs_macros ();
4592
4593  // Check flexible array members.
4594  struct incomplete_array *ia =
4595    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4596  ia->datasize = 10;
4597  for (int i = 0; i < ia->datasize; ++i)
4598    ia->data[i] = i * 1.234;
4599
4600  // Check named initializers.
4601  struct named_init ni = {
4602    .number = 34,
4603    .name = L"Test wide string",
4604    .average = 543.34343,
4605  };
4606
4607  ni.number = 58;
4608
4609  int dynamic_array[ni.number];
4610  dynamic_array[ni.number - 1] = 543;
4611
4612  // work around unused variable warnings
4613  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4614	  || dynamic_array[ni.number - 1] != 543);
4615
4616  ;
4617  return 0;
4618}
4619_ACEOF
4620for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4621do
4622  CC="$ac_save_CC $ac_arg"
4623  if ac_fn_c_try_compile "$LINENO"; then :
4624  ac_cv_prog_cc_c99=$ac_arg
4625fi
4626rm -f core conftest.err conftest.$ac_objext
4627  test "x$ac_cv_prog_cc_c99" != "xno" && break
4628done
4629rm -f conftest.$ac_ext
4630CC=$ac_save_CC
4631
4632fi
4633# AC_CACHE_VAL
4634case "x$ac_cv_prog_cc_c99" in
4635  x)
4636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4637$as_echo "none needed" >&6; } ;;
4638  xno)
4639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4640$as_echo "unsupported" >&6; } ;;
4641  *)
4642    CC="$CC $ac_cv_prog_cc_c99"
4643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4644$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4645esac
4646if test "x$ac_cv_prog_cc_c99" != xno; then :
4647
4648fi
4649
4650
4651
4652
4653
4654
4655ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4656if test "x$ac_cv_have_decl___clang__" = xyes; then :
4657  CLANGCC="yes"
4658else
4659  CLANGCC="no"
4660fi
4661
4662ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4663if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4664  INTELCC="yes"
4665else
4666  INTELCC="no"
4667fi
4668
4669ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4670if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4671  SUNCC="yes"
4672else
4673  SUNCC="no"
4674fi
4675
4676
4677
4678
4679if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4680	if test -n "$ac_tool_prefix"; then
4681  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4682set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684$as_echo_n "checking for $ac_word... " >&6; }
4685if ${ac_cv_path_PKG_CONFIG+:} false; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  case $PKG_CONFIG in
4689  [\\/]* | ?:[\\/]*)
4690  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4691  ;;
4692  *)
4693  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694for as_dir in $PATH
4695do
4696  IFS=$as_save_IFS
4697  test -z "$as_dir" && as_dir=.
4698    for ac_exec_ext in '' $ac_executable_extensions; do
4699  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702    break 2
4703  fi
4704done
4705  done
4706IFS=$as_save_IFS
4707
4708  ;;
4709esac
4710fi
4711PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4712if test -n "$PKG_CONFIG"; then
4713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4714$as_echo "$PKG_CONFIG" >&6; }
4715else
4716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717$as_echo "no" >&6; }
4718fi
4719
4720
4721fi
4722if test -z "$ac_cv_path_PKG_CONFIG"; then
4723  ac_pt_PKG_CONFIG=$PKG_CONFIG
4724  # Extract the first word of "pkg-config", so it can be a program name with args.
4725set dummy pkg-config; ac_word=$2
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727$as_echo_n "checking for $ac_word... " >&6; }
4728if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4729  $as_echo_n "(cached) " >&6
4730else
4731  case $ac_pt_PKG_CONFIG in
4732  [\\/]* | ?:[\\/]*)
4733  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4734  ;;
4735  *)
4736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739  IFS=$as_save_IFS
4740  test -z "$as_dir" && as_dir=.
4741    for ac_exec_ext in '' $ac_executable_extensions; do
4742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745    break 2
4746  fi
4747done
4748  done
4749IFS=$as_save_IFS
4750
4751  ;;
4752esac
4753fi
4754ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4755if test -n "$ac_pt_PKG_CONFIG"; then
4756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4757$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4758else
4759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760$as_echo "no" >&6; }
4761fi
4762
4763  if test "x$ac_pt_PKG_CONFIG" = x; then
4764    PKG_CONFIG=""
4765  else
4766    case $cross_compiling:$ac_tool_warned in
4767yes:)
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4770ac_tool_warned=yes ;;
4771esac
4772    PKG_CONFIG=$ac_pt_PKG_CONFIG
4773  fi
4774else
4775  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4776fi
4777
4778fi
4779if test -n "$PKG_CONFIG"; then
4780	_pkg_min_version=0.9.0
4781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4782$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4783	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4784		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4785$as_echo "yes" >&6; }
4786	else
4787		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788$as_echo "no" >&6; }
4789		PKG_CONFIG=""
4790	fi
4791
4792fi
4793# Make sure we can run config.sub.
4794$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4795  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4796
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4798$as_echo_n "checking build system type... " >&6; }
4799if ${ac_cv_build+:} false; then :
4800  $as_echo_n "(cached) " >&6
4801else
4802  ac_build_alias=$build_alias
4803test "x$ac_build_alias" = x &&
4804  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4805test "x$ac_build_alias" = x &&
4806  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4807ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4808  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4809
4810fi
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4812$as_echo "$ac_cv_build" >&6; }
4813case $ac_cv_build in
4814*-*-*) ;;
4815*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4816esac
4817build=$ac_cv_build
4818ac_save_IFS=$IFS; IFS='-'
4819set x $ac_cv_build
4820shift
4821build_cpu=$1
4822build_vendor=$2
4823shift; shift
4824# Remember, the first character of IFS is used to create $*,
4825# except with old shells:
4826build_os=$*
4827IFS=$ac_save_IFS
4828case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4829
4830
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4832$as_echo_n "checking host system type... " >&6; }
4833if ${ac_cv_host+:} false; then :
4834  $as_echo_n "(cached) " >&6
4835else
4836  if test "x$host_alias" = x; then
4837  ac_cv_host=$ac_cv_build
4838else
4839  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4840    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4841fi
4842
4843fi
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4845$as_echo "$ac_cv_host" >&6; }
4846case $ac_cv_host in
4847*-*-*) ;;
4848*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4849esac
4850host=$ac_cv_host
4851ac_save_IFS=$IFS; IFS='-'
4852set x $ac_cv_host
4853shift
4854host_cpu=$1
4855host_vendor=$2
4856shift; shift
4857# Remember, the first character of IFS is used to create $*,
4858# except with old shells:
4859host_os=$*
4860IFS=$ac_save_IFS
4861case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4862
4863
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4865$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4866if ${ac_cv_path_SED+:} false; then :
4867  $as_echo_n "(cached) " >&6
4868else
4869            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4870     for ac_i in 1 2 3 4 5 6 7; do
4871       ac_script="$ac_script$as_nl$ac_script"
4872     done
4873     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4874     { ac_script=; unset ac_script;}
4875     if test -z "$SED"; then
4876  ac_path_SED_found=false
4877  # Loop through the user's path and test for each of PROGNAME-LIST
4878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879for as_dir in $PATH
4880do
4881  IFS=$as_save_IFS
4882  test -z "$as_dir" && as_dir=.
4883    for ac_prog in sed gsed; do
4884    for ac_exec_ext in '' $ac_executable_extensions; do
4885      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4886      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4887# Check for GNU ac_path_SED and select it if it is found.
4888  # Check for GNU $ac_path_SED
4889case `"$ac_path_SED" --version 2>&1` in
4890*GNU*)
4891  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4892*)
4893  ac_count=0
4894  $as_echo_n 0123456789 >"conftest.in"
4895  while :
4896  do
4897    cat "conftest.in" "conftest.in" >"conftest.tmp"
4898    mv "conftest.tmp" "conftest.in"
4899    cp "conftest.in" "conftest.nl"
4900    $as_echo '' >> "conftest.nl"
4901    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4902    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4903    as_fn_arith $ac_count + 1 && ac_count=$as_val
4904    if test $ac_count -gt ${ac_path_SED_max-0}; then
4905      # Best one so far, save it but keep looking for a better one
4906      ac_cv_path_SED="$ac_path_SED"
4907      ac_path_SED_max=$ac_count
4908    fi
4909    # 10*(2^10) chars as input seems more than enough
4910    test $ac_count -gt 10 && break
4911  done
4912  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4913esac
4914
4915      $ac_path_SED_found && break 3
4916    done
4917  done
4918  done
4919IFS=$as_save_IFS
4920  if test -z "$ac_cv_path_SED"; then
4921    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4922  fi
4923else
4924  ac_cv_path_SED=$SED
4925fi
4926
4927fi
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4929$as_echo "$ac_cv_path_SED" >&6; }
4930 SED="$ac_cv_path_SED"
4931  rm -f conftest.sed
4932
4933
4934
4935
4936
4937
4938# Check whether --enable-selective-werror was given.
4939if test "${enable_selective_werror+set}" = set; then :
4940  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4941else
4942  SELECTIVE_WERROR=yes
4943fi
4944
4945
4946
4947
4948
4949# -v is too short to test reliably with XORG_TESTSET_CFLAG
4950if test "x$SUNCC" = "xyes"; then
4951    BASE_CFLAGS="-v"
4952else
4953    BASE_CFLAGS=""
4954fi
4955
4956# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970xorg_testset_save_CFLAGS="$CFLAGS"
4971
4972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4977  $as_echo_n "(cached) " >&6
4978else
4979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980/* end confdefs.h.  */
4981int i;
4982_ACEOF
4983if ac_fn_c_try_compile "$LINENO"; then :
4984  xorg_cv_cc_flag_unknown_warning_option=yes
4985else
4986  xorg_cv_cc_flag_unknown_warning_option=no
4987fi
4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989fi
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4993	CFLAGS="$xorg_testset_save_CFLAGS"
4994fi
4995
4996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4999	fi
5000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5004  $as_echo_n "(cached) " >&6
5005else
5006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h.  */
5008int i;
5009_ACEOF
5010if ac_fn_c_try_compile "$LINENO"; then :
5011  xorg_cv_cc_flag_unused_command_line_argument=yes
5012else
5013  xorg_cv_cc_flag_unused_command_line_argument=no
5014fi
5015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016fi
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5020	CFLAGS="$xorg_testset_save_CFLAGS"
5021fi
5022
5023found="no"
5024
5025	if test $found = "no" ; then
5026		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5028		fi
5029
5030		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5032		fi
5033
5034		CFLAGS="$CFLAGS -Wall"
5035
5036		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5037$as_echo_n "checking if $CC supports -Wall... " >&6; }
5038		cacheid=xorg_cv_cc_flag__Wall
5039		if eval \${$cacheid+:} false; then :
5040  $as_echo_n "(cached) " >&6
5041else
5042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h.  */
5044int i;
5045int
5046main ()
5047{
5048
5049  ;
5050  return 0;
5051}
5052_ACEOF
5053if ac_fn_c_try_link "$LINENO"; then :
5054  eval $cacheid=yes
5055else
5056  eval $cacheid=no
5057fi
5058rm -f core conftest.err conftest.$ac_objext \
5059    conftest$ac_exeext conftest.$ac_ext
5060fi
5061
5062
5063		CFLAGS="$xorg_testset_save_CFLAGS"
5064
5065		eval supported=\$$cacheid
5066		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5067$as_echo "$supported" >&6; }
5068		if test "$supported" = "yes" ; then
5069			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5070			found="yes"
5071		fi
5072	fi
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088xorg_testset_save_CFLAGS="$CFLAGS"
5089
5090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5091	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5092	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5095  $as_echo_n "(cached) " >&6
5096else
5097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098/* end confdefs.h.  */
5099int i;
5100_ACEOF
5101if ac_fn_c_try_compile "$LINENO"; then :
5102  xorg_cv_cc_flag_unknown_warning_option=yes
5103else
5104  xorg_cv_cc_flag_unknown_warning_option=no
5105fi
5106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107fi
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5111	CFLAGS="$xorg_testset_save_CFLAGS"
5112fi
5113
5114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5117	fi
5118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5122  $as_echo_n "(cached) " >&6
5123else
5124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125/* end confdefs.h.  */
5126int i;
5127_ACEOF
5128if ac_fn_c_try_compile "$LINENO"; then :
5129  xorg_cv_cc_flag_unused_command_line_argument=yes
5130else
5131  xorg_cv_cc_flag_unused_command_line_argument=no
5132fi
5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134fi
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5137	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5138	CFLAGS="$xorg_testset_save_CFLAGS"
5139fi
5140
5141found="no"
5142
5143	if test $found = "no" ; then
5144		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5146		fi
5147
5148		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5150		fi
5151
5152		CFLAGS="$CFLAGS -Wpointer-arith"
5153
5154		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5155$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5156		cacheid=xorg_cv_cc_flag__Wpointer_arith
5157		if eval \${$cacheid+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h.  */
5162int i;
5163int
5164main ()
5165{
5166
5167  ;
5168  return 0;
5169}
5170_ACEOF
5171if ac_fn_c_try_link "$LINENO"; then :
5172  eval $cacheid=yes
5173else
5174  eval $cacheid=no
5175fi
5176rm -f core conftest.err conftest.$ac_objext \
5177    conftest$ac_exeext conftest.$ac_ext
5178fi
5179
5180
5181		CFLAGS="$xorg_testset_save_CFLAGS"
5182
5183		eval supported=\$$cacheid
5184		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5185$as_echo "$supported" >&6; }
5186		if test "$supported" = "yes" ; then
5187			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5188			found="yes"
5189		fi
5190	fi
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206xorg_testset_save_CFLAGS="$CFLAGS"
5207
5208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5213  $as_echo_n "(cached) " >&6
5214else
5215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216/* end confdefs.h.  */
5217int i;
5218_ACEOF
5219if ac_fn_c_try_compile "$LINENO"; then :
5220  xorg_cv_cc_flag_unknown_warning_option=yes
5221else
5222  xorg_cv_cc_flag_unknown_warning_option=no
5223fi
5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225fi
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5229	CFLAGS="$xorg_testset_save_CFLAGS"
5230fi
5231
5232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235	fi
5236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5240  $as_echo_n "(cached) " >&6
5241else
5242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h.  */
5244int i;
5245_ACEOF
5246if ac_fn_c_try_compile "$LINENO"; then :
5247  xorg_cv_cc_flag_unused_command_line_argument=yes
5248else
5249  xorg_cv_cc_flag_unused_command_line_argument=no
5250fi
5251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252fi
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5256	CFLAGS="$xorg_testset_save_CFLAGS"
5257fi
5258
5259found="no"
5260
5261	if test $found = "no" ; then
5262		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5264		fi
5265
5266		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5268		fi
5269
5270		CFLAGS="$CFLAGS -Wmissing-declarations"
5271
5272		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5273$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5274		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5275		if eval \${$cacheid+:} false; then :
5276  $as_echo_n "(cached) " >&6
5277else
5278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279/* end confdefs.h.  */
5280int i;
5281int
5282main ()
5283{
5284
5285  ;
5286  return 0;
5287}
5288_ACEOF
5289if ac_fn_c_try_link "$LINENO"; then :
5290  eval $cacheid=yes
5291else
5292  eval $cacheid=no
5293fi
5294rm -f core conftest.err conftest.$ac_objext \
5295    conftest$ac_exeext conftest.$ac_ext
5296fi
5297
5298
5299		CFLAGS="$xorg_testset_save_CFLAGS"
5300
5301		eval supported=\$$cacheid
5302		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5303$as_echo "$supported" >&6; }
5304		if test "$supported" = "yes" ; then
5305			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5306			found="yes"
5307		fi
5308	fi
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324xorg_testset_save_CFLAGS="$CFLAGS"
5325
5326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5331  $as_echo_n "(cached) " >&6
5332else
5333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h.  */
5335int i;
5336_ACEOF
5337if ac_fn_c_try_compile "$LINENO"; then :
5338  xorg_cv_cc_flag_unknown_warning_option=yes
5339else
5340  xorg_cv_cc_flag_unknown_warning_option=no
5341fi
5342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343fi
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5347	CFLAGS="$xorg_testset_save_CFLAGS"
5348fi
5349
5350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5353	fi
5354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5358  $as_echo_n "(cached) " >&6
5359else
5360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h.  */
5362int i;
5363_ACEOF
5364if ac_fn_c_try_compile "$LINENO"; then :
5365  xorg_cv_cc_flag_unused_command_line_argument=yes
5366else
5367  xorg_cv_cc_flag_unused_command_line_argument=no
5368fi
5369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370fi
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5374	CFLAGS="$xorg_testset_save_CFLAGS"
5375fi
5376
5377found="no"
5378
5379	if test $found = "no" ; then
5380		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5382		fi
5383
5384		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5386		fi
5387
5388		CFLAGS="$CFLAGS -Wformat=2"
5389
5390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5391$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5392		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5393		if eval \${$cacheid+:} false; then :
5394  $as_echo_n "(cached) " >&6
5395else
5396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398int i;
5399int
5400main ()
5401{
5402
5403  ;
5404  return 0;
5405}
5406_ACEOF
5407if ac_fn_c_try_link "$LINENO"; then :
5408  eval $cacheid=yes
5409else
5410  eval $cacheid=no
5411fi
5412rm -f core conftest.err conftest.$ac_objext \
5413    conftest$ac_exeext conftest.$ac_ext
5414fi
5415
5416
5417		CFLAGS="$xorg_testset_save_CFLAGS"
5418
5419		eval supported=\$$cacheid
5420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5421$as_echo "$supported" >&6; }
5422		if test "$supported" = "yes" ; then
5423			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5424			found="yes"
5425		fi
5426	fi
5427
5428	if test $found = "no" ; then
5429		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5430			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5431		fi
5432
5433		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5434			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5435		fi
5436
5437		CFLAGS="$CFLAGS -Wformat"
5438
5439		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5440$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5441		cacheid=xorg_cv_cc_flag__Wformat
5442		if eval \${$cacheid+:} false; then :
5443  $as_echo_n "(cached) " >&6
5444else
5445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446/* end confdefs.h.  */
5447int i;
5448int
5449main ()
5450{
5451
5452  ;
5453  return 0;
5454}
5455_ACEOF
5456if ac_fn_c_try_link "$LINENO"; then :
5457  eval $cacheid=yes
5458else
5459  eval $cacheid=no
5460fi
5461rm -f core conftest.err conftest.$ac_objext \
5462    conftest$ac_exeext conftest.$ac_ext
5463fi
5464
5465
5466		CFLAGS="$xorg_testset_save_CFLAGS"
5467
5468		eval supported=\$$cacheid
5469		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5470$as_echo "$supported" >&6; }
5471		if test "$supported" = "yes" ; then
5472			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5473			found="yes"
5474		fi
5475	fi
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493xorg_testset_save_CFLAGS="$CFLAGS"
5494
5495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5496	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5500  $as_echo_n "(cached) " >&6
5501else
5502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h.  */
5504int i;
5505_ACEOF
5506if ac_fn_c_try_compile "$LINENO"; then :
5507  xorg_cv_cc_flag_unknown_warning_option=yes
5508else
5509  xorg_cv_cc_flag_unknown_warning_option=no
5510fi
5511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512fi
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5515	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5516	CFLAGS="$xorg_testset_save_CFLAGS"
5517fi
5518
5519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5520	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5521		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522	fi
5523	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5527  $as_echo_n "(cached) " >&6
5528else
5529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531int i;
5532_ACEOF
5533if ac_fn_c_try_compile "$LINENO"; then :
5534  xorg_cv_cc_flag_unused_command_line_argument=yes
5535else
5536  xorg_cv_cc_flag_unused_command_line_argument=no
5537fi
5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539fi
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5543	CFLAGS="$xorg_testset_save_CFLAGS"
5544fi
5545
5546found="no"
5547
5548	if test $found = "no" ; then
5549		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5551		fi
5552
5553		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5555		fi
5556
5557		CFLAGS="$CFLAGS -Wstrict-prototypes"
5558
5559		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5560$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5561		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5562		if eval \${$cacheid+:} false; then :
5563  $as_echo_n "(cached) " >&6
5564else
5565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566/* end confdefs.h.  */
5567int i;
5568int
5569main ()
5570{
5571
5572  ;
5573  return 0;
5574}
5575_ACEOF
5576if ac_fn_c_try_link "$LINENO"; then :
5577  eval $cacheid=yes
5578else
5579  eval $cacheid=no
5580fi
5581rm -f core conftest.err conftest.$ac_objext \
5582    conftest$ac_exeext conftest.$ac_ext
5583fi
5584
5585
5586		CFLAGS="$xorg_testset_save_CFLAGS"
5587
5588		eval supported=\$$cacheid
5589		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5590$as_echo "$supported" >&6; }
5591		if test "$supported" = "yes" ; then
5592			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5593			found="yes"
5594		fi
5595	fi
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611xorg_testset_save_CFLAGS="$CFLAGS"
5612
5613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5618  $as_echo_n "(cached) " >&6
5619else
5620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h.  */
5622int i;
5623_ACEOF
5624if ac_fn_c_try_compile "$LINENO"; then :
5625  xorg_cv_cc_flag_unknown_warning_option=yes
5626else
5627  xorg_cv_cc_flag_unknown_warning_option=no
5628fi
5629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630fi
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5634	CFLAGS="$xorg_testset_save_CFLAGS"
5635fi
5636
5637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640	fi
5641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5642	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5645  $as_echo_n "(cached) " >&6
5646else
5647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648/* end confdefs.h.  */
5649int i;
5650_ACEOF
5651if ac_fn_c_try_compile "$LINENO"; then :
5652  xorg_cv_cc_flag_unused_command_line_argument=yes
5653else
5654  xorg_cv_cc_flag_unused_command_line_argument=no
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5661	CFLAGS="$xorg_testset_save_CFLAGS"
5662fi
5663
5664found="no"
5665
5666	if test $found = "no" ; then
5667		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5669		fi
5670
5671		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5673		fi
5674
5675		CFLAGS="$CFLAGS -Wmissing-prototypes"
5676
5677		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5678$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5679		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5680		if eval \${$cacheid+:} false; then :
5681  $as_echo_n "(cached) " >&6
5682else
5683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h.  */
5685int i;
5686int
5687main ()
5688{
5689
5690  ;
5691  return 0;
5692}
5693_ACEOF
5694if ac_fn_c_try_link "$LINENO"; then :
5695  eval $cacheid=yes
5696else
5697  eval $cacheid=no
5698fi
5699rm -f core conftest.err conftest.$ac_objext \
5700    conftest$ac_exeext conftest.$ac_ext
5701fi
5702
5703
5704		CFLAGS="$xorg_testset_save_CFLAGS"
5705
5706		eval supported=\$$cacheid
5707		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5708$as_echo "$supported" >&6; }
5709		if test "$supported" = "yes" ; then
5710			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5711			found="yes"
5712		fi
5713	fi
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729xorg_testset_save_CFLAGS="$CFLAGS"
5730
5731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5736  $as_echo_n "(cached) " >&6
5737else
5738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h.  */
5740int i;
5741_ACEOF
5742if ac_fn_c_try_compile "$LINENO"; then :
5743  xorg_cv_cc_flag_unknown_warning_option=yes
5744else
5745  xorg_cv_cc_flag_unknown_warning_option=no
5746fi
5747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748fi
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5752	CFLAGS="$xorg_testset_save_CFLAGS"
5753fi
5754
5755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5758	fi
5759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5763  $as_echo_n "(cached) " >&6
5764else
5765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766/* end confdefs.h.  */
5767int i;
5768_ACEOF
5769if ac_fn_c_try_compile "$LINENO"; then :
5770  xorg_cv_cc_flag_unused_command_line_argument=yes
5771else
5772  xorg_cv_cc_flag_unused_command_line_argument=no
5773fi
5774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775fi
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5778	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5779	CFLAGS="$xorg_testset_save_CFLAGS"
5780fi
5781
5782found="no"
5783
5784	if test $found = "no" ; then
5785		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787		fi
5788
5789		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5791		fi
5792
5793		CFLAGS="$CFLAGS -Wnested-externs"
5794
5795		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5796$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5797		cacheid=xorg_cv_cc_flag__Wnested_externs
5798		if eval \${$cacheid+:} false; then :
5799  $as_echo_n "(cached) " >&6
5800else
5801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h.  */
5803int i;
5804int
5805main ()
5806{
5807
5808  ;
5809  return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_link "$LINENO"; then :
5813  eval $cacheid=yes
5814else
5815  eval $cacheid=no
5816fi
5817rm -f core conftest.err conftest.$ac_objext \
5818    conftest$ac_exeext conftest.$ac_ext
5819fi
5820
5821
5822		CFLAGS="$xorg_testset_save_CFLAGS"
5823
5824		eval supported=\$$cacheid
5825		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5826$as_echo "$supported" >&6; }
5827		if test "$supported" = "yes" ; then
5828			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5829			found="yes"
5830		fi
5831	fi
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847xorg_testset_save_CFLAGS="$CFLAGS"
5848
5849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5851	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5854  $as_echo_n "(cached) " >&6
5855else
5856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857/* end confdefs.h.  */
5858int i;
5859_ACEOF
5860if ac_fn_c_try_compile "$LINENO"; then :
5861  xorg_cv_cc_flag_unknown_warning_option=yes
5862else
5863  xorg_cv_cc_flag_unknown_warning_option=no
5864fi
5865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866fi
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5870	CFLAGS="$xorg_testset_save_CFLAGS"
5871fi
5872
5873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876	fi
5877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5881  $as_echo_n "(cached) " >&6
5882else
5883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884/* end confdefs.h.  */
5885int i;
5886_ACEOF
5887if ac_fn_c_try_compile "$LINENO"; then :
5888  xorg_cv_cc_flag_unused_command_line_argument=yes
5889else
5890  xorg_cv_cc_flag_unused_command_line_argument=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893fi
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5896	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5897	CFLAGS="$xorg_testset_save_CFLAGS"
5898fi
5899
5900found="no"
5901
5902	if test $found = "no" ; then
5903		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5905		fi
5906
5907		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5909		fi
5910
5911		CFLAGS="$CFLAGS -Wbad-function-cast"
5912
5913		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5914$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5915		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5916		if eval \${$cacheid+:} false; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921int i;
5922int
5923main ()
5924{
5925
5926  ;
5927  return 0;
5928}
5929_ACEOF
5930if ac_fn_c_try_link "$LINENO"; then :
5931  eval $cacheid=yes
5932else
5933  eval $cacheid=no
5934fi
5935rm -f core conftest.err conftest.$ac_objext \
5936    conftest$ac_exeext conftest.$ac_ext
5937fi
5938
5939
5940		CFLAGS="$xorg_testset_save_CFLAGS"
5941
5942		eval supported=\$$cacheid
5943		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5944$as_echo "$supported" >&6; }
5945		if test "$supported" = "yes" ; then
5946			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5947			found="yes"
5948		fi
5949	fi
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965xorg_testset_save_CFLAGS="$CFLAGS"
5966
5967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5972  $as_echo_n "(cached) " >&6
5973else
5974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975/* end confdefs.h.  */
5976int i;
5977_ACEOF
5978if ac_fn_c_try_compile "$LINENO"; then :
5979  xorg_cv_cc_flag_unknown_warning_option=yes
5980else
5981  xorg_cv_cc_flag_unknown_warning_option=no
5982fi
5983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984fi
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5988	CFLAGS="$xorg_testset_save_CFLAGS"
5989fi
5990
5991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5994	fi
5995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5999  $as_echo_n "(cached) " >&6
6000else
6001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002/* end confdefs.h.  */
6003int i;
6004_ACEOF
6005if ac_fn_c_try_compile "$LINENO"; then :
6006  xorg_cv_cc_flag_unused_command_line_argument=yes
6007else
6008  xorg_cv_cc_flag_unused_command_line_argument=no
6009fi
6010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011fi
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6015	CFLAGS="$xorg_testset_save_CFLAGS"
6016fi
6017
6018found="no"
6019
6020	if test $found = "no" ; then
6021		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6023		fi
6024
6025		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6027		fi
6028
6029		CFLAGS="$CFLAGS -Wold-style-definition"
6030
6031		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6032$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6033		cacheid=xorg_cv_cc_flag__Wold_style_definition
6034		if eval \${$cacheid+:} false; then :
6035  $as_echo_n "(cached) " >&6
6036else
6037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038/* end confdefs.h.  */
6039int i;
6040int
6041main ()
6042{
6043
6044  ;
6045  return 0;
6046}
6047_ACEOF
6048if ac_fn_c_try_link "$LINENO"; then :
6049  eval $cacheid=yes
6050else
6051  eval $cacheid=no
6052fi
6053rm -f core conftest.err conftest.$ac_objext \
6054    conftest$ac_exeext conftest.$ac_ext
6055fi
6056
6057
6058		CFLAGS="$xorg_testset_save_CFLAGS"
6059
6060		eval supported=\$$cacheid
6061		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6062$as_echo "$supported" >&6; }
6063		if test "$supported" = "yes" ; then
6064			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6065			found="yes"
6066		fi
6067	fi
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083xorg_testset_save_CFLAGS="$CFLAGS"
6084
6085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6090  $as_echo_n "(cached) " >&6
6091else
6092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093/* end confdefs.h.  */
6094int i;
6095_ACEOF
6096if ac_fn_c_try_compile "$LINENO"; then :
6097  xorg_cv_cc_flag_unknown_warning_option=yes
6098else
6099  xorg_cv_cc_flag_unknown_warning_option=no
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102fi
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6106	CFLAGS="$xorg_testset_save_CFLAGS"
6107fi
6108
6109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112	fi
6113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120/* end confdefs.h.  */
6121int i;
6122_ACEOF
6123if ac_fn_c_try_compile "$LINENO"; then :
6124  xorg_cv_cc_flag_unused_command_line_argument=yes
6125else
6126  xorg_cv_cc_flag_unused_command_line_argument=no
6127fi
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129fi
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6133	CFLAGS="$xorg_testset_save_CFLAGS"
6134fi
6135
6136found="no"
6137
6138	if test $found = "no" ; then
6139		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6141		fi
6142
6143		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6145		fi
6146
6147		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6148
6149		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6150$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6151		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6152		if eval \${$cacheid+:} false; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156/* end confdefs.h.  */
6157int i;
6158int
6159main ()
6160{
6161
6162  ;
6163  return 0;
6164}
6165_ACEOF
6166if ac_fn_c_try_link "$LINENO"; then :
6167  eval $cacheid=yes
6168else
6169  eval $cacheid=no
6170fi
6171rm -f core conftest.err conftest.$ac_objext \
6172    conftest$ac_exeext conftest.$ac_ext
6173fi
6174
6175
6176		CFLAGS="$xorg_testset_save_CFLAGS"
6177
6178		eval supported=\$$cacheid
6179		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6180$as_echo "$supported" >&6; }
6181		if test "$supported" = "yes" ; then
6182			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6183			found="yes"
6184		fi
6185	fi
6186
6187
6188
6189
6190
6191# This chunk adds additional warnings that could catch undesired effects.
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205xorg_testset_save_CFLAGS="$CFLAGS"
6206
6207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6210$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6211if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6212  $as_echo_n "(cached) " >&6
6213else
6214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h.  */
6216int i;
6217_ACEOF
6218if ac_fn_c_try_compile "$LINENO"; then :
6219  xorg_cv_cc_flag_unknown_warning_option=yes
6220else
6221  xorg_cv_cc_flag_unknown_warning_option=no
6222fi
6223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224fi
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6226$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6228	CFLAGS="$xorg_testset_save_CFLAGS"
6229fi
6230
6231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234	fi
6235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6237$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6238if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6239  $as_echo_n "(cached) " >&6
6240else
6241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242/* end confdefs.h.  */
6243int i;
6244_ACEOF
6245if ac_fn_c_try_compile "$LINENO"; then :
6246  xorg_cv_cc_flag_unused_command_line_argument=yes
6247else
6248  xorg_cv_cc_flag_unused_command_line_argument=no
6249fi
6250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251fi
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6253$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6255	CFLAGS="$xorg_testset_save_CFLAGS"
6256fi
6257
6258found="no"
6259
6260	if test $found = "no" ; then
6261		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6263		fi
6264
6265		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6267		fi
6268
6269		CFLAGS="$CFLAGS -Wunused"
6270
6271		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6272$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6273		cacheid=xorg_cv_cc_flag__Wunused
6274		if eval \${$cacheid+:} false; then :
6275  $as_echo_n "(cached) " >&6
6276else
6277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h.  */
6279int i;
6280int
6281main ()
6282{
6283
6284  ;
6285  return 0;
6286}
6287_ACEOF
6288if ac_fn_c_try_link "$LINENO"; then :
6289  eval $cacheid=yes
6290else
6291  eval $cacheid=no
6292fi
6293rm -f core conftest.err conftest.$ac_objext \
6294    conftest$ac_exeext conftest.$ac_ext
6295fi
6296
6297
6298		CFLAGS="$xorg_testset_save_CFLAGS"
6299
6300		eval supported=\$$cacheid
6301		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6302$as_echo "$supported" >&6; }
6303		if test "$supported" = "yes" ; then
6304			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6305			found="yes"
6306		fi
6307	fi
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323xorg_testset_save_CFLAGS="$CFLAGS"
6324
6325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6330  $as_echo_n "(cached) " >&6
6331else
6332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h.  */
6334int i;
6335_ACEOF
6336if ac_fn_c_try_compile "$LINENO"; then :
6337  xorg_cv_cc_flag_unknown_warning_option=yes
6338else
6339  xorg_cv_cc_flag_unknown_warning_option=no
6340fi
6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342fi
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6345	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6346	CFLAGS="$xorg_testset_save_CFLAGS"
6347fi
6348
6349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6350	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6351		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6352	fi
6353	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6357  $as_echo_n "(cached) " >&6
6358else
6359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360/* end confdefs.h.  */
6361int i;
6362_ACEOF
6363if ac_fn_c_try_compile "$LINENO"; then :
6364  xorg_cv_cc_flag_unused_command_line_argument=yes
6365else
6366  xorg_cv_cc_flag_unused_command_line_argument=no
6367fi
6368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6373	CFLAGS="$xorg_testset_save_CFLAGS"
6374fi
6375
6376found="no"
6377
6378	if test $found = "no" ; then
6379		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6381		fi
6382
6383		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6385		fi
6386
6387		CFLAGS="$CFLAGS -Wuninitialized"
6388
6389		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6390$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6391		cacheid=xorg_cv_cc_flag__Wuninitialized
6392		if eval \${$cacheid+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396/* end confdefs.h.  */
6397int i;
6398int
6399main ()
6400{
6401
6402  ;
6403  return 0;
6404}
6405_ACEOF
6406if ac_fn_c_try_link "$LINENO"; then :
6407  eval $cacheid=yes
6408else
6409  eval $cacheid=no
6410fi
6411rm -f core conftest.err conftest.$ac_objext \
6412    conftest$ac_exeext conftest.$ac_ext
6413fi
6414
6415
6416		CFLAGS="$xorg_testset_save_CFLAGS"
6417
6418		eval supported=\$$cacheid
6419		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6420$as_echo "$supported" >&6; }
6421		if test "$supported" = "yes" ; then
6422			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6423			found="yes"
6424		fi
6425	fi
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441xorg_testset_save_CFLAGS="$CFLAGS"
6442
6443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6444	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6448  $as_echo_n "(cached) " >&6
6449else
6450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451/* end confdefs.h.  */
6452int i;
6453_ACEOF
6454if ac_fn_c_try_compile "$LINENO"; then :
6455  xorg_cv_cc_flag_unknown_warning_option=yes
6456else
6457  xorg_cv_cc_flag_unknown_warning_option=no
6458fi
6459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460fi
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6464	CFLAGS="$xorg_testset_save_CFLAGS"
6465fi
6466
6467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470	fi
6471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478/* end confdefs.h.  */
6479int i;
6480_ACEOF
6481if ac_fn_c_try_compile "$LINENO"; then :
6482  xorg_cv_cc_flag_unused_command_line_argument=yes
6483else
6484  xorg_cv_cc_flag_unused_command_line_argument=no
6485fi
6486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487fi
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6491	CFLAGS="$xorg_testset_save_CFLAGS"
6492fi
6493
6494found="no"
6495
6496	if test $found = "no" ; then
6497		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6499		fi
6500
6501		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6503		fi
6504
6505		CFLAGS="$CFLAGS -Wshadow"
6506
6507		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6508$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6509		cacheid=xorg_cv_cc_flag__Wshadow
6510		if eval \${$cacheid+:} false; then :
6511  $as_echo_n "(cached) " >&6
6512else
6513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h.  */
6515int i;
6516int
6517main ()
6518{
6519
6520  ;
6521  return 0;
6522}
6523_ACEOF
6524if ac_fn_c_try_link "$LINENO"; then :
6525  eval $cacheid=yes
6526else
6527  eval $cacheid=no
6528fi
6529rm -f core conftest.err conftest.$ac_objext \
6530    conftest$ac_exeext conftest.$ac_ext
6531fi
6532
6533
6534		CFLAGS="$xorg_testset_save_CFLAGS"
6535
6536		eval supported=\$$cacheid
6537		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6538$as_echo "$supported" >&6; }
6539		if test "$supported" = "yes" ; then
6540			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6541			found="yes"
6542		fi
6543	fi
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559xorg_testset_save_CFLAGS="$CFLAGS"
6560
6561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6566  $as_echo_n "(cached) " >&6
6567else
6568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569/* end confdefs.h.  */
6570int i;
6571_ACEOF
6572if ac_fn_c_try_compile "$LINENO"; then :
6573  xorg_cv_cc_flag_unknown_warning_option=yes
6574else
6575  xorg_cv_cc_flag_unknown_warning_option=no
6576fi
6577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578fi
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6581	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6582	CFLAGS="$xorg_testset_save_CFLAGS"
6583fi
6584
6585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6586	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6587		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6588	fi
6589	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6593  $as_echo_n "(cached) " >&6
6594else
6595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596/* end confdefs.h.  */
6597int i;
6598_ACEOF
6599if ac_fn_c_try_compile "$LINENO"; then :
6600  xorg_cv_cc_flag_unused_command_line_argument=yes
6601else
6602  xorg_cv_cc_flag_unused_command_line_argument=no
6603fi
6604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605fi
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6608	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6609	CFLAGS="$xorg_testset_save_CFLAGS"
6610fi
6611
6612found="no"
6613
6614	if test $found = "no" ; then
6615		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6616			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6617		fi
6618
6619		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6620			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6621		fi
6622
6623		CFLAGS="$CFLAGS -Wcast-qual"
6624
6625		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6626$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6627		cacheid=xorg_cv_cc_flag__Wcast_qual
6628		if eval \${$cacheid+:} false; then :
6629  $as_echo_n "(cached) " >&6
6630else
6631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632/* end confdefs.h.  */
6633int i;
6634int
6635main ()
6636{
6637
6638  ;
6639  return 0;
6640}
6641_ACEOF
6642if ac_fn_c_try_link "$LINENO"; then :
6643  eval $cacheid=yes
6644else
6645  eval $cacheid=no
6646fi
6647rm -f core conftest.err conftest.$ac_objext \
6648    conftest$ac_exeext conftest.$ac_ext
6649fi
6650
6651
6652		CFLAGS="$xorg_testset_save_CFLAGS"
6653
6654		eval supported=\$$cacheid
6655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6656$as_echo "$supported" >&6; }
6657		if test "$supported" = "yes" ; then
6658			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6659			found="yes"
6660		fi
6661	fi
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677xorg_testset_save_CFLAGS="$CFLAGS"
6678
6679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6680	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6682$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6683if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6684  $as_echo_n "(cached) " >&6
6685else
6686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687/* end confdefs.h.  */
6688int i;
6689_ACEOF
6690if ac_fn_c_try_compile "$LINENO"; then :
6691  xorg_cv_cc_flag_unknown_warning_option=yes
6692else
6693  xorg_cv_cc_flag_unknown_warning_option=no
6694fi
6695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696fi
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6698$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6699	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6700	CFLAGS="$xorg_testset_save_CFLAGS"
6701fi
6702
6703if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6704	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6705		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6706	fi
6707	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6708	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6709$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6710if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714/* end confdefs.h.  */
6715int i;
6716_ACEOF
6717if ac_fn_c_try_compile "$LINENO"; then :
6718  xorg_cv_cc_flag_unused_command_line_argument=yes
6719else
6720  xorg_cv_cc_flag_unused_command_line_argument=no
6721fi
6722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723fi
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6725$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6726	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6727	CFLAGS="$xorg_testset_save_CFLAGS"
6728fi
6729
6730found="no"
6731
6732	if test $found = "no" ; then
6733		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6734			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6735		fi
6736
6737		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6738			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6739		fi
6740
6741		CFLAGS="$CFLAGS -Wmissing-noreturn"
6742
6743		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6744$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6745		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6746		if eval \${$cacheid+:} false; then :
6747  $as_echo_n "(cached) " >&6
6748else
6749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750/* end confdefs.h.  */
6751int i;
6752int
6753main ()
6754{
6755
6756  ;
6757  return 0;
6758}
6759_ACEOF
6760if ac_fn_c_try_link "$LINENO"; then :
6761  eval $cacheid=yes
6762else
6763  eval $cacheid=no
6764fi
6765rm -f core conftest.err conftest.$ac_objext \
6766    conftest$ac_exeext conftest.$ac_ext
6767fi
6768
6769
6770		CFLAGS="$xorg_testset_save_CFLAGS"
6771
6772		eval supported=\$$cacheid
6773		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6774$as_echo "$supported" >&6; }
6775		if test "$supported" = "yes" ; then
6776			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6777			found="yes"
6778		fi
6779	fi
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795xorg_testset_save_CFLAGS="$CFLAGS"
6796
6797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6798	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6800$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6801if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6802  $as_echo_n "(cached) " >&6
6803else
6804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805/* end confdefs.h.  */
6806int i;
6807_ACEOF
6808if ac_fn_c_try_compile "$LINENO"; then :
6809  xorg_cv_cc_flag_unknown_warning_option=yes
6810else
6811  xorg_cv_cc_flag_unknown_warning_option=no
6812fi
6813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6814fi
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6816$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6817	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6818	CFLAGS="$xorg_testset_save_CFLAGS"
6819fi
6820
6821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6822	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6823		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6824	fi
6825	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6827$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6828if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6829  $as_echo_n "(cached) " >&6
6830else
6831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832/* end confdefs.h.  */
6833int i;
6834_ACEOF
6835if ac_fn_c_try_compile "$LINENO"; then :
6836  xorg_cv_cc_flag_unused_command_line_argument=yes
6837else
6838  xorg_cv_cc_flag_unused_command_line_argument=no
6839fi
6840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841fi
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6843$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6845	CFLAGS="$xorg_testset_save_CFLAGS"
6846fi
6847
6848found="no"
6849
6850	if test $found = "no" ; then
6851		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6853		fi
6854
6855		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6857		fi
6858
6859		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6860
6861		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6862$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6863		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6864		if eval \${$cacheid+:} false; then :
6865  $as_echo_n "(cached) " >&6
6866else
6867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868/* end confdefs.h.  */
6869int i;
6870int
6871main ()
6872{
6873
6874  ;
6875  return 0;
6876}
6877_ACEOF
6878if ac_fn_c_try_link "$LINENO"; then :
6879  eval $cacheid=yes
6880else
6881  eval $cacheid=no
6882fi
6883rm -f core conftest.err conftest.$ac_objext \
6884    conftest$ac_exeext conftest.$ac_ext
6885fi
6886
6887
6888		CFLAGS="$xorg_testset_save_CFLAGS"
6889
6890		eval supported=\$$cacheid
6891		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6892$as_echo "$supported" >&6; }
6893		if test "$supported" = "yes" ; then
6894			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6895			found="yes"
6896		fi
6897	fi
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913xorg_testset_save_CFLAGS="$CFLAGS"
6914
6915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6916	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6918$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6919if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6920  $as_echo_n "(cached) " >&6
6921else
6922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923/* end confdefs.h.  */
6924int i;
6925_ACEOF
6926if ac_fn_c_try_compile "$LINENO"; then :
6927  xorg_cv_cc_flag_unknown_warning_option=yes
6928else
6929  xorg_cv_cc_flag_unknown_warning_option=no
6930fi
6931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932fi
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6934$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6935	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6936	CFLAGS="$xorg_testset_save_CFLAGS"
6937fi
6938
6939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6940	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6942	fi
6943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6945$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6946if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6947  $as_echo_n "(cached) " >&6
6948else
6949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950/* end confdefs.h.  */
6951int i;
6952_ACEOF
6953if ac_fn_c_try_compile "$LINENO"; then :
6954  xorg_cv_cc_flag_unused_command_line_argument=yes
6955else
6956  xorg_cv_cc_flag_unused_command_line_argument=no
6957fi
6958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959fi
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6961$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6962	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6963	CFLAGS="$xorg_testset_save_CFLAGS"
6964fi
6965
6966found="no"
6967
6968	if test $found = "no" ; then
6969		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6971		fi
6972
6973		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6975		fi
6976
6977		CFLAGS="$CFLAGS -Wredundant-decls"
6978
6979		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6980$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6981		cacheid=xorg_cv_cc_flag__Wredundant_decls
6982		if eval \${$cacheid+:} false; then :
6983  $as_echo_n "(cached) " >&6
6984else
6985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986/* end confdefs.h.  */
6987int i;
6988int
6989main ()
6990{
6991
6992  ;
6993  return 0;
6994}
6995_ACEOF
6996if ac_fn_c_try_link "$LINENO"; then :
6997  eval $cacheid=yes
6998else
6999  eval $cacheid=no
7000fi
7001rm -f core conftest.err conftest.$ac_objext \
7002    conftest$ac_exeext conftest.$ac_ext
7003fi
7004
7005
7006		CFLAGS="$xorg_testset_save_CFLAGS"
7007
7008		eval supported=\$$cacheid
7009		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7010$as_echo "$supported" >&6; }
7011		if test "$supported" = "yes" ; then
7012			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7013			found="yes"
7014		fi
7015	fi
7016
7017
7018
7019# These are currently disabled because they are noisy.  They will be enabled
7020# in the future once the codebase is sufficiently modernized to silence
7021# them.  For now, I don't want them to drown out the other warnings.
7022# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
7023# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7024# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7025
7026# Turn some warnings into errors, so we don't accidently get successful builds
7027# when there are problems that should be fixed.
7028
7029if test "x$SELECTIVE_WERROR" = "xyes" ; then
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043xorg_testset_save_CFLAGS="$CFLAGS"
7044
7045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7046	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7050  $as_echo_n "(cached) " >&6
7051else
7052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053/* end confdefs.h.  */
7054int i;
7055_ACEOF
7056if ac_fn_c_try_compile "$LINENO"; then :
7057  xorg_cv_cc_flag_unknown_warning_option=yes
7058else
7059  xorg_cv_cc_flag_unknown_warning_option=no
7060fi
7061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062fi
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7065	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7066	CFLAGS="$xorg_testset_save_CFLAGS"
7067fi
7068
7069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7070	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7071		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7072	fi
7073	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080/* end confdefs.h.  */
7081int i;
7082_ACEOF
7083if ac_fn_c_try_compile "$LINENO"; then :
7084  xorg_cv_cc_flag_unused_command_line_argument=yes
7085else
7086  xorg_cv_cc_flag_unused_command_line_argument=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089fi
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7093	CFLAGS="$xorg_testset_save_CFLAGS"
7094fi
7095
7096found="no"
7097
7098	if test $found = "no" ; then
7099		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7101		fi
7102
7103		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7105		fi
7106
7107		CFLAGS="$CFLAGS -Werror=implicit"
7108
7109		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7110$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7111		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
7112		if eval \${$cacheid+:} false; then :
7113  $as_echo_n "(cached) " >&6
7114else
7115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117int i;
7118int
7119main ()
7120{
7121
7122  ;
7123  return 0;
7124}
7125_ACEOF
7126if ac_fn_c_try_link "$LINENO"; then :
7127  eval $cacheid=yes
7128else
7129  eval $cacheid=no
7130fi
7131rm -f core conftest.err conftest.$ac_objext \
7132    conftest$ac_exeext conftest.$ac_ext
7133fi
7134
7135
7136		CFLAGS="$xorg_testset_save_CFLAGS"
7137
7138		eval supported=\$$cacheid
7139		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7140$as_echo "$supported" >&6; }
7141		if test "$supported" = "yes" ; then
7142			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7143			found="yes"
7144		fi
7145	fi
7146
7147	if test $found = "no" ; then
7148		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7150		fi
7151
7152		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7154		fi
7155
7156		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7157
7158		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7159$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7160		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7161		if eval \${$cacheid+:} false; then :
7162  $as_echo_n "(cached) " >&6
7163else
7164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165/* end confdefs.h.  */
7166int i;
7167int
7168main ()
7169{
7170
7171  ;
7172  return 0;
7173}
7174_ACEOF
7175if ac_fn_c_try_link "$LINENO"; then :
7176  eval $cacheid=yes
7177else
7178  eval $cacheid=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext \
7181    conftest$ac_exeext conftest.$ac_ext
7182fi
7183
7184
7185		CFLAGS="$xorg_testset_save_CFLAGS"
7186
7187		eval supported=\$$cacheid
7188		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7189$as_echo "$supported" >&6; }
7190		if test "$supported" = "yes" ; then
7191			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7192			found="yes"
7193		fi
7194	fi
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210xorg_testset_save_CFLAGS="$CFLAGS"
7211
7212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7215$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7216if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7217  $as_echo_n "(cached) " >&6
7218else
7219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h.  */
7221int i;
7222_ACEOF
7223if ac_fn_c_try_compile "$LINENO"; then :
7224  xorg_cv_cc_flag_unknown_warning_option=yes
7225else
7226  xorg_cv_cc_flag_unknown_warning_option=no
7227fi
7228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229fi
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7231$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7232	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7233	CFLAGS="$xorg_testset_save_CFLAGS"
7234fi
7235
7236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7237	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7238		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7239	fi
7240	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7242$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7243if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7244  $as_echo_n "(cached) " >&6
7245else
7246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247/* end confdefs.h.  */
7248int i;
7249_ACEOF
7250if ac_fn_c_try_compile "$LINENO"; then :
7251  xorg_cv_cc_flag_unused_command_line_argument=yes
7252else
7253  xorg_cv_cc_flag_unused_command_line_argument=no
7254fi
7255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256fi
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7258$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7260	CFLAGS="$xorg_testset_save_CFLAGS"
7261fi
7262
7263found="no"
7264
7265	if test $found = "no" ; then
7266		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7268		fi
7269
7270		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7272		fi
7273
7274		CFLAGS="$CFLAGS -Werror=nonnull"
7275
7276		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7277$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7278		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7279		if eval \${$cacheid+:} false; then :
7280  $as_echo_n "(cached) " >&6
7281else
7282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283/* end confdefs.h.  */
7284int i;
7285int
7286main ()
7287{
7288
7289  ;
7290  return 0;
7291}
7292_ACEOF
7293if ac_fn_c_try_link "$LINENO"; then :
7294  eval $cacheid=yes
7295else
7296  eval $cacheid=no
7297fi
7298rm -f core conftest.err conftest.$ac_objext \
7299    conftest$ac_exeext conftest.$ac_ext
7300fi
7301
7302
7303		CFLAGS="$xorg_testset_save_CFLAGS"
7304
7305		eval supported=\$$cacheid
7306		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7307$as_echo "$supported" >&6; }
7308		if test "$supported" = "yes" ; then
7309			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7310			found="yes"
7311		fi
7312	fi
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328xorg_testset_save_CFLAGS="$CFLAGS"
7329
7330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7331	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7333$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7334if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338/* end confdefs.h.  */
7339int i;
7340_ACEOF
7341if ac_fn_c_try_compile "$LINENO"; then :
7342  xorg_cv_cc_flag_unknown_warning_option=yes
7343else
7344  xorg_cv_cc_flag_unknown_warning_option=no
7345fi
7346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347fi
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7349$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7350	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7351	CFLAGS="$xorg_testset_save_CFLAGS"
7352fi
7353
7354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7355	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7356		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7357	fi
7358	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7360$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7361if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7362  $as_echo_n "(cached) " >&6
7363else
7364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366int i;
7367_ACEOF
7368if ac_fn_c_try_compile "$LINENO"; then :
7369  xorg_cv_cc_flag_unused_command_line_argument=yes
7370else
7371  xorg_cv_cc_flag_unused_command_line_argument=no
7372fi
7373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374fi
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7376$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7378	CFLAGS="$xorg_testset_save_CFLAGS"
7379fi
7380
7381found="no"
7382
7383	if test $found = "no" ; then
7384		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7386		fi
7387
7388		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7390		fi
7391
7392		CFLAGS="$CFLAGS -Werror=init-self"
7393
7394		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7395$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7396		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7397		if eval \${$cacheid+:} false; then :
7398  $as_echo_n "(cached) " >&6
7399else
7400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401/* end confdefs.h.  */
7402int i;
7403int
7404main ()
7405{
7406
7407  ;
7408  return 0;
7409}
7410_ACEOF
7411if ac_fn_c_try_link "$LINENO"; then :
7412  eval $cacheid=yes
7413else
7414  eval $cacheid=no
7415fi
7416rm -f core conftest.err conftest.$ac_objext \
7417    conftest$ac_exeext conftest.$ac_ext
7418fi
7419
7420
7421		CFLAGS="$xorg_testset_save_CFLAGS"
7422
7423		eval supported=\$$cacheid
7424		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7425$as_echo "$supported" >&6; }
7426		if test "$supported" = "yes" ; then
7427			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7428			found="yes"
7429		fi
7430	fi
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446xorg_testset_save_CFLAGS="$CFLAGS"
7447
7448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7449	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7451$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7452if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7453  $as_echo_n "(cached) " >&6
7454else
7455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h.  */
7457int i;
7458_ACEOF
7459if ac_fn_c_try_compile "$LINENO"; then :
7460  xorg_cv_cc_flag_unknown_warning_option=yes
7461else
7462  xorg_cv_cc_flag_unknown_warning_option=no
7463fi
7464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465fi
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7467$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7468	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7469	CFLAGS="$xorg_testset_save_CFLAGS"
7470fi
7471
7472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7473	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7474		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7475	fi
7476	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7478$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7479if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7480  $as_echo_n "(cached) " >&6
7481else
7482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483/* end confdefs.h.  */
7484int i;
7485_ACEOF
7486if ac_fn_c_try_compile "$LINENO"; then :
7487  xorg_cv_cc_flag_unused_command_line_argument=yes
7488else
7489  xorg_cv_cc_flag_unused_command_line_argument=no
7490fi
7491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492fi
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7494$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7495	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7496	CFLAGS="$xorg_testset_save_CFLAGS"
7497fi
7498
7499found="no"
7500
7501	if test $found = "no" ; then
7502		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7503			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7504		fi
7505
7506		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7507			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7508		fi
7509
7510		CFLAGS="$CFLAGS -Werror=main"
7511
7512		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7513$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7514		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7515		if eval \${$cacheid+:} false; then :
7516  $as_echo_n "(cached) " >&6
7517else
7518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519/* end confdefs.h.  */
7520int i;
7521int
7522main ()
7523{
7524
7525  ;
7526  return 0;
7527}
7528_ACEOF
7529if ac_fn_c_try_link "$LINENO"; then :
7530  eval $cacheid=yes
7531else
7532  eval $cacheid=no
7533fi
7534rm -f core conftest.err conftest.$ac_objext \
7535    conftest$ac_exeext conftest.$ac_ext
7536fi
7537
7538
7539		CFLAGS="$xorg_testset_save_CFLAGS"
7540
7541		eval supported=\$$cacheid
7542		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7543$as_echo "$supported" >&6; }
7544		if test "$supported" = "yes" ; then
7545			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7546			found="yes"
7547		fi
7548	fi
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564xorg_testset_save_CFLAGS="$CFLAGS"
7565
7566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7568	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7569$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7570if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7571  $as_echo_n "(cached) " >&6
7572else
7573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574/* end confdefs.h.  */
7575int i;
7576_ACEOF
7577if ac_fn_c_try_compile "$LINENO"; then :
7578  xorg_cv_cc_flag_unknown_warning_option=yes
7579else
7580  xorg_cv_cc_flag_unknown_warning_option=no
7581fi
7582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583fi
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7585$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7586	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7587	CFLAGS="$xorg_testset_save_CFLAGS"
7588fi
7589
7590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7591	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7592		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593	fi
7594	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7596$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7597if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7598  $as_echo_n "(cached) " >&6
7599else
7600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601/* end confdefs.h.  */
7602int i;
7603_ACEOF
7604if ac_fn_c_try_compile "$LINENO"; then :
7605  xorg_cv_cc_flag_unused_command_line_argument=yes
7606else
7607  xorg_cv_cc_flag_unused_command_line_argument=no
7608fi
7609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610fi
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7612$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7613	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7614	CFLAGS="$xorg_testset_save_CFLAGS"
7615fi
7616
7617found="no"
7618
7619	if test $found = "no" ; then
7620		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7621			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7622		fi
7623
7624		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7625			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7626		fi
7627
7628		CFLAGS="$CFLAGS -Werror=missing-braces"
7629
7630		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7631$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7632		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7633		if eval \${$cacheid+:} false; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h.  */
7638int i;
7639int
7640main ()
7641{
7642
7643  ;
7644  return 0;
7645}
7646_ACEOF
7647if ac_fn_c_try_link "$LINENO"; then :
7648  eval $cacheid=yes
7649else
7650  eval $cacheid=no
7651fi
7652rm -f core conftest.err conftest.$ac_objext \
7653    conftest$ac_exeext conftest.$ac_ext
7654fi
7655
7656
7657		CFLAGS="$xorg_testset_save_CFLAGS"
7658
7659		eval supported=\$$cacheid
7660		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7661$as_echo "$supported" >&6; }
7662		if test "$supported" = "yes" ; then
7663			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7664			found="yes"
7665		fi
7666	fi
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682xorg_testset_save_CFLAGS="$CFLAGS"
7683
7684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7685	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7687$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7688if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7689  $as_echo_n "(cached) " >&6
7690else
7691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692/* end confdefs.h.  */
7693int i;
7694_ACEOF
7695if ac_fn_c_try_compile "$LINENO"; then :
7696  xorg_cv_cc_flag_unknown_warning_option=yes
7697else
7698  xorg_cv_cc_flag_unknown_warning_option=no
7699fi
7700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701fi
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7703$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7704	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7705	CFLAGS="$xorg_testset_save_CFLAGS"
7706fi
7707
7708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7709	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7710		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711	fi
7712	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7714$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7715if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7716  $as_echo_n "(cached) " >&6
7717else
7718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719/* end confdefs.h.  */
7720int i;
7721_ACEOF
7722if ac_fn_c_try_compile "$LINENO"; then :
7723  xorg_cv_cc_flag_unused_command_line_argument=yes
7724else
7725  xorg_cv_cc_flag_unused_command_line_argument=no
7726fi
7727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728fi
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7730$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7731	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7732	CFLAGS="$xorg_testset_save_CFLAGS"
7733fi
7734
7735found="no"
7736
7737	if test $found = "no" ; then
7738		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7739			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7740		fi
7741
7742		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7743			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7744		fi
7745
7746		CFLAGS="$CFLAGS -Werror=sequence-point"
7747
7748		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7749$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7750		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7751		if eval \${$cacheid+:} false; then :
7752  $as_echo_n "(cached) " >&6
7753else
7754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h.  */
7756int i;
7757int
7758main ()
7759{
7760
7761  ;
7762  return 0;
7763}
7764_ACEOF
7765if ac_fn_c_try_link "$LINENO"; then :
7766  eval $cacheid=yes
7767else
7768  eval $cacheid=no
7769fi
7770rm -f core conftest.err conftest.$ac_objext \
7771    conftest$ac_exeext conftest.$ac_ext
7772fi
7773
7774
7775		CFLAGS="$xorg_testset_save_CFLAGS"
7776
7777		eval supported=\$$cacheid
7778		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7779$as_echo "$supported" >&6; }
7780		if test "$supported" = "yes" ; then
7781			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7782			found="yes"
7783		fi
7784	fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800xorg_testset_save_CFLAGS="$CFLAGS"
7801
7802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7803	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7805$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7806if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7807  $as_echo_n "(cached) " >&6
7808else
7809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h.  */
7811int i;
7812_ACEOF
7813if ac_fn_c_try_compile "$LINENO"; then :
7814  xorg_cv_cc_flag_unknown_warning_option=yes
7815else
7816  xorg_cv_cc_flag_unknown_warning_option=no
7817fi
7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819fi
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7821$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7822	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7823	CFLAGS="$xorg_testset_save_CFLAGS"
7824fi
7825
7826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7827	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7828		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7829	fi
7830	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7832$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7833if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h.  */
7838int i;
7839_ACEOF
7840if ac_fn_c_try_compile "$LINENO"; then :
7841  xorg_cv_cc_flag_unused_command_line_argument=yes
7842else
7843  xorg_cv_cc_flag_unused_command_line_argument=no
7844fi
7845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846fi
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7848$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7849	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7850	CFLAGS="$xorg_testset_save_CFLAGS"
7851fi
7852
7853found="no"
7854
7855	if test $found = "no" ; then
7856		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7858		fi
7859
7860		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7862		fi
7863
7864		CFLAGS="$CFLAGS -Werror=return-type"
7865
7866		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7867$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7868		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7869		if eval \${$cacheid+:} false; then :
7870  $as_echo_n "(cached) " >&6
7871else
7872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h.  */
7874int i;
7875int
7876main ()
7877{
7878
7879  ;
7880  return 0;
7881}
7882_ACEOF
7883if ac_fn_c_try_link "$LINENO"; then :
7884  eval $cacheid=yes
7885else
7886  eval $cacheid=no
7887fi
7888rm -f core conftest.err conftest.$ac_objext \
7889    conftest$ac_exeext conftest.$ac_ext
7890fi
7891
7892
7893		CFLAGS="$xorg_testset_save_CFLAGS"
7894
7895		eval supported=\$$cacheid
7896		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7897$as_echo "$supported" >&6; }
7898		if test "$supported" = "yes" ; then
7899			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7900			found="yes"
7901		fi
7902	fi
7903
7904	if test $found = "no" ; then
7905		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7907		fi
7908
7909		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7911		fi
7912
7913		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7914
7915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7916$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7917		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7918		if eval \${$cacheid+:} false; then :
7919  $as_echo_n "(cached) " >&6
7920else
7921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922/* end confdefs.h.  */
7923int i;
7924int
7925main ()
7926{
7927
7928  ;
7929  return 0;
7930}
7931_ACEOF
7932if ac_fn_c_try_link "$LINENO"; then :
7933  eval $cacheid=yes
7934else
7935  eval $cacheid=no
7936fi
7937rm -f core conftest.err conftest.$ac_objext \
7938    conftest$ac_exeext conftest.$ac_ext
7939fi
7940
7941
7942		CFLAGS="$xorg_testset_save_CFLAGS"
7943
7944		eval supported=\$$cacheid
7945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7946$as_echo "$supported" >&6; }
7947		if test "$supported" = "yes" ; then
7948			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7949			found="yes"
7950		fi
7951	fi
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967xorg_testset_save_CFLAGS="$CFLAGS"
7968
7969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7974  $as_echo_n "(cached) " >&6
7975else
7976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977/* end confdefs.h.  */
7978int i;
7979_ACEOF
7980if ac_fn_c_try_compile "$LINENO"; then :
7981  xorg_cv_cc_flag_unknown_warning_option=yes
7982else
7983  xorg_cv_cc_flag_unknown_warning_option=no
7984fi
7985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986fi
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7990	CFLAGS="$xorg_testset_save_CFLAGS"
7991fi
7992
7993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7996	fi
7997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8001  $as_echo_n "(cached) " >&6
8002else
8003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004/* end confdefs.h.  */
8005int i;
8006_ACEOF
8007if ac_fn_c_try_compile "$LINENO"; then :
8008  xorg_cv_cc_flag_unused_command_line_argument=yes
8009else
8010  xorg_cv_cc_flag_unused_command_line_argument=no
8011fi
8012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013fi
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8017	CFLAGS="$xorg_testset_save_CFLAGS"
8018fi
8019
8020found="no"
8021
8022	if test $found = "no" ; then
8023		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8025		fi
8026
8027		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8029		fi
8030
8031		CFLAGS="$CFLAGS -Werror=trigraphs"
8032
8033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8034$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8035		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
8036		if eval \${$cacheid+:} false; then :
8037  $as_echo_n "(cached) " >&6
8038else
8039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040/* end confdefs.h.  */
8041int i;
8042int
8043main ()
8044{
8045
8046  ;
8047  return 0;
8048}
8049_ACEOF
8050if ac_fn_c_try_link "$LINENO"; then :
8051  eval $cacheid=yes
8052else
8053  eval $cacheid=no
8054fi
8055rm -f core conftest.err conftest.$ac_objext \
8056    conftest$ac_exeext conftest.$ac_ext
8057fi
8058
8059
8060		CFLAGS="$xorg_testset_save_CFLAGS"
8061
8062		eval supported=\$$cacheid
8063		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8064$as_echo "$supported" >&6; }
8065		if test "$supported" = "yes" ; then
8066			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8067			found="yes"
8068		fi
8069	fi
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085xorg_testset_save_CFLAGS="$CFLAGS"
8086
8087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8092  $as_echo_n "(cached) " >&6
8093else
8094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095/* end confdefs.h.  */
8096int i;
8097_ACEOF
8098if ac_fn_c_try_compile "$LINENO"; then :
8099  xorg_cv_cc_flag_unknown_warning_option=yes
8100else
8101  xorg_cv_cc_flag_unknown_warning_option=no
8102fi
8103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104fi
8105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8108	CFLAGS="$xorg_testset_save_CFLAGS"
8109fi
8110
8111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8114	fi
8115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122/* end confdefs.h.  */
8123int i;
8124_ACEOF
8125if ac_fn_c_try_compile "$LINENO"; then :
8126  xorg_cv_cc_flag_unused_command_line_argument=yes
8127else
8128  xorg_cv_cc_flag_unused_command_line_argument=no
8129fi
8130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131fi
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8135	CFLAGS="$xorg_testset_save_CFLAGS"
8136fi
8137
8138found="no"
8139
8140	if test $found = "no" ; then
8141		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8143		fi
8144
8145		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8147		fi
8148
8149		CFLAGS="$CFLAGS -Werror=array-bounds"
8150
8151		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8152$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8153		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8154		if eval \${$cacheid+:} false; then :
8155  $as_echo_n "(cached) " >&6
8156else
8157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158/* end confdefs.h.  */
8159int i;
8160int
8161main ()
8162{
8163
8164  ;
8165  return 0;
8166}
8167_ACEOF
8168if ac_fn_c_try_link "$LINENO"; then :
8169  eval $cacheid=yes
8170else
8171  eval $cacheid=no
8172fi
8173rm -f core conftest.err conftest.$ac_objext \
8174    conftest$ac_exeext conftest.$ac_ext
8175fi
8176
8177
8178		CFLAGS="$xorg_testset_save_CFLAGS"
8179
8180		eval supported=\$$cacheid
8181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8182$as_echo "$supported" >&6; }
8183		if test "$supported" = "yes" ; then
8184			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8185			found="yes"
8186		fi
8187	fi
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203xorg_testset_save_CFLAGS="$CFLAGS"
8204
8205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8210  $as_echo_n "(cached) " >&6
8211else
8212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213/* end confdefs.h.  */
8214int i;
8215_ACEOF
8216if ac_fn_c_try_compile "$LINENO"; then :
8217  xorg_cv_cc_flag_unknown_warning_option=yes
8218else
8219  xorg_cv_cc_flag_unknown_warning_option=no
8220fi
8221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222fi
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8226	CFLAGS="$xorg_testset_save_CFLAGS"
8227fi
8228
8229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8232	fi
8233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8237  $as_echo_n "(cached) " >&6
8238else
8239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240/* end confdefs.h.  */
8241int i;
8242_ACEOF
8243if ac_fn_c_try_compile "$LINENO"; then :
8244  xorg_cv_cc_flag_unused_command_line_argument=yes
8245else
8246  xorg_cv_cc_flag_unused_command_line_argument=no
8247fi
8248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249fi
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8253	CFLAGS="$xorg_testset_save_CFLAGS"
8254fi
8255
8256found="no"
8257
8258	if test $found = "no" ; then
8259		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8261		fi
8262
8263		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8265		fi
8266
8267		CFLAGS="$CFLAGS -Werror=write-strings"
8268
8269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8270$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8271		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8272		if eval \${$cacheid+:} false; then :
8273  $as_echo_n "(cached) " >&6
8274else
8275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276/* end confdefs.h.  */
8277int i;
8278int
8279main ()
8280{
8281
8282  ;
8283  return 0;
8284}
8285_ACEOF
8286if ac_fn_c_try_link "$LINENO"; then :
8287  eval $cacheid=yes
8288else
8289  eval $cacheid=no
8290fi
8291rm -f core conftest.err conftest.$ac_objext \
8292    conftest$ac_exeext conftest.$ac_ext
8293fi
8294
8295
8296		CFLAGS="$xorg_testset_save_CFLAGS"
8297
8298		eval supported=\$$cacheid
8299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8300$as_echo "$supported" >&6; }
8301		if test "$supported" = "yes" ; then
8302			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8303			found="yes"
8304		fi
8305	fi
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321xorg_testset_save_CFLAGS="$CFLAGS"
8322
8323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8328  $as_echo_n "(cached) " >&6
8329else
8330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331/* end confdefs.h.  */
8332int i;
8333_ACEOF
8334if ac_fn_c_try_compile "$LINENO"; then :
8335  xorg_cv_cc_flag_unknown_warning_option=yes
8336else
8337  xorg_cv_cc_flag_unknown_warning_option=no
8338fi
8339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340fi
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8344	CFLAGS="$xorg_testset_save_CFLAGS"
8345fi
8346
8347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8350	fi
8351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8355  $as_echo_n "(cached) " >&6
8356else
8357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h.  */
8359int i;
8360_ACEOF
8361if ac_fn_c_try_compile "$LINENO"; then :
8362  xorg_cv_cc_flag_unused_command_line_argument=yes
8363else
8364  xorg_cv_cc_flag_unused_command_line_argument=no
8365fi
8366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367fi
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8371	CFLAGS="$xorg_testset_save_CFLAGS"
8372fi
8373
8374found="no"
8375
8376	if test $found = "no" ; then
8377		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8379		fi
8380
8381		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8383		fi
8384
8385		CFLAGS="$CFLAGS -Werror=address"
8386
8387		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8388$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8389		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8390		if eval \${$cacheid+:} false; then :
8391  $as_echo_n "(cached) " >&6
8392else
8393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h.  */
8395int i;
8396int
8397main ()
8398{
8399
8400  ;
8401  return 0;
8402}
8403_ACEOF
8404if ac_fn_c_try_link "$LINENO"; then :
8405  eval $cacheid=yes
8406else
8407  eval $cacheid=no
8408fi
8409rm -f core conftest.err conftest.$ac_objext \
8410    conftest$ac_exeext conftest.$ac_ext
8411fi
8412
8413
8414		CFLAGS="$xorg_testset_save_CFLAGS"
8415
8416		eval supported=\$$cacheid
8417		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8418$as_echo "$supported" >&6; }
8419		if test "$supported" = "yes" ; then
8420			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8421			found="yes"
8422		fi
8423	fi
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439xorg_testset_save_CFLAGS="$CFLAGS"
8440
8441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449/* end confdefs.h.  */
8450int i;
8451_ACEOF
8452if ac_fn_c_try_compile "$LINENO"; then :
8453  xorg_cv_cc_flag_unknown_warning_option=yes
8454else
8455  xorg_cv_cc_flag_unknown_warning_option=no
8456fi
8457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458fi
8459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8462	CFLAGS="$xorg_testset_save_CFLAGS"
8463fi
8464
8465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8468	fi
8469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h.  */
8477int i;
8478_ACEOF
8479if ac_fn_c_try_compile "$LINENO"; then :
8480  xorg_cv_cc_flag_unused_command_line_argument=yes
8481else
8482  xorg_cv_cc_flag_unused_command_line_argument=no
8483fi
8484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485fi
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8489	CFLAGS="$xorg_testset_save_CFLAGS"
8490fi
8491
8492found="no"
8493
8494	if test $found = "no" ; then
8495		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8497		fi
8498
8499		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8501		fi
8502
8503		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8504
8505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8506$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8507		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8508		if eval \${$cacheid+:} false; then :
8509  $as_echo_n "(cached) " >&6
8510else
8511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512/* end confdefs.h.  */
8513int i;
8514int
8515main ()
8516{
8517
8518  ;
8519  return 0;
8520}
8521_ACEOF
8522if ac_fn_c_try_link "$LINENO"; then :
8523  eval $cacheid=yes
8524else
8525  eval $cacheid=no
8526fi
8527rm -f core conftest.err conftest.$ac_objext \
8528    conftest$ac_exeext conftest.$ac_ext
8529fi
8530
8531
8532		CFLAGS="$xorg_testset_save_CFLAGS"
8533
8534		eval supported=\$$cacheid
8535		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8536$as_echo "$supported" >&6; }
8537		if test "$supported" = "yes" ; then
8538			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8539			found="yes"
8540		fi
8541	fi
8542
8543	if test $found = "no" ; then
8544		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8546		fi
8547
8548		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8550		fi
8551
8552		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8553
8554		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8555$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8556		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8557		if eval \${$cacheid+:} false; then :
8558  $as_echo_n "(cached) " >&6
8559else
8560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561/* end confdefs.h.  */
8562int i;
8563int
8564main ()
8565{
8566
8567  ;
8568  return 0;
8569}
8570_ACEOF
8571if ac_fn_c_try_link "$LINENO"; then :
8572  eval $cacheid=yes
8573else
8574  eval $cacheid=no
8575fi
8576rm -f core conftest.err conftest.$ac_objext \
8577    conftest$ac_exeext conftest.$ac_ext
8578fi
8579
8580
8581		CFLAGS="$xorg_testset_save_CFLAGS"
8582
8583		eval supported=\$$cacheid
8584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8585$as_echo "$supported" >&6; }
8586		if test "$supported" = "yes" ; then
8587			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8588			found="yes"
8589		fi
8590	fi
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606xorg_testset_save_CFLAGS="$CFLAGS"
8607
8608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8609	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8613  $as_echo_n "(cached) " >&6
8614else
8615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616/* end confdefs.h.  */
8617int i;
8618_ACEOF
8619if ac_fn_c_try_compile "$LINENO"; then :
8620  xorg_cv_cc_flag_unknown_warning_option=yes
8621else
8622  xorg_cv_cc_flag_unknown_warning_option=no
8623fi
8624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625fi
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8629	CFLAGS="$xorg_testset_save_CFLAGS"
8630fi
8631
8632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8635	fi
8636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8640  $as_echo_n "(cached) " >&6
8641else
8642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643/* end confdefs.h.  */
8644int i;
8645_ACEOF
8646if ac_fn_c_try_compile "$LINENO"; then :
8647  xorg_cv_cc_flag_unused_command_line_argument=yes
8648else
8649  xorg_cv_cc_flag_unused_command_line_argument=no
8650fi
8651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652fi
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8656	CFLAGS="$xorg_testset_save_CFLAGS"
8657fi
8658
8659found="no"
8660
8661	if test $found = "no" ; then
8662		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8664		fi
8665
8666		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8668		fi
8669
8670		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8671
8672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8673$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8674		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8675		if eval \${$cacheid+:} false; then :
8676  $as_echo_n "(cached) " >&6
8677else
8678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679/* end confdefs.h.  */
8680int i;
8681int
8682main ()
8683{
8684
8685  ;
8686  return 0;
8687}
8688_ACEOF
8689if ac_fn_c_try_link "$LINENO"; then :
8690  eval $cacheid=yes
8691else
8692  eval $cacheid=no
8693fi
8694rm -f core conftest.err conftest.$ac_objext \
8695    conftest$ac_exeext conftest.$ac_ext
8696fi
8697
8698
8699		CFLAGS="$xorg_testset_save_CFLAGS"
8700
8701		eval supported=\$$cacheid
8702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8703$as_echo "$supported" >&6; }
8704		if test "$supported" = "yes" ; then
8705			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8706			found="yes"
8707		fi
8708	fi
8709
8710 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8711else
8712{ $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
8713$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;}
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727xorg_testset_save_CFLAGS="$CFLAGS"
8728
8729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8730	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8731	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8732$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8733if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8734  $as_echo_n "(cached) " >&6
8735else
8736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737/* end confdefs.h.  */
8738int i;
8739_ACEOF
8740if ac_fn_c_try_compile "$LINENO"; then :
8741  xorg_cv_cc_flag_unknown_warning_option=yes
8742else
8743  xorg_cv_cc_flag_unknown_warning_option=no
8744fi
8745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746fi
8747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8748$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8749	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8750	CFLAGS="$xorg_testset_save_CFLAGS"
8751fi
8752
8753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8754	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8755		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8756	fi
8757	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8759$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8760if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8761  $as_echo_n "(cached) " >&6
8762else
8763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764/* end confdefs.h.  */
8765int i;
8766_ACEOF
8767if ac_fn_c_try_compile "$LINENO"; then :
8768  xorg_cv_cc_flag_unused_command_line_argument=yes
8769else
8770  xorg_cv_cc_flag_unused_command_line_argument=no
8771fi
8772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8773fi
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8775$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8776	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8777	CFLAGS="$xorg_testset_save_CFLAGS"
8778fi
8779
8780found="no"
8781
8782	if test $found = "no" ; then
8783		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8785		fi
8786
8787		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8789		fi
8790
8791		CFLAGS="$CFLAGS -Wimplicit"
8792
8793		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8794$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8795		cacheid=xorg_cv_cc_flag__Wimplicit
8796		if eval \${$cacheid+:} false; then :
8797  $as_echo_n "(cached) " >&6
8798else
8799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800/* end confdefs.h.  */
8801int i;
8802int
8803main ()
8804{
8805
8806  ;
8807  return 0;
8808}
8809_ACEOF
8810if ac_fn_c_try_link "$LINENO"; then :
8811  eval $cacheid=yes
8812else
8813  eval $cacheid=no
8814fi
8815rm -f core conftest.err conftest.$ac_objext \
8816    conftest$ac_exeext conftest.$ac_ext
8817fi
8818
8819
8820		CFLAGS="$xorg_testset_save_CFLAGS"
8821
8822		eval supported=\$$cacheid
8823		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8824$as_echo "$supported" >&6; }
8825		if test "$supported" = "yes" ; then
8826			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8827			found="yes"
8828		fi
8829	fi
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845xorg_testset_save_CFLAGS="$CFLAGS"
8846
8847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8850$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8851if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8852  $as_echo_n "(cached) " >&6
8853else
8854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855/* end confdefs.h.  */
8856int i;
8857_ACEOF
8858if ac_fn_c_try_compile "$LINENO"; then :
8859  xorg_cv_cc_flag_unknown_warning_option=yes
8860else
8861  xorg_cv_cc_flag_unknown_warning_option=no
8862fi
8863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864fi
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8866$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8868	CFLAGS="$xorg_testset_save_CFLAGS"
8869fi
8870
8871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874	fi
8875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8877$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8878if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8879  $as_echo_n "(cached) " >&6
8880else
8881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882/* end confdefs.h.  */
8883int i;
8884_ACEOF
8885if ac_fn_c_try_compile "$LINENO"; then :
8886  xorg_cv_cc_flag_unused_command_line_argument=yes
8887else
8888  xorg_cv_cc_flag_unused_command_line_argument=no
8889fi
8890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8891fi
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8893$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8895	CFLAGS="$xorg_testset_save_CFLAGS"
8896fi
8897
8898found="no"
8899
8900	if test $found = "no" ; then
8901		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8903		fi
8904
8905		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8907		fi
8908
8909		CFLAGS="$CFLAGS -Wnonnull"
8910
8911		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8912$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8913		cacheid=xorg_cv_cc_flag__Wnonnull
8914		if eval \${$cacheid+:} false; then :
8915  $as_echo_n "(cached) " >&6
8916else
8917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918/* end confdefs.h.  */
8919int i;
8920int
8921main ()
8922{
8923
8924  ;
8925  return 0;
8926}
8927_ACEOF
8928if ac_fn_c_try_link "$LINENO"; then :
8929  eval $cacheid=yes
8930else
8931  eval $cacheid=no
8932fi
8933rm -f core conftest.err conftest.$ac_objext \
8934    conftest$ac_exeext conftest.$ac_ext
8935fi
8936
8937
8938		CFLAGS="$xorg_testset_save_CFLAGS"
8939
8940		eval supported=\$$cacheid
8941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8942$as_echo "$supported" >&6; }
8943		if test "$supported" = "yes" ; then
8944			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8945			found="yes"
8946		fi
8947	fi
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963xorg_testset_save_CFLAGS="$CFLAGS"
8964
8965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8970  $as_echo_n "(cached) " >&6
8971else
8972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973/* end confdefs.h.  */
8974int i;
8975_ACEOF
8976if ac_fn_c_try_compile "$LINENO"; then :
8977  xorg_cv_cc_flag_unknown_warning_option=yes
8978else
8979  xorg_cv_cc_flag_unknown_warning_option=no
8980fi
8981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982fi
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8986	CFLAGS="$xorg_testset_save_CFLAGS"
8987fi
8988
8989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8992	fi
8993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8997  $as_echo_n "(cached) " >&6
8998else
8999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000/* end confdefs.h.  */
9001int i;
9002_ACEOF
9003if ac_fn_c_try_compile "$LINENO"; then :
9004  xorg_cv_cc_flag_unused_command_line_argument=yes
9005else
9006  xorg_cv_cc_flag_unused_command_line_argument=no
9007fi
9008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9009fi
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9013	CFLAGS="$xorg_testset_save_CFLAGS"
9014fi
9015
9016found="no"
9017
9018	if test $found = "no" ; then
9019		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9021		fi
9022
9023		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9025		fi
9026
9027		CFLAGS="$CFLAGS -Winit-self"
9028
9029		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9030$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9031		cacheid=xorg_cv_cc_flag__Winit_self
9032		if eval \${$cacheid+:} false; then :
9033  $as_echo_n "(cached) " >&6
9034else
9035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036/* end confdefs.h.  */
9037int i;
9038int
9039main ()
9040{
9041
9042  ;
9043  return 0;
9044}
9045_ACEOF
9046if ac_fn_c_try_link "$LINENO"; then :
9047  eval $cacheid=yes
9048else
9049  eval $cacheid=no
9050fi
9051rm -f core conftest.err conftest.$ac_objext \
9052    conftest$ac_exeext conftest.$ac_ext
9053fi
9054
9055
9056		CFLAGS="$xorg_testset_save_CFLAGS"
9057
9058		eval supported=\$$cacheid
9059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9060$as_echo "$supported" >&6; }
9061		if test "$supported" = "yes" ; then
9062			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9063			found="yes"
9064		fi
9065	fi
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081xorg_testset_save_CFLAGS="$CFLAGS"
9082
9083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9088  $as_echo_n "(cached) " >&6
9089else
9090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091/* end confdefs.h.  */
9092int i;
9093_ACEOF
9094if ac_fn_c_try_compile "$LINENO"; then :
9095  xorg_cv_cc_flag_unknown_warning_option=yes
9096else
9097  xorg_cv_cc_flag_unknown_warning_option=no
9098fi
9099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9100fi
9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9104	CFLAGS="$xorg_testset_save_CFLAGS"
9105fi
9106
9107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110	fi
9111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9115  $as_echo_n "(cached) " >&6
9116else
9117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118/* end confdefs.h.  */
9119int i;
9120_ACEOF
9121if ac_fn_c_try_compile "$LINENO"; then :
9122  xorg_cv_cc_flag_unused_command_line_argument=yes
9123else
9124  xorg_cv_cc_flag_unused_command_line_argument=no
9125fi
9126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127fi
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9131	CFLAGS="$xorg_testset_save_CFLAGS"
9132fi
9133
9134found="no"
9135
9136	if test $found = "no" ; then
9137		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9139		fi
9140
9141		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9143		fi
9144
9145		CFLAGS="$CFLAGS -Wmain"
9146
9147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9148$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9149		cacheid=xorg_cv_cc_flag__Wmain
9150		if eval \${$cacheid+:} false; then :
9151  $as_echo_n "(cached) " >&6
9152else
9153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154/* end confdefs.h.  */
9155int i;
9156int
9157main ()
9158{
9159
9160  ;
9161  return 0;
9162}
9163_ACEOF
9164if ac_fn_c_try_link "$LINENO"; then :
9165  eval $cacheid=yes
9166else
9167  eval $cacheid=no
9168fi
9169rm -f core conftest.err conftest.$ac_objext \
9170    conftest$ac_exeext conftest.$ac_ext
9171fi
9172
9173
9174		CFLAGS="$xorg_testset_save_CFLAGS"
9175
9176		eval supported=\$$cacheid
9177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9178$as_echo "$supported" >&6; }
9179		if test "$supported" = "yes" ; then
9180			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9181			found="yes"
9182		fi
9183	fi
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199xorg_testset_save_CFLAGS="$CFLAGS"
9200
9201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9206  $as_echo_n "(cached) " >&6
9207else
9208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209/* end confdefs.h.  */
9210int i;
9211_ACEOF
9212if ac_fn_c_try_compile "$LINENO"; then :
9213  xorg_cv_cc_flag_unknown_warning_option=yes
9214else
9215  xorg_cv_cc_flag_unknown_warning_option=no
9216fi
9217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218fi
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9221	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9222	CFLAGS="$xorg_testset_save_CFLAGS"
9223fi
9224
9225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9226	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9227		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9228	fi
9229	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9233  $as_echo_n "(cached) " >&6
9234else
9235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236/* end confdefs.h.  */
9237int i;
9238_ACEOF
9239if ac_fn_c_try_compile "$LINENO"; then :
9240  xorg_cv_cc_flag_unused_command_line_argument=yes
9241else
9242  xorg_cv_cc_flag_unused_command_line_argument=no
9243fi
9244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245fi
9246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9249	CFLAGS="$xorg_testset_save_CFLAGS"
9250fi
9251
9252found="no"
9253
9254	if test $found = "no" ; then
9255		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9257		fi
9258
9259		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261		fi
9262
9263		CFLAGS="$CFLAGS -Wmissing-braces"
9264
9265		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9266$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9267		cacheid=xorg_cv_cc_flag__Wmissing_braces
9268		if eval \${$cacheid+:} false; then :
9269  $as_echo_n "(cached) " >&6
9270else
9271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272/* end confdefs.h.  */
9273int i;
9274int
9275main ()
9276{
9277
9278  ;
9279  return 0;
9280}
9281_ACEOF
9282if ac_fn_c_try_link "$LINENO"; then :
9283  eval $cacheid=yes
9284else
9285  eval $cacheid=no
9286fi
9287rm -f core conftest.err conftest.$ac_objext \
9288    conftest$ac_exeext conftest.$ac_ext
9289fi
9290
9291
9292		CFLAGS="$xorg_testset_save_CFLAGS"
9293
9294		eval supported=\$$cacheid
9295		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9296$as_echo "$supported" >&6; }
9297		if test "$supported" = "yes" ; then
9298			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9299			found="yes"
9300		fi
9301	fi
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317xorg_testset_save_CFLAGS="$CFLAGS"
9318
9319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9320	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9324  $as_echo_n "(cached) " >&6
9325else
9326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327/* end confdefs.h.  */
9328int i;
9329_ACEOF
9330if ac_fn_c_try_compile "$LINENO"; then :
9331  xorg_cv_cc_flag_unknown_warning_option=yes
9332else
9333  xorg_cv_cc_flag_unknown_warning_option=no
9334fi
9335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336fi
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9340	CFLAGS="$xorg_testset_save_CFLAGS"
9341fi
9342
9343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9346	fi
9347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9348	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9351  $as_echo_n "(cached) " >&6
9352else
9353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354/* end confdefs.h.  */
9355int i;
9356_ACEOF
9357if ac_fn_c_try_compile "$LINENO"; then :
9358  xorg_cv_cc_flag_unused_command_line_argument=yes
9359else
9360  xorg_cv_cc_flag_unused_command_line_argument=no
9361fi
9362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363fi
9364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9367	CFLAGS="$xorg_testset_save_CFLAGS"
9368fi
9369
9370found="no"
9371
9372	if test $found = "no" ; then
9373		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9375		fi
9376
9377		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9379		fi
9380
9381		CFLAGS="$CFLAGS -Wsequence-point"
9382
9383		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9384$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9385		cacheid=xorg_cv_cc_flag__Wsequence_point
9386		if eval \${$cacheid+:} false; then :
9387  $as_echo_n "(cached) " >&6
9388else
9389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390/* end confdefs.h.  */
9391int i;
9392int
9393main ()
9394{
9395
9396  ;
9397  return 0;
9398}
9399_ACEOF
9400if ac_fn_c_try_link "$LINENO"; then :
9401  eval $cacheid=yes
9402else
9403  eval $cacheid=no
9404fi
9405rm -f core conftest.err conftest.$ac_objext \
9406    conftest$ac_exeext conftest.$ac_ext
9407fi
9408
9409
9410		CFLAGS="$xorg_testset_save_CFLAGS"
9411
9412		eval supported=\$$cacheid
9413		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9414$as_echo "$supported" >&6; }
9415		if test "$supported" = "yes" ; then
9416			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9417			found="yes"
9418		fi
9419	fi
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435xorg_testset_save_CFLAGS="$CFLAGS"
9436
9437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9442  $as_echo_n "(cached) " >&6
9443else
9444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445/* end confdefs.h.  */
9446int i;
9447_ACEOF
9448if ac_fn_c_try_compile "$LINENO"; then :
9449  xorg_cv_cc_flag_unknown_warning_option=yes
9450else
9451  xorg_cv_cc_flag_unknown_warning_option=no
9452fi
9453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9454fi
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9457	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9458	CFLAGS="$xorg_testset_save_CFLAGS"
9459fi
9460
9461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9462	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9463		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9464	fi
9465	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9469  $as_echo_n "(cached) " >&6
9470else
9471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472/* end confdefs.h.  */
9473int i;
9474_ACEOF
9475if ac_fn_c_try_compile "$LINENO"; then :
9476  xorg_cv_cc_flag_unused_command_line_argument=yes
9477else
9478  xorg_cv_cc_flag_unused_command_line_argument=no
9479fi
9480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9481fi
9482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9484	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9485	CFLAGS="$xorg_testset_save_CFLAGS"
9486fi
9487
9488found="no"
9489
9490	if test $found = "no" ; then
9491		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9492			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9493		fi
9494
9495		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9496			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9497		fi
9498
9499		CFLAGS="$CFLAGS -Wreturn-type"
9500
9501		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9502$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9503		cacheid=xorg_cv_cc_flag__Wreturn_type
9504		if eval \${$cacheid+:} false; then :
9505  $as_echo_n "(cached) " >&6
9506else
9507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h.  */
9509int i;
9510int
9511main ()
9512{
9513
9514  ;
9515  return 0;
9516}
9517_ACEOF
9518if ac_fn_c_try_link "$LINENO"; then :
9519  eval $cacheid=yes
9520else
9521  eval $cacheid=no
9522fi
9523rm -f core conftest.err conftest.$ac_objext \
9524    conftest$ac_exeext conftest.$ac_ext
9525fi
9526
9527
9528		CFLAGS="$xorg_testset_save_CFLAGS"
9529
9530		eval supported=\$$cacheid
9531		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9532$as_echo "$supported" >&6; }
9533		if test "$supported" = "yes" ; then
9534			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9535			found="yes"
9536		fi
9537	fi
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553xorg_testset_save_CFLAGS="$CFLAGS"
9554
9555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9557	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9558$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9559if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9560  $as_echo_n "(cached) " >&6
9561else
9562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563/* end confdefs.h.  */
9564int i;
9565_ACEOF
9566if ac_fn_c_try_compile "$LINENO"; then :
9567  xorg_cv_cc_flag_unknown_warning_option=yes
9568else
9569  xorg_cv_cc_flag_unknown_warning_option=no
9570fi
9571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9572fi
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9574$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9575	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9576	CFLAGS="$xorg_testset_save_CFLAGS"
9577fi
9578
9579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9580	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9581		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9582	fi
9583	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9584	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9585$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9586if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9587  $as_echo_n "(cached) " >&6
9588else
9589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590/* end confdefs.h.  */
9591int i;
9592_ACEOF
9593if ac_fn_c_try_compile "$LINENO"; then :
9594  xorg_cv_cc_flag_unused_command_line_argument=yes
9595else
9596  xorg_cv_cc_flag_unused_command_line_argument=no
9597fi
9598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9599fi
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9601$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9602	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9603	CFLAGS="$xorg_testset_save_CFLAGS"
9604fi
9605
9606found="no"
9607
9608	if test $found = "no" ; then
9609		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9610			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9611		fi
9612
9613		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9614			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9615		fi
9616
9617		CFLAGS="$CFLAGS -Wtrigraphs"
9618
9619		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9620$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9621		cacheid=xorg_cv_cc_flag__Wtrigraphs
9622		if eval \${$cacheid+:} false; then :
9623  $as_echo_n "(cached) " >&6
9624else
9625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626/* end confdefs.h.  */
9627int i;
9628int
9629main ()
9630{
9631
9632  ;
9633  return 0;
9634}
9635_ACEOF
9636if ac_fn_c_try_link "$LINENO"; then :
9637  eval $cacheid=yes
9638else
9639  eval $cacheid=no
9640fi
9641rm -f core conftest.err conftest.$ac_objext \
9642    conftest$ac_exeext conftest.$ac_ext
9643fi
9644
9645
9646		CFLAGS="$xorg_testset_save_CFLAGS"
9647
9648		eval supported=\$$cacheid
9649		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9650$as_echo "$supported" >&6; }
9651		if test "$supported" = "yes" ; then
9652			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9653			found="yes"
9654		fi
9655	fi
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671xorg_testset_save_CFLAGS="$CFLAGS"
9672
9673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9674	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9678  $as_echo_n "(cached) " >&6
9679else
9680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681/* end confdefs.h.  */
9682int i;
9683_ACEOF
9684if ac_fn_c_try_compile "$LINENO"; then :
9685  xorg_cv_cc_flag_unknown_warning_option=yes
9686else
9687  xorg_cv_cc_flag_unknown_warning_option=no
9688fi
9689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9690fi
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9694	CFLAGS="$xorg_testset_save_CFLAGS"
9695fi
9696
9697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9700	fi
9701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9705  $as_echo_n "(cached) " >&6
9706else
9707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h.  */
9709int i;
9710_ACEOF
9711if ac_fn_c_try_compile "$LINENO"; then :
9712  xorg_cv_cc_flag_unused_command_line_argument=yes
9713else
9714  xorg_cv_cc_flag_unused_command_line_argument=no
9715fi
9716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717fi
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9721	CFLAGS="$xorg_testset_save_CFLAGS"
9722fi
9723
9724found="no"
9725
9726	if test $found = "no" ; then
9727		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9729		fi
9730
9731		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9733		fi
9734
9735		CFLAGS="$CFLAGS -Warray-bounds"
9736
9737		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9738$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9739		cacheid=xorg_cv_cc_flag__Warray_bounds
9740		if eval \${$cacheid+:} false; then :
9741  $as_echo_n "(cached) " >&6
9742else
9743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h.  */
9745int i;
9746int
9747main ()
9748{
9749
9750  ;
9751  return 0;
9752}
9753_ACEOF
9754if ac_fn_c_try_link "$LINENO"; then :
9755  eval $cacheid=yes
9756else
9757  eval $cacheid=no
9758fi
9759rm -f core conftest.err conftest.$ac_objext \
9760    conftest$ac_exeext conftest.$ac_ext
9761fi
9762
9763
9764		CFLAGS="$xorg_testset_save_CFLAGS"
9765
9766		eval supported=\$$cacheid
9767		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9768$as_echo "$supported" >&6; }
9769		if test "$supported" = "yes" ; then
9770			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9771			found="yes"
9772		fi
9773	fi
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789xorg_testset_save_CFLAGS="$CFLAGS"
9790
9791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9796  $as_echo_n "(cached) " >&6
9797else
9798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799/* end confdefs.h.  */
9800int i;
9801_ACEOF
9802if ac_fn_c_try_compile "$LINENO"; then :
9803  xorg_cv_cc_flag_unknown_warning_option=yes
9804else
9805  xorg_cv_cc_flag_unknown_warning_option=no
9806fi
9807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808fi
9809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9812	CFLAGS="$xorg_testset_save_CFLAGS"
9813fi
9814
9815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9818	fi
9819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9823  $as_echo_n "(cached) " >&6
9824else
9825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826/* end confdefs.h.  */
9827int i;
9828_ACEOF
9829if ac_fn_c_try_compile "$LINENO"; then :
9830  xorg_cv_cc_flag_unused_command_line_argument=yes
9831else
9832  xorg_cv_cc_flag_unused_command_line_argument=no
9833fi
9834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835fi
9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9838	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9839	CFLAGS="$xorg_testset_save_CFLAGS"
9840fi
9841
9842found="no"
9843
9844	if test $found = "no" ; then
9845		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9847		fi
9848
9849		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9851		fi
9852
9853		CFLAGS="$CFLAGS -Wwrite-strings"
9854
9855		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9856$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9857		cacheid=xorg_cv_cc_flag__Wwrite_strings
9858		if eval \${$cacheid+:} false; then :
9859  $as_echo_n "(cached) " >&6
9860else
9861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862/* end confdefs.h.  */
9863int i;
9864int
9865main ()
9866{
9867
9868  ;
9869  return 0;
9870}
9871_ACEOF
9872if ac_fn_c_try_link "$LINENO"; then :
9873  eval $cacheid=yes
9874else
9875  eval $cacheid=no
9876fi
9877rm -f core conftest.err conftest.$ac_objext \
9878    conftest$ac_exeext conftest.$ac_ext
9879fi
9880
9881
9882		CFLAGS="$xorg_testset_save_CFLAGS"
9883
9884		eval supported=\$$cacheid
9885		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9886$as_echo "$supported" >&6; }
9887		if test "$supported" = "yes" ; then
9888			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9889			found="yes"
9890		fi
9891	fi
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907xorg_testset_save_CFLAGS="$CFLAGS"
9908
9909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9910	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9912$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9913if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9914  $as_echo_n "(cached) " >&6
9915else
9916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917/* end confdefs.h.  */
9918int i;
9919_ACEOF
9920if ac_fn_c_try_compile "$LINENO"; then :
9921  xorg_cv_cc_flag_unknown_warning_option=yes
9922else
9923  xorg_cv_cc_flag_unknown_warning_option=no
9924fi
9925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926fi
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9928$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9929	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9930	CFLAGS="$xorg_testset_save_CFLAGS"
9931fi
9932
9933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9934	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9935		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9936	fi
9937	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9939$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9940if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9941  $as_echo_n "(cached) " >&6
9942else
9943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944/* end confdefs.h.  */
9945int i;
9946_ACEOF
9947if ac_fn_c_try_compile "$LINENO"; then :
9948  xorg_cv_cc_flag_unused_command_line_argument=yes
9949else
9950  xorg_cv_cc_flag_unused_command_line_argument=no
9951fi
9952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953fi
9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9955$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9956	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9957	CFLAGS="$xorg_testset_save_CFLAGS"
9958fi
9959
9960found="no"
9961
9962	if test $found = "no" ; then
9963		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9964			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9965		fi
9966
9967		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9968			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9969		fi
9970
9971		CFLAGS="$CFLAGS -Waddress"
9972
9973		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9974$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9975		cacheid=xorg_cv_cc_flag__Waddress
9976		if eval \${$cacheid+:} false; then :
9977  $as_echo_n "(cached) " >&6
9978else
9979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h.  */
9981int i;
9982int
9983main ()
9984{
9985
9986  ;
9987  return 0;
9988}
9989_ACEOF
9990if ac_fn_c_try_link "$LINENO"; then :
9991  eval $cacheid=yes
9992else
9993  eval $cacheid=no
9994fi
9995rm -f core conftest.err conftest.$ac_objext \
9996    conftest$ac_exeext conftest.$ac_ext
9997fi
9998
9999
10000		CFLAGS="$xorg_testset_save_CFLAGS"
10001
10002		eval supported=\$$cacheid
10003		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10004$as_echo "$supported" >&6; }
10005		if test "$supported" = "yes" ; then
10006			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10007			found="yes"
10008		fi
10009	fi
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025xorg_testset_save_CFLAGS="$CFLAGS"
10026
10027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10028	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10032  $as_echo_n "(cached) " >&6
10033else
10034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035/* end confdefs.h.  */
10036int i;
10037_ACEOF
10038if ac_fn_c_try_compile "$LINENO"; then :
10039  xorg_cv_cc_flag_unknown_warning_option=yes
10040else
10041  xorg_cv_cc_flag_unknown_warning_option=no
10042fi
10043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044fi
10045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10047	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10048	CFLAGS="$xorg_testset_save_CFLAGS"
10049fi
10050
10051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10052	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10053		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10054	fi
10055	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10059  $as_echo_n "(cached) " >&6
10060else
10061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062/* end confdefs.h.  */
10063int i;
10064_ACEOF
10065if ac_fn_c_try_compile "$LINENO"; then :
10066  xorg_cv_cc_flag_unused_command_line_argument=yes
10067else
10068  xorg_cv_cc_flag_unused_command_line_argument=no
10069fi
10070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071fi
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10074	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10075	CFLAGS="$xorg_testset_save_CFLAGS"
10076fi
10077
10078found="no"
10079
10080	if test $found = "no" ; then
10081		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10082			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10083		fi
10084
10085		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10086			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10087		fi
10088
10089		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10090
10091		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10092$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10093		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10094		if eval \${$cacheid+:} false; then :
10095  $as_echo_n "(cached) " >&6
10096else
10097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098/* end confdefs.h.  */
10099int i;
10100int
10101main ()
10102{
10103
10104  ;
10105  return 0;
10106}
10107_ACEOF
10108if ac_fn_c_try_link "$LINENO"; then :
10109  eval $cacheid=yes
10110else
10111  eval $cacheid=no
10112fi
10113rm -f core conftest.err conftest.$ac_objext \
10114    conftest$ac_exeext conftest.$ac_ext
10115fi
10116
10117
10118		CFLAGS="$xorg_testset_save_CFLAGS"
10119
10120		eval supported=\$$cacheid
10121		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10122$as_echo "$supported" >&6; }
10123		if test "$supported" = "yes" ; then
10124			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10125			found="yes"
10126		fi
10127	fi
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143xorg_testset_save_CFLAGS="$CFLAGS"
10144
10145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10146	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10148$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10149if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10150  $as_echo_n "(cached) " >&6
10151else
10152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h.  */
10154int i;
10155_ACEOF
10156if ac_fn_c_try_compile "$LINENO"; then :
10157  xorg_cv_cc_flag_unknown_warning_option=yes
10158else
10159  xorg_cv_cc_flag_unknown_warning_option=no
10160fi
10161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162fi
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10164$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10165	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10166	CFLAGS="$xorg_testset_save_CFLAGS"
10167fi
10168
10169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10170	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10171		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10172	fi
10173	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10175$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10176if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10177  $as_echo_n "(cached) " >&6
10178else
10179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180/* end confdefs.h.  */
10181int i;
10182_ACEOF
10183if ac_fn_c_try_compile "$LINENO"; then :
10184  xorg_cv_cc_flag_unused_command_line_argument=yes
10185else
10186  xorg_cv_cc_flag_unused_command_line_argument=no
10187fi
10188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10189fi
10190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10191$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10192	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10193	CFLAGS="$xorg_testset_save_CFLAGS"
10194fi
10195
10196found="no"
10197
10198	if test $found = "no" ; then
10199		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10200			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201		fi
10202
10203		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10204			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10205		fi
10206
10207		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10208
10209		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10210$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10211		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10212		if eval \${$cacheid+:} false; then :
10213  $as_echo_n "(cached) " >&6
10214else
10215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216/* end confdefs.h.  */
10217int i;
10218int
10219main ()
10220{
10221
10222  ;
10223  return 0;
10224}
10225_ACEOF
10226if ac_fn_c_try_link "$LINENO"; then :
10227  eval $cacheid=yes
10228else
10229  eval $cacheid=no
10230fi
10231rm -f core conftest.err conftest.$ac_objext \
10232    conftest$ac_exeext conftest.$ac_ext
10233fi
10234
10235
10236		CFLAGS="$xorg_testset_save_CFLAGS"
10237
10238		eval supported=\$$cacheid
10239		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10240$as_echo "$supported" >&6; }
10241		if test "$supported" = "yes" ; then
10242			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10243			found="yes"
10244		fi
10245	fi
10246
10247
10248fi
10249
10250
10251
10252
10253
10254
10255
10256		CWARNFLAGS="$BASE_CFLAGS"
10257		if  test "x$GCC" = xyes ; then
10258		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10259		fi
10260
10261
10262
10263
10264
10265
10266
10267
10268# Check whether --enable-strict-compilation was given.
10269if test "${enable_strict_compilation+set}" = set; then :
10270  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10271else
10272  STRICT_COMPILE=no
10273fi
10274
10275
10276
10277
10278
10279
10280STRICT_CFLAGS=""
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294xorg_testset_save_CFLAGS="$CFLAGS"
10295
10296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10301  $as_echo_n "(cached) " >&6
10302else
10303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304/* end confdefs.h.  */
10305int i;
10306_ACEOF
10307if ac_fn_c_try_compile "$LINENO"; then :
10308  xorg_cv_cc_flag_unknown_warning_option=yes
10309else
10310  xorg_cv_cc_flag_unknown_warning_option=no
10311fi
10312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313fi
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10316	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10317	CFLAGS="$xorg_testset_save_CFLAGS"
10318fi
10319
10320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10321	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10323	fi
10324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10328  $as_echo_n "(cached) " >&6
10329else
10330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331/* end confdefs.h.  */
10332int i;
10333_ACEOF
10334if ac_fn_c_try_compile "$LINENO"; then :
10335  xorg_cv_cc_flag_unused_command_line_argument=yes
10336else
10337  xorg_cv_cc_flag_unused_command_line_argument=no
10338fi
10339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10340fi
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10344	CFLAGS="$xorg_testset_save_CFLAGS"
10345fi
10346
10347found="no"
10348
10349	if test $found = "no" ; then
10350		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10352		fi
10353
10354		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10356		fi
10357
10358		CFLAGS="$CFLAGS -pedantic"
10359
10360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10361$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10362		cacheid=xorg_cv_cc_flag__pedantic
10363		if eval \${$cacheid+:} false; then :
10364  $as_echo_n "(cached) " >&6
10365else
10366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367/* end confdefs.h.  */
10368int i;
10369int
10370main ()
10371{
10372
10373  ;
10374  return 0;
10375}
10376_ACEOF
10377if ac_fn_c_try_link "$LINENO"; then :
10378  eval $cacheid=yes
10379else
10380  eval $cacheid=no
10381fi
10382rm -f core conftest.err conftest.$ac_objext \
10383    conftest$ac_exeext conftest.$ac_ext
10384fi
10385
10386
10387		CFLAGS="$xorg_testset_save_CFLAGS"
10388
10389		eval supported=\$$cacheid
10390		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10391$as_echo "$supported" >&6; }
10392		if test "$supported" = "yes" ; then
10393			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10394			found="yes"
10395		fi
10396	fi
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412xorg_testset_save_CFLAGS="$CFLAGS"
10413
10414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10419  $as_echo_n "(cached) " >&6
10420else
10421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422/* end confdefs.h.  */
10423int i;
10424_ACEOF
10425if ac_fn_c_try_compile "$LINENO"; then :
10426  xorg_cv_cc_flag_unknown_warning_option=yes
10427else
10428  xorg_cv_cc_flag_unknown_warning_option=no
10429fi
10430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431fi
10432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10435	CFLAGS="$xorg_testset_save_CFLAGS"
10436fi
10437
10438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10441	fi
10442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10446  $as_echo_n "(cached) " >&6
10447else
10448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h.  */
10450int i;
10451_ACEOF
10452if ac_fn_c_try_compile "$LINENO"; then :
10453  xorg_cv_cc_flag_unused_command_line_argument=yes
10454else
10455  xorg_cv_cc_flag_unused_command_line_argument=no
10456fi
10457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458fi
10459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10462	CFLAGS="$xorg_testset_save_CFLAGS"
10463fi
10464
10465found="no"
10466
10467	if test $found = "no" ; then
10468		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10470		fi
10471
10472		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10474		fi
10475
10476		CFLAGS="$CFLAGS -Werror"
10477
10478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10479$as_echo_n "checking if $CC supports -Werror... " >&6; }
10480		cacheid=xorg_cv_cc_flag__Werror
10481		if eval \${$cacheid+:} false; then :
10482  $as_echo_n "(cached) " >&6
10483else
10484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485/* end confdefs.h.  */
10486int i;
10487int
10488main ()
10489{
10490
10491  ;
10492  return 0;
10493}
10494_ACEOF
10495if ac_fn_c_try_link "$LINENO"; then :
10496  eval $cacheid=yes
10497else
10498  eval $cacheid=no
10499fi
10500rm -f core conftest.err conftest.$ac_objext \
10501    conftest$ac_exeext conftest.$ac_ext
10502fi
10503
10504
10505		CFLAGS="$xorg_testset_save_CFLAGS"
10506
10507		eval supported=\$$cacheid
10508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10509$as_echo "$supported" >&6; }
10510		if test "$supported" = "yes" ; then
10511			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10512			found="yes"
10513		fi
10514	fi
10515
10516	if test $found = "no" ; then
10517		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10519		fi
10520
10521		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10523		fi
10524
10525		CFLAGS="$CFLAGS -errwarn"
10526
10527		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10528$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10529		cacheid=xorg_cv_cc_flag__errwarn
10530		if eval \${$cacheid+:} false; then :
10531  $as_echo_n "(cached) " >&6
10532else
10533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534/* end confdefs.h.  */
10535int i;
10536int
10537main ()
10538{
10539
10540  ;
10541  return 0;
10542}
10543_ACEOF
10544if ac_fn_c_try_link "$LINENO"; then :
10545  eval $cacheid=yes
10546else
10547  eval $cacheid=no
10548fi
10549rm -f core conftest.err conftest.$ac_objext \
10550    conftest$ac_exeext conftest.$ac_ext
10551fi
10552
10553
10554		CFLAGS="$xorg_testset_save_CFLAGS"
10555
10556		eval supported=\$$cacheid
10557		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10558$as_echo "$supported" >&6; }
10559		if test "$supported" = "yes" ; then
10560			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10561			found="yes"
10562		fi
10563	fi
10564
10565
10566
10567# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10568# activate it with -Werror, so we add it here explicitly.
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582xorg_testset_save_CFLAGS="$CFLAGS"
10583
10584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10585	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10587$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10588if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10589  $as_echo_n "(cached) " >&6
10590else
10591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592/* end confdefs.h.  */
10593int i;
10594_ACEOF
10595if ac_fn_c_try_compile "$LINENO"; then :
10596  xorg_cv_cc_flag_unknown_warning_option=yes
10597else
10598  xorg_cv_cc_flag_unknown_warning_option=no
10599fi
10600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601fi
10602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10603$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10604	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10605	CFLAGS="$xorg_testset_save_CFLAGS"
10606fi
10607
10608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10609	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10610		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10611	fi
10612	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10613	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10614$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10615if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10616  $as_echo_n "(cached) " >&6
10617else
10618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619/* end confdefs.h.  */
10620int i;
10621_ACEOF
10622if ac_fn_c_try_compile "$LINENO"; then :
10623  xorg_cv_cc_flag_unused_command_line_argument=yes
10624else
10625  xorg_cv_cc_flag_unused_command_line_argument=no
10626fi
10627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628fi
10629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10630$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10632	CFLAGS="$xorg_testset_save_CFLAGS"
10633fi
10634
10635found="no"
10636
10637	if test $found = "no" ; then
10638		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640		fi
10641
10642		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10644		fi
10645
10646		CFLAGS="$CFLAGS -Werror=attributes"
10647
10648		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10649$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10650		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10651		if eval \${$cacheid+:} false; then :
10652  $as_echo_n "(cached) " >&6
10653else
10654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655/* end confdefs.h.  */
10656int i;
10657int
10658main ()
10659{
10660
10661  ;
10662  return 0;
10663}
10664_ACEOF
10665if ac_fn_c_try_link "$LINENO"; then :
10666  eval $cacheid=yes
10667else
10668  eval $cacheid=no
10669fi
10670rm -f core conftest.err conftest.$ac_objext \
10671    conftest$ac_exeext conftest.$ac_ext
10672fi
10673
10674
10675		CFLAGS="$xorg_testset_save_CFLAGS"
10676
10677		eval supported=\$$cacheid
10678		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10679$as_echo "$supported" >&6; }
10680		if test "$supported" = "yes" ; then
10681			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10682			found="yes"
10683		fi
10684	fi
10685
10686
10687
10688if test "x$STRICT_COMPILE" = "xyes"; then
10689    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10690    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10691fi
10692
10693
10694
10695
10696
10697
10698cat >>confdefs.h <<_ACEOF
10699#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10700_ACEOF
10701
10702	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10703	if test "x$PVM" = "x"; then
10704		PVM="0"
10705	fi
10706
10707cat >>confdefs.h <<_ACEOF
10708#define PACKAGE_VERSION_MINOR $PVM
10709_ACEOF
10710
10711	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10712	if test "x$PVP" = "x"; then
10713		PVP="0"
10714	fi
10715
10716cat >>confdefs.h <<_ACEOF
10717#define PACKAGE_VERSION_PATCHLEVEL $PVP
10718_ACEOF
10719
10720
10721
10722CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10723mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10724|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10725echo 'git directory not found: installing possibly empty changelog.' >&2)"
10726
10727
10728
10729
10730macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10731INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10732mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10733|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10734echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10735
10736
10737
10738
10739
10740
10741if test x$APP_MAN_SUFFIX = x    ; then
10742    APP_MAN_SUFFIX=1
10743fi
10744if test x$APP_MAN_DIR = x    ; then
10745    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10746fi
10747
10748if test x$LIB_MAN_SUFFIX = x    ; then
10749    LIB_MAN_SUFFIX=3
10750fi
10751if test x$LIB_MAN_DIR = x    ; then
10752    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10753fi
10754
10755if test x$FILE_MAN_SUFFIX = x    ; then
10756    case $host_os in
10757	solaris*)	FILE_MAN_SUFFIX=4  ;;
10758	*)		FILE_MAN_SUFFIX=5  ;;
10759    esac
10760fi
10761if test x$FILE_MAN_DIR = x    ; then
10762    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10763fi
10764
10765if test x$MISC_MAN_SUFFIX = x    ; then
10766    case $host_os in
10767	solaris*)	MISC_MAN_SUFFIX=5  ;;
10768	*)		MISC_MAN_SUFFIX=7  ;;
10769    esac
10770fi
10771if test x$MISC_MAN_DIR = x    ; then
10772    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10773fi
10774
10775if test x$DRIVER_MAN_SUFFIX = x    ; then
10776    case $host_os in
10777	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10778	*)		DRIVER_MAN_SUFFIX=4  ;;
10779    esac
10780fi
10781if test x$DRIVER_MAN_DIR = x    ; then
10782    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10783fi
10784
10785if test x$ADMIN_MAN_SUFFIX = x    ; then
10786    case $host_os in
10787	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10788	*)		ADMIN_MAN_SUFFIX=8  ;;
10789    esac
10790fi
10791if test x$ADMIN_MAN_DIR = x    ; then
10792    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10793fi
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809XORG_MAN_PAGE="X Version 11"
10810
10811MAN_SUBSTS="\
10812	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10813	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10814	-e 's|__xservername__|Xorg|g' \
10815	-e 's|__xconfigfile__|xorg.conf|g' \
10816	-e 's|__projectroot__|\$(prefix)|g' \
10817	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10818	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10819	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10820	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10821	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10822	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10823	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10824
10825
10826
10827# Check whether --enable-silent-rules was given.
10828if test "${enable_silent_rules+set}" = set; then :
10829  enableval=$enable_silent_rules;
10830fi
10831
10832case $enable_silent_rules in
10833yes) AM_DEFAULT_VERBOSITY=0;;
10834no)  AM_DEFAULT_VERBOSITY=1;;
10835*)   AM_DEFAULT_VERBOSITY=0;;
10836esac
10837AM_BACKSLASH='\'
10838
10839
10840
10841
10842# Check whether --enable-devel-docs was given.
10843if test "${enable_devel_docs+set}" = set; then :
10844  enableval=$enable_devel_docs; build_devel_docs=$enableval
10845else
10846  build_devel_docs=yes
10847fi
10848
10849
10850 if test x$build_devel_docs = xyes; then
10851  ENABLE_DEVEL_DOCS_TRUE=
10852  ENABLE_DEVEL_DOCS_FALSE='#'
10853else
10854  ENABLE_DEVEL_DOCS_TRUE='#'
10855  ENABLE_DEVEL_DOCS_FALSE=
10856fi
10857
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
10859$as_echo_n "checking whether to build developer documentation... " >&6; }
10860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
10861$as_echo "$build_devel_docs" >&6; }
10862
10863
10864
10865
10866
10867# Check whether --with-xmlto was given.
10868if test "${with_xmlto+set}" = set; then :
10869  withval=$with_xmlto; use_xmlto=$withval
10870else
10871  use_xmlto=auto
10872fi
10873
10874
10875
10876if test "x$use_xmlto" = x"auto"; then
10877   # Extract the first word of "xmlto", so it can be a program name with args.
10878set dummy xmlto; ac_word=$2
10879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10880$as_echo_n "checking for $ac_word... " >&6; }
10881if ${ac_cv_path_XMLTO+:} false; then :
10882  $as_echo_n "(cached) " >&6
10883else
10884  case $XMLTO in
10885  [\\/]* | ?:[\\/]*)
10886  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10887  ;;
10888  *)
10889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890for as_dir in $PATH
10891do
10892  IFS=$as_save_IFS
10893  test -z "$as_dir" && as_dir=.
10894    for ac_exec_ext in '' $ac_executable_extensions; do
10895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10896    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10898    break 2
10899  fi
10900done
10901  done
10902IFS=$as_save_IFS
10903
10904  ;;
10905esac
10906fi
10907XMLTO=$ac_cv_path_XMLTO
10908if test -n "$XMLTO"; then
10909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10910$as_echo "$XMLTO" >&6; }
10911else
10912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913$as_echo "no" >&6; }
10914fi
10915
10916
10917   if test "x$XMLTO" = "x"; then
10918        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10919$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10920	have_xmlto=no
10921   else
10922        have_xmlto=yes
10923   fi
10924elif test "x$use_xmlto" = x"yes" ; then
10925   # Extract the first word of "xmlto", so it can be a program name with args.
10926set dummy xmlto; ac_word=$2
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10928$as_echo_n "checking for $ac_word... " >&6; }
10929if ${ac_cv_path_XMLTO+:} false; then :
10930  $as_echo_n "(cached) " >&6
10931else
10932  case $XMLTO in
10933  [\\/]* | ?:[\\/]*)
10934  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10935  ;;
10936  *)
10937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10938for as_dir in $PATH
10939do
10940  IFS=$as_save_IFS
10941  test -z "$as_dir" && as_dir=.
10942    for ac_exec_ext in '' $ac_executable_extensions; do
10943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10944    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10946    break 2
10947  fi
10948done
10949  done
10950IFS=$as_save_IFS
10951
10952  ;;
10953esac
10954fi
10955XMLTO=$ac_cv_path_XMLTO
10956if test -n "$XMLTO"; then
10957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10958$as_echo "$XMLTO" >&6; }
10959else
10960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961$as_echo "no" >&6; }
10962fi
10963
10964
10965   if test "x$XMLTO" = "x"; then
10966        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10967   fi
10968   have_xmlto=yes
10969elif test "x$use_xmlto" = x"no" ; then
10970   if test "x$XMLTO" != "x"; then
10971      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
10972$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
10973   fi
10974   have_xmlto=no
10975else
10976   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
10977fi
10978
10979# Test for a minimum version of xmlto, if provided.
10980if test "$have_xmlto" = yes; then
10981    # scrape the xmlto version
10982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
10983$as_echo_n "checking the xmlto version... " >&6; }
10984    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
10985    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
10986$as_echo "$xmlto_version" >&6; }
10987    as_arg_v1=$xmlto_version
10988as_arg_v2=0.0.20
10989awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10990case $? in #(
10991  1) :
10992    if test "x$use_xmlto" = xauto; then
10993            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
10994$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
10995            have_xmlto=no
10996        else
10997            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
10998        fi ;; #(
10999  0) :
11000     ;; #(
11001  2) :
11002     ;; #(
11003  *) :
11004     ;;
11005esac
11006fi
11007
11008# Test for the ability of xmlto to generate a text target
11009have_xmlto_text=no
11010cat > conftest.xml << "EOF"
11011EOF
11012if test "$have_xmlto" = yes; then :
11013  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
11014  have_xmlto_text=yes
11015else
11016  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
11017$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
11018fi
11019fi
11020rm -f conftest.xml
11021 if test $have_xmlto_text = yes; then
11022  HAVE_XMLTO_TEXT_TRUE=
11023  HAVE_XMLTO_TEXT_FALSE='#'
11024else
11025  HAVE_XMLTO_TEXT_TRUE='#'
11026  HAVE_XMLTO_TEXT_FALSE=
11027fi
11028
11029 if test "$have_xmlto" = yes; then
11030  HAVE_XMLTO_TRUE=
11031  HAVE_XMLTO_FALSE='#'
11032else
11033  HAVE_XMLTO_TRUE='#'
11034  HAVE_XMLTO_FALSE=
11035fi
11036
11037
11038
11039
11040
11041
11042# Check whether --with-fop was given.
11043if test "${with_fop+set}" = set; then :
11044  withval=$with_fop; use_fop=$withval
11045else
11046  use_fop=auto
11047fi
11048
11049
11050
11051if test "x$use_fop" = x"auto"; then
11052   # Extract the first word of "fop", so it can be a program name with args.
11053set dummy fop; ac_word=$2
11054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055$as_echo_n "checking for $ac_word... " >&6; }
11056if ${ac_cv_path_FOP+:} false; then :
11057  $as_echo_n "(cached) " >&6
11058else
11059  case $FOP in
11060  [\\/]* | ?:[\\/]*)
11061  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11062  ;;
11063  *)
11064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065for as_dir in $PATH
11066do
11067  IFS=$as_save_IFS
11068  test -z "$as_dir" && as_dir=.
11069    for ac_exec_ext in '' $ac_executable_extensions; do
11070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11073    break 2
11074  fi
11075done
11076  done
11077IFS=$as_save_IFS
11078
11079  ;;
11080esac
11081fi
11082FOP=$ac_cv_path_FOP
11083if test -n "$FOP"; then
11084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11085$as_echo "$FOP" >&6; }
11086else
11087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088$as_echo "no" >&6; }
11089fi
11090
11091
11092   if test "x$FOP" = "x"; then
11093        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11094$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11095	have_fop=no
11096   else
11097        have_fop=yes
11098   fi
11099elif test "x$use_fop" = x"yes" ; then
11100   # Extract the first word of "fop", so it can be a program name with args.
11101set dummy fop; ac_word=$2
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103$as_echo_n "checking for $ac_word... " >&6; }
11104if ${ac_cv_path_FOP+:} false; then :
11105  $as_echo_n "(cached) " >&6
11106else
11107  case $FOP in
11108  [\\/]* | ?:[\\/]*)
11109  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11110  ;;
11111  *)
11112  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113for as_dir in $PATH
11114do
11115  IFS=$as_save_IFS
11116  test -z "$as_dir" && as_dir=.
11117    for ac_exec_ext in '' $ac_executable_extensions; do
11118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11119    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11121    break 2
11122  fi
11123done
11124  done
11125IFS=$as_save_IFS
11126
11127  ;;
11128esac
11129fi
11130FOP=$ac_cv_path_FOP
11131if test -n "$FOP"; then
11132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11133$as_echo "$FOP" >&6; }
11134else
11135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136$as_echo "no" >&6; }
11137fi
11138
11139
11140   if test "x$FOP" = "x"; then
11141        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11142   fi
11143   have_fop=yes
11144elif test "x$use_fop" = x"no" ; then
11145   if test "x$FOP" != "x"; then
11146      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11147$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11148   fi
11149   have_fop=no
11150else
11151   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11152fi
11153
11154# Test for a minimum version of fop, if provided.
11155
11156 if test "$have_fop" = yes; then
11157  HAVE_FOP_TRUE=
11158  HAVE_FOP_FALSE='#'
11159else
11160  HAVE_FOP_TRUE='#'
11161  HAVE_FOP_FALSE=
11162fi
11163
11164
11165
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
11167$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
11168XORG_SGML_PATH=
11169if test -n "$PKG_CONFIG" && \
11170    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
11171  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
11172  ac_status=$?
11173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11174  test $ac_status = 0; }; then
11175  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11176else
11177  :
11178
11179fi
11180
11181# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11182# the path and the name of the doc stylesheet
11183if test "x$XORG_SGML_PATH" != "x" ; then
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11185$as_echo "$XORG_SGML_PATH" >&6; }
11186   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11187   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11188else
11189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190$as_echo "no" >&6; }
11191fi
11192
11193
11194
11195
11196 if test "x$XSL_STYLESHEET" != "x"; then
11197  HAVE_STYLESHEETS_TRUE=
11198  HAVE_STYLESHEETS_FALSE='#'
11199else
11200  HAVE_STYLESHEETS_TRUE='#'
11201  HAVE_STYLESHEETS_FALSE=
11202fi
11203
11204
11205
11206
11207
11208
11209
11210# Check whether --with-lint was given.
11211if test "${with_lint+set}" = set; then :
11212  withval=$with_lint; use_lint=$withval
11213else
11214  use_lint=no
11215fi
11216
11217
11218# Obtain platform specific info like program name and options
11219# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11220case $host_os in
11221  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11222	lint_name=splint
11223	lint_options="-badflag"
11224	;;
11225  *freebsd* | *netbsd*)
11226	lint_name=lint
11227	lint_options="-u -b"
11228	;;
11229  *solaris*)
11230	lint_name=lint
11231	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11232	;;
11233esac
11234
11235# Test for the presence of the program (either guessed by the code or spelled out by the user)
11236if test "x$use_lint" = x"yes" ; then
11237   # Extract the first word of "$lint_name", so it can be a program name with args.
11238set dummy $lint_name; ac_word=$2
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11240$as_echo_n "checking for $ac_word... " >&6; }
11241if ${ac_cv_path_LINT+:} false; then :
11242  $as_echo_n "(cached) " >&6
11243else
11244  case $LINT in
11245  [\\/]* | ?:[\\/]*)
11246  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11247  ;;
11248  *)
11249  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250for as_dir in $PATH
11251do
11252  IFS=$as_save_IFS
11253  test -z "$as_dir" && as_dir=.
11254    for ac_exec_ext in '' $ac_executable_extensions; do
11255  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11256    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11258    break 2
11259  fi
11260done
11261  done
11262IFS=$as_save_IFS
11263
11264  ;;
11265esac
11266fi
11267LINT=$ac_cv_path_LINT
11268if test -n "$LINT"; then
11269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11270$as_echo "$LINT" >&6; }
11271else
11272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273$as_echo "no" >&6; }
11274fi
11275
11276
11277   if test "x$LINT" = "x"; then
11278        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11279   fi
11280elif test "x$use_lint" = x"no" ; then
11281   if test "x$LINT" != "x"; then
11282      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11283$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11284   fi
11285else
11286   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11287fi
11288
11289# User supplied flags override default flags
11290if test "x$LINT_FLAGS" != "x"; then
11291   lint_options=$LINT_FLAGS
11292fi
11293
11294LINT_FLAGS=$lint_options
11295
11296 if test "x$LINT" != x; then
11297  LINT_TRUE=
11298  LINT_FALSE='#'
11299else
11300  LINT_TRUE='#'
11301  LINT_FALSE=
11302fi
11303
11304
11305
11306
11307for ac_header in stdint.h
11308do :
11309  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11310if test "x$ac_cv_header_stdint_h" = xyes; then :
11311  cat >>confdefs.h <<_ACEOF
11312#define HAVE_STDINT_H 1
11313_ACEOF
11314
11315fi
11316
11317done
11318
11319
11320
11321# Check whether --with-default-config-file was given.
11322if test "${with_default_config_file+set}" = set; then :
11323  withval=$with_default_config_file; CONFIG_FILE="$withval"
11324else
11325  CONFIG_FILE="${sysconfdir}/X11/fs/config"
11326fi
11327
11328
11329DEFAULT_CONFIG_FILE=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\\\\",\\\\\\\\\\\"/'g`
11330
11331  prefix_NONE=
11332  exec_prefix_NONE=
11333  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
11334  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
11335  eval ax_define_dir="\"$DEFAULT_CONFIG_FILE\""
11336  eval ax_define_dir="\"$ax_define_dir\""
11337  DEFAULT_CONFIG_FILE="$ax_define_dir"
11338
11339
11340cat >>confdefs.h <<_ACEOF
11341#define DEFAULT_CONFIG_FILE "$ax_define_dir"
11342_ACEOF
11343
11344  test "$prefix_NONE" && prefix=NONE
11345  test "$exec_prefix_NONE" && exec_prefix=NONE
11346
11347
11348# generate text for the man page
11349case $CONFIG_FILE in
11350    *,*)
11351	CONFIG_FILE_DESC="the first file found from the list:"
11352	CONFIG_FILE_PATH=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\fR, \\\\\\\\fI/g'`
11353	;;
11354    *)
11355	CONFIG_FILE_DESC="the default file,"
11356	CONFIG_FILE_PATH="${CONFIG_FILE}"
11357	;;
11358esac
11359
11360
11361
11362# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
11379$as_echo_n "checking for root directory for font files... " >&6; }
11380
11381# Check whether --with-fontrootdir was given.
11382if test "${with_fontrootdir+set}" = set; then :
11383  withval=$with_fontrootdir; FONTROOTDIR="$withval"
11384fi
11385
11386	# if --with-fontrootdir not specified...
11387	if test "x${FONTROOTDIR}" = "x"; then
11388		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
11389	fi
11390	# ...and if pkg-config didn't find fontdir in fontutil.pc...
11391	if test "x${FONTROOTDIR}" = "x"; then
11392		FONTROOTDIR="${datadir}/fonts/X11"
11393	fi
11394
11395	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
11396$as_echo "${FONTROOTDIR}" >&6; }
11397
11398
11399
11400
11401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
11402$as_echo_n "checking for directory for misc files... " >&6; }
11403
11404# Check whether --with-fontmiscdir was given.
11405if test "${with_fontmiscdir+set}" = set; then :
11406  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
11407else
11408  FONTMISCDIR='${FONTROOTDIR}/misc'
11409fi
11410
11411
11412	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
11413$as_echo "${FONTMISCDIR}" >&6; }
11414
11415
11416
11417
11418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
11419$as_echo_n "checking for directory for OTF files... " >&6; }
11420
11421# Check whether --with-fontotfdir was given.
11422if test "${with_fontotfdir+set}" = set; then :
11423  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
11424else
11425  FONTOTFDIR='${FONTROOTDIR}/OTF'
11426fi
11427
11428
11429	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
11430$as_echo "${FONTOTFDIR}" >&6; }
11431
11432
11433
11434
11435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
11436$as_echo_n "checking for directory for TTF files... " >&6; }
11437
11438# Check whether --with-fontttfdir was given.
11439if test "${with_fontttfdir+set}" = set; then :
11440  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
11441else
11442  FONTTTFDIR='${FONTROOTDIR}/TTF'
11443fi
11444
11445
11446	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
11447$as_echo "${FONTTTFDIR}" >&6; }
11448
11449
11450
11451
11452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
11453$as_echo_n "checking for directory for Type1 files... " >&6; }
11454
11455# Check whether --with-fonttype1dir was given.
11456if test "${with_fonttype1dir+set}" = set; then :
11457  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
11458else
11459  FONTTYPE1DIR='${FONTROOTDIR}/Type1'
11460fi
11461
11462
11463	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
11464$as_echo "${FONTTYPE1DIR}" >&6; }
11465
11466
11467
11468
11469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
11470$as_echo_n "checking for directory for 75dpi files... " >&6; }
11471
11472# Check whether --with-font75dpidir was given.
11473if test "${with_font75dpidir+set}" = set; then :
11474  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
11475else
11476  FONT75DPIDIR='${FONTROOTDIR}/75dpi'
11477fi
11478
11479
11480	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
11481$as_echo "${FONT75DPIDIR}" >&6; }
11482
11483
11484
11485
11486	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
11487$as_echo_n "checking for directory for 100dpi files... " >&6; }
11488
11489# Check whether --with-font100dpidir was given.
11490if test "${with_font100dpidir+set}" = set; then :
11491  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
11492else
11493  FONT100DPIDIR='${FONTROOTDIR}/100dpi'
11494fi
11495
11496
11497	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
11498$as_echo "${FONT100DPIDIR}" >&6; }
11499
11500
11501# Determine font path to put in config file
11502# Uses --default-font-path if set, otherwise checks for /etc/X11/fontpath.d,
11503# otherwise uses standard subdirectories of FONTROOTDIR. When cross
11504# compiling, assume default font path uses standard FONTROOTDIR directories.
11505DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
11506if test "$cross_compiling" != yes; then
11507	as_ac_File=`$as_echo "ac_cv_file_${sysconfdir}/X11/fontpath.d" | $as_tr_sh`
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sysconfdir}/X11/fontpath.d" >&5
11509$as_echo_n "checking for ${sysconfdir}/X11/fontpath.d... " >&6; }
11510if eval \${$as_ac_File+:} false; then :
11511  $as_echo_n "(cached) " >&6
11512else
11513  test "$cross_compiling" = yes &&
11514  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11515if test -r "${sysconfdir}/X11/fontpath.d"; then
11516  eval "$as_ac_File=yes"
11517else
11518  eval "$as_ac_File=no"
11519fi
11520fi
11521eval ac_res=\$$as_ac_File
11522	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11523$as_echo "$ac_res" >&6; }
11524if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11525  DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'
11526else
11527  case $host_os in
11528			darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
11529		esac
11530fi
11531
11532fi
11533
11534# Check whether --with-default-font-path was given.
11535if test "${with_default_font_path+set}" = set; then :
11536  withval=$with_default_font_path;  FONTPATH="$withval"
11537else
11538   FONTPATH="${DEFAULT_FONT_PATH}"
11539fi
11540
11541
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
11543$as_echo_n "checking for default font path... " >&6; }
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
11545$as_echo "$FONTPATH" >&6; }
11546
11547
11548
11549# Option to enable support for starting from inetd
11550# Check whether --enable-inetd was given.
11551if test "${enable_inetd+set}" = set; then :
11552  enableval=$enable_inetd; INETD=$enableval
11553else
11554  INETD=yes
11555fi
11556
11557if test "x$INETD" = xyes; then
11558
11559$as_echo "#define XFS_INETD 1" >>confdefs.h
11560
11561fi
11562
11563# Option to enable support for logging to syslog
11564# Check whether --enable-syslog was given.
11565if test "${enable_syslog+set}" = set; then :
11566  enableval=$enable_syslog; SYSLOG=$enableval
11567else
11568  SYSLOG=yes
11569fi
11570
11571if test "x$SYSLOG" = xyes; then
11572
11573$as_echo "#define USE_SYSLOG 1" >>confdefs.h
11574
11575fi
11576
11577
11578# Checks for system functions / libraries
11579for ac_func in daemon
11580do :
11581  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
11582if test "x$ac_cv_func_daemon" = xyes; then :
11583  cat >>confdefs.h <<_ACEOF
11584#define HAVE_DAEMON 1
11585_ACEOF
11586
11587fi
11588done
11589
11590
11591# Checks for pkg-config packages
11592#  - xproto >= 7.0.17 required for _X_NORETURN in <X11/Xfuncproto.h>
11593#  - xfont >= 1.4.5 required for matching MakeAtom prototypes in fontmisc.h
11594
11595pkg_failed=no
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFS" >&5
11597$as_echo_n "checking for XFS... " >&6; }
11598
11599if test -n "$XFS_CFLAGS"; then
11600    pkg_cv_XFS_CFLAGS="$XFS_CFLAGS"
11601 elif test -n "$PKG_CONFIG"; then
11602    if test -n "$PKG_CONFIG" && \
11603    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xfont >= 1.4.5 xtrans\""; } >&5
11604  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xfont >= 1.4.5 xtrans") 2>&5
11605  ac_status=$?
11606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11607  test $ac_status = 0; }; then
11608  pkg_cv_XFS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xfont >= 1.4.5 xtrans" 2>/dev/null`
11609else
11610  pkg_failed=yes
11611fi
11612 else
11613    pkg_failed=untried
11614fi
11615if test -n "$XFS_LIBS"; then
11616    pkg_cv_XFS_LIBS="$XFS_LIBS"
11617 elif test -n "$PKG_CONFIG"; then
11618    if test -n "$PKG_CONFIG" && \
11619    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xfont >= 1.4.5 xtrans\""; } >&5
11620  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xfont >= 1.4.5 xtrans") 2>&5
11621  ac_status=$?
11622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11623  test $ac_status = 0; }; then
11624  pkg_cv_XFS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xfont >= 1.4.5 xtrans" 2>/dev/null`
11625else
11626  pkg_failed=yes
11627fi
11628 else
11629    pkg_failed=untried
11630fi
11631
11632
11633
11634if test $pkg_failed = yes; then
11635
11636if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11637        _pkg_short_errors_supported=yes
11638else
11639        _pkg_short_errors_supported=no
11640fi
11641        if test $_pkg_short_errors_supported = yes; then
11642	        XFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 xfont >= 1.4.5 xtrans" 2>&1`
11643        else
11644	        XFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 xfont >= 1.4.5 xtrans" 2>&1`
11645        fi
11646	# Put the nasty error message in config.log where it belongs
11647	echo "$XFS_PKG_ERRORS" >&5
11648
11649	as_fn_error $? "Package requirements (xproto >= 7.0.17 xfont >= 1.4.5 xtrans) were not met:
11650
11651$XFS_PKG_ERRORS
11652
11653Consider adjusting the PKG_CONFIG_PATH environment variable if you
11654installed software in a non-standard prefix.
11655
11656Alternatively, you may set the environment variables XFS_CFLAGS
11657and XFS_LIBS to avoid the need to call pkg-config.
11658See the pkg-config man page for more details.
11659" "$LINENO" 5
11660elif test $pkg_failed = untried; then
11661	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11663as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11664is in your PATH or set the PKG_CONFIG environment variable to the full
11665path to pkg-config.
11666
11667Alternatively, you may set the environment variables XFS_CFLAGS
11668and XFS_LIBS to avoid the need to call pkg-config.
11669See the pkg-config man page for more details.
11670
11671To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11672See \`config.log' for more details" "$LINENO" 5; }
11673else
11674	XFS_CFLAGS=$pkg_cv_XFS_CFLAGS
11675	XFS_LIBS=$pkg_cv_XFS_LIBS
11676        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11677$as_echo "yes" >&6; }
11678	:
11679fi
11680
11681# Transport selection macro from xtrans.m4
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11683$as_echo_n "checking return type of signal handlers... " >&6; }
11684if ${ac_cv_type_signal+:} false; then :
11685  $as_echo_n "(cached) " >&6
11686else
11687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688/* end confdefs.h.  */
11689#include <sys/types.h>
11690#include <signal.h>
11691
11692int
11693main ()
11694{
11695return *(signal (0, 0)) (0) == 1;
11696  ;
11697  return 0;
11698}
11699_ACEOF
11700if ac_fn_c_try_compile "$LINENO"; then :
11701  ac_cv_type_signal=int
11702else
11703  ac_cv_type_signal=void
11704fi
11705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11706fi
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11708$as_echo "$ac_cv_type_signal" >&6; }
11709
11710cat >>confdefs.h <<_ACEOF
11711#define RETSIGTYPE $ac_cv_type_signal
11712_ACEOF
11713
11714
11715
11716
11717
11718 case $host_os in
11719	mingw*)	unixdef="no"   ;;
11720	*)	unixdef="yes"  ;;
11721 esac
11722 # Check whether --enable-unix-transport was given.
11723if test "${enable_unix_transport+set}" = set; then :
11724  enableval=$enable_unix_transport; UNIXCONN=$enableval
11725else
11726  UNIXCONN=$unixdef
11727fi
11728
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11730$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
11731 if test "$UNIXCONN" = "yes"; then
11732
11733$as_echo "#define UNIXCONN 1" >>confdefs.h
11734
11735 fi
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11737$as_echo "$UNIXCONN" >&6; }
11738 # Check whether --enable-tcp-transport was given.
11739if test "${enable_tcp_transport+set}" = set; then :
11740  enableval=$enable_tcp_transport; TCPCONN=$enableval
11741else
11742  TCPCONN=yes
11743fi
11744
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11746$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11748$as_echo "$TCPCONN" >&6; }
11749 if test "$TCPCONN" = "yes"; then
11750
11751$as_echo "#define TCPCONN 1" >>confdefs.h
11752
11753
11754 # SVR4 hides these in libraries other than libc
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11756$as_echo_n "checking for library containing socket... " >&6; }
11757if ${ac_cv_search_socket+:} false; then :
11758  $as_echo_n "(cached) " >&6
11759else
11760  ac_func_search_save_LIBS=$LIBS
11761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762/* end confdefs.h.  */
11763
11764/* Override any GCC internal prototype to avoid an error.
11765   Use char because int might match the return type of a GCC
11766   builtin and then its argument prototype would still apply.  */
11767#ifdef __cplusplus
11768extern "C"
11769#endif
11770char socket ();
11771int
11772main ()
11773{
11774return socket ();
11775  ;
11776  return 0;
11777}
11778_ACEOF
11779for ac_lib in '' socket; do
11780  if test -z "$ac_lib"; then
11781    ac_res="none required"
11782  else
11783    ac_res=-l$ac_lib
11784    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11785  fi
11786  if ac_fn_c_try_link "$LINENO"; then :
11787  ac_cv_search_socket=$ac_res
11788fi
11789rm -f core conftest.err conftest.$ac_objext \
11790    conftest$ac_exeext
11791  if ${ac_cv_search_socket+:} false; then :
11792  break
11793fi
11794done
11795if ${ac_cv_search_socket+:} false; then :
11796
11797else
11798  ac_cv_search_socket=no
11799fi
11800rm conftest.$ac_ext
11801LIBS=$ac_func_search_save_LIBS
11802fi
11803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11804$as_echo "$ac_cv_search_socket" >&6; }
11805ac_res=$ac_cv_search_socket
11806if test "$ac_res" != no; then :
11807  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11808
11809fi
11810
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11812$as_echo_n "checking for library containing gethostbyname... " >&6; }
11813if ${ac_cv_search_gethostbyname+:} false; then :
11814  $as_echo_n "(cached) " >&6
11815else
11816  ac_func_search_save_LIBS=$LIBS
11817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818/* end confdefs.h.  */
11819
11820/* Override any GCC internal prototype to avoid an error.
11821   Use char because int might match the return type of a GCC
11822   builtin and then its argument prototype would still apply.  */
11823#ifdef __cplusplus
11824extern "C"
11825#endif
11826char gethostbyname ();
11827int
11828main ()
11829{
11830return gethostbyname ();
11831  ;
11832  return 0;
11833}
11834_ACEOF
11835for ac_lib in '' nsl; do
11836  if test -z "$ac_lib"; then
11837    ac_res="none required"
11838  else
11839    ac_res=-l$ac_lib
11840    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11841  fi
11842  if ac_fn_c_try_link "$LINENO"; then :
11843  ac_cv_search_gethostbyname=$ac_res
11844fi
11845rm -f core conftest.err conftest.$ac_objext \
11846    conftest$ac_exeext
11847  if ${ac_cv_search_gethostbyname+:} false; then :
11848  break
11849fi
11850done
11851if ${ac_cv_search_gethostbyname+:} false; then :
11852
11853else
11854  ac_cv_search_gethostbyname=no
11855fi
11856rm conftest.$ac_ext
11857LIBS=$ac_func_search_save_LIBS
11858fi
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
11860$as_echo "$ac_cv_search_gethostbyname" >&6; }
11861ac_res=$ac_cv_search_gethostbyname
11862if test "$ac_res" != no; then :
11863  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11864
11865fi
11866
11867 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
11868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
11869$as_echo_n "checking for main in -lws2_32... " >&6; }
11870if ${ac_cv_lib_ws2_32_main+:} false; then :
11871  $as_echo_n "(cached) " >&6
11872else
11873  ac_check_lib_save_LIBS=$LIBS
11874LIBS="-lws2_32  $LIBS"
11875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876/* end confdefs.h.  */
11877
11878
11879int
11880main ()
11881{
11882return main ();
11883  ;
11884  return 0;
11885}
11886_ACEOF
11887if ac_fn_c_try_link "$LINENO"; then :
11888  ac_cv_lib_ws2_32_main=yes
11889else
11890  ac_cv_lib_ws2_32_main=no
11891fi
11892rm -f core conftest.err conftest.$ac_objext \
11893    conftest$ac_exeext conftest.$ac_ext
11894LIBS=$ac_check_lib_save_LIBS
11895fi
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
11897$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
11898if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
11899  cat >>confdefs.h <<_ACEOF
11900#define HAVE_LIBWS2_32 1
11901_ACEOF
11902
11903  LIBS="-lws2_32 $LIBS"
11904
11905fi
11906ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
11907
11908 fi
11909
11910 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
11911 # Check whether --enable-ipv6 was given.
11912if test "${enable_ipv6+set}" = set; then :
11913  enableval=$enable_ipv6; IPV6CONN=$enableval
11914else
11915  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11916if test "x$ac_cv_func_getaddrinfo" = xyes; then :
11917  IPV6CONN=yes
11918else
11919  IPV6CONN=no
11920fi
11921
11922fi
11923
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
11925$as_echo_n "checking if IPv6 support should be built... " >&6; }
11926 if test "$IPV6CONN" = "yes"; then
11927
11928$as_echo "#define IPv6 1" >>confdefs.h
11929
11930 fi
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
11932$as_echo "$IPV6CONN" >&6; }
11933
11934 # 4.3BSD-Reno added a new member to struct sockaddr_in
11935 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
11936#include <sys/types.h>
11937#include <sys/socket.h>
11938#include <netinet/in.h>
11939
11940"
11941if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
11942
11943$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
11944
11945fi
11946
11947
11948 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
11949 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
11950$ac_includes_default
11951#include <sys/socket.h>
11952"
11953if test "x$ac_cv_type_socklen_t" = xyes; then :
11954
11955cat >>confdefs.h <<_ACEOF
11956#define HAVE_SOCKLEN_T 1
11957_ACEOF
11958
11959
11960fi
11961
11962
11963
11964 fi
11965 case $host_os in
11966	solaris*|sco*|sysv4*)	localdef="yes" ;;
11967	*)			localdef="no"  ;;
11968 esac
11969 # Check whether --enable-local-transport was given.
11970if test "${enable_local_transport+set}" = set; then :
11971  enableval=$enable_local_transport; LOCALCONN=$enableval
11972else
11973  LOCALCONN=$localdef
11974fi
11975
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
11977$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
11979$as_echo "$LOCALCONN" >&6; }
11980 if test "$LOCALCONN" = "yes"; then
11981
11982$as_echo "#define LOCALCONN 1" >>confdefs.h
11983
11984 fi
11985
11986
11987
11988ac_config_files="$ac_config_files Makefile config/Makefile doc/Makefile man/Makefile"
11989
11990cat >confcache <<\_ACEOF
11991# This file is a shell script that caches the results of configure
11992# tests run on this system so they can be shared between configure
11993# scripts and configure runs, see configure's option --config-cache.
11994# It is not useful on other systems.  If it contains results you don't
11995# want to keep, you may remove or edit it.
11996#
11997# config.status only pays attention to the cache file if you give it
11998# the --recheck option to rerun configure.
11999#
12000# `ac_cv_env_foo' variables (set or unset) will be overridden when
12001# loading this file, other *unset* `ac_cv_foo' will be assigned the
12002# following values.
12003
12004_ACEOF
12005
12006# The following way of writing the cache mishandles newlines in values,
12007# but we know of no workaround that is simple, portable, and efficient.
12008# So, we kill variables containing newlines.
12009# Ultrix sh set writes to stderr and can't be redirected directly,
12010# and sets the high bit in the cache file unless we assign to the vars.
12011(
12012  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12013    eval ac_val=\$$ac_var
12014    case $ac_val in #(
12015    *${as_nl}*)
12016      case $ac_var in #(
12017      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12018$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12019      esac
12020      case $ac_var in #(
12021      _ | IFS | as_nl) ;; #(
12022      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12023      *) { eval $ac_var=; unset $ac_var;} ;;
12024      esac ;;
12025    esac
12026  done
12027
12028  (set) 2>&1 |
12029    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12030    *${as_nl}ac_space=\ *)
12031      # `set' does not quote correctly, so add quotes: double-quote
12032      # substitution turns \\\\ into \\, and sed turns \\ into \.
12033      sed -n \
12034	"s/'/'\\\\''/g;
12035	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12036      ;; #(
12037    *)
12038      # `set' quotes correctly as required by POSIX, so do not add quotes.
12039      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12040      ;;
12041    esac |
12042    sort
12043) |
12044  sed '
12045     /^ac_cv_env_/b end
12046     t clear
12047     :clear
12048     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12049     t end
12050     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12051     :end' >>confcache
12052if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12053  if test -w "$cache_file"; then
12054    if test "x$cache_file" != "x/dev/null"; then
12055      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12056$as_echo "$as_me: updating cache $cache_file" >&6;}
12057      if test ! -f "$cache_file" || test -h "$cache_file"; then
12058	cat confcache >"$cache_file"
12059      else
12060        case $cache_file in #(
12061        */* | ?:*)
12062	  mv -f confcache "$cache_file"$$ &&
12063	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12064        *)
12065	  mv -f confcache "$cache_file" ;;
12066	esac
12067      fi
12068    fi
12069  else
12070    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12071$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12072  fi
12073fi
12074rm -f confcache
12075
12076test "x$prefix" = xNONE && prefix=$ac_default_prefix
12077# Let make expand exec_prefix.
12078test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12079
12080DEFS=-DHAVE_CONFIG_H
12081
12082ac_libobjs=
12083ac_ltlibobjs=
12084U=
12085for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12086  # 1. Remove the extension, and $U if already installed.
12087  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12088  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12089  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12090  #    will be set to the directory where LIBOBJS objects are built.
12091  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12092  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12093done
12094LIBOBJS=$ac_libobjs
12095
12096LTLIBOBJS=$ac_ltlibobjs
12097
12098
12099if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12100  as_fn_error $? "conditional \"AMDEP\" was never defined.
12101Usually this means the macro was only invoked conditionally." "$LINENO" 5
12102fi
12103if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12104  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12105Usually this means the macro was only invoked conditionally." "$LINENO" 5
12106fi
12107 if test -n "$EXEEXT"; then
12108  am__EXEEXT_TRUE=
12109  am__EXEEXT_FALSE='#'
12110else
12111  am__EXEEXT_TRUE='#'
12112  am__EXEEXT_FALSE=
12113fi
12114
12115if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12116  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12117Usually this means the macro was only invoked conditionally." "$LINENO" 5
12118fi
12119if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
12120  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
12121Usually this means the macro was only invoked conditionally." "$LINENO" 5
12122fi
12123if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
12124  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
12125Usually this means the macro was only invoked conditionally." "$LINENO" 5
12126fi
12127if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12128  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12129Usually this means the macro was only invoked conditionally." "$LINENO" 5
12130fi
12131if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12132  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12133Usually this means the macro was only invoked conditionally." "$LINENO" 5
12134fi
12135if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
12136  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
12137Usually this means the macro was only invoked conditionally." "$LINENO" 5
12138fi
12139if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12140  as_fn_error $? "conditional \"LINT\" was never defined.
12141Usually this means the macro was only invoked conditionally." "$LINENO" 5
12142fi
12143
12144: "${CONFIG_STATUS=./config.status}"
12145ac_write_fail=0
12146ac_clean_files_save=$ac_clean_files
12147ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12149$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12150as_write_fail=0
12151cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12152#! $SHELL
12153# Generated by $as_me.
12154# Run this file to recreate the current configuration.
12155# Compiler output produced by configure, useful for debugging
12156# configure, is in config.log if it exists.
12157
12158debug=false
12159ac_cs_recheck=false
12160ac_cs_silent=false
12161
12162SHELL=\${CONFIG_SHELL-$SHELL}
12163export SHELL
12164_ASEOF
12165cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12166## -------------------- ##
12167## M4sh Initialization. ##
12168## -------------------- ##
12169
12170# Be more Bourne compatible
12171DUALCASE=1; export DUALCASE # for MKS sh
12172if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12173  emulate sh
12174  NULLCMD=:
12175  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12176  # is contrary to our usage.  Disable this feature.
12177  alias -g '${1+"$@"}'='"$@"'
12178  setopt NO_GLOB_SUBST
12179else
12180  case `(set -o) 2>/dev/null` in #(
12181  *posix*) :
12182    set -o posix ;; #(
12183  *) :
12184     ;;
12185esac
12186fi
12187
12188
12189as_nl='
12190'
12191export as_nl
12192# Printing a long string crashes Solaris 7 /usr/bin/printf.
12193as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12194as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12195as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12196# Prefer a ksh shell builtin over an external printf program on Solaris,
12197# but without wasting forks for bash or zsh.
12198if test -z "$BASH_VERSION$ZSH_VERSION" \
12199    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12200  as_echo='print -r --'
12201  as_echo_n='print -rn --'
12202elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12203  as_echo='printf %s\n'
12204  as_echo_n='printf %s'
12205else
12206  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12207    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12208    as_echo_n='/usr/ucb/echo -n'
12209  else
12210    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12211    as_echo_n_body='eval
12212      arg=$1;
12213      case $arg in #(
12214      *"$as_nl"*)
12215	expr "X$arg" : "X\\(.*\\)$as_nl";
12216	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12217      esac;
12218      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12219    '
12220    export as_echo_n_body
12221    as_echo_n='sh -c $as_echo_n_body as_echo'
12222  fi
12223  export as_echo_body
12224  as_echo='sh -c $as_echo_body as_echo'
12225fi
12226
12227# The user is always right.
12228if test "${PATH_SEPARATOR+set}" != set; then
12229  PATH_SEPARATOR=:
12230  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12231    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12232      PATH_SEPARATOR=';'
12233  }
12234fi
12235
12236
12237# IFS
12238# We need space, tab and new line, in precisely that order.  Quoting is
12239# there to prevent editors from complaining about space-tab.
12240# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12241# splitting by setting IFS to empty value.)
12242IFS=" ""	$as_nl"
12243
12244# Find who we are.  Look in the path if we contain no directory separator.
12245as_myself=
12246case $0 in #((
12247  *[\\/]* ) as_myself=$0 ;;
12248  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249for as_dir in $PATH
12250do
12251  IFS=$as_save_IFS
12252  test -z "$as_dir" && as_dir=.
12253    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12254  done
12255IFS=$as_save_IFS
12256
12257     ;;
12258esac
12259# We did not find ourselves, most probably we were run as `sh COMMAND'
12260# in which case we are not to be found in the path.
12261if test "x$as_myself" = x; then
12262  as_myself=$0
12263fi
12264if test ! -f "$as_myself"; then
12265  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12266  exit 1
12267fi
12268
12269# Unset variables that we do not need and which cause bugs (e.g. in
12270# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12271# suppresses any "Segmentation fault" message there.  '((' could
12272# trigger a bug in pdksh 5.2.14.
12273for as_var in BASH_ENV ENV MAIL MAILPATH
12274do eval test x\${$as_var+set} = xset \
12275  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12276done
12277PS1='$ '
12278PS2='> '
12279PS4='+ '
12280
12281# NLS nuisances.
12282LC_ALL=C
12283export LC_ALL
12284LANGUAGE=C
12285export LANGUAGE
12286
12287# CDPATH.
12288(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12289
12290
12291# as_fn_error STATUS ERROR [LINENO LOG_FD]
12292# ----------------------------------------
12293# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12294# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12295# script with STATUS, using 1 if that was 0.
12296as_fn_error ()
12297{
12298  as_status=$1; test $as_status -eq 0 && as_status=1
12299  if test "$4"; then
12300    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12301    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12302  fi
12303  $as_echo "$as_me: error: $2" >&2
12304  as_fn_exit $as_status
12305} # as_fn_error
12306
12307
12308# as_fn_set_status STATUS
12309# -----------------------
12310# Set $? to STATUS, without forking.
12311as_fn_set_status ()
12312{
12313  return $1
12314} # as_fn_set_status
12315
12316# as_fn_exit STATUS
12317# -----------------
12318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12319as_fn_exit ()
12320{
12321  set +e
12322  as_fn_set_status $1
12323  exit $1
12324} # as_fn_exit
12325
12326# as_fn_unset VAR
12327# ---------------
12328# Portably unset VAR.
12329as_fn_unset ()
12330{
12331  { eval $1=; unset $1;}
12332}
12333as_unset=as_fn_unset
12334# as_fn_append VAR VALUE
12335# ----------------------
12336# Append the text in VALUE to the end of the definition contained in VAR. Take
12337# advantage of any shell optimizations that allow amortized linear growth over
12338# repeated appends, instead of the typical quadratic growth present in naive
12339# implementations.
12340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12341  eval 'as_fn_append ()
12342  {
12343    eval $1+=\$2
12344  }'
12345else
12346  as_fn_append ()
12347  {
12348    eval $1=\$$1\$2
12349  }
12350fi # as_fn_append
12351
12352# as_fn_arith ARG...
12353# ------------------
12354# Perform arithmetic evaluation on the ARGs, and store the result in the
12355# global $as_val. Take advantage of shells that can avoid forks. The arguments
12356# must be portable across $(()) and expr.
12357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12358  eval 'as_fn_arith ()
12359  {
12360    as_val=$(( $* ))
12361  }'
12362else
12363  as_fn_arith ()
12364  {
12365    as_val=`expr "$@" || test $? -eq 1`
12366  }
12367fi # as_fn_arith
12368
12369
12370if expr a : '\(a\)' >/dev/null 2>&1 &&
12371   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12372  as_expr=expr
12373else
12374  as_expr=false
12375fi
12376
12377if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12378  as_basename=basename
12379else
12380  as_basename=false
12381fi
12382
12383if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12384  as_dirname=dirname
12385else
12386  as_dirname=false
12387fi
12388
12389as_me=`$as_basename -- "$0" ||
12390$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12391	 X"$0" : 'X\(//\)$' \| \
12392	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12393$as_echo X/"$0" |
12394    sed '/^.*\/\([^/][^/]*\)\/*$/{
12395	    s//\1/
12396	    q
12397	  }
12398	  /^X\/\(\/\/\)$/{
12399	    s//\1/
12400	    q
12401	  }
12402	  /^X\/\(\/\).*/{
12403	    s//\1/
12404	    q
12405	  }
12406	  s/.*/./; q'`
12407
12408# Avoid depending upon Character Ranges.
12409as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12410as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12411as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12412as_cr_digits='0123456789'
12413as_cr_alnum=$as_cr_Letters$as_cr_digits
12414
12415ECHO_C= ECHO_N= ECHO_T=
12416case `echo -n x` in #(((((
12417-n*)
12418  case `echo 'xy\c'` in
12419  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12420  xy)  ECHO_C='\c';;
12421  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12422       ECHO_T='	';;
12423  esac;;
12424*)
12425  ECHO_N='-n';;
12426esac
12427
12428rm -f conf$$ conf$$.exe conf$$.file
12429if test -d conf$$.dir; then
12430  rm -f conf$$.dir/conf$$.file
12431else
12432  rm -f conf$$.dir
12433  mkdir conf$$.dir 2>/dev/null
12434fi
12435if (echo >conf$$.file) 2>/dev/null; then
12436  if ln -s conf$$.file conf$$ 2>/dev/null; then
12437    as_ln_s='ln -s'
12438    # ... but there are two gotchas:
12439    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12440    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12441    # In both cases, we have to default to `cp -p'.
12442    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12443      as_ln_s='cp -p'
12444  elif ln conf$$.file conf$$ 2>/dev/null; then
12445    as_ln_s=ln
12446  else
12447    as_ln_s='cp -p'
12448  fi
12449else
12450  as_ln_s='cp -p'
12451fi
12452rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12453rmdir conf$$.dir 2>/dev/null
12454
12455
12456# as_fn_mkdir_p
12457# -------------
12458# Create "$as_dir" as a directory, including parents if necessary.
12459as_fn_mkdir_p ()
12460{
12461
12462  case $as_dir in #(
12463  -*) as_dir=./$as_dir;;
12464  esac
12465  test -d "$as_dir" || eval $as_mkdir_p || {
12466    as_dirs=
12467    while :; do
12468      case $as_dir in #(
12469      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12470      *) as_qdir=$as_dir;;
12471      esac
12472      as_dirs="'$as_qdir' $as_dirs"
12473      as_dir=`$as_dirname -- "$as_dir" ||
12474$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12475	 X"$as_dir" : 'X\(//\)[^/]' \| \
12476	 X"$as_dir" : 'X\(//\)$' \| \
12477	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12478$as_echo X"$as_dir" |
12479    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12480	    s//\1/
12481	    q
12482	  }
12483	  /^X\(\/\/\)[^/].*/{
12484	    s//\1/
12485	    q
12486	  }
12487	  /^X\(\/\/\)$/{
12488	    s//\1/
12489	    q
12490	  }
12491	  /^X\(\/\).*/{
12492	    s//\1/
12493	    q
12494	  }
12495	  s/.*/./; q'`
12496      test -d "$as_dir" && break
12497    done
12498    test -z "$as_dirs" || eval "mkdir $as_dirs"
12499  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12500
12501
12502} # as_fn_mkdir_p
12503if mkdir -p . 2>/dev/null; then
12504  as_mkdir_p='mkdir -p "$as_dir"'
12505else
12506  test -d ./-p && rmdir ./-p
12507  as_mkdir_p=false
12508fi
12509
12510if test -x / >/dev/null 2>&1; then
12511  as_test_x='test -x'
12512else
12513  if ls -dL / >/dev/null 2>&1; then
12514    as_ls_L_option=L
12515  else
12516    as_ls_L_option=
12517  fi
12518  as_test_x='
12519    eval sh -c '\''
12520      if test -d "$1"; then
12521	test -d "$1/.";
12522      else
12523	case $1 in #(
12524	-*)set "./$1";;
12525	esac;
12526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12527	???[sx]*):;;*)false;;esac;fi
12528    '\'' sh
12529  '
12530fi
12531as_executable_p=$as_test_x
12532
12533# Sed expression to map a string onto a valid CPP name.
12534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12535
12536# Sed expression to map a string onto a valid variable name.
12537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12538
12539
12540exec 6>&1
12541## ----------------------------------- ##
12542## Main body of $CONFIG_STATUS script. ##
12543## ----------------------------------- ##
12544_ASEOF
12545test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12546
12547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12548# Save the log message, to keep $0 and so on meaningful, and to
12549# report actual input values of CONFIG_FILES etc. instead of their
12550# values after options handling.
12551ac_log="
12552This file was extended by xfs $as_me 1.1.3, which was
12553generated by GNU Autoconf 2.68.  Invocation command line was
12554
12555  CONFIG_FILES    = $CONFIG_FILES
12556  CONFIG_HEADERS  = $CONFIG_HEADERS
12557  CONFIG_LINKS    = $CONFIG_LINKS
12558  CONFIG_COMMANDS = $CONFIG_COMMANDS
12559  $ $0 $@
12560
12561on `(hostname || uname -n) 2>/dev/null | sed 1q`
12562"
12563
12564_ACEOF
12565
12566case $ac_config_files in *"
12567"*) set x $ac_config_files; shift; ac_config_files=$*;;
12568esac
12569
12570case $ac_config_headers in *"
12571"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12572esac
12573
12574
12575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12576# Files that config.status was made for.
12577config_files="$ac_config_files"
12578config_headers="$ac_config_headers"
12579config_commands="$ac_config_commands"
12580
12581_ACEOF
12582
12583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12584ac_cs_usage="\
12585\`$as_me' instantiates files and other configuration actions
12586from templates according to the current configuration.  Unless the files
12587and actions are specified as TAGs, all are instantiated by default.
12588
12589Usage: $0 [OPTION]... [TAG]...
12590
12591  -h, --help       print this help, then exit
12592  -V, --version    print version number and configuration settings, then exit
12593      --config     print configuration, then exit
12594  -q, --quiet, --silent
12595                   do not print progress messages
12596  -d, --debug      don't remove temporary files
12597      --recheck    update $as_me by reconfiguring in the same conditions
12598      --file=FILE[:TEMPLATE]
12599                   instantiate the configuration file FILE
12600      --header=FILE[:TEMPLATE]
12601                   instantiate the configuration header FILE
12602
12603Configuration files:
12604$config_files
12605
12606Configuration headers:
12607$config_headers
12608
12609Configuration commands:
12610$config_commands
12611
12612Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12613
12614_ACEOF
12615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12616ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12617ac_cs_version="\\
12618xfs config.status 1.1.3
12619configured by $0, generated by GNU Autoconf 2.68,
12620  with options \\"\$ac_cs_config\\"
12621
12622Copyright (C) 2010 Free Software Foundation, Inc.
12623This config.status script is free software; the Free Software Foundation
12624gives unlimited permission to copy, distribute and modify it."
12625
12626ac_pwd='$ac_pwd'
12627srcdir='$srcdir'
12628INSTALL='$INSTALL'
12629MKDIR_P='$MKDIR_P'
12630AWK='$AWK'
12631test -n "\$AWK" || AWK=awk
12632_ACEOF
12633
12634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12635# The default lists apply if the user does not specify any file.
12636ac_need_defaults=:
12637while test $# != 0
12638do
12639  case $1 in
12640  --*=?*)
12641    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12642    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12643    ac_shift=:
12644    ;;
12645  --*=)
12646    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12647    ac_optarg=
12648    ac_shift=:
12649    ;;
12650  *)
12651    ac_option=$1
12652    ac_optarg=$2
12653    ac_shift=shift
12654    ;;
12655  esac
12656
12657  case $ac_option in
12658  # Handling of the options.
12659  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12660    ac_cs_recheck=: ;;
12661  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12662    $as_echo "$ac_cs_version"; exit ;;
12663  --config | --confi | --conf | --con | --co | --c )
12664    $as_echo "$ac_cs_config"; exit ;;
12665  --debug | --debu | --deb | --de | --d | -d )
12666    debug=: ;;
12667  --file | --fil | --fi | --f )
12668    $ac_shift
12669    case $ac_optarg in
12670    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12671    '') as_fn_error $? "missing file argument" ;;
12672    esac
12673    as_fn_append CONFIG_FILES " '$ac_optarg'"
12674    ac_need_defaults=false;;
12675  --header | --heade | --head | --hea )
12676    $ac_shift
12677    case $ac_optarg in
12678    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12679    esac
12680    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12681    ac_need_defaults=false;;
12682  --he | --h)
12683    # Conflict between --help and --header
12684    as_fn_error $? "ambiguous option: \`$1'
12685Try \`$0 --help' for more information.";;
12686  --help | --hel | -h )
12687    $as_echo "$ac_cs_usage"; exit ;;
12688  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12689  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12690    ac_cs_silent=: ;;
12691
12692  # This is an error.
12693  -*) as_fn_error $? "unrecognized option: \`$1'
12694Try \`$0 --help' for more information." ;;
12695
12696  *) as_fn_append ac_config_targets " $1"
12697     ac_need_defaults=false ;;
12698
12699  esac
12700  shift
12701done
12702
12703ac_configure_extra_args=
12704
12705if $ac_cs_silent; then
12706  exec 6>/dev/null
12707  ac_configure_extra_args="$ac_configure_extra_args --silent"
12708fi
12709
12710_ACEOF
12711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12712if \$ac_cs_recheck; then
12713  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12714  shift
12715  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12716  CONFIG_SHELL='$SHELL'
12717  export CONFIG_SHELL
12718  exec "\$@"
12719fi
12720
12721_ACEOF
12722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12723exec 5>>config.log
12724{
12725  echo
12726  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12727## Running $as_me. ##
12728_ASBOX
12729  $as_echo "$ac_log"
12730} >&5
12731
12732_ACEOF
12733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12734#
12735# INIT-COMMANDS
12736#
12737AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12738
12739_ACEOF
12740
12741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12742
12743# Handling of arguments.
12744for ac_config_target in $ac_config_targets
12745do
12746  case $ac_config_target in
12747    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12748    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12749    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12750    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
12751    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12752    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12753
12754  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12755  esac
12756done
12757
12758
12759# If the user did not use the arguments to specify the items to instantiate,
12760# then the envvar interface is used.  Set only those that are not.
12761# We use the long form for the default assignment because of an extremely
12762# bizarre bug on SunOS 4.1.3.
12763if $ac_need_defaults; then
12764  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12765  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12766  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12767fi
12768
12769# Have a temporary directory for convenience.  Make it in the build tree
12770# simply because there is no reason against having it here, and in addition,
12771# creating and moving files from /tmp can sometimes cause problems.
12772# Hook for its removal unless debugging.
12773# Note that there is a small window in which the directory will not be cleaned:
12774# after its creation but before its name has been assigned to `$tmp'.
12775$debug ||
12776{
12777  tmp= ac_tmp=
12778  trap 'exit_status=$?
12779  : "${ac_tmp:=$tmp}"
12780  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12781' 0
12782  trap 'as_fn_exit 1' 1 2 13 15
12783}
12784# Create a (secure) tmp directory for tmp files.
12785
12786{
12787  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12788  test -d "$tmp"
12789}  ||
12790{
12791  tmp=./conf$$-$RANDOM
12792  (umask 077 && mkdir "$tmp")
12793} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12794ac_tmp=$tmp
12795
12796# Set up the scripts for CONFIG_FILES section.
12797# No need to generate them if there are no CONFIG_FILES.
12798# This happens for instance with `./config.status config.h'.
12799if test -n "$CONFIG_FILES"; then
12800
12801
12802ac_cr=`echo X | tr X '\015'`
12803# On cygwin, bash can eat \r inside `` if the user requested igncr.
12804# But we know of no other shell where ac_cr would be empty at this
12805# point, so we can use a bashism as a fallback.
12806if test "x$ac_cr" = x; then
12807  eval ac_cr=\$\'\\r\'
12808fi
12809ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12810if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12811  ac_cs_awk_cr='\\r'
12812else
12813  ac_cs_awk_cr=$ac_cr
12814fi
12815
12816echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12817_ACEOF
12818
12819
12820{
12821  echo "cat >conf$$subs.awk <<_ACEOF" &&
12822  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12823  echo "_ACEOF"
12824} >conf$$subs.sh ||
12825  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12826ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12827ac_delim='%!_!# '
12828for ac_last_try in false false false false false :; do
12829  . ./conf$$subs.sh ||
12830    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12831
12832  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12833  if test $ac_delim_n = $ac_delim_num; then
12834    break
12835  elif $ac_last_try; then
12836    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12837  else
12838    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12839  fi
12840done
12841rm -f conf$$subs.sh
12842
12843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12844cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12845_ACEOF
12846sed -n '
12847h
12848s/^/S["/; s/!.*/"]=/
12849p
12850g
12851s/^[^!]*!//
12852:repl
12853t repl
12854s/'"$ac_delim"'$//
12855t delim
12856:nl
12857h
12858s/\(.\{148\}\)..*/\1/
12859t more1
12860s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12861p
12862n
12863b repl
12864:more1
12865s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12866p
12867g
12868s/.\{148\}//
12869t nl
12870:delim
12871h
12872s/\(.\{148\}\)..*/\1/
12873t more2
12874s/["\\]/\\&/g; s/^/"/; s/$/"/
12875p
12876b
12877:more2
12878s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12879p
12880g
12881s/.\{148\}//
12882t delim
12883' <conf$$subs.awk | sed '
12884/^[^""]/{
12885  N
12886  s/\n//
12887}
12888' >>$CONFIG_STATUS || ac_write_fail=1
12889rm -f conf$$subs.awk
12890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12891_ACAWK
12892cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12893  for (key in S) S_is_set[key] = 1
12894  FS = ""
12895
12896}
12897{
12898  line = $ 0
12899  nfields = split(line, field, "@")
12900  substed = 0
12901  len = length(field[1])
12902  for (i = 2; i < nfields; i++) {
12903    key = field[i]
12904    keylen = length(key)
12905    if (S_is_set[key]) {
12906      value = S[key]
12907      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12908      len += length(value) + length(field[++i])
12909      substed = 1
12910    } else
12911      len += 1 + keylen
12912  }
12913
12914  print line
12915}
12916
12917_ACAWK
12918_ACEOF
12919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12920if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12921  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12922else
12923  cat
12924fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12925  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12926_ACEOF
12927
12928# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12929# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12930# trailing colons and then remove the whole line if VPATH becomes empty
12931# (actually we leave an empty line to preserve line numbers).
12932if test "x$srcdir" = x.; then
12933  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12934h
12935s///
12936s/^/:/
12937s/[	 ]*$/:/
12938s/:\$(srcdir):/:/g
12939s/:\${srcdir}:/:/g
12940s/:@srcdir@:/:/g
12941s/^:*//
12942s/:*$//
12943x
12944s/\(=[	 ]*\).*/\1/
12945G
12946s/\n//
12947s/^[^=]*=[	 ]*$//
12948}'
12949fi
12950
12951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12952fi # test -n "$CONFIG_FILES"
12953
12954# Set up the scripts for CONFIG_HEADERS section.
12955# No need to generate them if there are no CONFIG_HEADERS.
12956# This happens for instance with `./config.status Makefile'.
12957if test -n "$CONFIG_HEADERS"; then
12958cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12959BEGIN {
12960_ACEOF
12961
12962# Transform confdefs.h into an awk script `defines.awk', embedded as
12963# here-document in config.status, that substitutes the proper values into
12964# config.h.in to produce config.h.
12965
12966# Create a delimiter string that does not exist in confdefs.h, to ease
12967# handling of long lines.
12968ac_delim='%!_!# '
12969for ac_last_try in false false :; do
12970  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12971  if test -z "$ac_tt"; then
12972    break
12973  elif $ac_last_try; then
12974    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12975  else
12976    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12977  fi
12978done
12979
12980# For the awk script, D is an array of macro values keyed by name,
12981# likewise P contains macro parameters if any.  Preserve backslash
12982# newline sequences.
12983
12984ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12985sed -n '
12986s/.\{148\}/&'"$ac_delim"'/g
12987t rset
12988:rset
12989s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12990t def
12991d
12992:def
12993s/\\$//
12994t bsnl
12995s/["\\]/\\&/g
12996s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12997D["\1"]=" \3"/p
12998s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12999d
13000:bsnl
13001s/["\\]/\\&/g
13002s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13003D["\1"]=" \3\\\\\\n"\\/p
13004t cont
13005s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13006t cont
13007d
13008:cont
13009n
13010s/.\{148\}/&'"$ac_delim"'/g
13011t clear
13012:clear
13013s/\\$//
13014t bsnlc
13015s/["\\]/\\&/g; s/^/"/; s/$/"/p
13016d
13017:bsnlc
13018s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13019b cont
13020' <confdefs.h | sed '
13021s/'"$ac_delim"'/"\\\
13022"/g' >>$CONFIG_STATUS || ac_write_fail=1
13023
13024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13025  for (key in D) D_is_set[key] = 1
13026  FS = ""
13027}
13028/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13029  line = \$ 0
13030  split(line, arg, " ")
13031  if (arg[1] == "#") {
13032    defundef = arg[2]
13033    mac1 = arg[3]
13034  } else {
13035    defundef = substr(arg[1], 2)
13036    mac1 = arg[2]
13037  }
13038  split(mac1, mac2, "(") #)
13039  macro = mac2[1]
13040  prefix = substr(line, 1, index(line, defundef) - 1)
13041  if (D_is_set[macro]) {
13042    # Preserve the white space surrounding the "#".
13043    print prefix "define", macro P[macro] D[macro]
13044    next
13045  } else {
13046    # Replace #undef with comments.  This is necessary, for example,
13047    # in the case of _POSIX_SOURCE, which is predefined and required
13048    # on some systems where configure will not decide to define it.
13049    if (defundef == "undef") {
13050      print "/*", prefix defundef, macro, "*/"
13051      next
13052    }
13053  }
13054}
13055{ print }
13056_ACAWK
13057_ACEOF
13058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13059  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13060fi # test -n "$CONFIG_HEADERS"
13061
13062
13063eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13064shift
13065for ac_tag
13066do
13067  case $ac_tag in
13068  :[FHLC]) ac_mode=$ac_tag; continue;;
13069  esac
13070  case $ac_mode$ac_tag in
13071  :[FHL]*:*);;
13072  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13073  :[FH]-) ac_tag=-:-;;
13074  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13075  esac
13076  ac_save_IFS=$IFS
13077  IFS=:
13078  set x $ac_tag
13079  IFS=$ac_save_IFS
13080  shift
13081  ac_file=$1
13082  shift
13083
13084  case $ac_mode in
13085  :L) ac_source=$1;;
13086  :[FH])
13087    ac_file_inputs=
13088    for ac_f
13089    do
13090      case $ac_f in
13091      -) ac_f="$ac_tmp/stdin";;
13092      *) # Look for the file first in the build tree, then in the source tree
13093	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13094	 # because $ac_f cannot contain `:'.
13095	 test -f "$ac_f" ||
13096	   case $ac_f in
13097	   [\\/$]*) false;;
13098	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13099	   esac ||
13100	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13101      esac
13102      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13103      as_fn_append ac_file_inputs " '$ac_f'"
13104    done
13105
13106    # Let's still pretend it is `configure' which instantiates (i.e., don't
13107    # use $as_me), people would be surprised to read:
13108    #    /* config.h.  Generated by config.status.  */
13109    configure_input='Generated from '`
13110	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13111	`' by configure.'
13112    if test x"$ac_file" != x-; then
13113      configure_input="$ac_file.  $configure_input"
13114      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13115$as_echo "$as_me: creating $ac_file" >&6;}
13116    fi
13117    # Neutralize special characters interpreted by sed in replacement strings.
13118    case $configure_input in #(
13119    *\&* | *\|* | *\\* )
13120       ac_sed_conf_input=`$as_echo "$configure_input" |
13121       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13122    *) ac_sed_conf_input=$configure_input;;
13123    esac
13124
13125    case $ac_tag in
13126    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13127      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13128    esac
13129    ;;
13130  esac
13131
13132  ac_dir=`$as_dirname -- "$ac_file" ||
13133$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13134	 X"$ac_file" : 'X\(//\)[^/]' \| \
13135	 X"$ac_file" : 'X\(//\)$' \| \
13136	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13137$as_echo X"$ac_file" |
13138    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13139	    s//\1/
13140	    q
13141	  }
13142	  /^X\(\/\/\)[^/].*/{
13143	    s//\1/
13144	    q
13145	  }
13146	  /^X\(\/\/\)$/{
13147	    s//\1/
13148	    q
13149	  }
13150	  /^X\(\/\).*/{
13151	    s//\1/
13152	    q
13153	  }
13154	  s/.*/./; q'`
13155  as_dir="$ac_dir"; as_fn_mkdir_p
13156  ac_builddir=.
13157
13158case "$ac_dir" in
13159.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13160*)
13161  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13162  # A ".." for each directory in $ac_dir_suffix.
13163  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13164  case $ac_top_builddir_sub in
13165  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13166  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13167  esac ;;
13168esac
13169ac_abs_top_builddir=$ac_pwd
13170ac_abs_builddir=$ac_pwd$ac_dir_suffix
13171# for backward compatibility:
13172ac_top_builddir=$ac_top_build_prefix
13173
13174case $srcdir in
13175  .)  # We are building in place.
13176    ac_srcdir=.
13177    ac_top_srcdir=$ac_top_builddir_sub
13178    ac_abs_top_srcdir=$ac_pwd ;;
13179  [\\/]* | ?:[\\/]* )  # Absolute name.
13180    ac_srcdir=$srcdir$ac_dir_suffix;
13181    ac_top_srcdir=$srcdir
13182    ac_abs_top_srcdir=$srcdir ;;
13183  *) # Relative name.
13184    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13185    ac_top_srcdir=$ac_top_build_prefix$srcdir
13186    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13187esac
13188ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13189
13190
13191  case $ac_mode in
13192  :F)
13193  #
13194  # CONFIG_FILE
13195  #
13196
13197  case $INSTALL in
13198  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13199  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13200  esac
13201  ac_MKDIR_P=$MKDIR_P
13202  case $MKDIR_P in
13203  [\\/$]* | ?:[\\/]* ) ;;
13204  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13205  esac
13206_ACEOF
13207
13208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13209# If the template does not know about datarootdir, expand it.
13210# FIXME: This hack should be removed a few years after 2.60.
13211ac_datarootdir_hack=; ac_datarootdir_seen=
13212ac_sed_dataroot='
13213/datarootdir/ {
13214  p
13215  q
13216}
13217/@datadir@/p
13218/@docdir@/p
13219/@infodir@/p
13220/@localedir@/p
13221/@mandir@/p'
13222case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13223*datarootdir*) ac_datarootdir_seen=yes;;
13224*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13225  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13226$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13227_ACEOF
13228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13229  ac_datarootdir_hack='
13230  s&@datadir@&$datadir&g
13231  s&@docdir@&$docdir&g
13232  s&@infodir@&$infodir&g
13233  s&@localedir@&$localedir&g
13234  s&@mandir@&$mandir&g
13235  s&\\\${datarootdir}&$datarootdir&g' ;;
13236esac
13237_ACEOF
13238
13239# Neutralize VPATH when `$srcdir' = `.'.
13240# Shell code in configure.ac might set extrasub.
13241# FIXME: do we really want to maintain this feature?
13242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13243ac_sed_extra="$ac_vpsub
13244$extrasub
13245_ACEOF
13246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13247:t
13248/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13249s|@configure_input@|$ac_sed_conf_input|;t t
13250s&@top_builddir@&$ac_top_builddir_sub&;t t
13251s&@top_build_prefix@&$ac_top_build_prefix&;t t
13252s&@srcdir@&$ac_srcdir&;t t
13253s&@abs_srcdir@&$ac_abs_srcdir&;t t
13254s&@top_srcdir@&$ac_top_srcdir&;t t
13255s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13256s&@builddir@&$ac_builddir&;t t
13257s&@abs_builddir@&$ac_abs_builddir&;t t
13258s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13259s&@INSTALL@&$ac_INSTALL&;t t
13260s&@MKDIR_P@&$ac_MKDIR_P&;t t
13261$ac_datarootdir_hack
13262"
13263eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13264  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13265
13266test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13267  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13268  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13269      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13270  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13271which seems to be undefined.  Please make sure it is defined" >&5
13272$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13273which seems to be undefined.  Please make sure it is defined" >&2;}
13274
13275  rm -f "$ac_tmp/stdin"
13276  case $ac_file in
13277  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13278  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13279  esac \
13280  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13281 ;;
13282  :H)
13283  #
13284  # CONFIG_HEADER
13285  #
13286  if test x"$ac_file" != x-; then
13287    {
13288      $as_echo "/* $configure_input  */" \
13289      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13290    } >"$ac_tmp/config.h" \
13291      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13292    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13293      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13294$as_echo "$as_me: $ac_file is unchanged" >&6;}
13295    else
13296      rm -f "$ac_file"
13297      mv "$ac_tmp/config.h" "$ac_file" \
13298	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13299    fi
13300  else
13301    $as_echo "/* $configure_input  */" \
13302      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13303      || as_fn_error $? "could not create -" "$LINENO" 5
13304  fi
13305# Compute "$ac_file"'s index in $config_headers.
13306_am_arg="$ac_file"
13307_am_stamp_count=1
13308for _am_header in $config_headers :; do
13309  case $_am_header in
13310    $_am_arg | $_am_arg:* )
13311      break ;;
13312    * )
13313      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13314  esac
13315done
13316echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13317$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13318	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13319	 X"$_am_arg" : 'X\(//\)$' \| \
13320	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13321$as_echo X"$_am_arg" |
13322    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13323	    s//\1/
13324	    q
13325	  }
13326	  /^X\(\/\/\)[^/].*/{
13327	    s//\1/
13328	    q
13329	  }
13330	  /^X\(\/\/\)$/{
13331	    s//\1/
13332	    q
13333	  }
13334	  /^X\(\/\).*/{
13335	    s//\1/
13336	    q
13337	  }
13338	  s/.*/./; q'`/stamp-h$_am_stamp_count
13339 ;;
13340
13341  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13342$as_echo "$as_me: executing $ac_file commands" >&6;}
13343 ;;
13344  esac
13345
13346
13347  case $ac_file$ac_mode in
13348    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13349  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13350  # are listed without --file.  Let's play safe and only enable the eval
13351  # if we detect the quoting.
13352  case $CONFIG_FILES in
13353  *\'*) eval set x "$CONFIG_FILES" ;;
13354  *)   set x $CONFIG_FILES ;;
13355  esac
13356  shift
13357  for mf
13358  do
13359    # Strip MF so we end up with the name of the file.
13360    mf=`echo "$mf" | sed -e 's/:.*$//'`
13361    # Check whether this is an Automake generated Makefile or not.
13362    # We used to match only the files named `Makefile.in', but
13363    # some people rename them; so instead we look at the file content.
13364    # Grep'ing the first line is not enough: some people post-process
13365    # each Makefile.in and add a new line on top of each file to say so.
13366    # Grep'ing the whole file is not good either: AIX grep has a line
13367    # limit of 2048, but all sed's we know have understand at least 4000.
13368    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13369      dirpart=`$as_dirname -- "$mf" ||
13370$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13371	 X"$mf" : 'X\(//\)[^/]' \| \
13372	 X"$mf" : 'X\(//\)$' \| \
13373	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13374$as_echo X"$mf" |
13375    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13376	    s//\1/
13377	    q
13378	  }
13379	  /^X\(\/\/\)[^/].*/{
13380	    s//\1/
13381	    q
13382	  }
13383	  /^X\(\/\/\)$/{
13384	    s//\1/
13385	    q
13386	  }
13387	  /^X\(\/\).*/{
13388	    s//\1/
13389	    q
13390	  }
13391	  s/.*/./; q'`
13392    else
13393      continue
13394    fi
13395    # Extract the definition of DEPDIR, am__include, and am__quote
13396    # from the Makefile without running `make'.
13397    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13398    test -z "$DEPDIR" && continue
13399    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13400    test -z "am__include" && continue
13401    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13402    # When using ansi2knr, U may be empty or an underscore; expand it
13403    U=`sed -n 's/^U = //p' < "$mf"`
13404    # Find all dependency output files, they are included files with
13405    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13406    # simplest approach to changing $(DEPDIR) to its actual value in the
13407    # expansion.
13408    for file in `sed -n "
13409      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13410	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13411      # Make sure the directory exists.
13412      test -f "$dirpart/$file" && continue
13413      fdir=`$as_dirname -- "$file" ||
13414$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13415	 X"$file" : 'X\(//\)[^/]' \| \
13416	 X"$file" : 'X\(//\)$' \| \
13417	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13418$as_echo X"$file" |
13419    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13420	    s//\1/
13421	    q
13422	  }
13423	  /^X\(\/\/\)[^/].*/{
13424	    s//\1/
13425	    q
13426	  }
13427	  /^X\(\/\/\)$/{
13428	    s//\1/
13429	    q
13430	  }
13431	  /^X\(\/\).*/{
13432	    s//\1/
13433	    q
13434	  }
13435	  s/.*/./; q'`
13436      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13437      # echo "creating $dirpart/$file"
13438      echo '# dummy' > "$dirpart/$file"
13439    done
13440  done
13441}
13442 ;;
13443
13444  esac
13445done # for ac_tag
13446
13447
13448as_fn_exit 0
13449_ACEOF
13450ac_clean_files=$ac_clean_files_save
13451
13452test $ac_write_fail = 0 ||
13453  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13454
13455
13456# configure is writing to config.log, and then calls config.status.
13457# config.status does its own redirection, appending to config.log.
13458# Unfortunately, on DOS this fails, as config.log is still kept open
13459# by configure, so config.status won't be able to write to it; its
13460# output is simply discarded.  So we exec the FD to /dev/null,
13461# effectively closing config.log, so it can be properly (re)opened and
13462# appended to by config.status.  When coming back to configure, we
13463# need to make the FD available again.
13464if test "$no_create" != yes; then
13465  ac_cs_success=:
13466  ac_config_status_args=
13467  test "$silent" = yes &&
13468    ac_config_status_args="$ac_config_status_args --quiet"
13469  exec 5>/dev/null
13470  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13471  exec 5>>config.log
13472  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13473  # would make configure fail if this is the last instruction.
13474  $ac_cs_success || as_fn_exit 1
13475fi
13476if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13477  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13478$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13479fi
13480
13481