configure revision 8f34cbf9
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xfs 1.1.4.
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.4'
625PACKAGE_STRING='xfs 1.1.4'
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
701MAN_SUBSTS
702XORG_MAN_PAGE
703ADMIN_MAN_DIR
704DRIVER_MAN_DIR
705MISC_MAN_DIR
706FILE_MAN_DIR
707LIB_MAN_DIR
708APP_MAN_DIR
709ADMIN_MAN_SUFFIX
710DRIVER_MAN_SUFFIX
711MISC_MAN_SUFFIX
712FILE_MAN_SUFFIX
713LIB_MAN_SUFFIX
714APP_MAN_SUFFIX
715SED
716host_os
717host_vendor
718host_cpu
719host
720build_os
721build_vendor
722build_cpu
723build
724INSTALL_CMD
725PKG_CONFIG
726CHANGELOG_CMD
727STRICT_CFLAGS
728CWARNFLAGS
729BASE_CFLAGS
730AM_BACKSLASH
731AM_DEFAULT_VERBOSITY
732AM_DEFAULT_V
733AM_V
734am__fastdepCC_FALSE
735am__fastdepCC_TRUE
736CCDEPMODE
737am__nodep
738AMDEPBACKSLASH
739AMDEP_FALSE
740AMDEP_TRUE
741am__quote
742am__include
743DEPDIR
744am__untar
745am__tar
746AMTAR
747am__leading_dot
748SET_MAKE
749AWK
750mkdir_p
751MKDIR_P
752INSTALL_STRIP_PROGRAM
753STRIP
754install_sh
755MAKEINFO
756AUTOHEADER
757AUTOMAKE
758AUTOCONF
759ACLOCAL
760VERSION
761PACKAGE
762CYGPATH_W
763am__isrc
764INSTALL_DATA
765INSTALL_SCRIPT
766INSTALL_PROGRAM
767EGREP
768GREP
769CPP
770OBJEXT
771EXEEXT
772ac_ct_CC
773CPPFLAGS
774LDFLAGS
775CFLAGS
776CC
777target_alias
778host_alias
779build_alias
780LIBS
781ECHO_T
782ECHO_N
783ECHO_C
784DEFS
785mandir
786localedir
787libdir
788psdir
789pdfdir
790dvidir
791htmldir
792infodir
793docdir
794oldincludedir
795includedir
796localstatedir
797sharedstatedir
798sysconfdir
799datadir
800datarootdir
801libexecdir
802sbindir
803bindir
804program_transform_name
805prefix
806exec_prefix
807PACKAGE_URL
808PACKAGE_BUGREPORT
809PACKAGE_STRING
810PACKAGE_VERSION
811PACKAGE_TARNAME
812PACKAGE_NAME
813PATH_SEPARATOR
814SHELL'
815ac_subst_files=''
816ac_user_opts='
817enable_option_checking
818enable_dependency_tracking
819enable_silent_rules
820enable_selective_werror
821enable_strict_compilation
822enable_devel_docs
823with_xmlto
824with_fop
825with_lint
826with_default_config_file
827with_fontrootdir
828with_fontmiscdir
829with_fontotfdir
830with_fontttfdir
831with_fonttype1dir
832with_font75dpidir
833with_font100dpidir
834with_default_font_path
835enable_inetd
836enable_syslog
837enable_unix_transport
838enable_tcp_transport
839enable_ipv6
840enable_local_transport
841'
842      ac_precious_vars='build_alias
843host_alias
844target_alias
845CC
846CFLAGS
847LDFLAGS
848LIBS
849CPPFLAGS
850CPP
851PKG_CONFIG
852XMLTO
853FOP
854LINT
855LINT_FLAGS
856XFS_CFLAGS
857XFS_LIBS'
858
859
860# Initialize some variables set by options.
861ac_init_help=
862ac_init_version=false
863ac_unrecognized_opts=
864ac_unrecognized_sep=
865# The variables have the same names as the options, with
866# dashes changed to underlines.
867cache_file=/dev/null
868exec_prefix=NONE
869no_create=
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
878verbose=
879x_includes=NONE
880x_libraries=NONE
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
887# (The list follows the same order as the GNU Coding Standards.)
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
896includedir='${prefix}/include'
897oldincludedir='/usr/include'
898docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899infodir='${datarootdir}/info'
900htmldir='${docdir}'
901dvidir='${docdir}'
902pdfdir='${docdir}'
903psdir='${docdir}'
904libdir='${exec_prefix}/lib'
905localedir='${datarootdir}/locale'
906mandir='${datarootdir}/man'
907
908ac_prev=
909ac_dashdash=
910for ac_option
911do
912  # If the previous option needs an argument, assign it.
913  if test -n "$ac_prev"; then
914    eval $ac_prev=\$ac_option
915    ac_prev=
916    continue
917  fi
918
919  case $ac_option in
920  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921  *=)   ac_optarg= ;;
922  *)    ac_optarg=yes ;;
923  esac
924
925  # Accept the important Cygnus configure options, so we can diagnose typos.
926
927  case $ac_dashdash$ac_option in
928  --)
929    ac_dashdash=yes ;;
930
931  -bindir | --bindir | --bindi | --bind | --bin | --bi)
932    ac_prev=bindir ;;
933  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934    bindir=$ac_optarg ;;
935
936  -build | --build | --buil | --bui | --bu)
937    ac_prev=build_alias ;;
938  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939    build_alias=$ac_optarg ;;
940
941  -cache-file | --cache-file | --cache-fil | --cache-fi \
942  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943    ac_prev=cache_file ;;
944  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946    cache_file=$ac_optarg ;;
947
948  --config-cache | -C)
949    cache_file=config.cache ;;
950
951  -datadir | --datadir | --datadi | --datad)
952    ac_prev=datadir ;;
953  -datadir=* | --datadir=* | --datadi=* | --datad=*)
954    datadir=$ac_optarg ;;
955
956  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957  | --dataroo | --dataro | --datar)
958    ac_prev=datarootdir ;;
959  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961    datarootdir=$ac_optarg ;;
962
963  -disable-* | --disable-*)
964    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965    # Reject names that are not valid shell variable names.
966    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967      as_fn_error $? "invalid feature name: $ac_useropt"
968    ac_useropt_orig=$ac_useropt
969    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970    case $ac_user_opts in
971      *"
972"enable_$ac_useropt"
973"*) ;;
974      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975	 ac_unrecognized_sep=', ';;
976    esac
977    eval enable_$ac_useropt=no ;;
978
979  -docdir | --docdir | --docdi | --doc | --do)
980    ac_prev=docdir ;;
981  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982    docdir=$ac_optarg ;;
983
984  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985    ac_prev=dvidir ;;
986  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987    dvidir=$ac_optarg ;;
988
989  -enable-* | --enable-*)
990    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991    # Reject names that are not valid shell variable names.
992    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993      as_fn_error $? "invalid feature name: $ac_useropt"
994    ac_useropt_orig=$ac_useropt
995    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996    case $ac_user_opts in
997      *"
998"enable_$ac_useropt"
999"*) ;;
1000      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001	 ac_unrecognized_sep=', ';;
1002    esac
1003    eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007  | --exec | --exe | --ex)
1008    ac_prev=exec_prefix ;;
1009  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011  | --exec=* | --exe=* | --ex=*)
1012    exec_prefix=$ac_optarg ;;
1013
1014  -gas | --gas | --ga | --g)
1015    # Obsolete; use --with-gas.
1016    with_gas=yes ;;
1017
1018  -help | --help | --hel | --he | -h)
1019    ac_init_help=long ;;
1020  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021    ac_init_help=recursive ;;
1022  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023    ac_init_help=short ;;
1024
1025  -host | --host | --hos | --ho)
1026    ac_prev=host_alias ;;
1027  -host=* | --host=* | --hos=* | --ho=*)
1028    host_alias=$ac_optarg ;;
1029
1030  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031    ac_prev=htmldir ;;
1032  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033  | --ht=*)
1034    htmldir=$ac_optarg ;;
1035
1036  -includedir | --includedir | --includedi | --included | --include \
1037  | --includ | --inclu | --incl | --inc)
1038    ac_prev=includedir ;;
1039  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040  | --includ=* | --inclu=* | --incl=* | --inc=*)
1041    includedir=$ac_optarg ;;
1042
1043  -infodir | --infodir | --infodi | --infod | --info | --inf)
1044    ac_prev=infodir ;;
1045  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046    infodir=$ac_optarg ;;
1047
1048  -libdir | --libdir | --libdi | --libd)
1049    ac_prev=libdir ;;
1050  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051    libdir=$ac_optarg ;;
1052
1053  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054  | --libexe | --libex | --libe)
1055    ac_prev=libexecdir ;;
1056  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057  | --libexe=* | --libex=* | --libe=*)
1058    libexecdir=$ac_optarg ;;
1059
1060  -localedir | --localedir | --localedi | --localed | --locale)
1061    ac_prev=localedir ;;
1062  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063    localedir=$ac_optarg ;;
1064
1065  -localstatedir | --localstatedir | --localstatedi | --localstated \
1066  | --localstate | --localstat | --localsta | --localst | --locals)
1067    ac_prev=localstatedir ;;
1068  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070    localstatedir=$ac_optarg ;;
1071
1072  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073    ac_prev=mandir ;;
1074  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075    mandir=$ac_optarg ;;
1076
1077  -nfp | --nfp | --nf)
1078    # Obsolete; use --without-fp.
1079    with_fp=no ;;
1080
1081  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082  | --no-cr | --no-c | -n)
1083    no_create=yes ;;
1084
1085  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087    no_recursion=yes ;;
1088
1089  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091  | --oldin | --oldi | --old | --ol | --o)
1092    ac_prev=oldincludedir ;;
1093  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096    oldincludedir=$ac_optarg ;;
1097
1098  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099    ac_prev=prefix ;;
1100  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101    prefix=$ac_optarg ;;
1102
1103  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104  | --program-pre | --program-pr | --program-p)
1105    ac_prev=program_prefix ;;
1106  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108    program_prefix=$ac_optarg ;;
1109
1110  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111  | --program-suf | --program-su | --program-s)
1112    ac_prev=program_suffix ;;
1113  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115    program_suffix=$ac_optarg ;;
1116
1117  -program-transform-name | --program-transform-name \
1118  | --program-transform-nam | --program-transform-na \
1119  | --program-transform-n | --program-transform- \
1120  | --program-transform | --program-transfor \
1121  | --program-transfo | --program-transf \
1122  | --program-trans | --program-tran \
1123  | --progr-tra | --program-tr | --program-t)
1124    ac_prev=program_transform_name ;;
1125  -program-transform-name=* | --program-transform-name=* \
1126  | --program-transform-nam=* | --program-transform-na=* \
1127  | --program-transform-n=* | --program-transform-=* \
1128  | --program-transform=* | --program-transfor=* \
1129  | --program-transfo=* | --program-transf=* \
1130  | --program-trans=* | --program-tran=* \
1131  | --progr-tra=* | --program-tr=* | --program-t=*)
1132    program_transform_name=$ac_optarg ;;
1133
1134  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135    ac_prev=pdfdir ;;
1136  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137    pdfdir=$ac_optarg ;;
1138
1139  -psdir | --psdir | --psdi | --psd | --ps)
1140    ac_prev=psdir ;;
1141  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142    psdir=$ac_optarg ;;
1143
1144  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145  | -silent | --silent | --silen | --sile | --sil)
1146    silent=yes ;;
1147
1148  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149    ac_prev=sbindir ;;
1150  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151  | --sbi=* | --sb=*)
1152    sbindir=$ac_optarg ;;
1153
1154  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156  | --sharedst | --shareds | --shared | --share | --shar \
1157  | --sha | --sh)
1158    ac_prev=sharedstatedir ;;
1159  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162  | --sha=* | --sh=*)
1163    sharedstatedir=$ac_optarg ;;
1164
1165  -site | --site | --sit)
1166    ac_prev=site ;;
1167  -site=* | --site=* | --sit=*)
1168    site=$ac_optarg ;;
1169
1170  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171    ac_prev=srcdir ;;
1172  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173    srcdir=$ac_optarg ;;
1174
1175  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176  | --syscon | --sysco | --sysc | --sys | --sy)
1177    ac_prev=sysconfdir ;;
1178  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180    sysconfdir=$ac_optarg ;;
1181
1182  -target | --target | --targe | --targ | --tar | --ta | --t)
1183    ac_prev=target_alias ;;
1184  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185    target_alias=$ac_optarg ;;
1186
1187  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188    verbose=yes ;;
1189
1190  -version | --version | --versio | --versi | --vers | -V)
1191    ac_init_version=: ;;
1192
1193  -with-* | --with-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: $ac_useropt"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=\$ac_optarg ;;
1208
1209  -without-* | --without-*)
1210    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211    # Reject names that are not valid shell variable names.
1212    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213      as_fn_error $? "invalid package name: $ac_useropt"
1214    ac_useropt_orig=$ac_useropt
1215    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216    case $ac_user_opts in
1217      *"
1218"with_$ac_useropt"
1219"*) ;;
1220      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221	 ac_unrecognized_sep=', ';;
1222    esac
1223    eval with_$ac_useropt=no ;;
1224
1225  --x)
1226    # Obsolete; use --with-x.
1227    with_x=yes ;;
1228
1229  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230  | --x-incl | --x-inc | --x-in | --x-i)
1231    ac_prev=x_includes ;;
1232  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234    x_includes=$ac_optarg ;;
1235
1236  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238    ac_prev=x_libraries ;;
1239  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241    x_libraries=$ac_optarg ;;
1242
1243  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
1245    ;;
1246
1247  *=*)
1248    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249    # Reject names that are not valid shell variable names.
1250    case $ac_envvar in #(
1251      '' | [0-9]* | *[!_$as_cr_alnum]* )
1252      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253    esac
1254    eval $ac_envvar=\$ac_optarg
1255    export $ac_envvar ;;
1256
1257  *)
1258    # FIXME: should be removed in autoconf 3.0.
1259    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263    ;;
1264
1265  esac
1266done
1267
1268if test -n "$ac_prev"; then
1269  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270  as_fn_error $? "missing argument to $ac_option"
1271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274  case $enable_option_checking in
1275    no) ;;
1276    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278  esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283		datadir sysconfdir sharedstatedir localstatedir includedir \
1284		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285		libdir localedir mandir
1286do
1287  eval ac_val=\$$ac_var
1288  # Remove trailing slashes.
1289  case $ac_val in
1290    */ )
1291      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292      eval $ac_var=\$ac_val;;
1293  esac
1294  # Be sure to have absolute directory names.
1295  case $ac_val in
1296    [\\/$]* | ?:[\\/]* )  continue;;
1297    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298  esac
1299  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311  if test "x$build_alias" = x; then
1312    cross_compiling=maybe
1313    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1314    If a cross compiler is detected then cross compile mode will be used" >&2
1315  elif test "x$build_alias" != "x$host_alias"; then
1316    cross_compiling=yes
1317  fi
1318fi
1319
1320ac_tool_prefix=
1321test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323test "$silent" = yes && exec 6>/dev/null
1324
1325
1326ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327ac_ls_di=`ls -di .` &&
1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329  as_fn_error $? "working directory cannot be determined"
1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331  as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336  ac_srcdir_defaulted=yes
1337  # Try the directory containing this script, then the parent directory.
1338  ac_confdir=`$as_dirname -- "$as_myself" ||
1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340	 X"$as_myself" : 'X\(//\)[^/]' \| \
1341	 X"$as_myself" : 'X\(//\)$' \| \
1342	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343$as_echo X"$as_myself" |
1344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)[^/].*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\).*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  s/.*/./; q'`
1361  srcdir=$ac_confdir
1362  if test ! -r "$srcdir/$ac_unique_file"; then
1363    srcdir=..
1364  fi
1365else
1366  ac_srcdir_defaulted=no
1367fi
1368if test ! -r "$srcdir/$ac_unique_file"; then
1369  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371fi
1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373ac_abs_confdir=`(
1374	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375	pwd)`
1376# When building in place, set srcdir=.
1377if test "$ac_abs_confdir" = "$ac_pwd"; then
1378  srcdir=.
1379fi
1380# Remove unnecessary trailing slashes from srcdir.
1381# Double slashes in file names in object file debugging info
1382# mess up M-x gdb in Emacs.
1383case $srcdir in
1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385esac
1386for ac_var in $ac_precious_vars; do
1387  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_env_${ac_var}_value=\$${ac_var}
1389  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391done
1392
1393#
1394# Report the --help message.
1395#
1396if test "$ac_init_help" = "long"; then
1397  # Omit some internal or obsolete options to make the list less imposing.
1398  # This message is too long to be a string in the A/UX 3.1 sh.
1399  cat <<_ACEOF
1400\`configure' configures xfs 1.1.4 to adapt to many kinds of systems.
1401
1402Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405VAR=VALUE.  See below for descriptions of some of the useful variables.
1406
1407Defaults for the options are specified in brackets.
1408
1409Configuration:
1410  -h, --help              display this help and exit
1411      --help=short        display options specific to this package
1412      --help=recursive    display the short help of all the included packages
1413  -V, --version           display version information and exit
1414  -q, --quiet, --silent   do not print \`checking ...' messages
1415      --cache-file=FILE   cache test results in FILE [disabled]
1416  -C, --config-cache      alias for \`--cache-file=config.cache'
1417  -n, --no-create         do not create output files
1418      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1419
1420Installation directories:
1421  --prefix=PREFIX         install architecture-independent files in PREFIX
1422                          [$ac_default_prefix]
1423  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1424                          [PREFIX]
1425
1426By default, \`make install' will install all the files in
1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1428an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429for instance \`--prefix=\$HOME'.
1430
1431For better control, use the options below.
1432
1433Fine tuning of the installation directories:
1434  --bindir=DIR            user executables [EPREFIX/bin]
1435  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1436  --libexecdir=DIR        program executables [EPREFIX/libexec]
1437  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1438  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1439  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1440  --libdir=DIR            object code libraries [EPREFIX/lib]
1441  --includedir=DIR        C header files [PREFIX/include]
1442  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1443  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1444  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1445  --infodir=DIR           info documentation [DATAROOTDIR/info]
1446  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1447  --mandir=DIR            man documentation [DATAROOTDIR/man]
1448  --docdir=DIR            documentation root [DATAROOTDIR/doc/xfs]
1449  --htmldir=DIR           html documentation [DOCDIR]
1450  --dvidir=DIR            dvi documentation [DOCDIR]
1451  --pdfdir=DIR            pdf documentation [DOCDIR]
1452  --psdir=DIR             ps documentation [DOCDIR]
1453_ACEOF
1454
1455  cat <<\_ACEOF
1456
1457Program names:
1458  --program-prefix=PREFIX            prepend PREFIX to installed program names
1459  --program-suffix=SUFFIX            append SUFFIX to installed program names
1460  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1461
1462System types:
1463  --build=BUILD     configure for building on BUILD [guessed]
1464  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1465_ACEOF
1466fi
1467
1468if test -n "$ac_init_help"; then
1469  case $ac_init_help in
1470     short | recursive ) echo "Configuration of xfs 1.1.4:";;
1471   esac
1472  cat <<\_ACEOF
1473
1474Optional Features:
1475  --disable-option-checking  ignore unrecognized --enable/--with options
1476  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1477  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1478  --enable-dependency-tracking
1479                          do not reject slow dependency extractors
1480  --disable-dependency-tracking
1481                          speeds up one-time build
1482  --enable-silent-rules   less verbose build output (undo: "make V=1")
1483  --disable-silent-rules  verbose build output (undo: "make V=0")
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-devel-docs     Enable building the developer documentation
1491                          (default: yes)
1492  --enable-inetd          Support -inetd flag for starting from inetd
1493                          (default: enabled)
1494  --enable-syslog         Support option for logging via syslog (default:
1495                          enabled)
1496  --enable-unix-transport Enable UNIX domain socket transport
1497  --enable-tcp-transport  Enable TCP socket transport
1498  --enable-ipv6           Enable IPv6 support
1499  --enable-local-transport
1500                          Enable os-specific local transport
1501
1502Optional Packages:
1503  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1504  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1505  --with-xmlto            Use xmlto to regenerate documentation (default:
1506                          auto)
1507  --with-fop              Use fop to regenerate documentation (default: auto)
1508  --with-lint             Use a lint-style source code checker (default:
1509                          disabled)
1510  --with-default-config-file=PATH
1511                          comma-separated list of paths to look for config
1512                          file when not specified (default:
1513                          ${sysconfdir}/X11/fs/config)
1514  --with-fontrootdir=DIR  Path to root directory for font files
1515  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
1516  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
1517  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
1518  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
1519  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
1520  --with-font100dpidir=DIR
1521                          Path to 100dpi files [FONTROOTDIR/100dpi]
1522  --with-default-font-path=PATH
1523                          Comma separated list of font dirs
1524
1525Some influential environment variables:
1526  CC          C compiler command
1527  CFLAGS      C compiler flags
1528  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1529              nonstandard directory <lib dir>
1530  LIBS        libraries to pass to the linker, e.g. -l<library>
1531  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1532              you have headers in a nonstandard directory <include dir>
1533  CPP         C preprocessor
1534  PKG_CONFIG  path to pkg-config utility
1535  XMLTO       Path to xmlto command
1536  FOP         Path to fop command
1537  LINT        Path to a lint-style command
1538  LINT_FLAGS  Flags for the lint-style command
1539  XFS_CFLAGS  C compiler flags for XFS, overriding pkg-config
1540  XFS_LIBS    linker flags for XFS, overriding pkg-config
1541
1542Use these variables to override the choices made by `configure' or to help
1543it to find libraries and programs with nonstandard names/locations.
1544
1545Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1546_ACEOF
1547ac_status=$?
1548fi
1549
1550if test "$ac_init_help" = "recursive"; then
1551  # If there are subdirs, report their specific --help.
1552  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553    test -d "$ac_dir" ||
1554      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555      continue
1556    ac_builddir=.
1557
1558case "$ac_dir" in
1559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560*)
1561  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1562  # A ".." for each directory in $ac_dir_suffix.
1563  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1564  case $ac_top_builddir_sub in
1565  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567  esac ;;
1568esac
1569ac_abs_top_builddir=$ac_pwd
1570ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571# for backward compatibility:
1572ac_top_builddir=$ac_top_build_prefix
1573
1574case $srcdir in
1575  .)  # We are building in place.
1576    ac_srcdir=.
1577    ac_top_srcdir=$ac_top_builddir_sub
1578    ac_abs_top_srcdir=$ac_pwd ;;
1579  [\\/]* | ?:[\\/]* )  # Absolute name.
1580    ac_srcdir=$srcdir$ac_dir_suffix;
1581    ac_top_srcdir=$srcdir
1582    ac_abs_top_srcdir=$srcdir ;;
1583  *) # Relative name.
1584    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585    ac_top_srcdir=$ac_top_build_prefix$srcdir
1586    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587esac
1588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589
1590    cd "$ac_dir" || { ac_status=$?; continue; }
1591    # Check for guested configure.
1592    if test -f "$ac_srcdir/configure.gnu"; then
1593      echo &&
1594      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595    elif test -f "$ac_srcdir/configure"; then
1596      echo &&
1597      $SHELL "$ac_srcdir/configure" --help=recursive
1598    else
1599      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600    fi || ac_status=$?
1601    cd "$ac_pwd" || { ac_status=$?; break; }
1602  done
1603fi
1604
1605test -n "$ac_init_help" && exit $ac_status
1606if $ac_init_version; then
1607  cat <<\_ACEOF
1608xfs configure 1.1.4
1609generated by GNU Autoconf 2.68
1610
1611Copyright (C) 2010 Free Software Foundation, Inc.
1612This configure script is free software; the Free Software Foundation
1613gives unlimited permission to copy, distribute and modify it.
1614_ACEOF
1615  exit
1616fi
1617
1618## ------------------------ ##
1619## Autoconf initialization. ##
1620## ------------------------ ##
1621
1622# ac_fn_c_try_compile LINENO
1623# --------------------------
1624# Try to compile conftest.$ac_ext, and return whether this succeeded.
1625ac_fn_c_try_compile ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  rm -f conftest.$ac_objext
1629  if { { ac_try="$ac_compile"
1630case "(($ac_try" in
1631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632  *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636  (eval "$ac_compile") 2>conftest.err
1637  ac_status=$?
1638  if test -s conftest.err; then
1639    grep -v '^ *+' conftest.err >conftest.er1
1640    cat conftest.er1 >&5
1641    mv -f conftest.er1 conftest.err
1642  fi
1643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644  test $ac_status = 0; } && {
1645	 test -z "$ac_c_werror_flag" ||
1646	 test ! -s conftest.err
1647       } && test -s conftest.$ac_objext; then :
1648  ac_retval=0
1649else
1650  $as_echo "$as_me: failed program was:" >&5
1651sed 's/^/| /' conftest.$ac_ext >&5
1652
1653	ac_retval=1
1654fi
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656  as_fn_set_status $ac_retval
1657
1658} # ac_fn_c_try_compile
1659
1660# ac_fn_c_try_cpp LINENO
1661# ----------------------
1662# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_cpp ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  if { { ac_try="$ac_cpp conftest.$ac_ext"
1667case "(($ac_try" in
1668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669  *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1674  ac_status=$?
1675  if test -s conftest.err; then
1676    grep -v '^ *+' conftest.err >conftest.er1
1677    cat conftest.er1 >&5
1678    mv -f conftest.er1 conftest.err
1679  fi
1680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681  test $ac_status = 0; } > conftest.i && {
1682	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1683	 test ! -s conftest.err
1684       }; then :
1685  ac_retval=0
1686else
1687  $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690    ac_retval=1
1691fi
1692  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693  as_fn_set_status $ac_retval
1694
1695} # ac_fn_c_try_cpp
1696
1697# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1698# -------------------------------------------------------
1699# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1700# the include files in INCLUDES and setting the cache variable VAR
1701# accordingly.
1702ac_fn_c_check_header_mongrel ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  if eval \${$3+:} false; then :
1706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707$as_echo_n "checking for $2... " >&6; }
1708if eval \${$3+:} false; then :
1709  $as_echo_n "(cached) " >&6
1710fi
1711eval ac_res=\$$3
1712	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713$as_echo "$ac_res" >&6; }
1714else
1715  # Is the header compilable?
1716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1717$as_echo_n "checking $2 usability... " >&6; }
1718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h.  */
1720$4
1721#include <$2>
1722_ACEOF
1723if ac_fn_c_try_compile "$LINENO"; then :
1724  ac_header_compiler=yes
1725else
1726  ac_header_compiler=no
1727fi
1728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1730$as_echo "$ac_header_compiler" >&6; }
1731
1732# Is the header present?
1733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1734$as_echo_n "checking $2 presence... " >&6; }
1735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h.  */
1737#include <$2>
1738_ACEOF
1739if ac_fn_c_try_cpp "$LINENO"; then :
1740  ac_header_preproc=yes
1741else
1742  ac_header_preproc=no
1743fi
1744rm -f conftest.err conftest.i conftest.$ac_ext
1745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1746$as_echo "$ac_header_preproc" >&6; }
1747
1748# So?  What about this header?
1749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1750  yes:no: )
1751    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1752$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1753    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1754$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1755    ;;
1756  no:yes:* )
1757    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1758$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1759    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1760$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1761    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1762$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1763    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1764$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1765    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1766$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1767( $as_echo "## ---------------------------------------------------------------------- ##
1768## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1769## ---------------------------------------------------------------------- ##"
1770     ) | sed "s/^/$as_me: WARNING:     /" >&2
1771    ;;
1772esac
1773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
1775if eval \${$3+:} false; then :
1776  $as_echo_n "(cached) " >&6
1777else
1778  eval "$3=\$ac_header_compiler"
1779fi
1780eval ac_res=\$$3
1781	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783fi
1784  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786} # ac_fn_c_check_header_mongrel
1787
1788# ac_fn_c_try_run LINENO
1789# ----------------------
1790# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791# that executables *can* be run.
1792ac_fn_c_try_run ()
1793{
1794  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795  if { { ac_try="$ac_link"
1796case "(($ac_try" in
1797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798  *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802  (eval "$ac_link") 2>&5
1803  ac_status=$?
1804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806  { { case "(($ac_try" in
1807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808  *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812  (eval "$ac_try") 2>&5
1813  ac_status=$?
1814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815  test $ac_status = 0; }; }; then :
1816  ac_retval=0
1817else
1818  $as_echo "$as_me: program exited with status $ac_status" >&5
1819       $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822       ac_retval=$ac_status
1823fi
1824  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826  as_fn_set_status $ac_retval
1827
1828} # ac_fn_c_try_run
1829
1830# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1831# -------------------------------------------------------
1832# Tests whether HEADER exists and can be compiled using the include files in
1833# INCLUDES, setting the cache variable VAR accordingly.
1834ac_fn_c_check_header_compile ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838$as_echo_n "checking for $2... " >&6; }
1839if eval \${$3+:} false; then :
1840  $as_echo_n "(cached) " >&6
1841else
1842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844$4
1845#include <$2>
1846_ACEOF
1847if ac_fn_c_try_compile "$LINENO"; then :
1848  eval "$3=yes"
1849else
1850  eval "$3=no"
1851fi
1852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853fi
1854eval ac_res=\$$3
1855	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_header_compile
1860
1861# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1862# ---------------------------------------------
1863# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1864# accordingly.
1865ac_fn_c_check_decl ()
1866{
1867  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868  as_decl_name=`echo $2|sed 's/ *(.*//'`
1869  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1871$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1872if eval \${$3+:} false; then :
1873  $as_echo_n "(cached) " >&6
1874else
1875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877$4
1878int
1879main ()
1880{
1881#ifndef $as_decl_name
1882#ifdef __cplusplus
1883  (void) $as_decl_use;
1884#else
1885  (void) $as_decl_name;
1886#endif
1887#endif
1888
1889  ;
1890  return 0;
1891}
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894  eval "$3=yes"
1895else
1896  eval "$3=no"
1897fi
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899fi
1900eval ac_res=\$$3
1901	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902$as_echo "$ac_res" >&6; }
1903  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905} # ac_fn_c_check_decl
1906
1907# ac_fn_c_try_link LINENO
1908# -----------------------
1909# Try to link conftest.$ac_ext, and return whether this succeeded.
1910ac_fn_c_try_link ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  rm -f conftest.$ac_objext conftest$ac_exeext
1914  if { { ac_try="$ac_link"
1915case "(($ac_try" in
1916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917  *) ac_try_echo=$ac_try;;
1918esac
1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920$as_echo "$ac_try_echo"; } >&5
1921  (eval "$ac_link") 2>conftest.err
1922  ac_status=$?
1923  if test -s conftest.err; then
1924    grep -v '^ *+' conftest.err >conftest.er1
1925    cat conftest.er1 >&5
1926    mv -f conftest.er1 conftest.err
1927  fi
1928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929  test $ac_status = 0; } && {
1930	 test -z "$ac_c_werror_flag" ||
1931	 test ! -s conftest.err
1932       } && test -s conftest$ac_exeext && {
1933	 test "$cross_compiling" = yes ||
1934	 $as_test_x conftest$ac_exeext
1935       }; then :
1936  ac_retval=0
1937else
1938  $as_echo "$as_me: failed program was:" >&5
1939sed 's/^/| /' conftest.$ac_ext >&5
1940
1941	ac_retval=1
1942fi
1943  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1944  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1945  # interfere with the next link command; also delete a directory that is
1946  # left behind by Apple's compiler.  We do this before executing the actions.
1947  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1948  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949  as_fn_set_status $ac_retval
1950
1951} # ac_fn_c_try_link
1952
1953# ac_fn_c_check_func LINENO FUNC VAR
1954# ----------------------------------
1955# Tests whether FUNC exists, setting the cache variable VAR accordingly
1956ac_fn_c_check_func ()
1957{
1958  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960$as_echo_n "checking for $2... " >&6; }
1961if eval \${$3+:} false; then :
1962  $as_echo_n "(cached) " >&6
1963else
1964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h.  */
1966/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1967   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1968#define $2 innocuous_$2
1969
1970/* System header to define __stub macros and hopefully few prototypes,
1971    which can conflict with char $2 (); below.
1972    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1973    <limits.h> exists even on freestanding compilers.  */
1974
1975#ifdef __STDC__
1976# include <limits.h>
1977#else
1978# include <assert.h>
1979#endif
1980
1981#undef $2
1982
1983/* Override any GCC internal prototype to avoid an error.
1984   Use char because int might match the return type of a GCC
1985   builtin and then its argument prototype would still apply.  */
1986#ifdef __cplusplus
1987extern "C"
1988#endif
1989char $2 ();
1990/* The GNU C library defines this for functions which it implements
1991    to always fail with ENOSYS.  Some functions are actually named
1992    something starting with __ and the normal name is an alias.  */
1993#if defined __stub_$2 || defined __stub___$2
1994choke me
1995#endif
1996
1997int
1998main ()
1999{
2000return $2 ();
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_link "$LINENO"; then :
2006  eval "$3=yes"
2007else
2008  eval "$3=no"
2009fi
2010rm -f core conftest.err conftest.$ac_objext \
2011    conftest$ac_exeext conftest.$ac_ext
2012fi
2013eval ac_res=\$$3
2014	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015$as_echo "$ac_res" >&6; }
2016  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017
2018} # ac_fn_c_check_func
2019
2020# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2021# ----------------------------------------------------
2022# Tries to find if the field MEMBER exists in type AGGR, after including
2023# INCLUDES, setting cache variable VAR accordingly.
2024ac_fn_c_check_member ()
2025{
2026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2028$as_echo_n "checking for $2.$3... " >&6; }
2029if eval \${$4+:} false; then :
2030  $as_echo_n "(cached) " >&6
2031else
2032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034$5
2035int
2036main ()
2037{
2038static $2 ac_aggr;
2039if (ac_aggr.$3)
2040return 0;
2041  ;
2042  return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046  eval "$4=yes"
2047else
2048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h.  */
2050$5
2051int
2052main ()
2053{
2054static $2 ac_aggr;
2055if (sizeof ac_aggr.$3)
2056return 0;
2057  ;
2058  return 0;
2059}
2060_ACEOF
2061if ac_fn_c_try_compile "$LINENO"; then :
2062  eval "$4=yes"
2063else
2064  eval "$4=no"
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069fi
2070eval ac_res=\$$4
2071	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072$as_echo "$ac_res" >&6; }
2073  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075} # ac_fn_c_check_member
2076
2077# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078# -------------------------------------------
2079# Tests whether TYPE exists after having included INCLUDES, setting cache
2080# variable VAR accordingly.
2081ac_fn_c_check_type ()
2082{
2083  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085$as_echo_n "checking for $2... " >&6; }
2086if eval \${$3+:} false; then :
2087  $as_echo_n "(cached) " >&6
2088else
2089  eval "$3=no"
2090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h.  */
2092$4
2093int
2094main ()
2095{
2096if (sizeof ($2))
2097	 return 0;
2098  ;
2099  return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h.  */
2105$4
2106int
2107main ()
2108{
2109if (sizeof (($2)))
2110	    return 0;
2111  ;
2112  return 0;
2113}
2114_ACEOF
2115if ac_fn_c_try_compile "$LINENO"; then :
2116
2117else
2118  eval "$3=yes"
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121fi
2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123fi
2124eval ac_res=\$$3
2125	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126$as_echo "$ac_res" >&6; }
2127  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129} # ac_fn_c_check_type
2130cat >config.log <<_ACEOF
2131This file contains any messages produced by compilers while
2132running configure, to aid debugging if configure makes a mistake.
2133
2134It was created by xfs $as_me 1.1.4, which was
2135generated by GNU Autoconf 2.68.  Invocation command line was
2136
2137  $ $0 $@
2138
2139_ACEOF
2140exec 5>>config.log
2141{
2142cat <<_ASUNAME
2143## --------- ##
2144## Platform. ##
2145## --------- ##
2146
2147hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2148uname -m = `(uname -m) 2>/dev/null || echo unknown`
2149uname -r = `(uname -r) 2>/dev/null || echo unknown`
2150uname -s = `(uname -s) 2>/dev/null || echo unknown`
2151uname -v = `(uname -v) 2>/dev/null || echo unknown`
2152
2153/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2154/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2155
2156/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2157/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2158/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2159/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2160/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2161/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2162/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2163
2164_ASUNAME
2165
2166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167for as_dir in $PATH
2168do
2169  IFS=$as_save_IFS
2170  test -z "$as_dir" && as_dir=.
2171    $as_echo "PATH: $as_dir"
2172  done
2173IFS=$as_save_IFS
2174
2175} >&5
2176
2177cat >&5 <<_ACEOF
2178
2179
2180## ----------- ##
2181## Core tests. ##
2182## ----------- ##
2183
2184_ACEOF
2185
2186
2187# Keep a trace of the command line.
2188# Strip out --no-create and --no-recursion so they do not pile up.
2189# Strip out --silent because we don't want to record it for future runs.
2190# Also quote any args containing shell meta-characters.
2191# Make two passes to allow for proper duplicate-argument suppression.
2192ac_configure_args=
2193ac_configure_args0=
2194ac_configure_args1=
2195ac_must_keep_next=false
2196for ac_pass in 1 2
2197do
2198  for ac_arg
2199  do
2200    case $ac_arg in
2201    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2202    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2203    | -silent | --silent | --silen | --sile | --sil)
2204      continue ;;
2205    *\'*)
2206      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2207    esac
2208    case $ac_pass in
2209    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2210    2)
2211      as_fn_append ac_configure_args1 " '$ac_arg'"
2212      if test $ac_must_keep_next = true; then
2213	ac_must_keep_next=false # Got value, back to normal.
2214      else
2215	case $ac_arg in
2216	  *=* | --config-cache | -C | -disable-* | --disable-* \
2217	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2218	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2219	  | -with-* | --with-* | -without-* | --without-* | --x)
2220	    case "$ac_configure_args0 " in
2221	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2222	    esac
2223	    ;;
2224	  -* ) ac_must_keep_next=true ;;
2225	esac
2226      fi
2227      as_fn_append ac_configure_args " '$ac_arg'"
2228      ;;
2229    esac
2230  done
2231done
2232{ ac_configure_args0=; unset ac_configure_args0;}
2233{ ac_configure_args1=; unset ac_configure_args1;}
2234
2235# When interrupted or exit'd, cleanup temporary files, and complete
2236# config.log.  We remove comments because anyway the quotes in there
2237# would cause problems or look ugly.
2238# WARNING: Use '\'' to represent an apostrophe within the trap.
2239# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2240trap 'exit_status=$?
2241  # Save into config.log some information that might help in debugging.
2242  {
2243    echo
2244
2245    $as_echo "## ---------------- ##
2246## Cache variables. ##
2247## ---------------- ##"
2248    echo
2249    # The following way of writing the cache mishandles newlines in values,
2250(
2251  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2252    eval ac_val=\$$ac_var
2253    case $ac_val in #(
2254    *${as_nl}*)
2255      case $ac_var in #(
2256      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2257$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2258      esac
2259      case $ac_var in #(
2260      _ | IFS | as_nl) ;; #(
2261      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2262      *) { eval $ac_var=; unset $ac_var;} ;;
2263      esac ;;
2264    esac
2265  done
2266  (set) 2>&1 |
2267    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2268    *${as_nl}ac_space=\ *)
2269      sed -n \
2270	"s/'\''/'\''\\\\'\'''\''/g;
2271	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2272      ;; #(
2273    *)
2274      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2275      ;;
2276    esac |
2277    sort
2278)
2279    echo
2280
2281    $as_echo "## ----------------- ##
2282## Output variables. ##
2283## ----------------- ##"
2284    echo
2285    for ac_var in $ac_subst_vars
2286    do
2287      eval ac_val=\$$ac_var
2288      case $ac_val in
2289      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290      esac
2291      $as_echo "$ac_var='\''$ac_val'\''"
2292    done | sort
2293    echo
2294
2295    if test -n "$ac_subst_files"; then
2296      $as_echo "## ------------------- ##
2297## File substitutions. ##
2298## ------------------- ##"
2299      echo
2300      for ac_var in $ac_subst_files
2301      do
2302	eval ac_val=\$$ac_var
2303	case $ac_val in
2304	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305	esac
2306	$as_echo "$ac_var='\''$ac_val'\''"
2307      done | sort
2308      echo
2309    fi
2310
2311    if test -s confdefs.h; then
2312      $as_echo "## ----------- ##
2313## confdefs.h. ##
2314## ----------- ##"
2315      echo
2316      cat confdefs.h
2317      echo
2318    fi
2319    test "$ac_signal" != 0 &&
2320      $as_echo "$as_me: caught signal $ac_signal"
2321    $as_echo "$as_me: exit $exit_status"
2322  } >&5
2323  rm -f core *.core core.conftest.* &&
2324    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2325    exit $exit_status
2326' 0
2327for ac_signal in 1 2 13 15; do
2328  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2329done
2330ac_signal=0
2331
2332# confdefs.h avoids OS command line length limits that DEFS can exceed.
2333rm -f -r conftest* confdefs.h
2334
2335$as_echo "/* confdefs.h */" > confdefs.h
2336
2337# Predefined preprocessor variables.
2338
2339cat >>confdefs.h <<_ACEOF
2340#define PACKAGE_NAME "$PACKAGE_NAME"
2341_ACEOF
2342
2343cat >>confdefs.h <<_ACEOF
2344#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2345_ACEOF
2346
2347cat >>confdefs.h <<_ACEOF
2348#define PACKAGE_VERSION "$PACKAGE_VERSION"
2349_ACEOF
2350
2351cat >>confdefs.h <<_ACEOF
2352#define PACKAGE_STRING "$PACKAGE_STRING"
2353_ACEOF
2354
2355cat >>confdefs.h <<_ACEOF
2356#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2357_ACEOF
2358
2359cat >>confdefs.h <<_ACEOF
2360#define PACKAGE_URL "$PACKAGE_URL"
2361_ACEOF
2362
2363
2364# Let the site file select an alternate cache file if it wants to.
2365# Prefer an explicitly selected file to automatically selected ones.
2366ac_site_file1=NONE
2367ac_site_file2=NONE
2368if test -n "$CONFIG_SITE"; then
2369  # We do not want a PATH search for config.site.
2370  case $CONFIG_SITE in #((
2371    -*)  ac_site_file1=./$CONFIG_SITE;;
2372    */*) ac_site_file1=$CONFIG_SITE;;
2373    *)   ac_site_file1=./$CONFIG_SITE;;
2374  esac
2375elif test "x$prefix" != xNONE; then
2376  ac_site_file1=$prefix/share/config.site
2377  ac_site_file2=$prefix/etc/config.site
2378else
2379  ac_site_file1=$ac_default_prefix/share/config.site
2380  ac_site_file2=$ac_default_prefix/etc/config.site
2381fi
2382for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2383do
2384  test "x$ac_site_file" = xNONE && continue
2385  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2386    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2387$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2388    sed 's/^/| /' "$ac_site_file" >&5
2389    . "$ac_site_file" \
2390      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392as_fn_error $? "failed to load site script $ac_site_file
2393See \`config.log' for more details" "$LINENO" 5; }
2394  fi
2395done
2396
2397if test -r "$cache_file"; then
2398  # Some versions of bash will fail to source /dev/null (special files
2399  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2400  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2401    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2402$as_echo "$as_me: loading cache $cache_file" >&6;}
2403    case $cache_file in
2404      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2405      *)                      . "./$cache_file";;
2406    esac
2407  fi
2408else
2409  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2410$as_echo "$as_me: creating cache $cache_file" >&6;}
2411  >$cache_file
2412fi
2413
2414# Check that the precious variables saved in the cache have kept the same
2415# value.
2416ac_cache_corrupted=false
2417for ac_var in $ac_precious_vars; do
2418  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2419  eval ac_new_set=\$ac_env_${ac_var}_set
2420  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2421  eval ac_new_val=\$ac_env_${ac_var}_value
2422  case $ac_old_set,$ac_new_set in
2423    set,)
2424      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2425$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2426      ac_cache_corrupted=: ;;
2427    ,set)
2428      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2429$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2430      ac_cache_corrupted=: ;;
2431    ,);;
2432    *)
2433      if test "x$ac_old_val" != "x$ac_new_val"; then
2434	# differences in whitespace do not lead to failure.
2435	ac_old_val_w=`echo x $ac_old_val`
2436	ac_new_val_w=`echo x $ac_new_val`
2437	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2438	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2439$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2440	  ac_cache_corrupted=:
2441	else
2442	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2443$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2444	  eval $ac_var=\$ac_old_val
2445	fi
2446	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2447$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2448	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2449$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2450      fi;;
2451  esac
2452  # Pass precious variables to config.status.
2453  if test "$ac_new_set" = set; then
2454    case $ac_new_val in
2455    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2456    *) ac_arg=$ac_var=$ac_new_val ;;
2457    esac
2458    case " $ac_configure_args " in
2459      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2460      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2461    esac
2462  fi
2463done
2464if $ac_cache_corrupted; then
2465  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2468$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2469  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2470fi
2471## -------------------- ##
2472## Main body of script. ##
2473## -------------------- ##
2474
2475ac_ext=c
2476ac_cpp='$CPP $CPPFLAGS'
2477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479ac_compiler_gnu=$ac_cv_c_compiler_gnu
2480
2481
2482# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2483# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2484# expand $ac_aux_dir to an absolute path
2485am_aux_dir=`cd $ac_aux_dir && pwd`
2486
2487ac_ext=c
2488ac_cpp='$CPP $CPPFLAGS'
2489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492if test -n "$ac_tool_prefix"; then
2493  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2494set dummy ${ac_tool_prefix}gcc; ac_word=$2
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2496$as_echo_n "checking for $ac_word... " >&6; }
2497if ${ac_cv_prog_CC+:} false; then :
2498  $as_echo_n "(cached) " >&6
2499else
2500  if test -n "$CC"; then
2501  ac_cv_prog_CC="$CC" # Let the user override the test.
2502else
2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506  IFS=$as_save_IFS
2507  test -z "$as_dir" && as_dir=.
2508    for ac_exec_ext in '' $ac_executable_extensions; do
2509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2510    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512    break 2
2513  fi
2514done
2515  done
2516IFS=$as_save_IFS
2517
2518fi
2519fi
2520CC=$ac_cv_prog_CC
2521if test -n "$CC"; then
2522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2523$as_echo "$CC" >&6; }
2524else
2525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526$as_echo "no" >&6; }
2527fi
2528
2529
2530fi
2531if test -z "$ac_cv_prog_CC"; then
2532  ac_ct_CC=$CC
2533  # Extract the first word of "gcc", so it can be a program name with args.
2534set dummy gcc; ac_word=$2
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536$as_echo_n "checking for $ac_word... " >&6; }
2537if ${ac_cv_prog_ac_ct_CC+:} false; then :
2538  $as_echo_n "(cached) " >&6
2539else
2540  if test -n "$ac_ct_CC"; then
2541  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546  IFS=$as_save_IFS
2547  test -z "$as_dir" && as_dir=.
2548    for ac_exec_ext in '' $ac_executable_extensions; do
2549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550    ac_cv_prog_ac_ct_CC="gcc"
2551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552    break 2
2553  fi
2554done
2555  done
2556IFS=$as_save_IFS
2557
2558fi
2559fi
2560ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561if test -n "$ac_ct_CC"; then
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2563$as_echo "$ac_ct_CC" >&6; }
2564else
2565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566$as_echo "no" >&6; }
2567fi
2568
2569  if test "x$ac_ct_CC" = x; then
2570    CC=""
2571  else
2572    case $cross_compiling:$ac_tool_warned in
2573yes:)
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2576ac_tool_warned=yes ;;
2577esac
2578    CC=$ac_ct_CC
2579  fi
2580else
2581  CC="$ac_cv_prog_CC"
2582fi
2583
2584if test -z "$CC"; then
2585          if test -n "$ac_tool_prefix"; then
2586    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2587set dummy ${ac_tool_prefix}cc; ac_word=$2
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589$as_echo_n "checking for $ac_word... " >&6; }
2590if ${ac_cv_prog_CC+:} false; then :
2591  $as_echo_n "(cached) " >&6
2592else
2593  if test -n "$CC"; then
2594  ac_cv_prog_CC="$CC" # Let the user override the test.
2595else
2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599  IFS=$as_save_IFS
2600  test -z "$as_dir" && as_dir=.
2601    for ac_exec_ext in '' $ac_executable_extensions; do
2602  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603    ac_cv_prog_CC="${ac_tool_prefix}cc"
2604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605    break 2
2606  fi
2607done
2608  done
2609IFS=$as_save_IFS
2610
2611fi
2612fi
2613CC=$ac_cv_prog_CC
2614if test -n "$CC"; then
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2616$as_echo "$CC" >&6; }
2617else
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619$as_echo "no" >&6; }
2620fi
2621
2622
2623  fi
2624fi
2625if test -z "$CC"; then
2626  # Extract the first word of "cc", so it can be a program name with args.
2627set dummy cc; ac_word=$2
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629$as_echo_n "checking for $ac_word... " >&6; }
2630if ${ac_cv_prog_CC+:} false; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  if test -n "$CC"; then
2634  ac_cv_prog_CC="$CC" # Let the user override the test.
2635else
2636  ac_prog_rejected=no
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640  IFS=$as_save_IFS
2641  test -z "$as_dir" && as_dir=.
2642    for ac_exec_ext in '' $ac_executable_extensions; do
2643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2645       ac_prog_rejected=yes
2646       continue
2647     fi
2648    ac_cv_prog_CC="cc"
2649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650    break 2
2651  fi
2652done
2653  done
2654IFS=$as_save_IFS
2655
2656if test $ac_prog_rejected = yes; then
2657  # We found a bogon in the path, so make sure we never use it.
2658  set dummy $ac_cv_prog_CC
2659  shift
2660  if test $# != 0; then
2661    # We chose a different compiler from the bogus one.
2662    # However, it has the same basename, so the bogon will be chosen
2663    # first if we set CC to just the basename; use the full file name.
2664    shift
2665    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2666  fi
2667fi
2668fi
2669fi
2670CC=$ac_cv_prog_CC
2671if test -n "$CC"; then
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673$as_echo "$CC" >&6; }
2674else
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676$as_echo "no" >&6; }
2677fi
2678
2679
2680fi
2681if test -z "$CC"; then
2682  if test -n "$ac_tool_prefix"; then
2683  for ac_prog in cl.exe
2684  do
2685    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2686set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
2689if ${ac_cv_prog_CC+:} false; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  if test -n "$CC"; then
2693  ac_cv_prog_CC="$CC" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698  IFS=$as_save_IFS
2699  test -z "$as_dir" && as_dir=.
2700    for ac_exec_ext in '' $ac_executable_extensions; do
2701  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704    break 2
2705  fi
2706done
2707  done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712CC=$ac_cv_prog_CC
2713if test -n "$CC"; then
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715$as_echo "$CC" >&6; }
2716else
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
2721
2722    test -n "$CC" && break
2723  done
2724fi
2725if test -z "$CC"; then
2726  ac_ct_CC=$CC
2727  for ac_prog in cl.exe
2728do
2729  # Extract the first word of "$ac_prog", so it can be a program name with args.
2730set dummy $ac_prog; ac_word=$2
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
2733if ${ac_cv_prog_ac_ct_CC+:} false; then :
2734  $as_echo_n "(cached) " >&6
2735else
2736  if test -n "$ac_ct_CC"; then
2737  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746    ac_cv_prog_ac_ct_CC="$ac_prog"
2747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751  done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756ac_ct_CC=$ac_cv_prog_ac_ct_CC
2757if test -n "$ac_ct_CC"; then
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2759$as_echo "$ac_ct_CC" >&6; }
2760else
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766  test -n "$ac_ct_CC" && break
2767done
2768
2769  if test "x$ac_ct_CC" = x; then
2770    CC=""
2771  else
2772    case $cross_compiling:$ac_tool_warned in
2773yes:)
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776ac_tool_warned=yes ;;
2777esac
2778    CC=$ac_ct_CC
2779  fi
2780fi
2781
2782fi
2783
2784
2785test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787as_fn_error $? "no acceptable C compiler found in \$PATH
2788See \`config.log' for more details" "$LINENO" 5; }
2789
2790# Provide some information about the compiler.
2791$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2792set X $ac_compile
2793ac_compiler=$2
2794for ac_option in --version -v -V -qversion; do
2795  { { ac_try="$ac_compiler $ac_option >&5"
2796case "(($ac_try" in
2797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798  *) ac_try_echo=$ac_try;;
2799esac
2800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2801$as_echo "$ac_try_echo"; } >&5
2802  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2803  ac_status=$?
2804  if test -s conftest.err; then
2805    sed '10a\
2806... rest of stderr output deleted ...
2807         10q' conftest.err >conftest.er1
2808    cat conftest.er1 >&5
2809  fi
2810  rm -f conftest.er1 conftest.err
2811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2812  test $ac_status = 0; }
2813done
2814
2815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816/* end confdefs.h.  */
2817
2818int
2819main ()
2820{
2821
2822  ;
2823  return 0;
2824}
2825_ACEOF
2826ac_clean_files_save=$ac_clean_files
2827ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2828# Try to create an executable without -o first, disregard a.out.
2829# It will help us diagnose broken compilers, and finding out an intuition
2830# of exeext.
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2832$as_echo_n "checking whether the C compiler works... " >&6; }
2833ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2834
2835# The possible output files:
2836ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2837
2838ac_rmfiles=
2839for ac_file in $ac_files
2840do
2841  case $ac_file in
2842    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2843    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2844  esac
2845done
2846rm -f $ac_rmfiles
2847
2848if { { ac_try="$ac_link_default"
2849case "(($ac_try" in
2850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851  *) ac_try_echo=$ac_try;;
2852esac
2853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854$as_echo "$ac_try_echo"; } >&5
2855  (eval "$ac_link_default") 2>&5
2856  ac_status=$?
2857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858  test $ac_status = 0; }; then :
2859  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2860# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2861# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2862# so that the user can short-circuit this test for compilers unknown to
2863# Autoconf.
2864for ac_file in $ac_files ''
2865do
2866  test -f "$ac_file" || continue
2867  case $ac_file in
2868    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2869	;;
2870    [ab].out )
2871	# We found the default executable, but exeext='' is most
2872	# certainly right.
2873	break;;
2874    *.* )
2875	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2876	then :; else
2877	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2878	fi
2879	# We set ac_cv_exeext here because the later test for it is not
2880	# safe: cross compilers may not add the suffix if given an `-o'
2881	# argument, so we may need to know it at that point already.
2882	# Even if this section looks crufty: it has the advantage of
2883	# actually working.
2884	break;;
2885    * )
2886	break;;
2887  esac
2888done
2889test "$ac_cv_exeext" = no && ac_cv_exeext=
2890
2891else
2892  ac_file=''
2893fi
2894if test -z "$ac_file"; then :
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897$as_echo "$as_me: failed program was:" >&5
2898sed 's/^/| /' conftest.$ac_ext >&5
2899
2900{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2902as_fn_error 77 "C compiler cannot create executables
2903See \`config.log' for more details" "$LINENO" 5; }
2904else
2905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906$as_echo "yes" >&6; }
2907fi
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2909$as_echo_n "checking for C compiler default output file name... " >&6; }
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2911$as_echo "$ac_file" >&6; }
2912ac_exeext=$ac_cv_exeext
2913
2914rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2915ac_clean_files=$ac_clean_files_save
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2917$as_echo_n "checking for suffix of executables... " >&6; }
2918if { { ac_try="$ac_link"
2919case "(($ac_try" in
2920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921  *) ac_try_echo=$ac_try;;
2922esac
2923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924$as_echo "$ac_try_echo"; } >&5
2925  (eval "$ac_link") 2>&5
2926  ac_status=$?
2927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2928  test $ac_status = 0; }; then :
2929  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2930# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2931# work properly (i.e., refer to `conftest.exe'), while it won't with
2932# `rm'.
2933for ac_file in conftest.exe conftest conftest.*; do
2934  test -f "$ac_file" || continue
2935  case $ac_file in
2936    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2937    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938	  break;;
2939    * ) break;;
2940  esac
2941done
2942else
2943  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2946See \`config.log' for more details" "$LINENO" 5; }
2947fi
2948rm -f conftest conftest$ac_cv_exeext
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2950$as_echo "$ac_cv_exeext" >&6; }
2951
2952rm -f conftest.$ac_ext
2953EXEEXT=$ac_cv_exeext
2954ac_exeext=$EXEEXT
2955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956/* end confdefs.h.  */
2957#include <stdio.h>
2958int
2959main ()
2960{
2961FILE *f = fopen ("conftest.out", "w");
2962 return ferror (f) || fclose (f) != 0;
2963
2964  ;
2965  return 0;
2966}
2967_ACEOF
2968ac_clean_files="$ac_clean_files conftest.out"
2969# Check that the compiler produces executables we can run.  If not, either
2970# the compiler is broken, or we cross compile.
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2972$as_echo_n "checking whether we are cross compiling... " >&6; }
2973if test "$cross_compiling" != yes; then
2974  { { ac_try="$ac_link"
2975case "(($ac_try" in
2976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977  *) ac_try_echo=$ac_try;;
2978esac
2979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980$as_echo "$ac_try_echo"; } >&5
2981  (eval "$ac_link") 2>&5
2982  ac_status=$?
2983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984  test $ac_status = 0; }
2985  if { ac_try='./conftest$ac_cv_exeext'
2986  { { case "(($ac_try" in
2987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988  *) ac_try_echo=$ac_try;;
2989esac
2990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991$as_echo "$ac_try_echo"; } >&5
2992  (eval "$ac_try") 2>&5
2993  ac_status=$?
2994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995  test $ac_status = 0; }; }; then
2996    cross_compiling=no
2997  else
2998    if test "$cross_compiling" = maybe; then
2999	cross_compiling=yes
3000    else
3001	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003as_fn_error $? "cannot run C compiled programs.
3004If you meant to cross compile, use \`--host'.
3005See \`config.log' for more details" "$LINENO" 5; }
3006    fi
3007  fi
3008fi
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3010$as_echo "$cross_compiling" >&6; }
3011
3012rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3013ac_clean_files=$ac_clean_files_save
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3015$as_echo_n "checking for suffix of object files... " >&6; }
3016if ${ac_cv_objext+:} false; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020/* end confdefs.h.  */
3021
3022int
3023main ()
3024{
3025
3026  ;
3027  return 0;
3028}
3029_ACEOF
3030rm -f conftest.o conftest.obj
3031if { { ac_try="$ac_compile"
3032case "(($ac_try" in
3033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034  *) ac_try_echo=$ac_try;;
3035esac
3036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037$as_echo "$ac_try_echo"; } >&5
3038  (eval "$ac_compile") 2>&5
3039  ac_status=$?
3040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041  test $ac_status = 0; }; then :
3042  for ac_file in conftest.o conftest.obj conftest.*; do
3043  test -f "$ac_file" || continue;
3044  case $ac_file in
3045    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3046    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3047       break;;
3048  esac
3049done
3050else
3051  $as_echo "$as_me: failed program was:" >&5
3052sed 's/^/| /' conftest.$ac_ext >&5
3053
3054{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056as_fn_error $? "cannot compute suffix of object files: cannot compile
3057See \`config.log' for more details" "$LINENO" 5; }
3058fi
3059rm -f conftest.$ac_cv_objext conftest.$ac_ext
3060fi
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3062$as_echo "$ac_cv_objext" >&6; }
3063OBJEXT=$ac_cv_objext
3064ac_objext=$OBJEXT
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3066$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3067if ${ac_cv_c_compiler_gnu+:} false; then :
3068  $as_echo_n "(cached) " >&6
3069else
3070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071/* end confdefs.h.  */
3072
3073int
3074main ()
3075{
3076#ifndef __GNUC__
3077       choke me
3078#endif
3079
3080  ;
3081  return 0;
3082}
3083_ACEOF
3084if ac_fn_c_try_compile "$LINENO"; then :
3085  ac_compiler_gnu=yes
3086else
3087  ac_compiler_gnu=no
3088fi
3089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090ac_cv_c_compiler_gnu=$ac_compiler_gnu
3091
3092fi
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3094$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3095if test $ac_compiler_gnu = yes; then
3096  GCC=yes
3097else
3098  GCC=
3099fi
3100ac_test_CFLAGS=${CFLAGS+set}
3101ac_save_CFLAGS=$CFLAGS
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3103$as_echo_n "checking whether $CC accepts -g... " >&6; }
3104if ${ac_cv_prog_cc_g+:} false; then :
3105  $as_echo_n "(cached) " >&6
3106else
3107  ac_save_c_werror_flag=$ac_c_werror_flag
3108   ac_c_werror_flag=yes
3109   ac_cv_prog_cc_g=no
3110   CFLAGS="-g"
3111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112/* end confdefs.h.  */
3113
3114int
3115main ()
3116{
3117
3118  ;
3119  return 0;
3120}
3121_ACEOF
3122if ac_fn_c_try_compile "$LINENO"; then :
3123  ac_cv_prog_cc_g=yes
3124else
3125  CFLAGS=""
3126      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127/* end confdefs.h.  */
3128
3129int
3130main ()
3131{
3132
3133  ;
3134  return 0;
3135}
3136_ACEOF
3137if ac_fn_c_try_compile "$LINENO"; then :
3138
3139else
3140  ac_c_werror_flag=$ac_save_c_werror_flag
3141	 CFLAGS="-g"
3142	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143/* end confdefs.h.  */
3144
3145int
3146main ()
3147{
3148
3149  ;
3150  return 0;
3151}
3152_ACEOF
3153if ac_fn_c_try_compile "$LINENO"; then :
3154  ac_cv_prog_cc_g=yes
3155fi
3156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157fi
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161   ac_c_werror_flag=$ac_save_c_werror_flag
3162fi
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3164$as_echo "$ac_cv_prog_cc_g" >&6; }
3165if test "$ac_test_CFLAGS" = set; then
3166  CFLAGS=$ac_save_CFLAGS
3167elif test $ac_cv_prog_cc_g = yes; then
3168  if test "$GCC" = yes; then
3169    CFLAGS="-g -O2"
3170  else
3171    CFLAGS="-g"
3172  fi
3173else
3174  if test "$GCC" = yes; then
3175    CFLAGS="-O2"
3176  else
3177    CFLAGS=
3178  fi
3179fi
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3181$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3182if ${ac_cv_prog_cc_c89+:} false; then :
3183  $as_echo_n "(cached) " >&6
3184else
3185  ac_cv_prog_cc_c89=no
3186ac_save_CC=$CC
3187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188/* end confdefs.h.  */
3189#include <stdarg.h>
3190#include <stdio.h>
3191#include <sys/types.h>
3192#include <sys/stat.h>
3193/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3194struct buf { int x; };
3195FILE * (*rcsopen) (struct buf *, struct stat *, int);
3196static char *e (p, i)
3197     char **p;
3198     int i;
3199{
3200  return p[i];
3201}
3202static char *f (char * (*g) (char **, int), char **p, ...)
3203{
3204  char *s;
3205  va_list v;
3206  va_start (v,p);
3207  s = g (p, va_arg (v,int));
3208  va_end (v);
3209  return s;
3210}
3211
3212/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3213   function prototypes and stuff, but not '\xHH' hex character constants.
3214   These don't provoke an error unfortunately, instead are silently treated
3215   as 'x'.  The following induces an error, until -std is added to get
3216   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3217   array size at least.  It's necessary to write '\x00'==0 to get something
3218   that's true only with -std.  */
3219int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3220
3221/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3222   inside strings and character constants.  */
3223#define FOO(x) 'x'
3224int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3225
3226int test (int i, double x);
3227struct s1 {int (*f) (int a);};
3228struct s2 {int (*f) (double a);};
3229int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3230int argc;
3231char **argv;
3232int
3233main ()
3234{
3235return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3236  ;
3237  return 0;
3238}
3239_ACEOF
3240for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3241	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3242do
3243  CC="$ac_save_CC $ac_arg"
3244  if ac_fn_c_try_compile "$LINENO"; then :
3245  ac_cv_prog_cc_c89=$ac_arg
3246fi
3247rm -f core conftest.err conftest.$ac_objext
3248  test "x$ac_cv_prog_cc_c89" != "xno" && break
3249done
3250rm -f conftest.$ac_ext
3251CC=$ac_save_CC
3252
3253fi
3254# AC_CACHE_VAL
3255case "x$ac_cv_prog_cc_c89" in
3256  x)
3257    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3258$as_echo "none needed" >&6; } ;;
3259  xno)
3260    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3261$as_echo "unsupported" >&6; } ;;
3262  *)
3263    CC="$CC $ac_cv_prog_cc_c89"
3264    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3265$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3266esac
3267if test "x$ac_cv_prog_cc_c89" != xno; then :
3268
3269fi
3270
3271ac_ext=c
3272ac_cpp='$CPP $CPPFLAGS'
3273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 whether $CC understands -c and -o together" >&5
3283$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3284if ${am_cv_prog_cc_c_o+:} false; then :
3285  $as_echo_n "(cached) " >&6
3286else
3287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288/* end confdefs.h.  */
3289
3290int
3291main ()
3292{
3293
3294  ;
3295  return 0;
3296}
3297_ACEOF
3298  # Make sure it works both with $CC and with simple cc.
3299  # Following AC_PROG_CC_C_O, we do the test twice because some
3300  # compilers refuse to overwrite an existing .o file with -o,
3301  # though they will create one.
3302  am_cv_prog_cc_c_o=yes
3303  for am_i in 1 2; do
3304    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3305   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } \
3309         && test -f conftest2.$ac_objext; then
3310      : OK
3311    else
3312      am_cv_prog_cc_c_o=no
3313      break
3314    fi
3315  done
3316  rm -f core conftest*
3317  unset am_i
3318fi
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3320$as_echo "$am_cv_prog_cc_c_o" >&6; }
3321if test "$am_cv_prog_cc_c_o" != yes; then
3322   # Losing compiler, so override with the script.
3323   # FIXME: It is wrong to rewrite CC.
3324   # But if we don't then we get into trouble of one sort or another.
3325   # A longer-term fix would be to have automake use am__CC in this case,
3326   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3327   CC="$am_aux_dir/compile $CC"
3328fi
3329ac_ext=c
3330ac_cpp='$CPP $CPPFLAGS'
3331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334
3335
3336
3337ac_ext=c
3338ac_cpp='$CPP $CPPFLAGS'
3339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3343$as_echo_n "checking how to run the C preprocessor... " >&6; }
3344# On Suns, sometimes $CPP names a directory.
3345if test -n "$CPP" && test -d "$CPP"; then
3346  CPP=
3347fi
3348if test -z "$CPP"; then
3349  if ${ac_cv_prog_CPP+:} false; then :
3350  $as_echo_n "(cached) " >&6
3351else
3352      # Double quotes because CPP needs to be expanded
3353    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3354    do
3355      ac_preproc_ok=false
3356for ac_c_preproc_warn_flag in '' yes
3357do
3358  # Use a header file that comes with gcc, so configuring glibc
3359  # with a fresh cross-compiler works.
3360  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3361  # <limits.h> exists even on freestanding compilers.
3362  # On the NeXT, cc -E runs the code through the compiler's parser,
3363  # not just through cpp. "Syntax error" is here to catch this case.
3364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365/* end confdefs.h.  */
3366#ifdef __STDC__
3367# include <limits.h>
3368#else
3369# include <assert.h>
3370#endif
3371		     Syntax error
3372_ACEOF
3373if ac_fn_c_try_cpp "$LINENO"; then :
3374
3375else
3376  # Broken: fails on valid input.
3377continue
3378fi
3379rm -f conftest.err conftest.i conftest.$ac_ext
3380
3381  # OK, works on sane cases.  Now check whether nonexistent headers
3382  # can be detected and how.
3383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384/* end confdefs.h.  */
3385#include <ac_nonexistent.h>
3386_ACEOF
3387if ac_fn_c_try_cpp "$LINENO"; then :
3388  # Broken: success on invalid input.
3389continue
3390else
3391  # Passes both tests.
3392ac_preproc_ok=:
3393break
3394fi
3395rm -f conftest.err conftest.i conftest.$ac_ext
3396
3397done
3398# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399rm -f conftest.i conftest.err conftest.$ac_ext
3400if $ac_preproc_ok; then :
3401  break
3402fi
3403
3404    done
3405    ac_cv_prog_CPP=$CPP
3406
3407fi
3408  CPP=$ac_cv_prog_CPP
3409else
3410  ac_cv_prog_CPP=$CPP
3411fi
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3413$as_echo "$CPP" >&6; }
3414ac_preproc_ok=false
3415for ac_c_preproc_warn_flag in '' yes
3416do
3417  # Use a header file that comes with gcc, so configuring glibc
3418  # with a fresh cross-compiler works.
3419  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3420  # <limits.h> exists even on freestanding compilers.
3421  # On the NeXT, cc -E runs the code through the compiler's parser,
3422  # not just through cpp. "Syntax error" is here to catch this case.
3423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h.  */
3425#ifdef __STDC__
3426# include <limits.h>
3427#else
3428# include <assert.h>
3429#endif
3430		     Syntax error
3431_ACEOF
3432if ac_fn_c_try_cpp "$LINENO"; then :
3433
3434else
3435  # Broken: fails on valid input.
3436continue
3437fi
3438rm -f conftest.err conftest.i conftest.$ac_ext
3439
3440  # OK, works on sane cases.  Now check whether nonexistent headers
3441  # can be detected and how.
3442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443/* end confdefs.h.  */
3444#include <ac_nonexistent.h>
3445_ACEOF
3446if ac_fn_c_try_cpp "$LINENO"; then :
3447  # Broken: success on invalid input.
3448continue
3449else
3450  # Passes both tests.
3451ac_preproc_ok=:
3452break
3453fi
3454rm -f conftest.err conftest.i conftest.$ac_ext
3455
3456done
3457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3458rm -f conftest.i conftest.err conftest.$ac_ext
3459if $ac_preproc_ok; then :
3460
3461else
3462  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3465See \`config.log' for more details" "$LINENO" 5; }
3466fi
3467
3468ac_ext=c
3469ac_cpp='$CPP $CPPFLAGS'
3470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473
3474
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3476$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3477if ${ac_cv_path_GREP+:} false; then :
3478  $as_echo_n "(cached) " >&6
3479else
3480  if test -z "$GREP"; then
3481  ac_path_GREP_found=false
3482  # Loop through the user's path and test for each of PROGNAME-LIST
3483  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3485do
3486  IFS=$as_save_IFS
3487  test -z "$as_dir" && as_dir=.
3488    for ac_prog in grep ggrep; do
3489    for ac_exec_ext in '' $ac_executable_extensions; do
3490      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3491      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3492# Check for GNU ac_path_GREP and select it if it is found.
3493  # Check for GNU $ac_path_GREP
3494case `"$ac_path_GREP" --version 2>&1` in
3495*GNU*)
3496  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3497*)
3498  ac_count=0
3499  $as_echo_n 0123456789 >"conftest.in"
3500  while :
3501  do
3502    cat "conftest.in" "conftest.in" >"conftest.tmp"
3503    mv "conftest.tmp" "conftest.in"
3504    cp "conftest.in" "conftest.nl"
3505    $as_echo 'GREP' >> "conftest.nl"
3506    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3507    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3508    as_fn_arith $ac_count + 1 && ac_count=$as_val
3509    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3510      # Best one so far, save it but keep looking for a better one
3511      ac_cv_path_GREP="$ac_path_GREP"
3512      ac_path_GREP_max=$ac_count
3513    fi
3514    # 10*(2^10) chars as input seems more than enough
3515    test $ac_count -gt 10 && break
3516  done
3517  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3518esac
3519
3520      $ac_path_GREP_found && break 3
3521    done
3522  done
3523  done
3524IFS=$as_save_IFS
3525  if test -z "$ac_cv_path_GREP"; then
3526    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3527  fi
3528else
3529  ac_cv_path_GREP=$GREP
3530fi
3531
3532fi
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3534$as_echo "$ac_cv_path_GREP" >&6; }
3535 GREP="$ac_cv_path_GREP"
3536
3537
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3539$as_echo_n "checking for egrep... " >&6; }
3540if ${ac_cv_path_EGREP+:} false; then :
3541  $as_echo_n "(cached) " >&6
3542else
3543  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3544   then ac_cv_path_EGREP="$GREP -E"
3545   else
3546     if test -z "$EGREP"; then
3547  ac_path_EGREP_found=false
3548  # Loop through the user's path and test for each of PROGNAME-LIST
3549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3551do
3552  IFS=$as_save_IFS
3553  test -z "$as_dir" && as_dir=.
3554    for ac_prog in egrep; do
3555    for ac_exec_ext in '' $ac_executable_extensions; do
3556      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3557      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3558# Check for GNU ac_path_EGREP and select it if it is found.
3559  # Check for GNU $ac_path_EGREP
3560case `"$ac_path_EGREP" --version 2>&1` in
3561*GNU*)
3562  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3563*)
3564  ac_count=0
3565  $as_echo_n 0123456789 >"conftest.in"
3566  while :
3567  do
3568    cat "conftest.in" "conftest.in" >"conftest.tmp"
3569    mv "conftest.tmp" "conftest.in"
3570    cp "conftest.in" "conftest.nl"
3571    $as_echo 'EGREP' >> "conftest.nl"
3572    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3573    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3574    as_fn_arith $ac_count + 1 && ac_count=$as_val
3575    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3576      # Best one so far, save it but keep looking for a better one
3577      ac_cv_path_EGREP="$ac_path_EGREP"
3578      ac_path_EGREP_max=$ac_count
3579    fi
3580    # 10*(2^10) chars as input seems more than enough
3581    test $ac_count -gt 10 && break
3582  done
3583  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3584esac
3585
3586      $ac_path_EGREP_found && break 3
3587    done
3588  done
3589  done
3590IFS=$as_save_IFS
3591  if test -z "$ac_cv_path_EGREP"; then
3592    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3593  fi
3594else
3595  ac_cv_path_EGREP=$EGREP
3596fi
3597
3598   fi
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3601$as_echo "$ac_cv_path_EGREP" >&6; }
3602 EGREP="$ac_cv_path_EGREP"
3603
3604
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3606$as_echo_n "checking for ANSI C header files... " >&6; }
3607if ${ac_cv_header_stdc+:} false; then :
3608  $as_echo_n "(cached) " >&6
3609else
3610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h.  */
3612#include <stdlib.h>
3613#include <stdarg.h>
3614#include <string.h>
3615#include <float.h>
3616
3617int
3618main ()
3619{
3620
3621  ;
3622  return 0;
3623}
3624_ACEOF
3625if ac_fn_c_try_compile "$LINENO"; then :
3626  ac_cv_header_stdc=yes
3627else
3628  ac_cv_header_stdc=no
3629fi
3630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631
3632if test $ac_cv_header_stdc = yes; then
3633  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635/* end confdefs.h.  */
3636#include <string.h>
3637
3638_ACEOF
3639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640  $EGREP "memchr" >/dev/null 2>&1; then :
3641
3642else
3643  ac_cv_header_stdc=no
3644fi
3645rm -f conftest*
3646
3647fi
3648
3649if test $ac_cv_header_stdc = yes; then
3650  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652/* end confdefs.h.  */
3653#include <stdlib.h>
3654
3655_ACEOF
3656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3657  $EGREP "free" >/dev/null 2>&1; then :
3658
3659else
3660  ac_cv_header_stdc=no
3661fi
3662rm -f conftest*
3663
3664fi
3665
3666if test $ac_cv_header_stdc = yes; then
3667  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3668  if test "$cross_compiling" = yes; then :
3669  :
3670else
3671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672/* end confdefs.h.  */
3673#include <ctype.h>
3674#include <stdlib.h>
3675#if ((' ' & 0x0FF) == 0x020)
3676# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3677# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3678#else
3679# define ISLOWER(c) \
3680		   (('a' <= (c) && (c) <= 'i') \
3681		     || ('j' <= (c) && (c) <= 'r') \
3682		     || ('s' <= (c) && (c) <= 'z'))
3683# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3684#endif
3685
3686#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3687int
3688main ()
3689{
3690  int i;
3691  for (i = 0; i < 256; i++)
3692    if (XOR (islower (i), ISLOWER (i))
3693	|| toupper (i) != TOUPPER (i))
3694      return 2;
3695  return 0;
3696}
3697_ACEOF
3698if ac_fn_c_try_run "$LINENO"; then :
3699
3700else
3701  ac_cv_header_stdc=no
3702fi
3703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3704  conftest.$ac_objext conftest.beam conftest.$ac_ext
3705fi
3706
3707fi
3708fi
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3710$as_echo "$ac_cv_header_stdc" >&6; }
3711if test $ac_cv_header_stdc = yes; then
3712
3713$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3714
3715fi
3716
3717# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3718for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3719		  inttypes.h stdint.h unistd.h
3720do :
3721  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3722ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3723"
3724if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3725  cat >>confdefs.h <<_ACEOF
3726#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3727_ACEOF
3728
3729fi
3730
3731done
3732
3733
3734
3735  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3736if test "x$ac_cv_header_minix_config_h" = xyes; then :
3737  MINIX=yes
3738else
3739  MINIX=
3740fi
3741
3742
3743  if test "$MINIX" = yes; then
3744
3745$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3746
3747
3748$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3749
3750
3751$as_echo "#define _MINIX 1" >>confdefs.h
3752
3753  fi
3754
3755
3756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3757$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3758if ${ac_cv_safe_to_define___extensions__+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h.  */
3763
3764#	  define __EXTENSIONS__ 1
3765	  $ac_includes_default
3766int
3767main ()
3768{
3769
3770  ;
3771  return 0;
3772}
3773_ACEOF
3774if ac_fn_c_try_compile "$LINENO"; then :
3775  ac_cv_safe_to_define___extensions__=yes
3776else
3777  ac_cv_safe_to_define___extensions__=no
3778fi
3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780fi
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3782$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3783  test $ac_cv_safe_to_define___extensions__ = yes &&
3784    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3785
3786  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3787
3788  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3789
3790  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3791
3792  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3793
3794
3795ac_config_headers="$ac_config_headers config.h"
3796
3797
3798
3799# Initialize Automake
3800am__api_version='1.14'
3801
3802ac_aux_dir=
3803for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3804  if test -f "$ac_dir/install-sh"; then
3805    ac_aux_dir=$ac_dir
3806    ac_install_sh="$ac_aux_dir/install-sh -c"
3807    break
3808  elif test -f "$ac_dir/install.sh"; then
3809    ac_aux_dir=$ac_dir
3810    ac_install_sh="$ac_aux_dir/install.sh -c"
3811    break
3812  elif test -f "$ac_dir/shtool"; then
3813    ac_aux_dir=$ac_dir
3814    ac_install_sh="$ac_aux_dir/shtool install -c"
3815    break
3816  fi
3817done
3818if test -z "$ac_aux_dir"; then
3819  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3820fi
3821
3822# These three variables are undocumented and unsupported,
3823# and are intended to be withdrawn in a future Autoconf release.
3824# They can cause serious problems if a builder's source tree is in a directory
3825# whose full name contains unusual characters.
3826ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3827ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3828ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3829
3830
3831# Find a good install program.  We prefer a C program (faster),
3832# so one script is as good as another.  But avoid the broken or
3833# incompatible versions:
3834# SysV /etc/install, /usr/sbin/install
3835# SunOS /usr/etc/install
3836# IRIX /sbin/install
3837# AIX /bin/install
3838# AmigaOS /C/install, which installs bootblocks on floppy discs
3839# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3840# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3841# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3842# OS/2's system install, which has a completely different semantic
3843# ./install, which can be erroneously created by make from ./install.sh.
3844# Reject install programs that cannot install multiple files.
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3846$as_echo_n "checking for a BSD-compatible install... " >&6; }
3847if test -z "$INSTALL"; then
3848if ${ac_cv_path_install+:} false; then :
3849  $as_echo_n "(cached) " >&6
3850else
3851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854  IFS=$as_save_IFS
3855  test -z "$as_dir" && as_dir=.
3856    # Account for people who put trailing slashes in PATH elements.
3857case $as_dir/ in #((
3858  ./ | .// | /[cC]/* | \
3859  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3860  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3861  /usr/ucb/* ) ;;
3862  *)
3863    # OSF1 and SCO ODT 3.0 have their own names for install.
3864    # Don't use installbsd from OSF since it installs stuff as root
3865    # by default.
3866    for ac_prog in ginstall scoinst install; do
3867      for ac_exec_ext in '' $ac_executable_extensions; do
3868	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3869	  if test $ac_prog = install &&
3870	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3871	    # AIX install.  It has an incompatible calling convention.
3872	    :
3873	  elif test $ac_prog = install &&
3874	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3875	    # program-specific install script used by HP pwplus--don't use.
3876	    :
3877	  else
3878	    rm -rf conftest.one conftest.two conftest.dir
3879	    echo one > conftest.one
3880	    echo two > conftest.two
3881	    mkdir conftest.dir
3882	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3883	      test -s conftest.one && test -s conftest.two &&
3884	      test -s conftest.dir/conftest.one &&
3885	      test -s conftest.dir/conftest.two
3886	    then
3887	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3888	      break 3
3889	    fi
3890	  fi
3891	fi
3892      done
3893    done
3894    ;;
3895esac
3896
3897  done
3898IFS=$as_save_IFS
3899
3900rm -rf conftest.one conftest.two conftest.dir
3901
3902fi
3903  if test "${ac_cv_path_install+set}" = set; then
3904    INSTALL=$ac_cv_path_install
3905  else
3906    # As a last resort, use the slow shell script.  Don't cache a
3907    # value for INSTALL within a source directory, because that will
3908    # break other packages using the cache if that directory is
3909    # removed, or if the value is a relative name.
3910    INSTALL=$ac_install_sh
3911  fi
3912fi
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3914$as_echo "$INSTALL" >&6; }
3915
3916# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3917# It thinks the first close brace ends the variable substitution.
3918test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3919
3920test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3921
3922test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3923
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3925$as_echo_n "checking whether build environment is sane... " >&6; }
3926# Reject unsafe characters in $srcdir or the absolute working directory
3927# name.  Accept space and tab only in the latter.
3928am_lf='
3929'
3930case `pwd` in
3931  *[\\\"\#\$\&\'\`$am_lf]*)
3932    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3933esac
3934case $srcdir in
3935  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3936    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3937esac
3938
3939# Do 'set' in a subshell so we don't clobber the current shell's
3940# arguments.  Must try -L first in case configure is actually a
3941# symlink; some systems play weird games with the mod time of symlinks
3942# (eg FreeBSD returns the mod time of the symlink's containing
3943# directory).
3944if (
3945   am_has_slept=no
3946   for am_try in 1 2; do
3947     echo "timestamp, slept: $am_has_slept" > conftest.file
3948     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3949     if test "$*" = "X"; then
3950	# -L didn't work.
3951	set X `ls -t "$srcdir/configure" conftest.file`
3952     fi
3953     if test "$*" != "X $srcdir/configure conftest.file" \
3954	&& test "$*" != "X conftest.file $srcdir/configure"; then
3955
3956	# If neither matched, then we have a broken ls.  This can happen
3957	# if, for instance, CONFIG_SHELL is bash and it inherits a
3958	# broken ls alias from the environment.  This has actually
3959	# happened.  Such a system could not be considered "sane".
3960	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3961  alias in your environment" "$LINENO" 5
3962     fi
3963     if test "$2" = conftest.file || test $am_try -eq 2; then
3964       break
3965     fi
3966     # Just in case.
3967     sleep 1
3968     am_has_slept=yes
3969   done
3970   test "$2" = conftest.file
3971   )
3972then
3973   # Ok.
3974   :
3975else
3976   as_fn_error $? "newly created file is older than distributed files!
3977Check your system clock" "$LINENO" 5
3978fi
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3980$as_echo "yes" >&6; }
3981# If we didn't sleep, we still need to ensure time stamps of config.status and
3982# generated files are strictly newer.
3983am_sleep_pid=
3984if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3985  ( sleep 1 ) &
3986  am_sleep_pid=$!
3987fi
3988
3989rm -f conftest.file
3990
3991test "$program_prefix" != NONE &&
3992  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3993# Use a double $ so make ignores it.
3994test "$program_suffix" != NONE &&
3995  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3996# Double any \ or $.
3997# By default was `s,x,x', remove it if useless.
3998ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3999program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4000
4001if test x"${MISSING+set}" != xset; then
4002  case $am_aux_dir in
4003  *\ * | *\	*)
4004    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4005  *)
4006    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4007  esac
4008fi
4009# Use eval to expand $SHELL
4010if eval "$MISSING --is-lightweight"; then
4011  am_missing_run="$MISSING "
4012else
4013  am_missing_run=
4014  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4015$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4016fi
4017
4018if test x"${install_sh}" != xset; then
4019  case $am_aux_dir in
4020  *\ * | *\	*)
4021    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4022  *)
4023    install_sh="\${SHELL} $am_aux_dir/install-sh"
4024  esac
4025fi
4026
4027# Installed binaries are usually stripped using 'strip' when the user
4028# run "make install-strip".  However 'strip' might not be the right
4029# tool to use in cross-compilation environments, therefore Automake
4030# will honor the 'STRIP' environment variable to overrule this program.
4031if test "$cross_compiling" != no; then
4032  if test -n "$ac_tool_prefix"; then
4033  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4034set dummy ${ac_tool_prefix}strip; ac_word=$2
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036$as_echo_n "checking for $ac_word... " >&6; }
4037if ${ac_cv_prog_STRIP+:} false; then :
4038  $as_echo_n "(cached) " >&6
4039else
4040  if test -n "$STRIP"; then
4041  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4042else
4043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044for as_dir in $PATH
4045do
4046  IFS=$as_save_IFS
4047  test -z "$as_dir" && as_dir=.
4048    for ac_exec_ext in '' $ac_executable_extensions; do
4049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052    break 2
4053  fi
4054done
4055  done
4056IFS=$as_save_IFS
4057
4058fi
4059fi
4060STRIP=$ac_cv_prog_STRIP
4061if test -n "$STRIP"; then
4062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4063$as_echo "$STRIP" >&6; }
4064else
4065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066$as_echo "no" >&6; }
4067fi
4068
4069
4070fi
4071if test -z "$ac_cv_prog_STRIP"; then
4072  ac_ct_STRIP=$STRIP
4073  # Extract the first word of "strip", so it can be a program name with args.
4074set dummy strip; ac_word=$2
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076$as_echo_n "checking for $ac_word... " >&6; }
4077if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4078  $as_echo_n "(cached) " >&6
4079else
4080  if test -n "$ac_ct_STRIP"; then
4081  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4082else
4083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084for as_dir in $PATH
4085do
4086  IFS=$as_save_IFS
4087  test -z "$as_dir" && as_dir=.
4088    for ac_exec_ext in '' $ac_executable_extensions; do
4089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4090    ac_cv_prog_ac_ct_STRIP="strip"
4091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092    break 2
4093  fi
4094done
4095  done
4096IFS=$as_save_IFS
4097
4098fi
4099fi
4100ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4101if test -n "$ac_ct_STRIP"; then
4102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4103$as_echo "$ac_ct_STRIP" >&6; }
4104else
4105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106$as_echo "no" >&6; }
4107fi
4108
4109  if test "x$ac_ct_STRIP" = x; then
4110    STRIP=":"
4111  else
4112    case $cross_compiling:$ac_tool_warned in
4113yes:)
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4116ac_tool_warned=yes ;;
4117esac
4118    STRIP=$ac_ct_STRIP
4119  fi
4120else
4121  STRIP="$ac_cv_prog_STRIP"
4122fi
4123
4124fi
4125INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4126
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4128$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4129if test -z "$MKDIR_P"; then
4130  if ${ac_cv_path_mkdir+:} false; then :
4131  $as_echo_n "(cached) " >&6
4132else
4133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4135do
4136  IFS=$as_save_IFS
4137  test -z "$as_dir" && as_dir=.
4138    for ac_prog in mkdir gmkdir; do
4139	 for ac_exec_ext in '' $ac_executable_extensions; do
4140	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4141	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4142	     'mkdir (GNU coreutils) '* | \
4143	     'mkdir (coreutils) '* | \
4144	     'mkdir (fileutils) '4.1*)
4145	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4146	       break 3;;
4147	   esac
4148	 done
4149       done
4150  done
4151IFS=$as_save_IFS
4152
4153fi
4154
4155  test -d ./--version && rmdir ./--version
4156  if test "${ac_cv_path_mkdir+set}" = set; then
4157    MKDIR_P="$ac_cv_path_mkdir -p"
4158  else
4159    # As a last resort, use the slow shell script.  Don't cache a
4160    # value for MKDIR_P within a source directory, because that will
4161    # break other packages using the cache if that directory is
4162    # removed, or if the value is a relative name.
4163    MKDIR_P="$ac_install_sh -d"
4164  fi
4165fi
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4167$as_echo "$MKDIR_P" >&6; }
4168
4169for ac_prog in gawk mawk nawk awk
4170do
4171  # Extract the first word of "$ac_prog", so it can be a program name with args.
4172set dummy $ac_prog; ac_word=$2
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174$as_echo_n "checking for $ac_word... " >&6; }
4175if ${ac_cv_prog_AWK+:} false; then :
4176  $as_echo_n "(cached) " >&6
4177else
4178  if test -n "$AWK"; then
4179  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4180else
4181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182for as_dir in $PATH
4183do
4184  IFS=$as_save_IFS
4185  test -z "$as_dir" && as_dir=.
4186    for ac_exec_ext in '' $ac_executable_extensions; do
4187  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4188    ac_cv_prog_AWK="$ac_prog"
4189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190    break 2
4191  fi
4192done
4193  done
4194IFS=$as_save_IFS
4195
4196fi
4197fi
4198AWK=$ac_cv_prog_AWK
4199if test -n "$AWK"; then
4200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4201$as_echo "$AWK" >&6; }
4202else
4203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204$as_echo "no" >&6; }
4205fi
4206
4207
4208  test -n "$AWK" && break
4209done
4210
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4212$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4213set x ${MAKE-make}
4214ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4215if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4216  $as_echo_n "(cached) " >&6
4217else
4218  cat >conftest.make <<\_ACEOF
4219SHELL = /bin/sh
4220all:
4221	@echo '@@@%%%=$(MAKE)=@@@%%%'
4222_ACEOF
4223# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4224case `${MAKE-make} -f conftest.make 2>/dev/null` in
4225  *@@@%%%=?*=@@@%%%*)
4226    eval ac_cv_prog_make_${ac_make}_set=yes;;
4227  *)
4228    eval ac_cv_prog_make_${ac_make}_set=no;;
4229esac
4230rm -f conftest.make
4231fi
4232if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4234$as_echo "yes" >&6; }
4235  SET_MAKE=
4236else
4237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238$as_echo "no" >&6; }
4239  SET_MAKE="MAKE=${MAKE-make}"
4240fi
4241
4242rm -rf .tst 2>/dev/null
4243mkdir .tst 2>/dev/null
4244if test -d .tst; then
4245  am__leading_dot=.
4246else
4247  am__leading_dot=_
4248fi
4249rmdir .tst 2>/dev/null
4250
4251DEPDIR="${am__leading_dot}deps"
4252
4253ac_config_commands="$ac_config_commands depfiles"
4254
4255
4256am_make=${MAKE-make}
4257cat > confinc << 'END'
4258am__doit:
4259	@echo this is the am__doit target
4260.PHONY: am__doit
4261END
4262# If we don't find an include directive, just comment out the code.
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4264$as_echo_n "checking for style of include used by $am_make... " >&6; }
4265am__include="#"
4266am__quote=
4267_am_result=none
4268# First try GNU make style include.
4269echo "include confinc" > confmf
4270# Ignore all kinds of additional output from 'make'.
4271case `$am_make -s -f confmf 2> /dev/null` in #(
4272*the\ am__doit\ target*)
4273  am__include=include
4274  am__quote=
4275  _am_result=GNU
4276  ;;
4277esac
4278# Now try BSD make style include.
4279if test "$am__include" = "#"; then
4280   echo '.include "confinc"' > confmf
4281   case `$am_make -s -f confmf 2> /dev/null` in #(
4282   *the\ am__doit\ target*)
4283     am__include=.include
4284     am__quote="\""
4285     _am_result=BSD
4286     ;;
4287   esac
4288fi
4289
4290
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4292$as_echo "$_am_result" >&6; }
4293rm -f confinc confmf
4294
4295# Check whether --enable-dependency-tracking was given.
4296if test "${enable_dependency_tracking+set}" = set; then :
4297  enableval=$enable_dependency_tracking;
4298fi
4299
4300if test "x$enable_dependency_tracking" != xno; then
4301  am_depcomp="$ac_aux_dir/depcomp"
4302  AMDEPBACKSLASH='\'
4303  am__nodep='_no'
4304fi
4305 if test "x$enable_dependency_tracking" != xno; then
4306  AMDEP_TRUE=
4307  AMDEP_FALSE='#'
4308else
4309  AMDEP_TRUE='#'
4310  AMDEP_FALSE=
4311fi
4312
4313
4314# Check whether --enable-silent-rules was given.
4315if test "${enable_silent_rules+set}" = set; then :
4316  enableval=$enable_silent_rules;
4317fi
4318
4319case $enable_silent_rules in # (((
4320  yes) AM_DEFAULT_VERBOSITY=0;;
4321   no) AM_DEFAULT_VERBOSITY=1;;
4322    *) AM_DEFAULT_VERBOSITY=1;;
4323esac
4324am_make=${MAKE-make}
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4326$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4327if ${am_cv_make_support_nested_variables+:} false; then :
4328  $as_echo_n "(cached) " >&6
4329else
4330  if $as_echo 'TRUE=$(BAR$(V))
4331BAR0=false
4332BAR1=true
4333V=1
4334am__doit:
4335	@$(TRUE)
4336.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4337  am_cv_make_support_nested_variables=yes
4338else
4339  am_cv_make_support_nested_variables=no
4340fi
4341fi
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4343$as_echo "$am_cv_make_support_nested_variables" >&6; }
4344if test $am_cv_make_support_nested_variables = yes; then
4345    AM_V='$(V)'
4346  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4347else
4348  AM_V=$AM_DEFAULT_VERBOSITY
4349  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4350fi
4351AM_BACKSLASH='\'
4352
4353if test "`cd $srcdir && pwd`" != "`pwd`"; then
4354  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4355  # is not polluted with repeated "-I."
4356  am__isrc=' -I$(srcdir)'
4357  # test to see if srcdir already configured
4358  if test -f $srcdir/config.status; then
4359    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4360  fi
4361fi
4362
4363# test whether we have cygpath
4364if test -z "$CYGPATH_W"; then
4365  if (cygpath --version) >/dev/null 2>/dev/null; then
4366    CYGPATH_W='cygpath -w'
4367  else
4368    CYGPATH_W=echo
4369  fi
4370fi
4371
4372
4373# Define the identity of the package.
4374 PACKAGE='xfs'
4375 VERSION='1.1.4'
4376
4377
4378cat >>confdefs.h <<_ACEOF
4379#define PACKAGE "$PACKAGE"
4380_ACEOF
4381
4382
4383cat >>confdefs.h <<_ACEOF
4384#define VERSION "$VERSION"
4385_ACEOF
4386
4387# Some tools Automake needs.
4388
4389ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4390
4391
4392AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4393
4394
4395AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4396
4397
4398AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4399
4400
4401MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4402
4403# For better backward compatibility.  To be removed once Automake 1.9.x
4404# dies out for good.  For more background, see:
4405# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4406# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4407mkdir_p='$(MKDIR_P)'
4408
4409# We need awk for the "check" target.  The system "awk" is bad on
4410# some platforms.
4411# Always define AMTAR for backward compatibility.  Yes, it's still used
4412# in the wild :-(  We should find a proper way to deprecate it ...
4413AMTAR='$${TAR-tar}'
4414
4415
4416# We'll loop over all known methods to create a tar archive until one works.
4417_am_tools='gnutar  pax cpio none'
4418
4419am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4420
4421
4422
4423
4424
4425depcc="$CC"   am_compiler_list=
4426
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4428$as_echo_n "checking dependency style of $depcc... " >&6; }
4429if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4430  $as_echo_n "(cached) " >&6
4431else
4432  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4433  # We make a subdir and do the tests there.  Otherwise we can end up
4434  # making bogus files that we don't know about and never remove.  For
4435  # instance it was reported that on HP-UX the gcc test will end up
4436  # making a dummy file named 'D' -- because '-MD' means "put the output
4437  # in D".
4438  rm -rf conftest.dir
4439  mkdir conftest.dir
4440  # Copy depcomp to subdir because otherwise we won't find it if we're
4441  # using a relative directory.
4442  cp "$am_depcomp" conftest.dir
4443  cd conftest.dir
4444  # We will build objects and dependencies in a subdirectory because
4445  # it helps to detect inapplicable dependency modes.  For instance
4446  # both Tru64's cc and ICC support -MD to output dependencies as a
4447  # side effect of compilation, but ICC will put the dependencies in
4448  # the current directory while Tru64 will put them in the object
4449  # directory.
4450  mkdir sub
4451
4452  am_cv_CC_dependencies_compiler_type=none
4453  if test "$am_compiler_list" = ""; then
4454     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4455  fi
4456  am__universal=false
4457  case " $depcc " in #(
4458     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4459     esac
4460
4461  for depmode in $am_compiler_list; do
4462    # Setup a source with many dependencies, because some compilers
4463    # like to wrap large dependency lists on column 80 (with \), and
4464    # we should not choose a depcomp mode which is confused by this.
4465    #
4466    # We need to recreate these files for each test, as the compiler may
4467    # overwrite some of them when testing with obscure command lines.
4468    # This happens at least with the AIX C compiler.
4469    : > sub/conftest.c
4470    for i in 1 2 3 4 5 6; do
4471      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4472      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4473      # Solaris 10 /bin/sh.
4474      echo '/* dummy */' > sub/conftst$i.h
4475    done
4476    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4477
4478    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4479    # mode.  It turns out that the SunPro C++ compiler does not properly
4480    # handle '-M -o', and we need to detect this.  Also, some Intel
4481    # versions had trouble with output in subdirs.
4482    am__obj=sub/conftest.${OBJEXT-o}
4483    am__minus_obj="-o $am__obj"
4484    case $depmode in
4485    gcc)
4486      # This depmode causes a compiler race in universal mode.
4487      test "$am__universal" = false || continue
4488      ;;
4489    nosideeffect)
4490      # After this tag, mechanisms are not by side-effect, so they'll
4491      # only be used when explicitly requested.
4492      if test "x$enable_dependency_tracking" = xyes; then
4493	continue
4494      else
4495	break
4496      fi
4497      ;;
4498    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4499      # This compiler won't grok '-c -o', but also, the minuso test has
4500      # not run yet.  These depmodes are late enough in the game, and
4501      # so weak that their functioning should not be impacted.
4502      am__obj=conftest.${OBJEXT-o}
4503      am__minus_obj=
4504      ;;
4505    none) break ;;
4506    esac
4507    if depmode=$depmode \
4508       source=sub/conftest.c object=$am__obj \
4509       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4510       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4511         >/dev/null 2>conftest.err &&
4512       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4513       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4514       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4515       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4516      # icc doesn't choke on unknown options, it will just issue warnings
4517      # or remarks (even with -Werror).  So we grep stderr for any message
4518      # that says an option was ignored or not supported.
4519      # When given -MP, icc 7.0 and 7.1 complain thusly:
4520      #   icc: Command line warning: ignoring option '-M'; no argument required
4521      # The diagnosis changed in icc 8.0:
4522      #   icc: Command line remark: option '-MP' not supported
4523      if (grep 'ignoring option' conftest.err ||
4524          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4525        am_cv_CC_dependencies_compiler_type=$depmode
4526        break
4527      fi
4528    fi
4529  done
4530
4531  cd ..
4532  rm -rf conftest.dir
4533else
4534  am_cv_CC_dependencies_compiler_type=none
4535fi
4536
4537fi
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4539$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4540CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4541
4542 if
4543  test "x$enable_dependency_tracking" != xno \
4544  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4545  am__fastdepCC_TRUE=
4546  am__fastdepCC_FALSE='#'
4547else
4548  am__fastdepCC_TRUE='#'
4549  am__fastdepCC_FALSE=
4550fi
4551
4552
4553
4554# POSIX will say in a future version that running "rm -f" with no argument
4555# is OK; and we want to be able to make that assumption in our Makefile
4556# recipes.  So use an aggressive probe to check that the usage we want is
4557# actually supported "in the wild" to an acceptable degree.
4558# See automake bug#10828.
4559# To make any issue more visible, cause the running configure to be aborted
4560# by default if the 'rm' program in use doesn't match our expectations; the
4561# user can still override this though.
4562if rm -f && rm -fr && rm -rf; then : OK; else
4563  cat >&2 <<'END'
4564Oops!
4565
4566Your 'rm' program seems unable to run without file operands specified
4567on the command line, even when the '-f' option is present.  This is contrary
4568to the behaviour of most rm programs out there, and not conforming with
4569the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4570
4571Please tell bug-automake@gnu.org about your system, including the value
4572of your $PATH and any error possibly output before this message.  This
4573can help us improve future automake versions.
4574
4575END
4576  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4577    echo 'Configuration will proceed anyway, since you have set the' >&2
4578    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4579    echo >&2
4580  else
4581    cat >&2 <<'END'
4582Aborting the configuration process, to ensure you take notice of the issue.
4583
4584You can download and install GNU coreutils to get an 'rm' implementation
4585that behaves properly: <http://www.gnu.org/software/coreutils/>.
4586
4587If you want to complete the configuration process using your problematic
4588'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4589to "yes", and re-run configure.
4590
4591END
4592    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4593  fi
4594fi
4595
4596# Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4609$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4610if ${ac_cv_prog_cc_c99+:} false; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613  ac_cv_prog_cc_c99=no
4614ac_save_CC=$CC
4615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616/* end confdefs.h.  */
4617#include <stdarg.h>
4618#include <stdbool.h>
4619#include <stdlib.h>
4620#include <wchar.h>
4621#include <stdio.h>
4622
4623// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4624#define debug(...) fprintf (stderr, __VA_ARGS__)
4625#define showlist(...) puts (#__VA_ARGS__)
4626#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4627static void
4628test_varargs_macros (void)
4629{
4630  int x = 1234;
4631  int y = 5678;
4632  debug ("Flag");
4633  debug ("X = %d\n", x);
4634  showlist (The first, second, and third items.);
4635  report (x>y, "x is %d but y is %d", x, y);
4636}
4637
4638// Check long long types.
4639#define BIG64 18446744073709551615ull
4640#define BIG32 4294967295ul
4641#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4642#if !BIG_OK
4643  your preprocessor is broken;
4644#endif
4645#if BIG_OK
4646#else
4647  your preprocessor is broken;
4648#endif
4649static long long int bignum = -9223372036854775807LL;
4650static unsigned long long int ubignum = BIG64;
4651
4652struct incomplete_array
4653{
4654  int datasize;
4655  double data[];
4656};
4657
4658struct named_init {
4659  int number;
4660  const wchar_t *name;
4661  double average;
4662};
4663
4664typedef const char *ccp;
4665
4666static inline int
4667test_restrict (ccp restrict text)
4668{
4669  // See if C++-style comments work.
4670  // Iterate through items via the restricted pointer.
4671  // Also check for declarations in for loops.
4672  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4673    continue;
4674  return 0;
4675}
4676
4677// Check varargs and va_copy.
4678static void
4679test_varargs (const char *format, ...)
4680{
4681  va_list args;
4682  va_start (args, format);
4683  va_list args_copy;
4684  va_copy (args_copy, args);
4685
4686  const char *str;
4687  int number;
4688  float fnumber;
4689
4690  while (*format)
4691    {
4692      switch (*format++)
4693	{
4694	case 's': // string
4695	  str = va_arg (args_copy, const char *);
4696	  break;
4697	case 'd': // int
4698	  number = va_arg (args_copy, int);
4699	  break;
4700	case 'f': // float
4701	  fnumber = va_arg (args_copy, double);
4702	  break;
4703	default:
4704	  break;
4705	}
4706    }
4707  va_end (args_copy);
4708  va_end (args);
4709}
4710
4711int
4712main ()
4713{
4714
4715  // Check bool.
4716  _Bool success = false;
4717
4718  // Check restrict.
4719  if (test_restrict ("String literal") == 0)
4720    success = true;
4721  char *restrict newvar = "Another string";
4722
4723  // Check varargs.
4724  test_varargs ("s, d' f .", "string", 65, 34.234);
4725  test_varargs_macros ();
4726
4727  // Check flexible array members.
4728  struct incomplete_array *ia =
4729    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4730  ia->datasize = 10;
4731  for (int i = 0; i < ia->datasize; ++i)
4732    ia->data[i] = i * 1.234;
4733
4734  // Check named initializers.
4735  struct named_init ni = {
4736    .number = 34,
4737    .name = L"Test wide string",
4738    .average = 543.34343,
4739  };
4740
4741  ni.number = 58;
4742
4743  int dynamic_array[ni.number];
4744  dynamic_array[ni.number - 1] = 543;
4745
4746  // work around unused variable warnings
4747  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4748	  || dynamic_array[ni.number - 1] != 543);
4749
4750  ;
4751  return 0;
4752}
4753_ACEOF
4754for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4755do
4756  CC="$ac_save_CC $ac_arg"
4757  if ac_fn_c_try_compile "$LINENO"; then :
4758  ac_cv_prog_cc_c99=$ac_arg
4759fi
4760rm -f core conftest.err conftest.$ac_objext
4761  test "x$ac_cv_prog_cc_c99" != "xno" && break
4762done
4763rm -f conftest.$ac_ext
4764CC=$ac_save_CC
4765
4766fi
4767# AC_CACHE_VAL
4768case "x$ac_cv_prog_cc_c99" in
4769  x)
4770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4771$as_echo "none needed" >&6; } ;;
4772  xno)
4773    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4774$as_echo "unsupported" >&6; } ;;
4775  *)
4776    CC="$CC $ac_cv_prog_cc_c99"
4777    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4778$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4779esac
4780if test "x$ac_cv_prog_cc_c99" != xno; then :
4781
4782fi
4783
4784
4785
4786
4787
4788
4789ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4790if test "x$ac_cv_have_decl___clang__" = xyes; then :
4791  CLANGCC="yes"
4792else
4793  CLANGCC="no"
4794fi
4795
4796ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4797if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4798  INTELCC="yes"
4799else
4800  INTELCC="no"
4801fi
4802
4803ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4804if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4805  SUNCC="yes"
4806else
4807  SUNCC="no"
4808fi
4809
4810
4811
4812
4813if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4814	if test -n "$ac_tool_prefix"; then
4815  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4816set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
4819if ${ac_cv_path_PKG_CONFIG+:} false; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  case $PKG_CONFIG in
4823  [\\/]* | ?:[\\/]*)
4824  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4825  ;;
4826  *)
4827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830  IFS=$as_save_IFS
4831  test -z "$as_dir" && as_dir=.
4832    for ac_exec_ext in '' $ac_executable_extensions; do
4833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836    break 2
4837  fi
4838done
4839  done
4840IFS=$as_save_IFS
4841
4842  ;;
4843esac
4844fi
4845PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4846if test -n "$PKG_CONFIG"; then
4847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4848$as_echo "$PKG_CONFIG" >&6; }
4849else
4850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
4852fi
4853
4854
4855fi
4856if test -z "$ac_cv_path_PKG_CONFIG"; then
4857  ac_pt_PKG_CONFIG=$PKG_CONFIG
4858  # Extract the first word of "pkg-config", so it can be a program name with args.
4859set dummy pkg-config; ac_word=$2
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861$as_echo_n "checking for $ac_word... " >&6; }
4862if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4863  $as_echo_n "(cached) " >&6
4864else
4865  case $ac_pt_PKG_CONFIG in
4866  [\\/]* | ?:[\\/]*)
4867  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4868  ;;
4869  *)
4870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873  IFS=$as_save_IFS
4874  test -z "$as_dir" && as_dir=.
4875    for ac_exec_ext in '' $ac_executable_extensions; do
4876  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879    break 2
4880  fi
4881done
4882  done
4883IFS=$as_save_IFS
4884
4885  ;;
4886esac
4887fi
4888ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4889if test -n "$ac_pt_PKG_CONFIG"; then
4890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4891$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4892else
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
4895fi
4896
4897  if test "x$ac_pt_PKG_CONFIG" = x; then
4898    PKG_CONFIG=""
4899  else
4900    case $cross_compiling:$ac_tool_warned in
4901yes:)
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904ac_tool_warned=yes ;;
4905esac
4906    PKG_CONFIG=$ac_pt_PKG_CONFIG
4907  fi
4908else
4909  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4910fi
4911
4912fi
4913if test -n "$PKG_CONFIG"; then
4914	_pkg_min_version=0.9.0
4915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4916$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4917	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4918		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919$as_echo "yes" >&6; }
4920	else
4921		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
4923		PKG_CONFIG=""
4924	fi
4925
4926fi
4927# Make sure we can run config.sub.
4928$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4929  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4930
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4932$as_echo_n "checking build system type... " >&6; }
4933if ${ac_cv_build+:} false; then :
4934  $as_echo_n "(cached) " >&6
4935else
4936  ac_build_alias=$build_alias
4937test "x$ac_build_alias" = x &&
4938  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4939test "x$ac_build_alias" = x &&
4940  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4941ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4942  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4943
4944fi
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4946$as_echo "$ac_cv_build" >&6; }
4947case $ac_cv_build in
4948*-*-*) ;;
4949*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4950esac
4951build=$ac_cv_build
4952ac_save_IFS=$IFS; IFS='-'
4953set x $ac_cv_build
4954shift
4955build_cpu=$1
4956build_vendor=$2
4957shift; shift
4958# Remember, the first character of IFS is used to create $*,
4959# except with old shells:
4960build_os=$*
4961IFS=$ac_save_IFS
4962case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4963
4964
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4966$as_echo_n "checking host system type... " >&6; }
4967if ${ac_cv_host+:} false; then :
4968  $as_echo_n "(cached) " >&6
4969else
4970  if test "x$host_alias" = x; then
4971  ac_cv_host=$ac_cv_build
4972else
4973  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4974    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4975fi
4976
4977fi
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4979$as_echo "$ac_cv_host" >&6; }
4980case $ac_cv_host in
4981*-*-*) ;;
4982*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4983esac
4984host=$ac_cv_host
4985ac_save_IFS=$IFS; IFS='-'
4986set x $ac_cv_host
4987shift
4988host_cpu=$1
4989host_vendor=$2
4990shift; shift
4991# Remember, the first character of IFS is used to create $*,
4992# except with old shells:
4993host_os=$*
4994IFS=$ac_save_IFS
4995case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4996
4997
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4999$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5000if ${ac_cv_path_SED+:} false; then :
5001  $as_echo_n "(cached) " >&6
5002else
5003            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5004     for ac_i in 1 2 3 4 5 6 7; do
5005       ac_script="$ac_script$as_nl$ac_script"
5006     done
5007     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5008     { ac_script=; unset ac_script;}
5009     if test -z "$SED"; then
5010  ac_path_SED_found=false
5011  # Loop through the user's path and test for each of PROGNAME-LIST
5012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015  IFS=$as_save_IFS
5016  test -z "$as_dir" && as_dir=.
5017    for ac_prog in sed gsed; do
5018    for ac_exec_ext in '' $ac_executable_extensions; do
5019      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5020      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5021# Check for GNU ac_path_SED and select it if it is found.
5022  # Check for GNU $ac_path_SED
5023case `"$ac_path_SED" --version 2>&1` in
5024*GNU*)
5025  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5026*)
5027  ac_count=0
5028  $as_echo_n 0123456789 >"conftest.in"
5029  while :
5030  do
5031    cat "conftest.in" "conftest.in" >"conftest.tmp"
5032    mv "conftest.tmp" "conftest.in"
5033    cp "conftest.in" "conftest.nl"
5034    $as_echo '' >> "conftest.nl"
5035    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5036    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5037    as_fn_arith $ac_count + 1 && ac_count=$as_val
5038    if test $ac_count -gt ${ac_path_SED_max-0}; then
5039      # Best one so far, save it but keep looking for a better one
5040      ac_cv_path_SED="$ac_path_SED"
5041      ac_path_SED_max=$ac_count
5042    fi
5043    # 10*(2^10) chars as input seems more than enough
5044    test $ac_count -gt 10 && break
5045  done
5046  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5047esac
5048
5049      $ac_path_SED_found && break 3
5050    done
5051  done
5052  done
5053IFS=$as_save_IFS
5054  if test -z "$ac_cv_path_SED"; then
5055    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5056  fi
5057else
5058  ac_cv_path_SED=$SED
5059fi
5060
5061fi
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5063$as_echo "$ac_cv_path_SED" >&6; }
5064 SED="$ac_cv_path_SED"
5065  rm -f conftest.sed
5066
5067
5068
5069
5070
5071
5072# Check whether --enable-selective-werror was given.
5073if test "${enable_selective_werror+set}" = set; then :
5074  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5075else
5076  SELECTIVE_WERROR=yes
5077fi
5078
5079
5080
5081
5082
5083# -v is too short to test reliably with XORG_TESTSET_CFLAG
5084if test "x$SUNCC" = "xyes"; then
5085    BASE_CFLAGS="-v"
5086else
5087    BASE_CFLAGS=""
5088fi
5089
5090# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104xorg_testset_save_CFLAGS="$CFLAGS"
5105
5106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5107	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5109$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5110if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5111  $as_echo_n "(cached) " >&6
5112else
5113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114/* end confdefs.h.  */
5115int i;
5116_ACEOF
5117if ac_fn_c_try_compile "$LINENO"; then :
5118  xorg_cv_cc_flag_unknown_warning_option=yes
5119else
5120  xorg_cv_cc_flag_unknown_warning_option=no
5121fi
5122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123fi
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5125$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5126	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5127	CFLAGS="$xorg_testset_save_CFLAGS"
5128fi
5129
5130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5131	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5132		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5133	fi
5134	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5136$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5137if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5138  $as_echo_n "(cached) " >&6
5139else
5140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141/* end confdefs.h.  */
5142int i;
5143_ACEOF
5144if ac_fn_c_try_compile "$LINENO"; then :
5145  xorg_cv_cc_flag_unused_command_line_argument=yes
5146else
5147  xorg_cv_cc_flag_unused_command_line_argument=no
5148fi
5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150fi
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5152$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5153	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5154	CFLAGS="$xorg_testset_save_CFLAGS"
5155fi
5156
5157found="no"
5158
5159	if test $found = "no" ; then
5160		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5162		fi
5163
5164		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5166		fi
5167
5168		CFLAGS="$CFLAGS -Wall"
5169
5170		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5171$as_echo_n "checking if $CC supports -Wall... " >&6; }
5172		cacheid=xorg_cv_cc_flag__Wall
5173		if eval \${$cacheid+:} false; then :
5174  $as_echo_n "(cached) " >&6
5175else
5176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h.  */
5178int i;
5179int
5180main ()
5181{
5182
5183  ;
5184  return 0;
5185}
5186_ACEOF
5187if ac_fn_c_try_link "$LINENO"; then :
5188  eval $cacheid=yes
5189else
5190  eval $cacheid=no
5191fi
5192rm -f core conftest.err conftest.$ac_objext \
5193    conftest$ac_exeext conftest.$ac_ext
5194fi
5195
5196
5197		CFLAGS="$xorg_testset_save_CFLAGS"
5198
5199		eval supported=\$$cacheid
5200		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5201$as_echo "$supported" >&6; }
5202		if test "$supported" = "yes" ; then
5203			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5204			found="yes"
5205		fi
5206	fi
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222xorg_testset_save_CFLAGS="$CFLAGS"
5223
5224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5227$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5228if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5229  $as_echo_n "(cached) " >&6
5230else
5231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232/* end confdefs.h.  */
5233int i;
5234_ACEOF
5235if ac_fn_c_try_compile "$LINENO"; then :
5236  xorg_cv_cc_flag_unknown_warning_option=yes
5237else
5238  xorg_cv_cc_flag_unknown_warning_option=no
5239fi
5240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241fi
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5243$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5244	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5245	CFLAGS="$xorg_testset_save_CFLAGS"
5246fi
5247
5248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5249	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5251	fi
5252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5254$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5255if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259/* end confdefs.h.  */
5260int i;
5261_ACEOF
5262if ac_fn_c_try_compile "$LINENO"; then :
5263  xorg_cv_cc_flag_unused_command_line_argument=yes
5264else
5265  xorg_cv_cc_flag_unused_command_line_argument=no
5266fi
5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268fi
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5270$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5271	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5272	CFLAGS="$xorg_testset_save_CFLAGS"
5273fi
5274
5275found="no"
5276
5277	if test $found = "no" ; then
5278		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5280		fi
5281
5282		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5284		fi
5285
5286		CFLAGS="$CFLAGS -Wpointer-arith"
5287
5288		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5289$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5290		cacheid=xorg_cv_cc_flag__Wpointer_arith
5291		if eval \${$cacheid+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h.  */
5296int i;
5297int
5298main ()
5299{
5300
5301  ;
5302  return 0;
5303}
5304_ACEOF
5305if ac_fn_c_try_link "$LINENO"; then :
5306  eval $cacheid=yes
5307else
5308  eval $cacheid=no
5309fi
5310rm -f core conftest.err conftest.$ac_objext \
5311    conftest$ac_exeext conftest.$ac_ext
5312fi
5313
5314
5315		CFLAGS="$xorg_testset_save_CFLAGS"
5316
5317		eval supported=\$$cacheid
5318		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5319$as_echo "$supported" >&6; }
5320		if test "$supported" = "yes" ; then
5321			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5322			found="yes"
5323		fi
5324	fi
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340xorg_testset_save_CFLAGS="$CFLAGS"
5341
5342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5343	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5345$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5346if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5347  $as_echo_n "(cached) " >&6
5348else
5349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350/* end confdefs.h.  */
5351int i;
5352_ACEOF
5353if ac_fn_c_try_compile "$LINENO"; then :
5354  xorg_cv_cc_flag_unknown_warning_option=yes
5355else
5356  xorg_cv_cc_flag_unknown_warning_option=no
5357fi
5358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359fi
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5361$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5362	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5363	CFLAGS="$xorg_testset_save_CFLAGS"
5364fi
5365
5366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5367	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5369	fi
5370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5372$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5373if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5374  $as_echo_n "(cached) " >&6
5375else
5376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378int i;
5379_ACEOF
5380if ac_fn_c_try_compile "$LINENO"; then :
5381  xorg_cv_cc_flag_unused_command_line_argument=yes
5382else
5383  xorg_cv_cc_flag_unused_command_line_argument=no
5384fi
5385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5388$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5389	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5390	CFLAGS="$xorg_testset_save_CFLAGS"
5391fi
5392
5393found="no"
5394
5395	if test $found = "no" ; then
5396		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5397			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5398		fi
5399
5400		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5401			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5402		fi
5403
5404		CFLAGS="$CFLAGS -Wmissing-declarations"
5405
5406		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5407$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5408		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5409		if eval \${$cacheid+:} false; then :
5410  $as_echo_n "(cached) " >&6
5411else
5412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h.  */
5414int i;
5415int
5416main ()
5417{
5418
5419  ;
5420  return 0;
5421}
5422_ACEOF
5423if ac_fn_c_try_link "$LINENO"; then :
5424  eval $cacheid=yes
5425else
5426  eval $cacheid=no
5427fi
5428rm -f core conftest.err conftest.$ac_objext \
5429    conftest$ac_exeext conftest.$ac_ext
5430fi
5431
5432
5433		CFLAGS="$xorg_testset_save_CFLAGS"
5434
5435		eval supported=\$$cacheid
5436		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5437$as_echo "$supported" >&6; }
5438		if test "$supported" = "yes" ; then
5439			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5440			found="yes"
5441		fi
5442	fi
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458xorg_testset_save_CFLAGS="$CFLAGS"
5459
5460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5463$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5464if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5465  $as_echo_n "(cached) " >&6
5466else
5467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h.  */
5469int i;
5470_ACEOF
5471if ac_fn_c_try_compile "$LINENO"; then :
5472  xorg_cv_cc_flag_unknown_warning_option=yes
5473else
5474  xorg_cv_cc_flag_unknown_warning_option=no
5475fi
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477fi
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5479$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5480	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5481	CFLAGS="$xorg_testset_save_CFLAGS"
5482fi
5483
5484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5485	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5486		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5487	fi
5488	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5490$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5491if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5492  $as_echo_n "(cached) " >&6
5493else
5494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496int i;
5497_ACEOF
5498if ac_fn_c_try_compile "$LINENO"; then :
5499  xorg_cv_cc_flag_unused_command_line_argument=yes
5500else
5501  xorg_cv_cc_flag_unused_command_line_argument=no
5502fi
5503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504fi
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5506$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5507	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5508	CFLAGS="$xorg_testset_save_CFLAGS"
5509fi
5510
5511found="no"
5512
5513	if test $found = "no" ; then
5514		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5516		fi
5517
5518		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5520		fi
5521
5522		CFLAGS="$CFLAGS -Wformat=2"
5523
5524		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5525$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5526		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5527		if eval \${$cacheid+:} false; then :
5528  $as_echo_n "(cached) " >&6
5529else
5530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531/* end confdefs.h.  */
5532int i;
5533int
5534main ()
5535{
5536
5537  ;
5538  return 0;
5539}
5540_ACEOF
5541if ac_fn_c_try_link "$LINENO"; then :
5542  eval $cacheid=yes
5543else
5544  eval $cacheid=no
5545fi
5546rm -f core conftest.err conftest.$ac_objext \
5547    conftest$ac_exeext conftest.$ac_ext
5548fi
5549
5550
5551		CFLAGS="$xorg_testset_save_CFLAGS"
5552
5553		eval supported=\$$cacheid
5554		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5555$as_echo "$supported" >&6; }
5556		if test "$supported" = "yes" ; then
5557			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5558			found="yes"
5559		fi
5560	fi
5561
5562	if test $found = "no" ; then
5563		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5564			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5565		fi
5566
5567		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5568			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5569		fi
5570
5571		CFLAGS="$CFLAGS -Wformat"
5572
5573		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5574$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5575		cacheid=xorg_cv_cc_flag__Wformat
5576		if eval \${$cacheid+:} false; then :
5577  $as_echo_n "(cached) " >&6
5578else
5579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580/* end confdefs.h.  */
5581int i;
5582int
5583main ()
5584{
5585
5586  ;
5587  return 0;
5588}
5589_ACEOF
5590if ac_fn_c_try_link "$LINENO"; then :
5591  eval $cacheid=yes
5592else
5593  eval $cacheid=no
5594fi
5595rm -f core conftest.err conftest.$ac_objext \
5596    conftest$ac_exeext conftest.$ac_ext
5597fi
5598
5599
5600		CFLAGS="$xorg_testset_save_CFLAGS"
5601
5602		eval supported=\$$cacheid
5603		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5604$as_echo "$supported" >&6; }
5605		if test "$supported" = "yes" ; then
5606			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5607			found="yes"
5608		fi
5609	fi
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627xorg_testset_save_CFLAGS="$CFLAGS"
5628
5629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5630	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5631	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5632$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5633if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5634  $as_echo_n "(cached) " >&6
5635else
5636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h.  */
5638int i;
5639_ACEOF
5640if ac_fn_c_try_compile "$LINENO"; then :
5641  xorg_cv_cc_flag_unknown_warning_option=yes
5642else
5643  xorg_cv_cc_flag_unknown_warning_option=no
5644fi
5645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646fi
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5648$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5650	CFLAGS="$xorg_testset_save_CFLAGS"
5651fi
5652
5653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5656	fi
5657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5659$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5660if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5661  $as_echo_n "(cached) " >&6
5662else
5663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664/* end confdefs.h.  */
5665int i;
5666_ACEOF
5667if ac_fn_c_try_compile "$LINENO"; then :
5668  xorg_cv_cc_flag_unused_command_line_argument=yes
5669else
5670  xorg_cv_cc_flag_unused_command_line_argument=no
5671fi
5672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673fi
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5675$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5676	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5677	CFLAGS="$xorg_testset_save_CFLAGS"
5678fi
5679
5680found="no"
5681
5682	if test $found = "no" ; then
5683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5685		fi
5686
5687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5689		fi
5690
5691		CFLAGS="$CFLAGS -Wstrict-prototypes"
5692
5693		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5694$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5695		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5696		if eval \${$cacheid+:} false; then :
5697  $as_echo_n "(cached) " >&6
5698else
5699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700/* end confdefs.h.  */
5701int i;
5702int
5703main ()
5704{
5705
5706  ;
5707  return 0;
5708}
5709_ACEOF
5710if ac_fn_c_try_link "$LINENO"; then :
5711  eval $cacheid=yes
5712else
5713  eval $cacheid=no
5714fi
5715rm -f core conftest.err conftest.$ac_objext \
5716    conftest$ac_exeext conftest.$ac_ext
5717fi
5718
5719
5720		CFLAGS="$xorg_testset_save_CFLAGS"
5721
5722		eval supported=\$$cacheid
5723		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5724$as_echo "$supported" >&6; }
5725		if test "$supported" = "yes" ; then
5726			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5727			found="yes"
5728		fi
5729	fi
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745xorg_testset_save_CFLAGS="$CFLAGS"
5746
5747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5752  $as_echo_n "(cached) " >&6
5753else
5754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755/* end confdefs.h.  */
5756int i;
5757_ACEOF
5758if ac_fn_c_try_compile "$LINENO"; then :
5759  xorg_cv_cc_flag_unknown_warning_option=yes
5760else
5761  xorg_cv_cc_flag_unknown_warning_option=no
5762fi
5763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764fi
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5768	CFLAGS="$xorg_testset_save_CFLAGS"
5769fi
5770
5771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5774	fi
5775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5779  $as_echo_n "(cached) " >&6
5780else
5781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782/* end confdefs.h.  */
5783int i;
5784_ACEOF
5785if ac_fn_c_try_compile "$LINENO"; then :
5786  xorg_cv_cc_flag_unused_command_line_argument=yes
5787else
5788  xorg_cv_cc_flag_unused_command_line_argument=no
5789fi
5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5795	CFLAGS="$xorg_testset_save_CFLAGS"
5796fi
5797
5798found="no"
5799
5800	if test $found = "no" ; then
5801		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5803		fi
5804
5805		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5807		fi
5808
5809		CFLAGS="$CFLAGS -Wmissing-prototypes"
5810
5811		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5812$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5813		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5814		if eval \${$cacheid+:} false; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818/* end confdefs.h.  */
5819int i;
5820int
5821main ()
5822{
5823
5824  ;
5825  return 0;
5826}
5827_ACEOF
5828if ac_fn_c_try_link "$LINENO"; then :
5829  eval $cacheid=yes
5830else
5831  eval $cacheid=no
5832fi
5833rm -f core conftest.err conftest.$ac_objext \
5834    conftest$ac_exeext conftest.$ac_ext
5835fi
5836
5837
5838		CFLAGS="$xorg_testset_save_CFLAGS"
5839
5840		eval supported=\$$cacheid
5841		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5842$as_echo "$supported" >&6; }
5843		if test "$supported" = "yes" ; then
5844			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5845			found="yes"
5846		fi
5847	fi
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863xorg_testset_save_CFLAGS="$CFLAGS"
5864
5865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5870  $as_echo_n "(cached) " >&6
5871else
5872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873/* end confdefs.h.  */
5874int i;
5875_ACEOF
5876if ac_fn_c_try_compile "$LINENO"; then :
5877  xorg_cv_cc_flag_unknown_warning_option=yes
5878else
5879  xorg_cv_cc_flag_unknown_warning_option=no
5880fi
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882fi
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5886	CFLAGS="$xorg_testset_save_CFLAGS"
5887fi
5888
5889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5892	fi
5893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5897  $as_echo_n "(cached) " >&6
5898else
5899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900/* end confdefs.h.  */
5901int i;
5902_ACEOF
5903if ac_fn_c_try_compile "$LINENO"; then :
5904  xorg_cv_cc_flag_unused_command_line_argument=yes
5905else
5906  xorg_cv_cc_flag_unused_command_line_argument=no
5907fi
5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909fi
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5913	CFLAGS="$xorg_testset_save_CFLAGS"
5914fi
5915
5916found="no"
5917
5918	if test $found = "no" ; then
5919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921		fi
5922
5923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5925		fi
5926
5927		CFLAGS="$CFLAGS -Wnested-externs"
5928
5929		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5930$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5931		cacheid=xorg_cv_cc_flag__Wnested_externs
5932		if eval \${$cacheid+:} false; then :
5933  $as_echo_n "(cached) " >&6
5934else
5935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936/* end confdefs.h.  */
5937int i;
5938int
5939main ()
5940{
5941
5942  ;
5943  return 0;
5944}
5945_ACEOF
5946if ac_fn_c_try_link "$LINENO"; then :
5947  eval $cacheid=yes
5948else
5949  eval $cacheid=no
5950fi
5951rm -f core conftest.err conftest.$ac_objext \
5952    conftest$ac_exeext conftest.$ac_ext
5953fi
5954
5955
5956		CFLAGS="$xorg_testset_save_CFLAGS"
5957
5958		eval supported=\$$cacheid
5959		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5960$as_echo "$supported" >&6; }
5961		if test "$supported" = "yes" ; then
5962			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5963			found="yes"
5964		fi
5965	fi
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981xorg_testset_save_CFLAGS="$CFLAGS"
5982
5983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5988  $as_echo_n "(cached) " >&6
5989else
5990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991/* end confdefs.h.  */
5992int i;
5993_ACEOF
5994if ac_fn_c_try_compile "$LINENO"; then :
5995  xorg_cv_cc_flag_unknown_warning_option=yes
5996else
5997  xorg_cv_cc_flag_unknown_warning_option=no
5998fi
5999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000fi
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6004	CFLAGS="$xorg_testset_save_CFLAGS"
6005fi
6006
6007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6010	fi
6011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6015  $as_echo_n "(cached) " >&6
6016else
6017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018/* end confdefs.h.  */
6019int i;
6020_ACEOF
6021if ac_fn_c_try_compile "$LINENO"; then :
6022  xorg_cv_cc_flag_unused_command_line_argument=yes
6023else
6024  xorg_cv_cc_flag_unused_command_line_argument=no
6025fi
6026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027fi
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6031	CFLAGS="$xorg_testset_save_CFLAGS"
6032fi
6033
6034found="no"
6035
6036	if test $found = "no" ; then
6037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039		fi
6040
6041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6043		fi
6044
6045		CFLAGS="$CFLAGS -Wbad-function-cast"
6046
6047		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6048$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
6049		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6050		if eval \${$cacheid+:} false; then :
6051  $as_echo_n "(cached) " >&6
6052else
6053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054/* end confdefs.h.  */
6055int i;
6056int
6057main ()
6058{
6059
6060  ;
6061  return 0;
6062}
6063_ACEOF
6064if ac_fn_c_try_link "$LINENO"; then :
6065  eval $cacheid=yes
6066else
6067  eval $cacheid=no
6068fi
6069rm -f core conftest.err conftest.$ac_objext \
6070    conftest$ac_exeext conftest.$ac_ext
6071fi
6072
6073
6074		CFLAGS="$xorg_testset_save_CFLAGS"
6075
6076		eval supported=\$$cacheid
6077		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6078$as_echo "$supported" >&6; }
6079		if test "$supported" = "yes" ; then
6080			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6081			found="yes"
6082		fi
6083	fi
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099xorg_testset_save_CFLAGS="$CFLAGS"
6100
6101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6102	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6106  $as_echo_n "(cached) " >&6
6107else
6108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109/* end confdefs.h.  */
6110int i;
6111_ACEOF
6112if ac_fn_c_try_compile "$LINENO"; then :
6113  xorg_cv_cc_flag_unknown_warning_option=yes
6114else
6115  xorg_cv_cc_flag_unknown_warning_option=no
6116fi
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118fi
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6121	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6122	CFLAGS="$xorg_testset_save_CFLAGS"
6123fi
6124
6125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6126	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6127		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6128	fi
6129	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136/* end confdefs.h.  */
6137int i;
6138_ACEOF
6139if ac_fn_c_try_compile "$LINENO"; then :
6140  xorg_cv_cc_flag_unused_command_line_argument=yes
6141else
6142  xorg_cv_cc_flag_unused_command_line_argument=no
6143fi
6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145fi
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6148	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6149	CFLAGS="$xorg_testset_save_CFLAGS"
6150fi
6151
6152found="no"
6153
6154	if test $found = "no" ; then
6155		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6156			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6157		fi
6158
6159		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6160			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6161		fi
6162
6163		CFLAGS="$CFLAGS -Wold-style-definition"
6164
6165		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6166$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6167		cacheid=xorg_cv_cc_flag__Wold_style_definition
6168		if eval \${$cacheid+:} false; then :
6169  $as_echo_n "(cached) " >&6
6170else
6171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h.  */
6173int i;
6174int
6175main ()
6176{
6177
6178  ;
6179  return 0;
6180}
6181_ACEOF
6182if ac_fn_c_try_link "$LINENO"; then :
6183  eval $cacheid=yes
6184else
6185  eval $cacheid=no
6186fi
6187rm -f core conftest.err conftest.$ac_objext \
6188    conftest$ac_exeext conftest.$ac_ext
6189fi
6190
6191
6192		CFLAGS="$xorg_testset_save_CFLAGS"
6193
6194		eval supported=\$$cacheid
6195		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6196$as_echo "$supported" >&6; }
6197		if test "$supported" = "yes" ; then
6198			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6199			found="yes"
6200		fi
6201	fi
6202
6203	if test $found = "no" ; then
6204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6206		fi
6207
6208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6210		fi
6211
6212		CFLAGS="$CFLAGS -fd"
6213
6214		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6215$as_echo_n "checking if $CC supports -fd... " >&6; }
6216		cacheid=xorg_cv_cc_flag__fd
6217		if eval \${$cacheid+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h.  */
6222int i;
6223int
6224main ()
6225{
6226
6227  ;
6228  return 0;
6229}
6230_ACEOF
6231if ac_fn_c_try_link "$LINENO"; then :
6232  eval $cacheid=yes
6233else
6234  eval $cacheid=no
6235fi
6236rm -f core conftest.err conftest.$ac_objext \
6237    conftest$ac_exeext conftest.$ac_ext
6238fi
6239
6240
6241		CFLAGS="$xorg_testset_save_CFLAGS"
6242
6243		eval supported=\$$cacheid
6244		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6245$as_echo "$supported" >&6; }
6246		if test "$supported" = "yes" ; then
6247			BASE_CFLAGS="$BASE_CFLAGS -fd"
6248			found="yes"
6249		fi
6250	fi
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266xorg_testset_save_CFLAGS="$CFLAGS"
6267
6268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6269	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6270	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6271$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6272if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h.  */
6277int i;
6278_ACEOF
6279if ac_fn_c_try_compile "$LINENO"; then :
6280  xorg_cv_cc_flag_unknown_warning_option=yes
6281else
6282  xorg_cv_cc_flag_unknown_warning_option=no
6283fi
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285fi
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6287$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6288	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6289	CFLAGS="$xorg_testset_save_CFLAGS"
6290fi
6291
6292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6293	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6294		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295	fi
6296	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6298$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6299if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6300  $as_echo_n "(cached) " >&6
6301else
6302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303/* end confdefs.h.  */
6304int i;
6305_ACEOF
6306if ac_fn_c_try_compile "$LINENO"; then :
6307  xorg_cv_cc_flag_unused_command_line_argument=yes
6308else
6309  xorg_cv_cc_flag_unused_command_line_argument=no
6310fi
6311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312fi
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6314$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6316	CFLAGS="$xorg_testset_save_CFLAGS"
6317fi
6318
6319found="no"
6320
6321	if test $found = "no" ; then
6322		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6324		fi
6325
6326		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6328		fi
6329
6330		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6331
6332		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6333$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6334		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6335		if eval \${$cacheid+:} false; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340int i;
6341int
6342main ()
6343{
6344
6345  ;
6346  return 0;
6347}
6348_ACEOF
6349if ac_fn_c_try_link "$LINENO"; then :
6350  eval $cacheid=yes
6351else
6352  eval $cacheid=no
6353fi
6354rm -f core conftest.err conftest.$ac_objext \
6355    conftest$ac_exeext conftest.$ac_ext
6356fi
6357
6358
6359		CFLAGS="$xorg_testset_save_CFLAGS"
6360
6361		eval supported=\$$cacheid
6362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6363$as_echo "$supported" >&6; }
6364		if test "$supported" = "yes" ; then
6365			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6366			found="yes"
6367		fi
6368	fi
6369
6370
6371
6372
6373
6374# This chunk adds additional warnings that could catch undesired effects.
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388xorg_testset_save_CFLAGS="$CFLAGS"
6389
6390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6395  $as_echo_n "(cached) " >&6
6396else
6397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398/* end confdefs.h.  */
6399int i;
6400_ACEOF
6401if ac_fn_c_try_compile "$LINENO"; then :
6402  xorg_cv_cc_flag_unknown_warning_option=yes
6403else
6404  xorg_cv_cc_flag_unknown_warning_option=no
6405fi
6406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407fi
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6410	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6411	CFLAGS="$xorg_testset_save_CFLAGS"
6412fi
6413
6414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6415	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6416		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6417	fi
6418	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6422  $as_echo_n "(cached) " >&6
6423else
6424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425/* end confdefs.h.  */
6426int i;
6427_ACEOF
6428if ac_fn_c_try_compile "$LINENO"; then :
6429  xorg_cv_cc_flag_unused_command_line_argument=yes
6430else
6431  xorg_cv_cc_flag_unused_command_line_argument=no
6432fi
6433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434fi
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6437	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6438	CFLAGS="$xorg_testset_save_CFLAGS"
6439fi
6440
6441found="no"
6442
6443	if test $found = "no" ; then
6444		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6445			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6446		fi
6447
6448		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6449			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6450		fi
6451
6452		CFLAGS="$CFLAGS -Wunused"
6453
6454		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6455$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6456		cacheid=xorg_cv_cc_flag__Wunused
6457		if eval \${$cacheid+:} false; then :
6458  $as_echo_n "(cached) " >&6
6459else
6460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461/* end confdefs.h.  */
6462int i;
6463int
6464main ()
6465{
6466
6467  ;
6468  return 0;
6469}
6470_ACEOF
6471if ac_fn_c_try_link "$LINENO"; then :
6472  eval $cacheid=yes
6473else
6474  eval $cacheid=no
6475fi
6476rm -f core conftest.err conftest.$ac_objext \
6477    conftest$ac_exeext conftest.$ac_ext
6478fi
6479
6480
6481		CFLAGS="$xorg_testset_save_CFLAGS"
6482
6483		eval supported=\$$cacheid
6484		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6485$as_echo "$supported" >&6; }
6486		if test "$supported" = "yes" ; then
6487			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6488			found="yes"
6489		fi
6490	fi
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506xorg_testset_save_CFLAGS="$CFLAGS"
6507
6508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6511$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6512if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6513  $as_echo_n "(cached) " >&6
6514else
6515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516/* end confdefs.h.  */
6517int i;
6518_ACEOF
6519if ac_fn_c_try_compile "$LINENO"; then :
6520  xorg_cv_cc_flag_unknown_warning_option=yes
6521else
6522  xorg_cv_cc_flag_unknown_warning_option=no
6523fi
6524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525fi
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6527$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6528	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6529	CFLAGS="$xorg_testset_save_CFLAGS"
6530fi
6531
6532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6533	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6534		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6535	fi
6536	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6538$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6539if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6540  $as_echo_n "(cached) " >&6
6541else
6542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543/* end confdefs.h.  */
6544int i;
6545_ACEOF
6546if ac_fn_c_try_compile "$LINENO"; then :
6547  xorg_cv_cc_flag_unused_command_line_argument=yes
6548else
6549  xorg_cv_cc_flag_unused_command_line_argument=no
6550fi
6551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552fi
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6554$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6555	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6556	CFLAGS="$xorg_testset_save_CFLAGS"
6557fi
6558
6559found="no"
6560
6561	if test $found = "no" ; then
6562		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6563			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564		fi
6565
6566		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6567			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6568		fi
6569
6570		CFLAGS="$CFLAGS -Wuninitialized"
6571
6572		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6573$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6574		cacheid=xorg_cv_cc_flag__Wuninitialized
6575		if eval \${$cacheid+:} false; then :
6576  $as_echo_n "(cached) " >&6
6577else
6578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h.  */
6580int i;
6581int
6582main ()
6583{
6584
6585  ;
6586  return 0;
6587}
6588_ACEOF
6589if ac_fn_c_try_link "$LINENO"; then :
6590  eval $cacheid=yes
6591else
6592  eval $cacheid=no
6593fi
6594rm -f core conftest.err conftest.$ac_objext \
6595    conftest$ac_exeext conftest.$ac_ext
6596fi
6597
6598
6599		CFLAGS="$xorg_testset_save_CFLAGS"
6600
6601		eval supported=\$$cacheid
6602		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6603$as_echo "$supported" >&6; }
6604		if test "$supported" = "yes" ; then
6605			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6606			found="yes"
6607		fi
6608	fi
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624xorg_testset_save_CFLAGS="$CFLAGS"
6625
6626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6627	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6629$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6630if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6631  $as_echo_n "(cached) " >&6
6632else
6633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h.  */
6635int i;
6636_ACEOF
6637if ac_fn_c_try_compile "$LINENO"; then :
6638  xorg_cv_cc_flag_unknown_warning_option=yes
6639else
6640  xorg_cv_cc_flag_unknown_warning_option=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643fi
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6645$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6647	CFLAGS="$xorg_testset_save_CFLAGS"
6648fi
6649
6650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6653	fi
6654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6656$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6657if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6658  $as_echo_n "(cached) " >&6
6659else
6660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661/* end confdefs.h.  */
6662int i;
6663_ACEOF
6664if ac_fn_c_try_compile "$LINENO"; then :
6665  xorg_cv_cc_flag_unused_command_line_argument=yes
6666else
6667  xorg_cv_cc_flag_unused_command_line_argument=no
6668fi
6669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670fi
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6672$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6673	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6674	CFLAGS="$xorg_testset_save_CFLAGS"
6675fi
6676
6677found="no"
6678
6679	if test $found = "no" ; then
6680		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6681			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6682		fi
6683
6684		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6685			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6686		fi
6687
6688		CFLAGS="$CFLAGS -Wshadow"
6689
6690		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6691$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6692		cacheid=xorg_cv_cc_flag__Wshadow
6693		if eval \${$cacheid+:} false; then :
6694  $as_echo_n "(cached) " >&6
6695else
6696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697/* end confdefs.h.  */
6698int i;
6699int
6700main ()
6701{
6702
6703  ;
6704  return 0;
6705}
6706_ACEOF
6707if ac_fn_c_try_link "$LINENO"; then :
6708  eval $cacheid=yes
6709else
6710  eval $cacheid=no
6711fi
6712rm -f core conftest.err conftest.$ac_objext \
6713    conftest$ac_exeext conftest.$ac_ext
6714fi
6715
6716
6717		CFLAGS="$xorg_testset_save_CFLAGS"
6718
6719		eval supported=\$$cacheid
6720		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6721$as_echo "$supported" >&6; }
6722		if test "$supported" = "yes" ; then
6723			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6724			found="yes"
6725		fi
6726	fi
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742xorg_testset_save_CFLAGS="$CFLAGS"
6743
6744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752/* end confdefs.h.  */
6753int i;
6754_ACEOF
6755if ac_fn_c_try_compile "$LINENO"; then :
6756  xorg_cv_cc_flag_unknown_warning_option=yes
6757else
6758  xorg_cv_cc_flag_unknown_warning_option=no
6759fi
6760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761fi
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6765	CFLAGS="$xorg_testset_save_CFLAGS"
6766fi
6767
6768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6771	fi
6772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6776  $as_echo_n "(cached) " >&6
6777else
6778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779/* end confdefs.h.  */
6780int i;
6781_ACEOF
6782if ac_fn_c_try_compile "$LINENO"; then :
6783  xorg_cv_cc_flag_unused_command_line_argument=yes
6784else
6785  xorg_cv_cc_flag_unused_command_line_argument=no
6786fi
6787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788fi
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6791	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6792	CFLAGS="$xorg_testset_save_CFLAGS"
6793fi
6794
6795found="no"
6796
6797	if test $found = "no" ; then
6798		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6799			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6800		fi
6801
6802		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6803			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6804		fi
6805
6806		CFLAGS="$CFLAGS -Wmissing-noreturn"
6807
6808		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6809$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6810		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6811		if eval \${$cacheid+:} false; then :
6812  $as_echo_n "(cached) " >&6
6813else
6814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815/* end confdefs.h.  */
6816int i;
6817int
6818main ()
6819{
6820
6821  ;
6822  return 0;
6823}
6824_ACEOF
6825if ac_fn_c_try_link "$LINENO"; then :
6826  eval $cacheid=yes
6827else
6828  eval $cacheid=no
6829fi
6830rm -f core conftest.err conftest.$ac_objext \
6831    conftest$ac_exeext conftest.$ac_ext
6832fi
6833
6834
6835		CFLAGS="$xorg_testset_save_CFLAGS"
6836
6837		eval supported=\$$cacheid
6838		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6839$as_echo "$supported" >&6; }
6840		if test "$supported" = "yes" ; then
6841			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6842			found="yes"
6843		fi
6844	fi
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860xorg_testset_save_CFLAGS="$CFLAGS"
6861
6862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6863	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6867  $as_echo_n "(cached) " >&6
6868else
6869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870/* end confdefs.h.  */
6871int i;
6872_ACEOF
6873if ac_fn_c_try_compile "$LINENO"; then :
6874  xorg_cv_cc_flag_unknown_warning_option=yes
6875else
6876  xorg_cv_cc_flag_unknown_warning_option=no
6877fi
6878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879fi
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6883	CFLAGS="$xorg_testset_save_CFLAGS"
6884fi
6885
6886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6889	fi
6890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6894  $as_echo_n "(cached) " >&6
6895else
6896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897/* end confdefs.h.  */
6898int i;
6899_ACEOF
6900if ac_fn_c_try_compile "$LINENO"; then :
6901  xorg_cv_cc_flag_unused_command_line_argument=yes
6902else
6903  xorg_cv_cc_flag_unused_command_line_argument=no
6904fi
6905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906fi
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6909	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6910	CFLAGS="$xorg_testset_save_CFLAGS"
6911fi
6912
6913found="no"
6914
6915	if test $found = "no" ; then
6916		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6917			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6918		fi
6919
6920		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6921			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6922		fi
6923
6924		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6925
6926		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6927$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6928		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6929		if eval \${$cacheid+:} false; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933/* end confdefs.h.  */
6934int i;
6935int
6936main ()
6937{
6938
6939  ;
6940  return 0;
6941}
6942_ACEOF
6943if ac_fn_c_try_link "$LINENO"; then :
6944  eval $cacheid=yes
6945else
6946  eval $cacheid=no
6947fi
6948rm -f core conftest.err conftest.$ac_objext \
6949    conftest$ac_exeext conftest.$ac_ext
6950fi
6951
6952
6953		CFLAGS="$xorg_testset_save_CFLAGS"
6954
6955		eval supported=\$$cacheid
6956		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6957$as_echo "$supported" >&6; }
6958		if test "$supported" = "yes" ; then
6959			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6960			found="yes"
6961		fi
6962	fi
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978xorg_testset_save_CFLAGS="$CFLAGS"
6979
6980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988/* end confdefs.h.  */
6989int i;
6990_ACEOF
6991if ac_fn_c_try_compile "$LINENO"; then :
6992  xorg_cv_cc_flag_unknown_warning_option=yes
6993else
6994  xorg_cv_cc_flag_unknown_warning_option=no
6995fi
6996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997fi
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7000	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7001	CFLAGS="$xorg_testset_save_CFLAGS"
7002fi
7003
7004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7005	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7006		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7007	fi
7008	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7012  $as_echo_n "(cached) " >&6
7013else
7014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016int i;
7017_ACEOF
7018if ac_fn_c_try_compile "$LINENO"; then :
7019  xorg_cv_cc_flag_unused_command_line_argument=yes
7020else
7021  xorg_cv_cc_flag_unused_command_line_argument=no
7022fi
7023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024fi
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7028	CFLAGS="$xorg_testset_save_CFLAGS"
7029fi
7030
7031found="no"
7032
7033	if test $found = "no" ; then
7034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7036		fi
7037
7038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7040		fi
7041
7042		CFLAGS="$CFLAGS -Wredundant-decls"
7043
7044		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7045$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
7046		cacheid=xorg_cv_cc_flag__Wredundant_decls
7047		if eval \${$cacheid+:} false; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052int i;
7053int
7054main ()
7055{
7056
7057  ;
7058  return 0;
7059}
7060_ACEOF
7061if ac_fn_c_try_link "$LINENO"; then :
7062  eval $cacheid=yes
7063else
7064  eval $cacheid=no
7065fi
7066rm -f core conftest.err conftest.$ac_objext \
7067    conftest$ac_exeext conftest.$ac_ext
7068fi
7069
7070
7071		CFLAGS="$xorg_testset_save_CFLAGS"
7072
7073		eval supported=\$$cacheid
7074		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7075$as_echo "$supported" >&6; }
7076		if test "$supported" = "yes" ; then
7077			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7078			found="yes"
7079		fi
7080	fi
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096xorg_testset_save_CFLAGS="$CFLAGS"
7097
7098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7099	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h.  */
7107int i;
7108_ACEOF
7109if ac_fn_c_try_compile "$LINENO"; then :
7110  xorg_cv_cc_flag_unknown_warning_option=yes
7111else
7112  xorg_cv_cc_flag_unknown_warning_option=no
7113fi
7114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115fi
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7119	CFLAGS="$xorg_testset_save_CFLAGS"
7120fi
7121
7122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7125	fi
7126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7130  $as_echo_n "(cached) " >&6
7131else
7132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134int i;
7135_ACEOF
7136if ac_fn_c_try_compile "$LINENO"; then :
7137  xorg_cv_cc_flag_unused_command_line_argument=yes
7138else
7139  xorg_cv_cc_flag_unused_command_line_argument=no
7140fi
7141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142fi
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7145	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7146	CFLAGS="$xorg_testset_save_CFLAGS"
7147fi
7148
7149found="no"
7150
7151	if test $found = "no" ; then
7152		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7153			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7154		fi
7155
7156		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7157			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7158		fi
7159
7160		CFLAGS="$CFLAGS -Wlogical-op"
7161
7162		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7163$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7164		cacheid=xorg_cv_cc_flag__Wlogical_op
7165		if eval \${$cacheid+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169/* end confdefs.h.  */
7170int i;
7171int
7172main ()
7173{
7174
7175  ;
7176  return 0;
7177}
7178_ACEOF
7179if ac_fn_c_try_link "$LINENO"; then :
7180  eval $cacheid=yes
7181else
7182  eval $cacheid=no
7183fi
7184rm -f core conftest.err conftest.$ac_objext \
7185    conftest$ac_exeext conftest.$ac_ext
7186fi
7187
7188
7189		CFLAGS="$xorg_testset_save_CFLAGS"
7190
7191		eval supported=\$$cacheid
7192		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7193$as_echo "$supported" >&6; }
7194		if test "$supported" = "yes" ; then
7195			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7196			found="yes"
7197		fi
7198	fi
7199
7200
7201
7202# These are currently disabled because they are noisy.  They will be enabled
7203# in the future once the codebase is sufficiently modernized to silence
7204# them.  For now, I don't want them to drown out the other warnings.
7205# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7206# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7207# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7208
7209# Turn some warnings into errors, so we don't accidently get successful builds
7210# when there are problems that should be fixed.
7211
7212if test "x$SELECTIVE_WERROR" = "xyes" ; then
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226xorg_testset_save_CFLAGS="$CFLAGS"
7227
7228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7229	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7231$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7232if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7233  $as_echo_n "(cached) " >&6
7234else
7235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236/* end confdefs.h.  */
7237int i;
7238_ACEOF
7239if ac_fn_c_try_compile "$LINENO"; then :
7240  xorg_cv_cc_flag_unknown_warning_option=yes
7241else
7242  xorg_cv_cc_flag_unknown_warning_option=no
7243fi
7244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245fi
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7247$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7248	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7249	CFLAGS="$xorg_testset_save_CFLAGS"
7250fi
7251
7252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7253	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7254		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7255	fi
7256	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7257	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7258$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7259if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7260  $as_echo_n "(cached) " >&6
7261else
7262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263/* end confdefs.h.  */
7264int i;
7265_ACEOF
7266if ac_fn_c_try_compile "$LINENO"; then :
7267  xorg_cv_cc_flag_unused_command_line_argument=yes
7268else
7269  xorg_cv_cc_flag_unused_command_line_argument=no
7270fi
7271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272fi
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7274$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7276	CFLAGS="$xorg_testset_save_CFLAGS"
7277fi
7278
7279found="no"
7280
7281	if test $found = "no" ; then
7282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284		fi
7285
7286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7288		fi
7289
7290		CFLAGS="$CFLAGS -Werror=implicit"
7291
7292		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7293$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7294		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
7295		if eval \${$cacheid+:} false; then :
7296  $as_echo_n "(cached) " >&6
7297else
7298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299/* end confdefs.h.  */
7300int i;
7301int
7302main ()
7303{
7304
7305  ;
7306  return 0;
7307}
7308_ACEOF
7309if ac_fn_c_try_link "$LINENO"; then :
7310  eval $cacheid=yes
7311else
7312  eval $cacheid=no
7313fi
7314rm -f core conftest.err conftest.$ac_objext \
7315    conftest$ac_exeext conftest.$ac_ext
7316fi
7317
7318
7319		CFLAGS="$xorg_testset_save_CFLAGS"
7320
7321		eval supported=\$$cacheid
7322		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7323$as_echo "$supported" >&6; }
7324		if test "$supported" = "yes" ; then
7325			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7326			found="yes"
7327		fi
7328	fi
7329
7330	if test $found = "no" ; then
7331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7333		fi
7334
7335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7337		fi
7338
7339		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7340
7341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7342$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7343		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7344		if eval \${$cacheid+:} false; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h.  */
7349int i;
7350int
7351main ()
7352{
7353
7354  ;
7355  return 0;
7356}
7357_ACEOF
7358if ac_fn_c_try_link "$LINENO"; then :
7359  eval $cacheid=yes
7360else
7361  eval $cacheid=no
7362fi
7363rm -f core conftest.err conftest.$ac_objext \
7364    conftest$ac_exeext conftest.$ac_ext
7365fi
7366
7367
7368		CFLAGS="$xorg_testset_save_CFLAGS"
7369
7370		eval supported=\$$cacheid
7371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7372$as_echo "$supported" >&6; }
7373		if test "$supported" = "yes" ; then
7374			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7375			found="yes"
7376		fi
7377	fi
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393xorg_testset_save_CFLAGS="$CFLAGS"
7394
7395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7400  $as_echo_n "(cached) " >&6
7401else
7402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403/* end confdefs.h.  */
7404int i;
7405_ACEOF
7406if ac_fn_c_try_compile "$LINENO"; then :
7407  xorg_cv_cc_flag_unknown_warning_option=yes
7408else
7409  xorg_cv_cc_flag_unknown_warning_option=no
7410fi
7411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412fi
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7416	CFLAGS="$xorg_testset_save_CFLAGS"
7417fi
7418
7419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7422	fi
7423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7427  $as_echo_n "(cached) " >&6
7428else
7429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430/* end confdefs.h.  */
7431int i;
7432_ACEOF
7433if ac_fn_c_try_compile "$LINENO"; then :
7434  xorg_cv_cc_flag_unused_command_line_argument=yes
7435else
7436  xorg_cv_cc_flag_unused_command_line_argument=no
7437fi
7438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439fi
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7443	CFLAGS="$xorg_testset_save_CFLAGS"
7444fi
7445
7446found="no"
7447
7448	if test $found = "no" ; then
7449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7451		fi
7452
7453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7455		fi
7456
7457		CFLAGS="$CFLAGS -Werror=nonnull"
7458
7459		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7460$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7461		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7462		if eval \${$cacheid+:} false; then :
7463  $as_echo_n "(cached) " >&6
7464else
7465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466/* end confdefs.h.  */
7467int i;
7468int
7469main ()
7470{
7471
7472  ;
7473  return 0;
7474}
7475_ACEOF
7476if ac_fn_c_try_link "$LINENO"; then :
7477  eval $cacheid=yes
7478else
7479  eval $cacheid=no
7480fi
7481rm -f core conftest.err conftest.$ac_objext \
7482    conftest$ac_exeext conftest.$ac_ext
7483fi
7484
7485
7486		CFLAGS="$xorg_testset_save_CFLAGS"
7487
7488		eval supported=\$$cacheid
7489		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7490$as_echo "$supported" >&6; }
7491		if test "$supported" = "yes" ; then
7492			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7493			found="yes"
7494		fi
7495	fi
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511xorg_testset_save_CFLAGS="$CFLAGS"
7512
7513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7518  $as_echo_n "(cached) " >&6
7519else
7520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521/* end confdefs.h.  */
7522int i;
7523_ACEOF
7524if ac_fn_c_try_compile "$LINENO"; then :
7525  xorg_cv_cc_flag_unknown_warning_option=yes
7526else
7527  xorg_cv_cc_flag_unknown_warning_option=no
7528fi
7529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530fi
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7534	CFLAGS="$xorg_testset_save_CFLAGS"
7535fi
7536
7537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7540	fi
7541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7545  $as_echo_n "(cached) " >&6
7546else
7547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548/* end confdefs.h.  */
7549int i;
7550_ACEOF
7551if ac_fn_c_try_compile "$LINENO"; then :
7552  xorg_cv_cc_flag_unused_command_line_argument=yes
7553else
7554  xorg_cv_cc_flag_unused_command_line_argument=no
7555fi
7556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557fi
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7561	CFLAGS="$xorg_testset_save_CFLAGS"
7562fi
7563
7564found="no"
7565
7566	if test $found = "no" ; then
7567		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7569		fi
7570
7571		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7573		fi
7574
7575		CFLAGS="$CFLAGS -Werror=init-self"
7576
7577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7578$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7579		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7580		if eval \${$cacheid+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584/* end confdefs.h.  */
7585int i;
7586int
7587main ()
7588{
7589
7590  ;
7591  return 0;
7592}
7593_ACEOF
7594if ac_fn_c_try_link "$LINENO"; then :
7595  eval $cacheid=yes
7596else
7597  eval $cacheid=no
7598fi
7599rm -f core conftest.err conftest.$ac_objext \
7600    conftest$ac_exeext conftest.$ac_ext
7601fi
7602
7603
7604		CFLAGS="$xorg_testset_save_CFLAGS"
7605
7606		eval supported=\$$cacheid
7607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7608$as_echo "$supported" >&6; }
7609		if test "$supported" = "yes" ; then
7610			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7611			found="yes"
7612		fi
7613	fi
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629xorg_testset_save_CFLAGS="$CFLAGS"
7630
7631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h.  */
7640int i;
7641_ACEOF
7642if ac_fn_c_try_compile "$LINENO"; then :
7643  xorg_cv_cc_flag_unknown_warning_option=yes
7644else
7645  xorg_cv_cc_flag_unknown_warning_option=no
7646fi
7647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648fi
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7652	CFLAGS="$xorg_testset_save_CFLAGS"
7653fi
7654
7655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7658	fi
7659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7663  $as_echo_n "(cached) " >&6
7664else
7665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666/* end confdefs.h.  */
7667int i;
7668_ACEOF
7669if ac_fn_c_try_compile "$LINENO"; then :
7670  xorg_cv_cc_flag_unused_command_line_argument=yes
7671else
7672  xorg_cv_cc_flag_unused_command_line_argument=no
7673fi
7674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675fi
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7679	CFLAGS="$xorg_testset_save_CFLAGS"
7680fi
7681
7682found="no"
7683
7684	if test $found = "no" ; then
7685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687		fi
7688
7689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7691		fi
7692
7693		CFLAGS="$CFLAGS -Werror=main"
7694
7695		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7696$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7697		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7698		if eval \${$cacheid+:} false; then :
7699  $as_echo_n "(cached) " >&6
7700else
7701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702/* end confdefs.h.  */
7703int i;
7704int
7705main ()
7706{
7707
7708  ;
7709  return 0;
7710}
7711_ACEOF
7712if ac_fn_c_try_link "$LINENO"; then :
7713  eval $cacheid=yes
7714else
7715  eval $cacheid=no
7716fi
7717rm -f core conftest.err conftest.$ac_objext \
7718    conftest$ac_exeext conftest.$ac_ext
7719fi
7720
7721
7722		CFLAGS="$xorg_testset_save_CFLAGS"
7723
7724		eval supported=\$$cacheid
7725		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7726$as_echo "$supported" >&6; }
7727		if test "$supported" = "yes" ; then
7728			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7729			found="yes"
7730		fi
7731	fi
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747xorg_testset_save_CFLAGS="$CFLAGS"
7748
7749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7754  $as_echo_n "(cached) " >&6
7755else
7756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757/* end confdefs.h.  */
7758int i;
7759_ACEOF
7760if ac_fn_c_try_compile "$LINENO"; then :
7761  xorg_cv_cc_flag_unknown_warning_option=yes
7762else
7763  xorg_cv_cc_flag_unknown_warning_option=no
7764fi
7765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766fi
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7770	CFLAGS="$xorg_testset_save_CFLAGS"
7771fi
7772
7773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7776	fi
7777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7781  $as_echo_n "(cached) " >&6
7782else
7783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784/* end confdefs.h.  */
7785int i;
7786_ACEOF
7787if ac_fn_c_try_compile "$LINENO"; then :
7788  xorg_cv_cc_flag_unused_command_line_argument=yes
7789else
7790  xorg_cv_cc_flag_unused_command_line_argument=no
7791fi
7792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793fi
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7797	CFLAGS="$xorg_testset_save_CFLAGS"
7798fi
7799
7800found="no"
7801
7802	if test $found = "no" ; then
7803		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7805		fi
7806
7807		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7809		fi
7810
7811		CFLAGS="$CFLAGS -Werror=missing-braces"
7812
7813		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7814$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7815		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7816		if eval \${$cacheid+:} false; then :
7817  $as_echo_n "(cached) " >&6
7818else
7819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820/* end confdefs.h.  */
7821int i;
7822int
7823main ()
7824{
7825
7826  ;
7827  return 0;
7828}
7829_ACEOF
7830if ac_fn_c_try_link "$LINENO"; then :
7831  eval $cacheid=yes
7832else
7833  eval $cacheid=no
7834fi
7835rm -f core conftest.err conftest.$ac_objext \
7836    conftest$ac_exeext conftest.$ac_ext
7837fi
7838
7839
7840		CFLAGS="$xorg_testset_save_CFLAGS"
7841
7842		eval supported=\$$cacheid
7843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7844$as_echo "$supported" >&6; }
7845		if test "$supported" = "yes" ; then
7846			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7847			found="yes"
7848		fi
7849	fi
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865xorg_testset_save_CFLAGS="$CFLAGS"
7866
7867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7872  $as_echo_n "(cached) " >&6
7873else
7874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875/* end confdefs.h.  */
7876int i;
7877_ACEOF
7878if ac_fn_c_try_compile "$LINENO"; then :
7879  xorg_cv_cc_flag_unknown_warning_option=yes
7880else
7881  xorg_cv_cc_flag_unknown_warning_option=no
7882fi
7883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884fi
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7888	CFLAGS="$xorg_testset_save_CFLAGS"
7889fi
7890
7891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7894	fi
7895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7899  $as_echo_n "(cached) " >&6
7900else
7901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902/* end confdefs.h.  */
7903int i;
7904_ACEOF
7905if ac_fn_c_try_compile "$LINENO"; then :
7906  xorg_cv_cc_flag_unused_command_line_argument=yes
7907else
7908  xorg_cv_cc_flag_unused_command_line_argument=no
7909fi
7910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911fi
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7915	CFLAGS="$xorg_testset_save_CFLAGS"
7916fi
7917
7918found="no"
7919
7920	if test $found = "no" ; then
7921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7923		fi
7924
7925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7927		fi
7928
7929		CFLAGS="$CFLAGS -Werror=sequence-point"
7930
7931		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7932$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7933		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7934		if eval \${$cacheid+:} false; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h.  */
7939int i;
7940int
7941main ()
7942{
7943
7944  ;
7945  return 0;
7946}
7947_ACEOF
7948if ac_fn_c_try_link "$LINENO"; then :
7949  eval $cacheid=yes
7950else
7951  eval $cacheid=no
7952fi
7953rm -f core conftest.err conftest.$ac_objext \
7954    conftest$ac_exeext conftest.$ac_ext
7955fi
7956
7957
7958		CFLAGS="$xorg_testset_save_CFLAGS"
7959
7960		eval supported=\$$cacheid
7961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7962$as_echo "$supported" >&6; }
7963		if test "$supported" = "yes" ; then
7964			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7965			found="yes"
7966		fi
7967	fi
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983xorg_testset_save_CFLAGS="$CFLAGS"
7984
7985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7986	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993/* end confdefs.h.  */
7994int i;
7995_ACEOF
7996if ac_fn_c_try_compile "$LINENO"; then :
7997  xorg_cv_cc_flag_unknown_warning_option=yes
7998else
7999  xorg_cv_cc_flag_unknown_warning_option=no
8000fi
8001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8002fi
8003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8005	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8006	CFLAGS="$xorg_testset_save_CFLAGS"
8007fi
8008
8009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8010	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8011		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8012	fi
8013	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8014	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8017  $as_echo_n "(cached) " >&6
8018else
8019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020/* end confdefs.h.  */
8021int i;
8022_ACEOF
8023if ac_fn_c_try_compile "$LINENO"; then :
8024  xorg_cv_cc_flag_unused_command_line_argument=yes
8025else
8026  xorg_cv_cc_flag_unused_command_line_argument=no
8027fi
8028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029fi
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8032	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8033	CFLAGS="$xorg_testset_save_CFLAGS"
8034fi
8035
8036found="no"
8037
8038	if test $found = "no" ; then
8039		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8040			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8041		fi
8042
8043		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8044			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8045		fi
8046
8047		CFLAGS="$CFLAGS -Werror=return-type"
8048
8049		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8050$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
8051		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
8052		if eval \${$cacheid+:} false; then :
8053  $as_echo_n "(cached) " >&6
8054else
8055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h.  */
8057int i;
8058int
8059main ()
8060{
8061
8062  ;
8063  return 0;
8064}
8065_ACEOF
8066if ac_fn_c_try_link "$LINENO"; then :
8067  eval $cacheid=yes
8068else
8069  eval $cacheid=no
8070fi
8071rm -f core conftest.err conftest.$ac_objext \
8072    conftest$ac_exeext conftest.$ac_ext
8073fi
8074
8075
8076		CFLAGS="$xorg_testset_save_CFLAGS"
8077
8078		eval supported=\$$cacheid
8079		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8080$as_echo "$supported" >&6; }
8081		if test "$supported" = "yes" ; then
8082			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8083			found="yes"
8084		fi
8085	fi
8086
8087	if test $found = "no" ; then
8088		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8089			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8090		fi
8091
8092		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8093			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8094		fi
8095
8096		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8097
8098		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8099$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8100		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
8101		if eval \${$cacheid+:} false; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105/* end confdefs.h.  */
8106int i;
8107int
8108main ()
8109{
8110
8111  ;
8112  return 0;
8113}
8114_ACEOF
8115if ac_fn_c_try_link "$LINENO"; then :
8116  eval $cacheid=yes
8117else
8118  eval $cacheid=no
8119fi
8120rm -f core conftest.err conftest.$ac_objext \
8121    conftest$ac_exeext conftest.$ac_ext
8122fi
8123
8124
8125		CFLAGS="$xorg_testset_save_CFLAGS"
8126
8127		eval supported=\$$cacheid
8128		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8129$as_echo "$supported" >&6; }
8130		if test "$supported" = "yes" ; then
8131			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8132			found="yes"
8133		fi
8134	fi
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150xorg_testset_save_CFLAGS="$CFLAGS"
8151
8152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8157  $as_echo_n "(cached) " >&6
8158else
8159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160/* end confdefs.h.  */
8161int i;
8162_ACEOF
8163if ac_fn_c_try_compile "$LINENO"; then :
8164  xorg_cv_cc_flag_unknown_warning_option=yes
8165else
8166  xorg_cv_cc_flag_unknown_warning_option=no
8167fi
8168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169fi
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8172	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8173	CFLAGS="$xorg_testset_save_CFLAGS"
8174fi
8175
8176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8177	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8178		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8179	fi
8180	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8184  $as_echo_n "(cached) " >&6
8185else
8186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187/* end confdefs.h.  */
8188int i;
8189_ACEOF
8190if ac_fn_c_try_compile "$LINENO"; then :
8191  xorg_cv_cc_flag_unused_command_line_argument=yes
8192else
8193  xorg_cv_cc_flag_unused_command_line_argument=no
8194fi
8195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196fi
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8199	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8200	CFLAGS="$xorg_testset_save_CFLAGS"
8201fi
8202
8203found="no"
8204
8205	if test $found = "no" ; then
8206		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8207			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8208		fi
8209
8210		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8211			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8212		fi
8213
8214		CFLAGS="$CFLAGS -Werror=trigraphs"
8215
8216		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8217$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8218		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
8219		if eval \${$cacheid+:} false; then :
8220  $as_echo_n "(cached) " >&6
8221else
8222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223/* end confdefs.h.  */
8224int i;
8225int
8226main ()
8227{
8228
8229  ;
8230  return 0;
8231}
8232_ACEOF
8233if ac_fn_c_try_link "$LINENO"; then :
8234  eval $cacheid=yes
8235else
8236  eval $cacheid=no
8237fi
8238rm -f core conftest.err conftest.$ac_objext \
8239    conftest$ac_exeext conftest.$ac_ext
8240fi
8241
8242
8243		CFLAGS="$xorg_testset_save_CFLAGS"
8244
8245		eval supported=\$$cacheid
8246		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8247$as_echo "$supported" >&6; }
8248		if test "$supported" = "yes" ; then
8249			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8250			found="yes"
8251		fi
8252	fi
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268xorg_testset_save_CFLAGS="$CFLAGS"
8269
8270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8271	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8275  $as_echo_n "(cached) " >&6
8276else
8277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278/* end confdefs.h.  */
8279int i;
8280_ACEOF
8281if ac_fn_c_try_compile "$LINENO"; then :
8282  xorg_cv_cc_flag_unknown_warning_option=yes
8283else
8284  xorg_cv_cc_flag_unknown_warning_option=no
8285fi
8286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287fi
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8290	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8291	CFLAGS="$xorg_testset_save_CFLAGS"
8292fi
8293
8294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8295	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8296		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8297	fi
8298	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8302  $as_echo_n "(cached) " >&6
8303else
8304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305/* end confdefs.h.  */
8306int i;
8307_ACEOF
8308if ac_fn_c_try_compile "$LINENO"; then :
8309  xorg_cv_cc_flag_unused_command_line_argument=yes
8310else
8311  xorg_cv_cc_flag_unused_command_line_argument=no
8312fi
8313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314fi
8315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8316$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8317	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8318	CFLAGS="$xorg_testset_save_CFLAGS"
8319fi
8320
8321found="no"
8322
8323	if test $found = "no" ; then
8324		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8325			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326		fi
8327
8328		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8329			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8330		fi
8331
8332		CFLAGS="$CFLAGS -Werror=array-bounds"
8333
8334		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8335$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8336		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8337		if eval \${$cacheid+:} false; then :
8338  $as_echo_n "(cached) " >&6
8339else
8340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341/* end confdefs.h.  */
8342int i;
8343int
8344main ()
8345{
8346
8347  ;
8348  return 0;
8349}
8350_ACEOF
8351if ac_fn_c_try_link "$LINENO"; then :
8352  eval $cacheid=yes
8353else
8354  eval $cacheid=no
8355fi
8356rm -f core conftest.err conftest.$ac_objext \
8357    conftest$ac_exeext conftest.$ac_ext
8358fi
8359
8360
8361		CFLAGS="$xorg_testset_save_CFLAGS"
8362
8363		eval supported=\$$cacheid
8364		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8365$as_echo "$supported" >&6; }
8366		if test "$supported" = "yes" ; then
8367			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8368			found="yes"
8369		fi
8370	fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386xorg_testset_save_CFLAGS="$CFLAGS"
8387
8388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8389	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8393  $as_echo_n "(cached) " >&6
8394else
8395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396/* end confdefs.h.  */
8397int i;
8398_ACEOF
8399if ac_fn_c_try_compile "$LINENO"; then :
8400  xorg_cv_cc_flag_unknown_warning_option=yes
8401else
8402  xorg_cv_cc_flag_unknown_warning_option=no
8403fi
8404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405fi
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8408	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8409	CFLAGS="$xorg_testset_save_CFLAGS"
8410fi
8411
8412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8413	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8414		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8415	fi
8416	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8420  $as_echo_n "(cached) " >&6
8421else
8422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423/* end confdefs.h.  */
8424int i;
8425_ACEOF
8426if ac_fn_c_try_compile "$LINENO"; then :
8427  xorg_cv_cc_flag_unused_command_line_argument=yes
8428else
8429  xorg_cv_cc_flag_unused_command_line_argument=no
8430fi
8431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432fi
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8435	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8436	CFLAGS="$xorg_testset_save_CFLAGS"
8437fi
8438
8439found="no"
8440
8441	if test $found = "no" ; then
8442		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8443			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444		fi
8445
8446		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8447			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8448		fi
8449
8450		CFLAGS="$CFLAGS -Werror=write-strings"
8451
8452		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8453$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8454		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8455		if eval \${$cacheid+:} false; then :
8456  $as_echo_n "(cached) " >&6
8457else
8458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459/* end confdefs.h.  */
8460int i;
8461int
8462main ()
8463{
8464
8465  ;
8466  return 0;
8467}
8468_ACEOF
8469if ac_fn_c_try_link "$LINENO"; then :
8470  eval $cacheid=yes
8471else
8472  eval $cacheid=no
8473fi
8474rm -f core conftest.err conftest.$ac_objext \
8475    conftest$ac_exeext conftest.$ac_ext
8476fi
8477
8478
8479		CFLAGS="$xorg_testset_save_CFLAGS"
8480
8481		eval supported=\$$cacheid
8482		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8483$as_echo "$supported" >&6; }
8484		if test "$supported" = "yes" ; then
8485			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8486			found="yes"
8487		fi
8488	fi
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504xorg_testset_save_CFLAGS="$CFLAGS"
8505
8506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8507	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8511  $as_echo_n "(cached) " >&6
8512else
8513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514/* end confdefs.h.  */
8515int i;
8516_ACEOF
8517if ac_fn_c_try_compile "$LINENO"; then :
8518  xorg_cv_cc_flag_unknown_warning_option=yes
8519else
8520  xorg_cv_cc_flag_unknown_warning_option=no
8521fi
8522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523fi
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8526	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8527	CFLAGS="$xorg_testset_save_CFLAGS"
8528fi
8529
8530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8531	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8532		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533	fi
8534	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8538  $as_echo_n "(cached) " >&6
8539else
8540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541/* end confdefs.h.  */
8542int i;
8543_ACEOF
8544if ac_fn_c_try_compile "$LINENO"; then :
8545  xorg_cv_cc_flag_unused_command_line_argument=yes
8546else
8547  xorg_cv_cc_flag_unused_command_line_argument=no
8548fi
8549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550fi
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8553	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8554	CFLAGS="$xorg_testset_save_CFLAGS"
8555fi
8556
8557found="no"
8558
8559	if test $found = "no" ; then
8560		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8561			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562		fi
8563
8564		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8565			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8566		fi
8567
8568		CFLAGS="$CFLAGS -Werror=address"
8569
8570		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8571$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8572		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8573		if eval \${$cacheid+:} false; then :
8574  $as_echo_n "(cached) " >&6
8575else
8576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577/* end confdefs.h.  */
8578int i;
8579int
8580main ()
8581{
8582
8583  ;
8584  return 0;
8585}
8586_ACEOF
8587if ac_fn_c_try_link "$LINENO"; then :
8588  eval $cacheid=yes
8589else
8590  eval $cacheid=no
8591fi
8592rm -f core conftest.err conftest.$ac_objext \
8593    conftest$ac_exeext conftest.$ac_ext
8594fi
8595
8596
8597		CFLAGS="$xorg_testset_save_CFLAGS"
8598
8599		eval supported=\$$cacheid
8600		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8601$as_echo "$supported" >&6; }
8602		if test "$supported" = "yes" ; then
8603			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8604			found="yes"
8605		fi
8606	fi
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622xorg_testset_save_CFLAGS="$CFLAGS"
8623
8624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8625	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8629  $as_echo_n "(cached) " >&6
8630else
8631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632/* end confdefs.h.  */
8633int i;
8634_ACEOF
8635if ac_fn_c_try_compile "$LINENO"; then :
8636  xorg_cv_cc_flag_unknown_warning_option=yes
8637else
8638  xorg_cv_cc_flag_unknown_warning_option=no
8639fi
8640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641fi
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8644	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8645	CFLAGS="$xorg_testset_save_CFLAGS"
8646fi
8647
8648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8649	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8650		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8651	fi
8652	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8656  $as_echo_n "(cached) " >&6
8657else
8658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659/* end confdefs.h.  */
8660int i;
8661_ACEOF
8662if ac_fn_c_try_compile "$LINENO"; then :
8663  xorg_cv_cc_flag_unused_command_line_argument=yes
8664else
8665  xorg_cv_cc_flag_unused_command_line_argument=no
8666fi
8667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668fi
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8671	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8672	CFLAGS="$xorg_testset_save_CFLAGS"
8673fi
8674
8675found="no"
8676
8677	if test $found = "no" ; then
8678		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8679			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680		fi
8681
8682		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8683			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8684		fi
8685
8686		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8687
8688		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8689$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8690		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8691		if eval \${$cacheid+:} false; then :
8692  $as_echo_n "(cached) " >&6
8693else
8694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695/* end confdefs.h.  */
8696int i;
8697int
8698main ()
8699{
8700
8701  ;
8702  return 0;
8703}
8704_ACEOF
8705if ac_fn_c_try_link "$LINENO"; then :
8706  eval $cacheid=yes
8707else
8708  eval $cacheid=no
8709fi
8710rm -f core conftest.err conftest.$ac_objext \
8711    conftest$ac_exeext conftest.$ac_ext
8712fi
8713
8714
8715		CFLAGS="$xorg_testset_save_CFLAGS"
8716
8717		eval supported=\$$cacheid
8718		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8719$as_echo "$supported" >&6; }
8720		if test "$supported" = "yes" ; then
8721			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8722			found="yes"
8723		fi
8724	fi
8725
8726	if test $found = "no" ; then
8727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8729		fi
8730
8731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8733		fi
8734
8735		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8736
8737		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8738$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8739		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8740		if eval \${$cacheid+:} false; then :
8741  $as_echo_n "(cached) " >&6
8742else
8743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744/* end confdefs.h.  */
8745int i;
8746int
8747main ()
8748{
8749
8750  ;
8751  return 0;
8752}
8753_ACEOF
8754if ac_fn_c_try_link "$LINENO"; then :
8755  eval $cacheid=yes
8756else
8757  eval $cacheid=no
8758fi
8759rm -f core conftest.err conftest.$ac_objext \
8760    conftest$ac_exeext conftest.$ac_ext
8761fi
8762
8763
8764		CFLAGS="$xorg_testset_save_CFLAGS"
8765
8766		eval supported=\$$cacheid
8767		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8768$as_echo "$supported" >&6; }
8769		if test "$supported" = "yes" ; then
8770			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8771			found="yes"
8772		fi
8773	fi
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789xorg_testset_save_CFLAGS="$CFLAGS"
8790
8791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8796  $as_echo_n "(cached) " >&6
8797else
8798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799/* end confdefs.h.  */
8800int i;
8801_ACEOF
8802if ac_fn_c_try_compile "$LINENO"; then :
8803  xorg_cv_cc_flag_unknown_warning_option=yes
8804else
8805  xorg_cv_cc_flag_unknown_warning_option=no
8806fi
8807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808fi
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8812	CFLAGS="$xorg_testset_save_CFLAGS"
8813fi
8814
8815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818	fi
8819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8823  $as_echo_n "(cached) " >&6
8824else
8825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826/* end confdefs.h.  */
8827int i;
8828_ACEOF
8829if ac_fn_c_try_compile "$LINENO"; then :
8830  xorg_cv_cc_flag_unused_command_line_argument=yes
8831else
8832  xorg_cv_cc_flag_unused_command_line_argument=no
8833fi
8834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835fi
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8838	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8839	CFLAGS="$xorg_testset_save_CFLAGS"
8840fi
8841
8842found="no"
8843
8844	if test $found = "no" ; then
8845		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8847		fi
8848
8849		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8851		fi
8852
8853		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8854
8855		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8856$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8857		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8858		if eval \${$cacheid+:} false; then :
8859  $as_echo_n "(cached) " >&6
8860else
8861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862/* end confdefs.h.  */
8863int i;
8864int
8865main ()
8866{
8867
8868  ;
8869  return 0;
8870}
8871_ACEOF
8872if ac_fn_c_try_link "$LINENO"; then :
8873  eval $cacheid=yes
8874else
8875  eval $cacheid=no
8876fi
8877rm -f core conftest.err conftest.$ac_objext \
8878    conftest$ac_exeext conftest.$ac_ext
8879fi
8880
8881
8882		CFLAGS="$xorg_testset_save_CFLAGS"
8883
8884		eval supported=\$$cacheid
8885		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8886$as_echo "$supported" >&6; }
8887		if test "$supported" = "yes" ; then
8888			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8889			found="yes"
8890		fi
8891	fi
8892
8893 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8894else
8895{ $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
8896$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;}
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910xorg_testset_save_CFLAGS="$CFLAGS"
8911
8912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8917  $as_echo_n "(cached) " >&6
8918else
8919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920/* end confdefs.h.  */
8921int i;
8922_ACEOF
8923if ac_fn_c_try_compile "$LINENO"; then :
8924  xorg_cv_cc_flag_unknown_warning_option=yes
8925else
8926  xorg_cv_cc_flag_unknown_warning_option=no
8927fi
8928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8929fi
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8932	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8933	CFLAGS="$xorg_testset_save_CFLAGS"
8934fi
8935
8936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8937	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8938		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8939	fi
8940	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8944  $as_echo_n "(cached) " >&6
8945else
8946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947/* end confdefs.h.  */
8948int i;
8949_ACEOF
8950if ac_fn_c_try_compile "$LINENO"; then :
8951  xorg_cv_cc_flag_unused_command_line_argument=yes
8952else
8953  xorg_cv_cc_flag_unused_command_line_argument=no
8954fi
8955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956fi
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8960	CFLAGS="$xorg_testset_save_CFLAGS"
8961fi
8962
8963found="no"
8964
8965	if test $found = "no" ; then
8966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8968		fi
8969
8970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8972		fi
8973
8974		CFLAGS="$CFLAGS -Wimplicit"
8975
8976		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8977$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8978		cacheid=xorg_cv_cc_flag__Wimplicit
8979		if eval \${$cacheid+:} false; then :
8980  $as_echo_n "(cached) " >&6
8981else
8982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983/* end confdefs.h.  */
8984int i;
8985int
8986main ()
8987{
8988
8989  ;
8990  return 0;
8991}
8992_ACEOF
8993if ac_fn_c_try_link "$LINENO"; then :
8994  eval $cacheid=yes
8995else
8996  eval $cacheid=no
8997fi
8998rm -f core conftest.err conftest.$ac_objext \
8999    conftest$ac_exeext conftest.$ac_ext
9000fi
9001
9002
9003		CFLAGS="$xorg_testset_save_CFLAGS"
9004
9005		eval supported=\$$cacheid
9006		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9007$as_echo "$supported" >&6; }
9008		if test "$supported" = "yes" ; then
9009			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9010			found="yes"
9011		fi
9012	fi
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028xorg_testset_save_CFLAGS="$CFLAGS"
9029
9030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9031	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9035  $as_echo_n "(cached) " >&6
9036else
9037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038/* end confdefs.h.  */
9039int i;
9040_ACEOF
9041if ac_fn_c_try_compile "$LINENO"; then :
9042  xorg_cv_cc_flag_unknown_warning_option=yes
9043else
9044  xorg_cv_cc_flag_unknown_warning_option=no
9045fi
9046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047fi
9048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9051	CFLAGS="$xorg_testset_save_CFLAGS"
9052fi
9053
9054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9057	fi
9058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9062  $as_echo_n "(cached) " >&6
9063else
9064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065/* end confdefs.h.  */
9066int i;
9067_ACEOF
9068if ac_fn_c_try_compile "$LINENO"; then :
9069  xorg_cv_cc_flag_unused_command_line_argument=yes
9070else
9071  xorg_cv_cc_flag_unused_command_line_argument=no
9072fi
9073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9074fi
9075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9077	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9078	CFLAGS="$xorg_testset_save_CFLAGS"
9079fi
9080
9081found="no"
9082
9083	if test $found = "no" ; then
9084		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9085			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9086		fi
9087
9088		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9089			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9090		fi
9091
9092		CFLAGS="$CFLAGS -Wnonnull"
9093
9094		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9095$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
9096		cacheid=xorg_cv_cc_flag__Wnonnull
9097		if eval \${$cacheid+:} false; then :
9098  $as_echo_n "(cached) " >&6
9099else
9100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h.  */
9102int i;
9103int
9104main ()
9105{
9106
9107  ;
9108  return 0;
9109}
9110_ACEOF
9111if ac_fn_c_try_link "$LINENO"; then :
9112  eval $cacheid=yes
9113else
9114  eval $cacheid=no
9115fi
9116rm -f core conftest.err conftest.$ac_objext \
9117    conftest$ac_exeext conftest.$ac_ext
9118fi
9119
9120
9121		CFLAGS="$xorg_testset_save_CFLAGS"
9122
9123		eval supported=\$$cacheid
9124		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9125$as_echo "$supported" >&6; }
9126		if test "$supported" = "yes" ; then
9127			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9128			found="yes"
9129		fi
9130	fi
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146xorg_testset_save_CFLAGS="$CFLAGS"
9147
9148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9153  $as_echo_n "(cached) " >&6
9154else
9155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156/* end confdefs.h.  */
9157int i;
9158_ACEOF
9159if ac_fn_c_try_compile "$LINENO"; then :
9160  xorg_cv_cc_flag_unknown_warning_option=yes
9161else
9162  xorg_cv_cc_flag_unknown_warning_option=no
9163fi
9164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165fi
9166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9169	CFLAGS="$xorg_testset_save_CFLAGS"
9170fi
9171
9172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9175	fi
9176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9180  $as_echo_n "(cached) " >&6
9181else
9182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183/* end confdefs.h.  */
9184int i;
9185_ACEOF
9186if ac_fn_c_try_compile "$LINENO"; then :
9187  xorg_cv_cc_flag_unused_command_line_argument=yes
9188else
9189  xorg_cv_cc_flag_unused_command_line_argument=no
9190fi
9191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9192fi
9193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9196	CFLAGS="$xorg_testset_save_CFLAGS"
9197fi
9198
9199found="no"
9200
9201	if test $found = "no" ; then
9202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9204		fi
9205
9206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9208		fi
9209
9210		CFLAGS="$CFLAGS -Winit-self"
9211
9212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9213$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9214		cacheid=xorg_cv_cc_flag__Winit_self
9215		if eval \${$cacheid+:} false; then :
9216  $as_echo_n "(cached) " >&6
9217else
9218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219/* end confdefs.h.  */
9220int i;
9221int
9222main ()
9223{
9224
9225  ;
9226  return 0;
9227}
9228_ACEOF
9229if ac_fn_c_try_link "$LINENO"; then :
9230  eval $cacheid=yes
9231else
9232  eval $cacheid=no
9233fi
9234rm -f core conftest.err conftest.$ac_objext \
9235    conftest$ac_exeext conftest.$ac_ext
9236fi
9237
9238
9239		CFLAGS="$xorg_testset_save_CFLAGS"
9240
9241		eval supported=\$$cacheid
9242		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9243$as_echo "$supported" >&6; }
9244		if test "$supported" = "yes" ; then
9245			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9246			found="yes"
9247		fi
9248	fi
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264xorg_testset_save_CFLAGS="$CFLAGS"
9265
9266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9271  $as_echo_n "(cached) " >&6
9272else
9273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274/* end confdefs.h.  */
9275int i;
9276_ACEOF
9277if ac_fn_c_try_compile "$LINENO"; then :
9278  xorg_cv_cc_flag_unknown_warning_option=yes
9279else
9280  xorg_cv_cc_flag_unknown_warning_option=no
9281fi
9282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9283fi
9284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9287	CFLAGS="$xorg_testset_save_CFLAGS"
9288fi
9289
9290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9293	fi
9294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9298  $as_echo_n "(cached) " >&6
9299else
9300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301/* end confdefs.h.  */
9302int i;
9303_ACEOF
9304if ac_fn_c_try_compile "$LINENO"; then :
9305  xorg_cv_cc_flag_unused_command_line_argument=yes
9306else
9307  xorg_cv_cc_flag_unused_command_line_argument=no
9308fi
9309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310fi
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9314	CFLAGS="$xorg_testset_save_CFLAGS"
9315fi
9316
9317found="no"
9318
9319	if test $found = "no" ; then
9320		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9322		fi
9323
9324		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9326		fi
9327
9328		CFLAGS="$CFLAGS -Wmain"
9329
9330		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9331$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9332		cacheid=xorg_cv_cc_flag__Wmain
9333		if eval \${$cacheid+:} false; then :
9334  $as_echo_n "(cached) " >&6
9335else
9336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337/* end confdefs.h.  */
9338int i;
9339int
9340main ()
9341{
9342
9343  ;
9344  return 0;
9345}
9346_ACEOF
9347if ac_fn_c_try_link "$LINENO"; then :
9348  eval $cacheid=yes
9349else
9350  eval $cacheid=no
9351fi
9352rm -f core conftest.err conftest.$ac_objext \
9353    conftest$ac_exeext conftest.$ac_ext
9354fi
9355
9356
9357		CFLAGS="$xorg_testset_save_CFLAGS"
9358
9359		eval supported=\$$cacheid
9360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9361$as_echo "$supported" >&6; }
9362		if test "$supported" = "yes" ; then
9363			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9364			found="yes"
9365		fi
9366	fi
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382xorg_testset_save_CFLAGS="$CFLAGS"
9383
9384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9389  $as_echo_n "(cached) " >&6
9390else
9391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392/* end confdefs.h.  */
9393int i;
9394_ACEOF
9395if ac_fn_c_try_compile "$LINENO"; then :
9396  xorg_cv_cc_flag_unknown_warning_option=yes
9397else
9398  xorg_cv_cc_flag_unknown_warning_option=no
9399fi
9400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401fi
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9404	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9405	CFLAGS="$xorg_testset_save_CFLAGS"
9406fi
9407
9408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9409	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9410		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9411	fi
9412	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9416  $as_echo_n "(cached) " >&6
9417else
9418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419/* end confdefs.h.  */
9420int i;
9421_ACEOF
9422if ac_fn_c_try_compile "$LINENO"; then :
9423  xorg_cv_cc_flag_unused_command_line_argument=yes
9424else
9425  xorg_cv_cc_flag_unused_command_line_argument=no
9426fi
9427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428fi
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9431	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9432	CFLAGS="$xorg_testset_save_CFLAGS"
9433fi
9434
9435found="no"
9436
9437	if test $found = "no" ; then
9438		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9439			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9440		fi
9441
9442		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9443			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9444		fi
9445
9446		CFLAGS="$CFLAGS -Wmissing-braces"
9447
9448		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9449$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9450		cacheid=xorg_cv_cc_flag__Wmissing_braces
9451		if eval \${$cacheid+:} false; then :
9452  $as_echo_n "(cached) " >&6
9453else
9454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h.  */
9456int i;
9457int
9458main ()
9459{
9460
9461  ;
9462  return 0;
9463}
9464_ACEOF
9465if ac_fn_c_try_link "$LINENO"; then :
9466  eval $cacheid=yes
9467else
9468  eval $cacheid=no
9469fi
9470rm -f core conftest.err conftest.$ac_objext \
9471    conftest$ac_exeext conftest.$ac_ext
9472fi
9473
9474
9475		CFLAGS="$xorg_testset_save_CFLAGS"
9476
9477		eval supported=\$$cacheid
9478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9479$as_echo "$supported" >&6; }
9480		if test "$supported" = "yes" ; then
9481			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9482			found="yes"
9483		fi
9484	fi
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500xorg_testset_save_CFLAGS="$CFLAGS"
9501
9502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9503	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9507  $as_echo_n "(cached) " >&6
9508else
9509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510/* end confdefs.h.  */
9511int i;
9512_ACEOF
9513if ac_fn_c_try_compile "$LINENO"; then :
9514  xorg_cv_cc_flag_unknown_warning_option=yes
9515else
9516  xorg_cv_cc_flag_unknown_warning_option=no
9517fi
9518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519fi
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9523	CFLAGS="$xorg_testset_save_CFLAGS"
9524fi
9525
9526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9529	fi
9530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9533if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9534  $as_echo_n "(cached) " >&6
9535else
9536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537/* end confdefs.h.  */
9538int i;
9539_ACEOF
9540if ac_fn_c_try_compile "$LINENO"; then :
9541  xorg_cv_cc_flag_unused_command_line_argument=yes
9542else
9543  xorg_cv_cc_flag_unused_command_line_argument=no
9544fi
9545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9546fi
9547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9549	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9550	CFLAGS="$xorg_testset_save_CFLAGS"
9551fi
9552
9553found="no"
9554
9555	if test $found = "no" ; then
9556		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9557			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9558		fi
9559
9560		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9561			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9562		fi
9563
9564		CFLAGS="$CFLAGS -Wsequence-point"
9565
9566		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9567$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9568		cacheid=xorg_cv_cc_flag__Wsequence_point
9569		if eval \${$cacheid+:} false; then :
9570  $as_echo_n "(cached) " >&6
9571else
9572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573/* end confdefs.h.  */
9574int i;
9575int
9576main ()
9577{
9578
9579  ;
9580  return 0;
9581}
9582_ACEOF
9583if ac_fn_c_try_link "$LINENO"; then :
9584  eval $cacheid=yes
9585else
9586  eval $cacheid=no
9587fi
9588rm -f core conftest.err conftest.$ac_objext \
9589    conftest$ac_exeext conftest.$ac_ext
9590fi
9591
9592
9593		CFLAGS="$xorg_testset_save_CFLAGS"
9594
9595		eval supported=\$$cacheid
9596		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9597$as_echo "$supported" >&6; }
9598		if test "$supported" = "yes" ; then
9599			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9600			found="yes"
9601		fi
9602	fi
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618xorg_testset_save_CFLAGS="$CFLAGS"
9619
9620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9625  $as_echo_n "(cached) " >&6
9626else
9627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628/* end confdefs.h.  */
9629int i;
9630_ACEOF
9631if ac_fn_c_try_compile "$LINENO"; then :
9632  xorg_cv_cc_flag_unknown_warning_option=yes
9633else
9634  xorg_cv_cc_flag_unknown_warning_option=no
9635fi
9636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9637fi
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9641	CFLAGS="$xorg_testset_save_CFLAGS"
9642fi
9643
9644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9647	fi
9648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9652  $as_echo_n "(cached) " >&6
9653else
9654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655/* end confdefs.h.  */
9656int i;
9657_ACEOF
9658if ac_fn_c_try_compile "$LINENO"; then :
9659  xorg_cv_cc_flag_unused_command_line_argument=yes
9660else
9661  xorg_cv_cc_flag_unused_command_line_argument=no
9662fi
9663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664fi
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9667	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9668	CFLAGS="$xorg_testset_save_CFLAGS"
9669fi
9670
9671found="no"
9672
9673	if test $found = "no" ; then
9674		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9675			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9676		fi
9677
9678		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9679			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9680		fi
9681
9682		CFLAGS="$CFLAGS -Wreturn-type"
9683
9684		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9685$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9686		cacheid=xorg_cv_cc_flag__Wreturn_type
9687		if eval \${$cacheid+:} false; then :
9688  $as_echo_n "(cached) " >&6
9689else
9690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691/* end confdefs.h.  */
9692int i;
9693int
9694main ()
9695{
9696
9697  ;
9698  return 0;
9699}
9700_ACEOF
9701if ac_fn_c_try_link "$LINENO"; then :
9702  eval $cacheid=yes
9703else
9704  eval $cacheid=no
9705fi
9706rm -f core conftest.err conftest.$ac_objext \
9707    conftest$ac_exeext conftest.$ac_ext
9708fi
9709
9710
9711		CFLAGS="$xorg_testset_save_CFLAGS"
9712
9713		eval supported=\$$cacheid
9714		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9715$as_echo "$supported" >&6; }
9716		if test "$supported" = "yes" ; then
9717			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9718			found="yes"
9719		fi
9720	fi
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736xorg_testset_save_CFLAGS="$CFLAGS"
9737
9738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9739	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9741$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9742if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9743  $as_echo_n "(cached) " >&6
9744else
9745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746/* end confdefs.h.  */
9747int i;
9748_ACEOF
9749if ac_fn_c_try_compile "$LINENO"; then :
9750  xorg_cv_cc_flag_unknown_warning_option=yes
9751else
9752  xorg_cv_cc_flag_unknown_warning_option=no
9753fi
9754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755fi
9756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9757$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9759	CFLAGS="$xorg_testset_save_CFLAGS"
9760fi
9761
9762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765	fi
9766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9768$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9769if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9770  $as_echo_n "(cached) " >&6
9771else
9772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773/* end confdefs.h.  */
9774int i;
9775_ACEOF
9776if ac_fn_c_try_compile "$LINENO"; then :
9777  xorg_cv_cc_flag_unused_command_line_argument=yes
9778else
9779  xorg_cv_cc_flag_unused_command_line_argument=no
9780fi
9781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9782fi
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9784$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9785	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9786	CFLAGS="$xorg_testset_save_CFLAGS"
9787fi
9788
9789found="no"
9790
9791	if test $found = "no" ; then
9792		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9793			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9794		fi
9795
9796		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9797			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9798		fi
9799
9800		CFLAGS="$CFLAGS -Wtrigraphs"
9801
9802		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9803$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9804		cacheid=xorg_cv_cc_flag__Wtrigraphs
9805		if eval \${$cacheid+:} false; then :
9806  $as_echo_n "(cached) " >&6
9807else
9808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809/* end confdefs.h.  */
9810int i;
9811int
9812main ()
9813{
9814
9815  ;
9816  return 0;
9817}
9818_ACEOF
9819if ac_fn_c_try_link "$LINENO"; then :
9820  eval $cacheid=yes
9821else
9822  eval $cacheid=no
9823fi
9824rm -f core conftest.err conftest.$ac_objext \
9825    conftest$ac_exeext conftest.$ac_ext
9826fi
9827
9828
9829		CFLAGS="$xorg_testset_save_CFLAGS"
9830
9831		eval supported=\$$cacheid
9832		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9833$as_echo "$supported" >&6; }
9834		if test "$supported" = "yes" ; then
9835			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9836			found="yes"
9837		fi
9838	fi
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854xorg_testset_save_CFLAGS="$CFLAGS"
9855
9856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9857	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9859$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9860if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9861  $as_echo_n "(cached) " >&6
9862else
9863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864/* end confdefs.h.  */
9865int i;
9866_ACEOF
9867if ac_fn_c_try_compile "$LINENO"; then :
9868  xorg_cv_cc_flag_unknown_warning_option=yes
9869else
9870  xorg_cv_cc_flag_unknown_warning_option=no
9871fi
9872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873fi
9874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9875$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9876	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9877	CFLAGS="$xorg_testset_save_CFLAGS"
9878fi
9879
9880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9881	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9882		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9883	fi
9884	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9886$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9887if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9888  $as_echo_n "(cached) " >&6
9889else
9890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891/* end confdefs.h.  */
9892int i;
9893_ACEOF
9894if ac_fn_c_try_compile "$LINENO"; then :
9895  xorg_cv_cc_flag_unused_command_line_argument=yes
9896else
9897  xorg_cv_cc_flag_unused_command_line_argument=no
9898fi
9899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9900fi
9901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9902$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9904	CFLAGS="$xorg_testset_save_CFLAGS"
9905fi
9906
9907found="no"
9908
9909	if test $found = "no" ; then
9910		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9912		fi
9913
9914		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9916		fi
9917
9918		CFLAGS="$CFLAGS -Warray-bounds"
9919
9920		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9921$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9922		cacheid=xorg_cv_cc_flag__Warray_bounds
9923		if eval \${$cacheid+:} false; then :
9924  $as_echo_n "(cached) " >&6
9925else
9926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h.  */
9928int i;
9929int
9930main ()
9931{
9932
9933  ;
9934  return 0;
9935}
9936_ACEOF
9937if ac_fn_c_try_link "$LINENO"; then :
9938  eval $cacheid=yes
9939else
9940  eval $cacheid=no
9941fi
9942rm -f core conftest.err conftest.$ac_objext \
9943    conftest$ac_exeext conftest.$ac_ext
9944fi
9945
9946
9947		CFLAGS="$xorg_testset_save_CFLAGS"
9948
9949		eval supported=\$$cacheid
9950		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9951$as_echo "$supported" >&6; }
9952		if test "$supported" = "yes" ; then
9953			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9954			found="yes"
9955		fi
9956	fi
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972xorg_testset_save_CFLAGS="$CFLAGS"
9973
9974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9977$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9978if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9979  $as_echo_n "(cached) " >&6
9980else
9981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982/* end confdefs.h.  */
9983int i;
9984_ACEOF
9985if ac_fn_c_try_compile "$LINENO"; then :
9986  xorg_cv_cc_flag_unknown_warning_option=yes
9987else
9988  xorg_cv_cc_flag_unknown_warning_option=no
9989fi
9990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991fi
9992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9993$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9995	CFLAGS="$xorg_testset_save_CFLAGS"
9996fi
9997
9998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10001	fi
10002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10004$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10005if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10006  $as_echo_n "(cached) " >&6
10007else
10008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009/* end confdefs.h.  */
10010int i;
10011_ACEOF
10012if ac_fn_c_try_compile "$LINENO"; then :
10013  xorg_cv_cc_flag_unused_command_line_argument=yes
10014else
10015  xorg_cv_cc_flag_unused_command_line_argument=no
10016fi
10017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10018fi
10019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10020$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10022	CFLAGS="$xorg_testset_save_CFLAGS"
10023fi
10024
10025found="no"
10026
10027	if test $found = "no" ; then
10028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10030		fi
10031
10032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10034		fi
10035
10036		CFLAGS="$CFLAGS -Wwrite-strings"
10037
10038		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10039$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
10040		cacheid=xorg_cv_cc_flag__Wwrite_strings
10041		if eval \${$cacheid+:} false; then :
10042  $as_echo_n "(cached) " >&6
10043else
10044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045/* end confdefs.h.  */
10046int i;
10047int
10048main ()
10049{
10050
10051  ;
10052  return 0;
10053}
10054_ACEOF
10055if ac_fn_c_try_link "$LINENO"; then :
10056  eval $cacheid=yes
10057else
10058  eval $cacheid=no
10059fi
10060rm -f core conftest.err conftest.$ac_objext \
10061    conftest$ac_exeext conftest.$ac_ext
10062fi
10063
10064
10065		CFLAGS="$xorg_testset_save_CFLAGS"
10066
10067		eval supported=\$$cacheid
10068		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10069$as_echo "$supported" >&6; }
10070		if test "$supported" = "yes" ; then
10071			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10072			found="yes"
10073		fi
10074	fi
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090xorg_testset_save_CFLAGS="$CFLAGS"
10091
10092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10097  $as_echo_n "(cached) " >&6
10098else
10099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100/* end confdefs.h.  */
10101int i;
10102_ACEOF
10103if ac_fn_c_try_compile "$LINENO"; then :
10104  xorg_cv_cc_flag_unknown_warning_option=yes
10105else
10106  xorg_cv_cc_flag_unknown_warning_option=no
10107fi
10108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10109fi
10110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10112	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10113	CFLAGS="$xorg_testset_save_CFLAGS"
10114fi
10115
10116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10117	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10118		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10119	fi
10120	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10124  $as_echo_n "(cached) " >&6
10125else
10126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127/* end confdefs.h.  */
10128int i;
10129_ACEOF
10130if ac_fn_c_try_compile "$LINENO"; then :
10131  xorg_cv_cc_flag_unused_command_line_argument=yes
10132else
10133  xorg_cv_cc_flag_unused_command_line_argument=no
10134fi
10135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136fi
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10140	CFLAGS="$xorg_testset_save_CFLAGS"
10141fi
10142
10143found="no"
10144
10145	if test $found = "no" ; then
10146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10148		fi
10149
10150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10152		fi
10153
10154		CFLAGS="$CFLAGS -Waddress"
10155
10156		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10157$as_echo_n "checking if $CC supports -Waddress... " >&6; }
10158		cacheid=xorg_cv_cc_flag__Waddress
10159		if eval \${$cacheid+:} false; then :
10160  $as_echo_n "(cached) " >&6
10161else
10162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163/* end confdefs.h.  */
10164int i;
10165int
10166main ()
10167{
10168
10169  ;
10170  return 0;
10171}
10172_ACEOF
10173if ac_fn_c_try_link "$LINENO"; then :
10174  eval $cacheid=yes
10175else
10176  eval $cacheid=no
10177fi
10178rm -f core conftest.err conftest.$ac_objext \
10179    conftest$ac_exeext conftest.$ac_ext
10180fi
10181
10182
10183		CFLAGS="$xorg_testset_save_CFLAGS"
10184
10185		eval supported=\$$cacheid
10186		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10187$as_echo "$supported" >&6; }
10188		if test "$supported" = "yes" ; then
10189			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10190			found="yes"
10191		fi
10192	fi
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208xorg_testset_save_CFLAGS="$CFLAGS"
10209
10210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10211	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10215  $as_echo_n "(cached) " >&6
10216else
10217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218/* end confdefs.h.  */
10219int i;
10220_ACEOF
10221if ac_fn_c_try_compile "$LINENO"; then :
10222  xorg_cv_cc_flag_unknown_warning_option=yes
10223else
10224  xorg_cv_cc_flag_unknown_warning_option=no
10225fi
10226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227fi
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10231	CFLAGS="$xorg_testset_save_CFLAGS"
10232fi
10233
10234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10237	fi
10238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10239	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10242  $as_echo_n "(cached) " >&6
10243else
10244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245/* end confdefs.h.  */
10246int i;
10247_ACEOF
10248if ac_fn_c_try_compile "$LINENO"; then :
10249  xorg_cv_cc_flag_unused_command_line_argument=yes
10250else
10251  xorg_cv_cc_flag_unused_command_line_argument=no
10252fi
10253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10254fi
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10257	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10258	CFLAGS="$xorg_testset_save_CFLAGS"
10259fi
10260
10261found="no"
10262
10263	if test $found = "no" ; then
10264		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10265			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266		fi
10267
10268		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10269			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10270		fi
10271
10272		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10273
10274		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10275$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10276		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10277		if eval \${$cacheid+:} false; then :
10278  $as_echo_n "(cached) " >&6
10279else
10280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281/* end confdefs.h.  */
10282int i;
10283int
10284main ()
10285{
10286
10287  ;
10288  return 0;
10289}
10290_ACEOF
10291if ac_fn_c_try_link "$LINENO"; then :
10292  eval $cacheid=yes
10293else
10294  eval $cacheid=no
10295fi
10296rm -f core conftest.err conftest.$ac_objext \
10297    conftest$ac_exeext conftest.$ac_ext
10298fi
10299
10300
10301		CFLAGS="$xorg_testset_save_CFLAGS"
10302
10303		eval supported=\$$cacheid
10304		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10305$as_echo "$supported" >&6; }
10306		if test "$supported" = "yes" ; then
10307			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10308			found="yes"
10309		fi
10310	fi
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326xorg_testset_save_CFLAGS="$CFLAGS"
10327
10328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10333  $as_echo_n "(cached) " >&6
10334else
10335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336/* end confdefs.h.  */
10337int i;
10338_ACEOF
10339if ac_fn_c_try_compile "$LINENO"; then :
10340  xorg_cv_cc_flag_unknown_warning_option=yes
10341else
10342  xorg_cv_cc_flag_unknown_warning_option=no
10343fi
10344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345fi
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10349	CFLAGS="$xorg_testset_save_CFLAGS"
10350fi
10351
10352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10355	fi
10356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10357	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10360  $as_echo_n "(cached) " >&6
10361else
10362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363/* end confdefs.h.  */
10364int i;
10365_ACEOF
10366if ac_fn_c_try_compile "$LINENO"; then :
10367  xorg_cv_cc_flag_unused_command_line_argument=yes
10368else
10369  xorg_cv_cc_flag_unused_command_line_argument=no
10370fi
10371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372fi
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10376	CFLAGS="$xorg_testset_save_CFLAGS"
10377fi
10378
10379found="no"
10380
10381	if test $found = "no" ; then
10382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10384		fi
10385
10386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10388		fi
10389
10390		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10391
10392		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10393$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10394		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10395		if eval \${$cacheid+:} false; then :
10396  $as_echo_n "(cached) " >&6
10397else
10398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399/* end confdefs.h.  */
10400int i;
10401int
10402main ()
10403{
10404
10405  ;
10406  return 0;
10407}
10408_ACEOF
10409if ac_fn_c_try_link "$LINENO"; then :
10410  eval $cacheid=yes
10411else
10412  eval $cacheid=no
10413fi
10414rm -f core conftest.err conftest.$ac_objext \
10415    conftest$ac_exeext conftest.$ac_ext
10416fi
10417
10418
10419		CFLAGS="$xorg_testset_save_CFLAGS"
10420
10421		eval supported=\$$cacheid
10422		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10423$as_echo "$supported" >&6; }
10424		if test "$supported" = "yes" ; then
10425			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10426			found="yes"
10427		fi
10428	fi
10429
10430
10431fi
10432
10433
10434
10435
10436
10437
10438
10439		CWARNFLAGS="$BASE_CFLAGS"
10440		if  test "x$GCC" = xyes ; then
10441		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10442		fi
10443
10444
10445
10446
10447
10448
10449
10450
10451# Check whether --enable-strict-compilation was given.
10452if test "${enable_strict_compilation+set}" = set; then :
10453  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10454else
10455  STRICT_COMPILE=no
10456fi
10457
10458
10459
10460
10461
10462
10463STRICT_CFLAGS=""
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477xorg_testset_save_CFLAGS="$CFLAGS"
10478
10479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10480	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10484  $as_echo_n "(cached) " >&6
10485else
10486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487/* end confdefs.h.  */
10488int i;
10489_ACEOF
10490if ac_fn_c_try_compile "$LINENO"; then :
10491  xorg_cv_cc_flag_unknown_warning_option=yes
10492else
10493  xorg_cv_cc_flag_unknown_warning_option=no
10494fi
10495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496fi
10497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10500	CFLAGS="$xorg_testset_save_CFLAGS"
10501fi
10502
10503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10506	fi
10507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10511  $as_echo_n "(cached) " >&6
10512else
10513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514/* end confdefs.h.  */
10515int i;
10516_ACEOF
10517if ac_fn_c_try_compile "$LINENO"; then :
10518  xorg_cv_cc_flag_unused_command_line_argument=yes
10519else
10520  xorg_cv_cc_flag_unused_command_line_argument=no
10521fi
10522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10523fi
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10527	CFLAGS="$xorg_testset_save_CFLAGS"
10528fi
10529
10530found="no"
10531
10532	if test $found = "no" ; then
10533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10535		fi
10536
10537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10539		fi
10540
10541		CFLAGS="$CFLAGS -pedantic"
10542
10543		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10544$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10545		cacheid=xorg_cv_cc_flag__pedantic
10546		if eval \${$cacheid+:} false; then :
10547  $as_echo_n "(cached) " >&6
10548else
10549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550/* end confdefs.h.  */
10551int i;
10552int
10553main ()
10554{
10555
10556  ;
10557  return 0;
10558}
10559_ACEOF
10560if ac_fn_c_try_link "$LINENO"; then :
10561  eval $cacheid=yes
10562else
10563  eval $cacheid=no
10564fi
10565rm -f core conftest.err conftest.$ac_objext \
10566    conftest$ac_exeext conftest.$ac_ext
10567fi
10568
10569
10570		CFLAGS="$xorg_testset_save_CFLAGS"
10571
10572		eval supported=\$$cacheid
10573		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10574$as_echo "$supported" >&6; }
10575		if test "$supported" = "yes" ; then
10576			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10577			found="yes"
10578		fi
10579	fi
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595xorg_testset_save_CFLAGS="$CFLAGS"
10596
10597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10602  $as_echo_n "(cached) " >&6
10603else
10604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605/* end confdefs.h.  */
10606int i;
10607_ACEOF
10608if ac_fn_c_try_compile "$LINENO"; then :
10609  xorg_cv_cc_flag_unknown_warning_option=yes
10610else
10611  xorg_cv_cc_flag_unknown_warning_option=no
10612fi
10613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614fi
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10617	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10618	CFLAGS="$xorg_testset_save_CFLAGS"
10619fi
10620
10621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10622	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10623		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10624	fi
10625	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10626	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10629  $as_echo_n "(cached) " >&6
10630else
10631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632/* end confdefs.h.  */
10633int i;
10634_ACEOF
10635if ac_fn_c_try_compile "$LINENO"; then :
10636  xorg_cv_cc_flag_unused_command_line_argument=yes
10637else
10638  xorg_cv_cc_flag_unused_command_line_argument=no
10639fi
10640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10641fi
10642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10644	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10645	CFLAGS="$xorg_testset_save_CFLAGS"
10646fi
10647
10648found="no"
10649
10650	if test $found = "no" ; then
10651		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10653		fi
10654
10655		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10657		fi
10658
10659		CFLAGS="$CFLAGS -Werror"
10660
10661		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10662$as_echo_n "checking if $CC supports -Werror... " >&6; }
10663		cacheid=xorg_cv_cc_flag__Werror
10664		if eval \${$cacheid+:} false; then :
10665  $as_echo_n "(cached) " >&6
10666else
10667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668/* end confdefs.h.  */
10669int i;
10670int
10671main ()
10672{
10673
10674  ;
10675  return 0;
10676}
10677_ACEOF
10678if ac_fn_c_try_link "$LINENO"; then :
10679  eval $cacheid=yes
10680else
10681  eval $cacheid=no
10682fi
10683rm -f core conftest.err conftest.$ac_objext \
10684    conftest$ac_exeext conftest.$ac_ext
10685fi
10686
10687
10688		CFLAGS="$xorg_testset_save_CFLAGS"
10689
10690		eval supported=\$$cacheid
10691		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10692$as_echo "$supported" >&6; }
10693		if test "$supported" = "yes" ; then
10694			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10695			found="yes"
10696		fi
10697	fi
10698
10699	if test $found = "no" ; then
10700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10702		fi
10703
10704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10706		fi
10707
10708		CFLAGS="$CFLAGS -errwarn"
10709
10710		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10711$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10712		cacheid=xorg_cv_cc_flag__errwarn
10713		if eval \${$cacheid+:} false; then :
10714  $as_echo_n "(cached) " >&6
10715else
10716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717/* end confdefs.h.  */
10718int i;
10719int
10720main ()
10721{
10722
10723  ;
10724  return 0;
10725}
10726_ACEOF
10727if ac_fn_c_try_link "$LINENO"; then :
10728  eval $cacheid=yes
10729else
10730  eval $cacheid=no
10731fi
10732rm -f core conftest.err conftest.$ac_objext \
10733    conftest$ac_exeext conftest.$ac_ext
10734fi
10735
10736
10737		CFLAGS="$xorg_testset_save_CFLAGS"
10738
10739		eval supported=\$$cacheid
10740		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10741$as_echo "$supported" >&6; }
10742		if test "$supported" = "yes" ; then
10743			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10744			found="yes"
10745		fi
10746	fi
10747
10748
10749
10750# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10751# activate it with -Werror, so we add it here explicitly.
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765xorg_testset_save_CFLAGS="$CFLAGS"
10766
10767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10768	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10772  $as_echo_n "(cached) " >&6
10773else
10774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775/* end confdefs.h.  */
10776int i;
10777_ACEOF
10778if ac_fn_c_try_compile "$LINENO"; then :
10779  xorg_cv_cc_flag_unknown_warning_option=yes
10780else
10781  xorg_cv_cc_flag_unknown_warning_option=no
10782fi
10783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10784fi
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10787	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10788	CFLAGS="$xorg_testset_save_CFLAGS"
10789fi
10790
10791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10792	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10793		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10794	fi
10795	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10799  $as_echo_n "(cached) " >&6
10800else
10801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802/* end confdefs.h.  */
10803int i;
10804_ACEOF
10805if ac_fn_c_try_compile "$LINENO"; then :
10806  xorg_cv_cc_flag_unused_command_line_argument=yes
10807else
10808  xorg_cv_cc_flag_unused_command_line_argument=no
10809fi
10810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10811fi
10812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10814	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10815	CFLAGS="$xorg_testset_save_CFLAGS"
10816fi
10817
10818found="no"
10819
10820	if test $found = "no" ; then
10821		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10822			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10823		fi
10824
10825		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10826			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10827		fi
10828
10829		CFLAGS="$CFLAGS -Werror=attributes"
10830
10831		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10832$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10833		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10834		if eval \${$cacheid+:} false; then :
10835  $as_echo_n "(cached) " >&6
10836else
10837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838/* end confdefs.h.  */
10839int i;
10840int
10841main ()
10842{
10843
10844  ;
10845  return 0;
10846}
10847_ACEOF
10848if ac_fn_c_try_link "$LINENO"; then :
10849  eval $cacheid=yes
10850else
10851  eval $cacheid=no
10852fi
10853rm -f core conftest.err conftest.$ac_objext \
10854    conftest$ac_exeext conftest.$ac_ext
10855fi
10856
10857
10858		CFLAGS="$xorg_testset_save_CFLAGS"
10859
10860		eval supported=\$$cacheid
10861		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10862$as_echo "$supported" >&6; }
10863		if test "$supported" = "yes" ; then
10864			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10865			found="yes"
10866		fi
10867	fi
10868
10869
10870
10871if test "x$STRICT_COMPILE" = "xyes"; then
10872    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10873    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10874fi
10875
10876
10877
10878
10879
10880
10881cat >>confdefs.h <<_ACEOF
10882#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10883_ACEOF
10884
10885	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10886	if test "x$PVM" = "x"; then
10887		PVM="0"
10888	fi
10889
10890cat >>confdefs.h <<_ACEOF
10891#define PACKAGE_VERSION_MINOR $PVM
10892_ACEOF
10893
10894	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10895	if test "x$PVP" = "x"; then
10896		PVP="0"
10897	fi
10898
10899cat >>confdefs.h <<_ACEOF
10900#define PACKAGE_VERSION_PATCHLEVEL $PVP
10901_ACEOF
10902
10903
10904
10905CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10906mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10907|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10908echo 'git directory not found: installing possibly empty changelog.' >&2)"
10909
10910
10911
10912
10913macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10914INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10915mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10916|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10917echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10918
10919
10920
10921
10922
10923
10924if test x$APP_MAN_SUFFIX = x    ; then
10925    APP_MAN_SUFFIX=1
10926fi
10927if test x$APP_MAN_DIR = x    ; then
10928    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10929fi
10930
10931if test x$LIB_MAN_SUFFIX = x    ; then
10932    LIB_MAN_SUFFIX=3
10933fi
10934if test x$LIB_MAN_DIR = x    ; then
10935    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10936fi
10937
10938if test x$FILE_MAN_SUFFIX = x    ; then
10939    case $host_os in
10940	solaris*)	FILE_MAN_SUFFIX=4  ;;
10941	*)		FILE_MAN_SUFFIX=5  ;;
10942    esac
10943fi
10944if test x$FILE_MAN_DIR = x    ; then
10945    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10946fi
10947
10948if test x$MISC_MAN_SUFFIX = x    ; then
10949    case $host_os in
10950	solaris*)	MISC_MAN_SUFFIX=5  ;;
10951	*)		MISC_MAN_SUFFIX=7  ;;
10952    esac
10953fi
10954if test x$MISC_MAN_DIR = x    ; then
10955    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10956fi
10957
10958if test x$DRIVER_MAN_SUFFIX = x    ; then
10959    case $host_os in
10960	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10961	*)		DRIVER_MAN_SUFFIX=4  ;;
10962    esac
10963fi
10964if test x$DRIVER_MAN_DIR = x    ; then
10965    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10966fi
10967
10968if test x$ADMIN_MAN_SUFFIX = x    ; then
10969    case $host_os in
10970	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10971	*)		ADMIN_MAN_SUFFIX=8  ;;
10972    esac
10973fi
10974if test x$ADMIN_MAN_DIR = x    ; then
10975    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10976fi
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992XORG_MAN_PAGE="X Version 11"
10993
10994MAN_SUBSTS="\
10995	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10996	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10997	-e 's|__xservername__|Xorg|g' \
10998	-e 's|__xconfigfile__|xorg.conf|g' \
10999	-e 's|__projectroot__|\$(prefix)|g' \
11000	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11001	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11002	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11003	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11004	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11005	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11006	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11007
11008
11009
11010# Check whether --enable-silent-rules was given.
11011if test "${enable_silent_rules+set}" = set; then :
11012  enableval=$enable_silent_rules;
11013fi
11014
11015case $enable_silent_rules in # (((
11016  yes) AM_DEFAULT_VERBOSITY=0;;
11017   no) AM_DEFAULT_VERBOSITY=1;;
11018    *) AM_DEFAULT_VERBOSITY=0;;
11019esac
11020am_make=${MAKE-make}
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11022$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11023if ${am_cv_make_support_nested_variables+:} false; then :
11024  $as_echo_n "(cached) " >&6
11025else
11026  if $as_echo 'TRUE=$(BAR$(V))
11027BAR0=false
11028BAR1=true
11029V=1
11030am__doit:
11031	@$(TRUE)
11032.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11033  am_cv_make_support_nested_variables=yes
11034else
11035  am_cv_make_support_nested_variables=no
11036fi
11037fi
11038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11039$as_echo "$am_cv_make_support_nested_variables" >&6; }
11040if test $am_cv_make_support_nested_variables = yes; then
11041    AM_V='$(V)'
11042  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11043else
11044  AM_V=$AM_DEFAULT_VERBOSITY
11045  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11046fi
11047AM_BACKSLASH='\'
11048
11049
11050
11051
11052# Check whether --enable-devel-docs was given.
11053if test "${enable_devel_docs+set}" = set; then :
11054  enableval=$enable_devel_docs; build_devel_docs=$enableval
11055else
11056  build_devel_docs=yes
11057fi
11058
11059
11060 if test x$build_devel_docs = xyes; then
11061  ENABLE_DEVEL_DOCS_TRUE=
11062  ENABLE_DEVEL_DOCS_FALSE='#'
11063else
11064  ENABLE_DEVEL_DOCS_TRUE='#'
11065  ENABLE_DEVEL_DOCS_FALSE=
11066fi
11067
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
11069$as_echo_n "checking whether to build developer documentation... " >&6; }
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
11071$as_echo "$build_devel_docs" >&6; }
11072
11073
11074
11075
11076
11077# Check whether --with-xmlto was given.
11078if test "${with_xmlto+set}" = set; then :
11079  withval=$with_xmlto; use_xmlto=$withval
11080else
11081  use_xmlto=auto
11082fi
11083
11084
11085
11086if test "x$use_xmlto" = x"auto"; then
11087   # Extract the first word of "xmlto", so it can be a program name with args.
11088set dummy xmlto; ac_word=$2
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090$as_echo_n "checking for $ac_word... " >&6; }
11091if ${ac_cv_path_XMLTO+:} false; then :
11092  $as_echo_n "(cached) " >&6
11093else
11094  case $XMLTO in
11095  [\\/]* | ?:[\\/]*)
11096  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11097  ;;
11098  *)
11099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100for as_dir in $PATH
11101do
11102  IFS=$as_save_IFS
11103  test -z "$as_dir" && as_dir=.
11104    for ac_exec_ext in '' $ac_executable_extensions; do
11105  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11106    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
11107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108    break 2
11109  fi
11110done
11111  done
11112IFS=$as_save_IFS
11113
11114  ;;
11115esac
11116fi
11117XMLTO=$ac_cv_path_XMLTO
11118if test -n "$XMLTO"; then
11119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11120$as_echo "$XMLTO" >&6; }
11121else
11122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123$as_echo "no" >&6; }
11124fi
11125
11126
11127   if test "x$XMLTO" = "x"; then
11128        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
11129$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
11130	have_xmlto=no
11131   else
11132        have_xmlto=yes
11133   fi
11134elif test "x$use_xmlto" = x"yes" ; then
11135   # Extract the first word of "xmlto", so it can be a program name with args.
11136set dummy xmlto; ac_word=$2
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138$as_echo_n "checking for $ac_word... " >&6; }
11139if ${ac_cv_path_XMLTO+:} false; then :
11140  $as_echo_n "(cached) " >&6
11141else
11142  case $XMLTO in
11143  [\\/]* | ?:[\\/]*)
11144  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11145  ;;
11146  *)
11147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148for as_dir in $PATH
11149do
11150  IFS=$as_save_IFS
11151  test -z "$as_dir" && as_dir=.
11152    for ac_exec_ext in '' $ac_executable_extensions; do
11153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11154    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
11155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156    break 2
11157  fi
11158done
11159  done
11160IFS=$as_save_IFS
11161
11162  ;;
11163esac
11164fi
11165XMLTO=$ac_cv_path_XMLTO
11166if test -n "$XMLTO"; then
11167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11168$as_echo "$XMLTO" >&6; }
11169else
11170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171$as_echo "no" >&6; }
11172fi
11173
11174
11175   if test "x$XMLTO" = "x"; then
11176        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
11177   fi
11178   have_xmlto=yes
11179elif test "x$use_xmlto" = x"no" ; then
11180   if test "x$XMLTO" != "x"; then
11181      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
11182$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
11183   fi
11184   have_xmlto=no
11185else
11186   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
11187fi
11188
11189# Test for a minimum version of xmlto, if provided.
11190if test "$have_xmlto" = yes; then
11191    # scrape the xmlto version
11192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
11193$as_echo_n "checking the xmlto version... " >&6; }
11194    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
11195    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
11196$as_echo "$xmlto_version" >&6; }
11197    as_arg_v1=$xmlto_version
11198as_arg_v2=0.0.20
11199awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11200case $? in #(
11201  1) :
11202    if test "x$use_xmlto" = xauto; then
11203            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
11204$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
11205            have_xmlto=no
11206        else
11207            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
11208        fi ;; #(
11209  0) :
11210     ;; #(
11211  2) :
11212     ;; #(
11213  *) :
11214     ;;
11215esac
11216fi
11217
11218# Test for the ability of xmlto to generate a text target
11219have_xmlto_text=no
11220cat > conftest.xml << "EOF"
11221EOF
11222if test "$have_xmlto" = yes; then :
11223  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
11224  have_xmlto_text=yes
11225else
11226  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
11227$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
11228fi
11229fi
11230rm -f conftest.xml
11231 if test $have_xmlto_text = yes; then
11232  HAVE_XMLTO_TEXT_TRUE=
11233  HAVE_XMLTO_TEXT_FALSE='#'
11234else
11235  HAVE_XMLTO_TEXT_TRUE='#'
11236  HAVE_XMLTO_TEXT_FALSE=
11237fi
11238
11239 if test "$have_xmlto" = yes; then
11240  HAVE_XMLTO_TRUE=
11241  HAVE_XMLTO_FALSE='#'
11242else
11243  HAVE_XMLTO_TRUE='#'
11244  HAVE_XMLTO_FALSE=
11245fi
11246
11247
11248
11249
11250
11251
11252# Check whether --with-fop was given.
11253if test "${with_fop+set}" = set; then :
11254  withval=$with_fop; use_fop=$withval
11255else
11256  use_fop=auto
11257fi
11258
11259
11260
11261if test "x$use_fop" = x"auto"; then
11262   # Extract the first word of "fop", so it can be a program name with args.
11263set dummy fop; ac_word=$2
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265$as_echo_n "checking for $ac_word... " >&6; }
11266if ${ac_cv_path_FOP+:} false; then :
11267  $as_echo_n "(cached) " >&6
11268else
11269  case $FOP in
11270  [\\/]* | ?:[\\/]*)
11271  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11272  ;;
11273  *)
11274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275for as_dir in $PATH
11276do
11277  IFS=$as_save_IFS
11278  test -z "$as_dir" && as_dir=.
11279    for ac_exec_ext in '' $ac_executable_extensions; do
11280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11281    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283    break 2
11284  fi
11285done
11286  done
11287IFS=$as_save_IFS
11288
11289  ;;
11290esac
11291fi
11292FOP=$ac_cv_path_FOP
11293if test -n "$FOP"; then
11294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11295$as_echo "$FOP" >&6; }
11296else
11297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298$as_echo "no" >&6; }
11299fi
11300
11301
11302   if test "x$FOP" = "x"; then
11303        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11304$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11305	have_fop=no
11306   else
11307        have_fop=yes
11308   fi
11309elif test "x$use_fop" = x"yes" ; then
11310   # Extract the first word of "fop", so it can be a program name with args.
11311set dummy fop; ac_word=$2
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313$as_echo_n "checking for $ac_word... " >&6; }
11314if ${ac_cv_path_FOP+:} false; then :
11315  $as_echo_n "(cached) " >&6
11316else
11317  case $FOP in
11318  [\\/]* | ?:[\\/]*)
11319  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11320  ;;
11321  *)
11322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323for as_dir in $PATH
11324do
11325  IFS=$as_save_IFS
11326  test -z "$as_dir" && as_dir=.
11327    for ac_exec_ext in '' $ac_executable_extensions; do
11328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11329    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11331    break 2
11332  fi
11333done
11334  done
11335IFS=$as_save_IFS
11336
11337  ;;
11338esac
11339fi
11340FOP=$ac_cv_path_FOP
11341if test -n "$FOP"; then
11342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11343$as_echo "$FOP" >&6; }
11344else
11345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346$as_echo "no" >&6; }
11347fi
11348
11349
11350   if test "x$FOP" = "x"; then
11351        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11352   fi
11353   have_fop=yes
11354elif test "x$use_fop" = x"no" ; then
11355   if test "x$FOP" != "x"; then
11356      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11357$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11358   fi
11359   have_fop=no
11360else
11361   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11362fi
11363
11364# Test for a minimum version of fop, if provided.
11365
11366 if test "$have_fop" = yes; then
11367  HAVE_FOP_TRUE=
11368  HAVE_FOP_FALSE='#'
11369else
11370  HAVE_FOP_TRUE='#'
11371  HAVE_FOP_FALSE=
11372fi
11373
11374
11375
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
11377$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
11378XORG_SGML_PATH=
11379if test -n "$PKG_CONFIG" && \
11380    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
11381  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
11382  ac_status=$?
11383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11384  test $ac_status = 0; }; then
11385  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11386else
11387  :
11388
11389fi
11390
11391# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11392# the path and the name of the doc stylesheet
11393if test "x$XORG_SGML_PATH" != "x" ; then
11394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11395$as_echo "$XORG_SGML_PATH" >&6; }
11396   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11397   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11398else
11399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400$as_echo "no" >&6; }
11401fi
11402
11403
11404
11405
11406 if test "x$XSL_STYLESHEET" != "x"; then
11407  HAVE_STYLESHEETS_TRUE=
11408  HAVE_STYLESHEETS_FALSE='#'
11409else
11410  HAVE_STYLESHEETS_TRUE='#'
11411  HAVE_STYLESHEETS_FALSE=
11412fi
11413
11414
11415
11416
11417
11418
11419
11420# Check whether --with-lint was given.
11421if test "${with_lint+set}" = set; then :
11422  withval=$with_lint; use_lint=$withval
11423else
11424  use_lint=no
11425fi
11426
11427
11428# Obtain platform specific info like program name and options
11429# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11430case $host_os in
11431  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11432	lint_name=splint
11433	lint_options="-badflag"
11434	;;
11435  *freebsd* | *netbsd*)
11436	lint_name=lint
11437	lint_options="-u -b"
11438	;;
11439  *solaris*)
11440	lint_name=lint
11441	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11442	;;
11443esac
11444
11445# Test for the presence of the program (either guessed by the code or spelled out by the user)
11446if test "x$use_lint" = x"yes" ; then
11447   # Extract the first word of "$lint_name", so it can be a program name with args.
11448set dummy $lint_name; ac_word=$2
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450$as_echo_n "checking for $ac_word... " >&6; }
11451if ${ac_cv_path_LINT+:} false; then :
11452  $as_echo_n "(cached) " >&6
11453else
11454  case $LINT in
11455  [\\/]* | ?:[\\/]*)
11456  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11457  ;;
11458  *)
11459  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460for as_dir in $PATH
11461do
11462  IFS=$as_save_IFS
11463  test -z "$as_dir" && as_dir=.
11464    for ac_exec_ext in '' $ac_executable_extensions; do
11465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11466    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11468    break 2
11469  fi
11470done
11471  done
11472IFS=$as_save_IFS
11473
11474  ;;
11475esac
11476fi
11477LINT=$ac_cv_path_LINT
11478if test -n "$LINT"; then
11479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11480$as_echo "$LINT" >&6; }
11481else
11482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483$as_echo "no" >&6; }
11484fi
11485
11486
11487   if test "x$LINT" = "x"; then
11488        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11489   fi
11490elif test "x$use_lint" = x"no" ; then
11491   if test "x$LINT" != "x"; then
11492      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11493$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11494   fi
11495else
11496   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11497fi
11498
11499# User supplied flags override default flags
11500if test "x$LINT_FLAGS" != "x"; then
11501   lint_options=$LINT_FLAGS
11502fi
11503
11504LINT_FLAGS=$lint_options
11505
11506 if test "x$LINT" != x; then
11507  LINT_TRUE=
11508  LINT_FALSE='#'
11509else
11510  LINT_TRUE='#'
11511  LINT_FALSE=
11512fi
11513
11514
11515
11516
11517for ac_header in stdint.h
11518do :
11519  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11520if test "x$ac_cv_header_stdint_h" = xyes; then :
11521  cat >>confdefs.h <<_ACEOF
11522#define HAVE_STDINT_H 1
11523_ACEOF
11524
11525fi
11526
11527done
11528
11529
11530
11531# Check whether --with-default-config-file was given.
11532if test "${with_default_config_file+set}" = set; then :
11533  withval=$with_default_config_file; CONFIG_FILE="$withval"
11534else
11535  CONFIG_FILE="${sysconfdir}/X11/fs/config"
11536fi
11537
11538
11539DEFAULT_CONFIG_FILE=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\\\\",\\\\\\\\\\\"/'g`
11540
11541  prefix_NONE=
11542  exec_prefix_NONE=
11543  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
11544  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
11545  eval ax_define_dir="\"$DEFAULT_CONFIG_FILE\""
11546  eval ax_define_dir="\"$ax_define_dir\""
11547  DEFAULT_CONFIG_FILE="$ax_define_dir"
11548
11549
11550cat >>confdefs.h <<_ACEOF
11551#define DEFAULT_CONFIG_FILE "$ax_define_dir"
11552_ACEOF
11553
11554  test "$prefix_NONE" && prefix=NONE
11555  test "$exec_prefix_NONE" && exec_prefix=NONE
11556
11557
11558# generate text for the man page
11559case $CONFIG_FILE in
11560    *,*)
11561	CONFIG_FILE_DESC="the first file found from the list:"
11562	CONFIG_FILE_PATH=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\fR, \\\\\\\\fI/g'`
11563	;;
11564    *)
11565	CONFIG_FILE_DESC="the default file,"
11566	CONFIG_FILE_PATH="${CONFIG_FILE}"
11567	;;
11568esac
11569
11570
11571
11572# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
11589$as_echo_n "checking for root directory for font files... " >&6; }
11590
11591# Check whether --with-fontrootdir was given.
11592if test "${with_fontrootdir+set}" = set; then :
11593  withval=$with_fontrootdir; FONTROOTDIR="$withval"
11594fi
11595
11596	# if --with-fontrootdir not specified...
11597	if test "x${FONTROOTDIR}" = "x"; then
11598		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
11599	fi
11600	# ...and if pkg-config didn't find fontdir in fontutil.pc...
11601	if test "x${FONTROOTDIR}" = "x"; then
11602		FONTROOTDIR="${datadir}/fonts/X11"
11603	fi
11604
11605	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
11606$as_echo "${FONTROOTDIR}" >&6; }
11607
11608
11609
11610
11611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
11612$as_echo_n "checking for directory for misc files... " >&6; }
11613
11614# Check whether --with-fontmiscdir was given.
11615if test "${with_fontmiscdir+set}" = set; then :
11616  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
11617else
11618  FONTMISCDIR='${FONTROOTDIR}/misc'
11619fi
11620
11621
11622	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
11623$as_echo "${FONTMISCDIR}" >&6; }
11624
11625
11626
11627
11628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
11629$as_echo_n "checking for directory for OTF files... " >&6; }
11630
11631# Check whether --with-fontotfdir was given.
11632if test "${with_fontotfdir+set}" = set; then :
11633  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
11634else
11635  FONTOTFDIR='${FONTROOTDIR}/OTF'
11636fi
11637
11638
11639	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
11640$as_echo "${FONTOTFDIR}" >&6; }
11641
11642
11643
11644
11645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
11646$as_echo_n "checking for directory for TTF files... " >&6; }
11647
11648# Check whether --with-fontttfdir was given.
11649if test "${with_fontttfdir+set}" = set; then :
11650  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
11651else
11652  FONTTTFDIR='${FONTROOTDIR}/TTF'
11653fi
11654
11655
11656	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
11657$as_echo "${FONTTTFDIR}" >&6; }
11658
11659
11660
11661
11662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
11663$as_echo_n "checking for directory for Type1 files... " >&6; }
11664
11665# Check whether --with-fonttype1dir was given.
11666if test "${with_fonttype1dir+set}" = set; then :
11667  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
11668else
11669  FONTTYPE1DIR='${FONTROOTDIR}/Type1'
11670fi
11671
11672
11673	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
11674$as_echo "${FONTTYPE1DIR}" >&6; }
11675
11676
11677
11678
11679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
11680$as_echo_n "checking for directory for 75dpi files... " >&6; }
11681
11682# Check whether --with-font75dpidir was given.
11683if test "${with_font75dpidir+set}" = set; then :
11684  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
11685else
11686  FONT75DPIDIR='${FONTROOTDIR}/75dpi'
11687fi
11688
11689
11690	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
11691$as_echo "${FONT75DPIDIR}" >&6; }
11692
11693
11694
11695
11696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
11697$as_echo_n "checking for directory for 100dpi files... " >&6; }
11698
11699# Check whether --with-font100dpidir was given.
11700if test "${with_font100dpidir+set}" = set; then :
11701  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
11702else
11703  FONT100DPIDIR='${FONTROOTDIR}/100dpi'
11704fi
11705
11706
11707	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
11708$as_echo "${FONT100DPIDIR}" >&6; }
11709
11710
11711# Determine font path to put in config file
11712# Uses --default-font-path if set, otherwise checks for /etc/X11/fontpath.d,
11713# otherwise uses standard subdirectories of FONTROOTDIR. When cross
11714# compiling, assume default font path uses standard FONTROOTDIR directories.
11715DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
11716if test "$cross_compiling" != yes; then
11717	as_ac_File=`$as_echo "ac_cv_file_${sysconfdir}/X11/fontpath.d" | $as_tr_sh`
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sysconfdir}/X11/fontpath.d" >&5
11719$as_echo_n "checking for ${sysconfdir}/X11/fontpath.d... " >&6; }
11720if eval \${$as_ac_File+:} false; then :
11721  $as_echo_n "(cached) " >&6
11722else
11723  test "$cross_compiling" = yes &&
11724  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11725if test -r "${sysconfdir}/X11/fontpath.d"; then
11726  eval "$as_ac_File=yes"
11727else
11728  eval "$as_ac_File=no"
11729fi
11730fi
11731eval ac_res=\$$as_ac_File
11732	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11733$as_echo "$ac_res" >&6; }
11734if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11735  DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'
11736else
11737  case $host_os in
11738			darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
11739		esac
11740fi
11741
11742fi
11743
11744# Check whether --with-default-font-path was given.
11745if test "${with_default_font_path+set}" = set; then :
11746  withval=$with_default_font_path;  FONTPATH="$withval"
11747else
11748   FONTPATH="${DEFAULT_FONT_PATH}"
11749fi
11750
11751
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
11753$as_echo_n "checking for default font path... " >&6; }
11754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
11755$as_echo "$FONTPATH" >&6; }
11756
11757
11758
11759# Option to enable support for starting from inetd
11760# Check whether --enable-inetd was given.
11761if test "${enable_inetd+set}" = set; then :
11762  enableval=$enable_inetd; INETD=$enableval
11763else
11764  INETD=yes
11765fi
11766
11767if test "x$INETD" = xyes; then
11768
11769$as_echo "#define XFS_INETD 1" >>confdefs.h
11770
11771fi
11772
11773# Option to enable support for logging to syslog
11774# Check whether --enable-syslog was given.
11775if test "${enable_syslog+set}" = set; then :
11776  enableval=$enable_syslog; SYSLOG=$enableval
11777else
11778  SYSLOG=yes
11779fi
11780
11781if test "x$SYSLOG" = xyes; then
11782
11783$as_echo "#define USE_SYSLOG 1" >>confdefs.h
11784
11785fi
11786
11787
11788# Checks for system functions / libraries
11789for ac_func in daemon
11790do :
11791  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
11792if test "x$ac_cv_func_daemon" = xyes; then :
11793  cat >>confdefs.h <<_ACEOF
11794#define HAVE_DAEMON 1
11795_ACEOF
11796
11797fi
11798done
11799
11800
11801# Checks for pkg-config packages
11802#  - xproto >= 7.0.17 required for _X_NORETURN in <X11/Xfuncproto.h>
11803#  - xfont >= 1.4.5 required for matching MakeAtom prototypes in fontmisc.h
11804
11805pkg_failed=no
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFS" >&5
11807$as_echo_n "checking for XFS... " >&6; }
11808
11809if test -n "$XFS_CFLAGS"; then
11810    pkg_cv_XFS_CFLAGS="$XFS_CFLAGS"
11811 elif test -n "$PKG_CONFIG"; then
11812    if test -n "$PKG_CONFIG" && \
11813    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xfont >= 1.4.5 xtrans\""; } >&5
11814  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xfont >= 1.4.5 xtrans") 2>&5
11815  ac_status=$?
11816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817  test $ac_status = 0; }; then
11818  pkg_cv_XFS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xfont >= 1.4.5 xtrans" 2>/dev/null`
11819else
11820  pkg_failed=yes
11821fi
11822 else
11823    pkg_failed=untried
11824fi
11825if test -n "$XFS_LIBS"; then
11826    pkg_cv_XFS_LIBS="$XFS_LIBS"
11827 elif test -n "$PKG_CONFIG"; then
11828    if test -n "$PKG_CONFIG" && \
11829    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xfont >= 1.4.5 xtrans\""; } >&5
11830  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xfont >= 1.4.5 xtrans") 2>&5
11831  ac_status=$?
11832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11833  test $ac_status = 0; }; then
11834  pkg_cv_XFS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xfont >= 1.4.5 xtrans" 2>/dev/null`
11835else
11836  pkg_failed=yes
11837fi
11838 else
11839    pkg_failed=untried
11840fi
11841
11842
11843
11844if test $pkg_failed = yes; then
11845
11846if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11847        _pkg_short_errors_supported=yes
11848else
11849        _pkg_short_errors_supported=no
11850fi
11851        if test $_pkg_short_errors_supported = yes; then
11852	        XFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 xfont >= 1.4.5 xtrans" 2>&1`
11853        else
11854	        XFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 xfont >= 1.4.5 xtrans" 2>&1`
11855        fi
11856	# Put the nasty error message in config.log where it belongs
11857	echo "$XFS_PKG_ERRORS" >&5
11858
11859	as_fn_error $? "Package requirements (xproto >= 7.0.17 xfont >= 1.4.5 xtrans) were not met:
11860
11861$XFS_PKG_ERRORS
11862
11863Consider adjusting the PKG_CONFIG_PATH environment variable if you
11864installed software in a non-standard prefix.
11865
11866Alternatively, you may set the environment variables XFS_CFLAGS
11867and XFS_LIBS to avoid the need to call pkg-config.
11868See the pkg-config man page for more details.
11869" "$LINENO" 5
11870elif test $pkg_failed = untried; then
11871	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11873as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11874is in your PATH or set the PKG_CONFIG environment variable to the full
11875path to pkg-config.
11876
11877Alternatively, you may set the environment variables XFS_CFLAGS
11878and XFS_LIBS to avoid the need to call pkg-config.
11879See the pkg-config man page for more details.
11880
11881To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11882See \`config.log' for more details" "$LINENO" 5; }
11883else
11884	XFS_CFLAGS=$pkg_cv_XFS_CFLAGS
11885	XFS_LIBS=$pkg_cv_XFS_LIBS
11886        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11887$as_echo "yes" >&6; }
11888	:
11889fi
11890
11891case "$host_os" in
11892  cygwin*|mingw*)
11893    CFLAGS="$CFLAGS -DFD_SETSIZE=256"
11894    LDFLAGS="$LDFLAGS -Wl,--export-all" ;;
11895esac
11896
11897# Transport selection macro from xtrans.m4
11898
11899
11900 case $host_os in
11901	mingw*)	unixdef="no"   ;;
11902	*)	unixdef="yes"  ;;
11903 esac
11904 # Check whether --enable-unix-transport was given.
11905if test "${enable_unix_transport+set}" = set; then :
11906  enableval=$enable_unix_transport; UNIXCONN=$enableval
11907else
11908  UNIXCONN=$unixdef
11909fi
11910
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11912$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
11913 if test "$UNIXCONN" = "yes"; then
11914
11915$as_echo "#define UNIXCONN 1" >>confdefs.h
11916
11917 fi
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11919$as_echo "$UNIXCONN" >&6; }
11920 # Check whether --enable-tcp-transport was given.
11921if test "${enable_tcp_transport+set}" = set; then :
11922  enableval=$enable_tcp_transport; TCPCONN=$enableval
11923else
11924  TCPCONN=yes
11925fi
11926
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11928$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11930$as_echo "$TCPCONN" >&6; }
11931 if test "$TCPCONN" = "yes"; then
11932
11933$as_echo "#define TCPCONN 1" >>confdefs.h
11934
11935
11936 # SVR4 hides these in libraries other than libc
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11938$as_echo_n "checking for library containing socket... " >&6; }
11939if ${ac_cv_search_socket+:} false; then :
11940  $as_echo_n "(cached) " >&6
11941else
11942  ac_func_search_save_LIBS=$LIBS
11943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944/* end confdefs.h.  */
11945
11946/* Override any GCC internal prototype to avoid an error.
11947   Use char because int might match the return type of a GCC
11948   builtin and then its argument prototype would still apply.  */
11949#ifdef __cplusplus
11950extern "C"
11951#endif
11952char socket ();
11953int
11954main ()
11955{
11956return socket ();
11957  ;
11958  return 0;
11959}
11960_ACEOF
11961for ac_lib in '' socket; do
11962  if test -z "$ac_lib"; then
11963    ac_res="none required"
11964  else
11965    ac_res=-l$ac_lib
11966    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11967  fi
11968  if ac_fn_c_try_link "$LINENO"; then :
11969  ac_cv_search_socket=$ac_res
11970fi
11971rm -f core conftest.err conftest.$ac_objext \
11972    conftest$ac_exeext
11973  if ${ac_cv_search_socket+:} false; then :
11974  break
11975fi
11976done
11977if ${ac_cv_search_socket+:} false; then :
11978
11979else
11980  ac_cv_search_socket=no
11981fi
11982rm conftest.$ac_ext
11983LIBS=$ac_func_search_save_LIBS
11984fi
11985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11986$as_echo "$ac_cv_search_socket" >&6; }
11987ac_res=$ac_cv_search_socket
11988if test "$ac_res" != no; then :
11989  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11990
11991fi
11992
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
11994$as_echo_n "checking for library containing gethostbyname... " >&6; }
11995if ${ac_cv_search_gethostbyname+:} false; then :
11996  $as_echo_n "(cached) " >&6
11997else
11998  ac_func_search_save_LIBS=$LIBS
11999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000/* end confdefs.h.  */
12001
12002/* Override any GCC internal prototype to avoid an error.
12003   Use char because int might match the return type of a GCC
12004   builtin and then its argument prototype would still apply.  */
12005#ifdef __cplusplus
12006extern "C"
12007#endif
12008char gethostbyname ();
12009int
12010main ()
12011{
12012return gethostbyname ();
12013  ;
12014  return 0;
12015}
12016_ACEOF
12017for ac_lib in '' nsl; do
12018  if test -z "$ac_lib"; then
12019    ac_res="none required"
12020  else
12021    ac_res=-l$ac_lib
12022    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12023  fi
12024  if ac_fn_c_try_link "$LINENO"; then :
12025  ac_cv_search_gethostbyname=$ac_res
12026fi
12027rm -f core conftest.err conftest.$ac_objext \
12028    conftest$ac_exeext
12029  if ${ac_cv_search_gethostbyname+:} false; then :
12030  break
12031fi
12032done
12033if ${ac_cv_search_gethostbyname+:} false; then :
12034
12035else
12036  ac_cv_search_gethostbyname=no
12037fi
12038rm conftest.$ac_ext
12039LIBS=$ac_func_search_save_LIBS
12040fi
12041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12042$as_echo "$ac_cv_search_gethostbyname" >&6; }
12043ac_res=$ac_cv_search_gethostbyname
12044if test "$ac_res" != no; then :
12045  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12046
12047fi
12048
12049 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
12050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12051$as_echo_n "checking for main in -lws2_32... " >&6; }
12052if ${ac_cv_lib_ws2_32_main+:} false; then :
12053  $as_echo_n "(cached) " >&6
12054else
12055  ac_check_lib_save_LIBS=$LIBS
12056LIBS="-lws2_32  $LIBS"
12057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058/* end confdefs.h.  */
12059
12060
12061int
12062main ()
12063{
12064return main ();
12065  ;
12066  return 0;
12067}
12068_ACEOF
12069if ac_fn_c_try_link "$LINENO"; then :
12070  ac_cv_lib_ws2_32_main=yes
12071else
12072  ac_cv_lib_ws2_32_main=no
12073fi
12074rm -f core conftest.err conftest.$ac_objext \
12075    conftest$ac_exeext conftest.$ac_ext
12076LIBS=$ac_check_lib_save_LIBS
12077fi
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12079$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
12080if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
12081  cat >>confdefs.h <<_ACEOF
12082#define HAVE_LIBWS2_32 1
12083_ACEOF
12084
12085  LIBS="-lws2_32 $LIBS"
12086
12087fi
12088
12089 fi
12090
12091 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
12092 # Check whether --enable-ipv6 was given.
12093if test "${enable_ipv6+set}" = set; then :
12094  enableval=$enable_ipv6; IPV6CONN=$enableval
12095else
12096  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12097if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12098  IPV6CONN=yes
12099else
12100  IPV6CONN=no
12101fi
12102
12103fi
12104
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
12106$as_echo_n "checking if IPv6 support should be built... " >&6; }
12107 if test "$IPV6CONN" = "yes"; then
12108
12109$as_echo "#define IPv6 1" >>confdefs.h
12110
12111 fi
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
12113$as_echo "$IPV6CONN" >&6; }
12114
12115 # 4.3BSD-Reno added a new member to struct sockaddr_in
12116 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
12117#include <sys/types.h>
12118#include <sys/socket.h>
12119#include <netinet/in.h>
12120
12121"
12122if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
12123
12124$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
12125
12126fi
12127
12128
12129 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
12130 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
12131$ac_includes_default
12132#include <sys/socket.h>
12133"
12134if test "x$ac_cv_type_socklen_t" = xyes; then :
12135
12136cat >>confdefs.h <<_ACEOF
12137#define HAVE_SOCKLEN_T 1
12138_ACEOF
12139
12140
12141fi
12142
12143
12144 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
12145 # _XOPEN_SOURCE to get it (such as on Solaris)
12146 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12147$ac_includes_default
12148#include <sys/socket.h>
12149
12150"
12151if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
12152
12153fi
12154
12155 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
12156 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
12157     unset ac_cv_member_struct_msghdr_msg_control
12158     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
12159$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
12160     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12161#define _XOPEN_SOURCE 600
12162$ac_includes_default
12163#include <sys/socket.h>
12164
12165"
12166if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
12167
12168$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
12169
12170
12171fi
12172
12173 fi
12174 # If that didn't work, fall back to XPG5/UNIX98 with C89
12175 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
12176     unset ac_cv_member_struct_msghdr_msg_control
12177     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
12178$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
12179     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12180#define _XOPEN_SOURCE 500
12181$ac_includes_default
12182#include <sys/socket.h>
12183
12184"
12185if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
12186
12187$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
12188
12189
12190fi
12191
12192 fi
12193
12194
12195
12196 fi
12197 case $host_os in
12198	solaris*|sco*|sysv4*)	localdef="yes" ;;
12199	*)			localdef="no"  ;;
12200 esac
12201 # Check whether --enable-local-transport was given.
12202if test "${enable_local_transport+set}" = set; then :
12203  enableval=$enable_local_transport; LOCALCONN=$enableval
12204else
12205  LOCALCONN=$localdef
12206fi
12207
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
12209$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
12211$as_echo "$LOCALCONN" >&6; }
12212 if test "$LOCALCONN" = "yes"; then
12213
12214$as_echo "#define LOCALCONN 1" >>confdefs.h
12215
12216 fi
12217
12218
12219
12220ac_config_files="$ac_config_files Makefile config/Makefile doc/Makefile man/Makefile"
12221
12222cat >confcache <<\_ACEOF
12223# This file is a shell script that caches the results of configure
12224# tests run on this system so they can be shared between configure
12225# scripts and configure runs, see configure's option --config-cache.
12226# It is not useful on other systems.  If it contains results you don't
12227# want to keep, you may remove or edit it.
12228#
12229# config.status only pays attention to the cache file if you give it
12230# the --recheck option to rerun configure.
12231#
12232# `ac_cv_env_foo' variables (set or unset) will be overridden when
12233# loading this file, other *unset* `ac_cv_foo' will be assigned the
12234# following values.
12235
12236_ACEOF
12237
12238# The following way of writing the cache mishandles newlines in values,
12239# but we know of no workaround that is simple, portable, and efficient.
12240# So, we kill variables containing newlines.
12241# Ultrix sh set writes to stderr and can't be redirected directly,
12242# and sets the high bit in the cache file unless we assign to the vars.
12243(
12244  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12245    eval ac_val=\$$ac_var
12246    case $ac_val in #(
12247    *${as_nl}*)
12248      case $ac_var in #(
12249      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12250$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12251      esac
12252      case $ac_var in #(
12253      _ | IFS | as_nl) ;; #(
12254      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12255      *) { eval $ac_var=; unset $ac_var;} ;;
12256      esac ;;
12257    esac
12258  done
12259
12260  (set) 2>&1 |
12261    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12262    *${as_nl}ac_space=\ *)
12263      # `set' does not quote correctly, so add quotes: double-quote
12264      # substitution turns \\\\ into \\, and sed turns \\ into \.
12265      sed -n \
12266	"s/'/'\\\\''/g;
12267	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12268      ;; #(
12269    *)
12270      # `set' quotes correctly as required by POSIX, so do not add quotes.
12271      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12272      ;;
12273    esac |
12274    sort
12275) |
12276  sed '
12277     /^ac_cv_env_/b end
12278     t clear
12279     :clear
12280     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12281     t end
12282     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12283     :end' >>confcache
12284if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12285  if test -w "$cache_file"; then
12286    if test "x$cache_file" != "x/dev/null"; then
12287      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12288$as_echo "$as_me: updating cache $cache_file" >&6;}
12289      if test ! -f "$cache_file" || test -h "$cache_file"; then
12290	cat confcache >"$cache_file"
12291      else
12292        case $cache_file in #(
12293        */* | ?:*)
12294	  mv -f confcache "$cache_file"$$ &&
12295	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12296        *)
12297	  mv -f confcache "$cache_file" ;;
12298	esac
12299      fi
12300    fi
12301  else
12302    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12303$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12304  fi
12305fi
12306rm -f confcache
12307
12308test "x$prefix" = xNONE && prefix=$ac_default_prefix
12309# Let make expand exec_prefix.
12310test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12311
12312DEFS=-DHAVE_CONFIG_H
12313
12314ac_libobjs=
12315ac_ltlibobjs=
12316U=
12317for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12318  # 1. Remove the extension, and $U if already installed.
12319  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12320  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12321  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12322  #    will be set to the directory where LIBOBJS objects are built.
12323  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12324  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12325done
12326LIBOBJS=$ac_libobjs
12327
12328LTLIBOBJS=$ac_ltlibobjs
12329
12330
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12332$as_echo_n "checking that generated files are newer than configure... " >&6; }
12333   if test -n "$am_sleep_pid"; then
12334     # Hide warnings about reused PIDs.
12335     wait $am_sleep_pid 2>/dev/null
12336   fi
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12338$as_echo "done" >&6; }
12339if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12340  as_fn_error $? "conditional \"AMDEP\" was never defined.
12341Usually this means the macro was only invoked conditionally." "$LINENO" 5
12342fi
12343if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12344  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12345Usually this means the macro was only invoked conditionally." "$LINENO" 5
12346fi
12347 if test -n "$EXEEXT"; then
12348  am__EXEEXT_TRUE=
12349  am__EXEEXT_FALSE='#'
12350else
12351  am__EXEEXT_TRUE='#'
12352  am__EXEEXT_FALSE=
12353fi
12354
12355if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
12356  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
12357Usually this means the macro was only invoked conditionally." "$LINENO" 5
12358fi
12359if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
12360  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
12361Usually this means the macro was only invoked conditionally." "$LINENO" 5
12362fi
12363if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12364  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12365Usually this means the macro was only invoked conditionally." "$LINENO" 5
12366fi
12367if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12368  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12369Usually this means the macro was only invoked conditionally." "$LINENO" 5
12370fi
12371if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
12372  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
12373Usually this means the macro was only invoked conditionally." "$LINENO" 5
12374fi
12375if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12376  as_fn_error $? "conditional \"LINT\" was never defined.
12377Usually this means the macro was only invoked conditionally." "$LINENO" 5
12378fi
12379
12380: "${CONFIG_STATUS=./config.status}"
12381ac_write_fail=0
12382ac_clean_files_save=$ac_clean_files
12383ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12384{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12385$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12386as_write_fail=0
12387cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12388#! $SHELL
12389# Generated by $as_me.
12390# Run this file to recreate the current configuration.
12391# Compiler output produced by configure, useful for debugging
12392# configure, is in config.log if it exists.
12393
12394debug=false
12395ac_cs_recheck=false
12396ac_cs_silent=false
12397
12398SHELL=\${CONFIG_SHELL-$SHELL}
12399export SHELL
12400_ASEOF
12401cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12402## -------------------- ##
12403## M4sh Initialization. ##
12404## -------------------- ##
12405
12406# Be more Bourne compatible
12407DUALCASE=1; export DUALCASE # for MKS sh
12408if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12409  emulate sh
12410  NULLCMD=:
12411  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12412  # is contrary to our usage.  Disable this feature.
12413  alias -g '${1+"$@"}'='"$@"'
12414  setopt NO_GLOB_SUBST
12415else
12416  case `(set -o) 2>/dev/null` in #(
12417  *posix*) :
12418    set -o posix ;; #(
12419  *) :
12420     ;;
12421esac
12422fi
12423
12424
12425as_nl='
12426'
12427export as_nl
12428# Printing a long string crashes Solaris 7 /usr/bin/printf.
12429as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12430as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12431as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12432# Prefer a ksh shell builtin over an external printf program on Solaris,
12433# but without wasting forks for bash or zsh.
12434if test -z "$BASH_VERSION$ZSH_VERSION" \
12435    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12436  as_echo='print -r --'
12437  as_echo_n='print -rn --'
12438elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12439  as_echo='printf %s\n'
12440  as_echo_n='printf %s'
12441else
12442  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12443    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12444    as_echo_n='/usr/ucb/echo -n'
12445  else
12446    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12447    as_echo_n_body='eval
12448      arg=$1;
12449      case $arg in #(
12450      *"$as_nl"*)
12451	expr "X$arg" : "X\\(.*\\)$as_nl";
12452	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12453      esac;
12454      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12455    '
12456    export as_echo_n_body
12457    as_echo_n='sh -c $as_echo_n_body as_echo'
12458  fi
12459  export as_echo_body
12460  as_echo='sh -c $as_echo_body as_echo'
12461fi
12462
12463# The user is always right.
12464if test "${PATH_SEPARATOR+set}" != set; then
12465  PATH_SEPARATOR=:
12466  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12467    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12468      PATH_SEPARATOR=';'
12469  }
12470fi
12471
12472
12473# IFS
12474# We need space, tab and new line, in precisely that order.  Quoting is
12475# there to prevent editors from complaining about space-tab.
12476# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12477# splitting by setting IFS to empty value.)
12478IFS=" ""	$as_nl"
12479
12480# Find who we are.  Look in the path if we contain no directory separator.
12481as_myself=
12482case $0 in #((
12483  *[\\/]* ) as_myself=$0 ;;
12484  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485for as_dir in $PATH
12486do
12487  IFS=$as_save_IFS
12488  test -z "$as_dir" && as_dir=.
12489    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12490  done
12491IFS=$as_save_IFS
12492
12493     ;;
12494esac
12495# We did not find ourselves, most probably we were run as `sh COMMAND'
12496# in which case we are not to be found in the path.
12497if test "x$as_myself" = x; then
12498  as_myself=$0
12499fi
12500if test ! -f "$as_myself"; then
12501  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12502  exit 1
12503fi
12504
12505# Unset variables that we do not need and which cause bugs (e.g. in
12506# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12507# suppresses any "Segmentation fault" message there.  '((' could
12508# trigger a bug in pdksh 5.2.14.
12509for as_var in BASH_ENV ENV MAIL MAILPATH
12510do eval test x\${$as_var+set} = xset \
12511  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12512done
12513PS1='$ '
12514PS2='> '
12515PS4='+ '
12516
12517# NLS nuisances.
12518LC_ALL=C
12519export LC_ALL
12520LANGUAGE=C
12521export LANGUAGE
12522
12523# CDPATH.
12524(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12525
12526
12527# as_fn_error STATUS ERROR [LINENO LOG_FD]
12528# ----------------------------------------
12529# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12530# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12531# script with STATUS, using 1 if that was 0.
12532as_fn_error ()
12533{
12534  as_status=$1; test $as_status -eq 0 && as_status=1
12535  if test "$4"; then
12536    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12537    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12538  fi
12539  $as_echo "$as_me: error: $2" >&2
12540  as_fn_exit $as_status
12541} # as_fn_error
12542
12543
12544# as_fn_set_status STATUS
12545# -----------------------
12546# Set $? to STATUS, without forking.
12547as_fn_set_status ()
12548{
12549  return $1
12550} # as_fn_set_status
12551
12552# as_fn_exit STATUS
12553# -----------------
12554# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12555as_fn_exit ()
12556{
12557  set +e
12558  as_fn_set_status $1
12559  exit $1
12560} # as_fn_exit
12561
12562# as_fn_unset VAR
12563# ---------------
12564# Portably unset VAR.
12565as_fn_unset ()
12566{
12567  { eval $1=; unset $1;}
12568}
12569as_unset=as_fn_unset
12570# as_fn_append VAR VALUE
12571# ----------------------
12572# Append the text in VALUE to the end of the definition contained in VAR. Take
12573# advantage of any shell optimizations that allow amortized linear growth over
12574# repeated appends, instead of the typical quadratic growth present in naive
12575# implementations.
12576if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12577  eval 'as_fn_append ()
12578  {
12579    eval $1+=\$2
12580  }'
12581else
12582  as_fn_append ()
12583  {
12584    eval $1=\$$1\$2
12585  }
12586fi # as_fn_append
12587
12588# as_fn_arith ARG...
12589# ------------------
12590# Perform arithmetic evaluation on the ARGs, and store the result in the
12591# global $as_val. Take advantage of shells that can avoid forks. The arguments
12592# must be portable across $(()) and expr.
12593if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12594  eval 'as_fn_arith ()
12595  {
12596    as_val=$(( $* ))
12597  }'
12598else
12599  as_fn_arith ()
12600  {
12601    as_val=`expr "$@" || test $? -eq 1`
12602  }
12603fi # as_fn_arith
12604
12605
12606if expr a : '\(a\)' >/dev/null 2>&1 &&
12607   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12608  as_expr=expr
12609else
12610  as_expr=false
12611fi
12612
12613if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12614  as_basename=basename
12615else
12616  as_basename=false
12617fi
12618
12619if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12620  as_dirname=dirname
12621else
12622  as_dirname=false
12623fi
12624
12625as_me=`$as_basename -- "$0" ||
12626$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12627	 X"$0" : 'X\(//\)$' \| \
12628	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12629$as_echo X/"$0" |
12630    sed '/^.*\/\([^/][^/]*\)\/*$/{
12631	    s//\1/
12632	    q
12633	  }
12634	  /^X\/\(\/\/\)$/{
12635	    s//\1/
12636	    q
12637	  }
12638	  /^X\/\(\/\).*/{
12639	    s//\1/
12640	    q
12641	  }
12642	  s/.*/./; q'`
12643
12644# Avoid depending upon Character Ranges.
12645as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12646as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12647as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12648as_cr_digits='0123456789'
12649as_cr_alnum=$as_cr_Letters$as_cr_digits
12650
12651ECHO_C= ECHO_N= ECHO_T=
12652case `echo -n x` in #(((((
12653-n*)
12654  case `echo 'xy\c'` in
12655  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12656  xy)  ECHO_C='\c';;
12657  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12658       ECHO_T='	';;
12659  esac;;
12660*)
12661  ECHO_N='-n';;
12662esac
12663
12664rm -f conf$$ conf$$.exe conf$$.file
12665if test -d conf$$.dir; then
12666  rm -f conf$$.dir/conf$$.file
12667else
12668  rm -f conf$$.dir
12669  mkdir conf$$.dir 2>/dev/null
12670fi
12671if (echo >conf$$.file) 2>/dev/null; then
12672  if ln -s conf$$.file conf$$ 2>/dev/null; then
12673    as_ln_s='ln -s'
12674    # ... but there are two gotchas:
12675    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12676    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12677    # In both cases, we have to default to `cp -p'.
12678    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12679      as_ln_s='cp -p'
12680  elif ln conf$$.file conf$$ 2>/dev/null; then
12681    as_ln_s=ln
12682  else
12683    as_ln_s='cp -p'
12684  fi
12685else
12686  as_ln_s='cp -p'
12687fi
12688rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12689rmdir conf$$.dir 2>/dev/null
12690
12691
12692# as_fn_mkdir_p
12693# -------------
12694# Create "$as_dir" as a directory, including parents if necessary.
12695as_fn_mkdir_p ()
12696{
12697
12698  case $as_dir in #(
12699  -*) as_dir=./$as_dir;;
12700  esac
12701  test -d "$as_dir" || eval $as_mkdir_p || {
12702    as_dirs=
12703    while :; do
12704      case $as_dir in #(
12705      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12706      *) as_qdir=$as_dir;;
12707      esac
12708      as_dirs="'$as_qdir' $as_dirs"
12709      as_dir=`$as_dirname -- "$as_dir" ||
12710$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12711	 X"$as_dir" : 'X\(//\)[^/]' \| \
12712	 X"$as_dir" : 'X\(//\)$' \| \
12713	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12714$as_echo X"$as_dir" |
12715    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12716	    s//\1/
12717	    q
12718	  }
12719	  /^X\(\/\/\)[^/].*/{
12720	    s//\1/
12721	    q
12722	  }
12723	  /^X\(\/\/\)$/{
12724	    s//\1/
12725	    q
12726	  }
12727	  /^X\(\/\).*/{
12728	    s//\1/
12729	    q
12730	  }
12731	  s/.*/./; q'`
12732      test -d "$as_dir" && break
12733    done
12734    test -z "$as_dirs" || eval "mkdir $as_dirs"
12735  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12736
12737
12738} # as_fn_mkdir_p
12739if mkdir -p . 2>/dev/null; then
12740  as_mkdir_p='mkdir -p "$as_dir"'
12741else
12742  test -d ./-p && rmdir ./-p
12743  as_mkdir_p=false
12744fi
12745
12746if test -x / >/dev/null 2>&1; then
12747  as_test_x='test -x'
12748else
12749  if ls -dL / >/dev/null 2>&1; then
12750    as_ls_L_option=L
12751  else
12752    as_ls_L_option=
12753  fi
12754  as_test_x='
12755    eval sh -c '\''
12756      if test -d "$1"; then
12757	test -d "$1/.";
12758      else
12759	case $1 in #(
12760	-*)set "./$1";;
12761	esac;
12762	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12763	???[sx]*):;;*)false;;esac;fi
12764    '\'' sh
12765  '
12766fi
12767as_executable_p=$as_test_x
12768
12769# Sed expression to map a string onto a valid CPP name.
12770as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12771
12772# Sed expression to map a string onto a valid variable name.
12773as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12774
12775
12776exec 6>&1
12777## ----------------------------------- ##
12778## Main body of $CONFIG_STATUS script. ##
12779## ----------------------------------- ##
12780_ASEOF
12781test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12782
12783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12784# Save the log message, to keep $0 and so on meaningful, and to
12785# report actual input values of CONFIG_FILES etc. instead of their
12786# values after options handling.
12787ac_log="
12788This file was extended by xfs $as_me 1.1.4, which was
12789generated by GNU Autoconf 2.68.  Invocation command line was
12790
12791  CONFIG_FILES    = $CONFIG_FILES
12792  CONFIG_HEADERS  = $CONFIG_HEADERS
12793  CONFIG_LINKS    = $CONFIG_LINKS
12794  CONFIG_COMMANDS = $CONFIG_COMMANDS
12795  $ $0 $@
12796
12797on `(hostname || uname -n) 2>/dev/null | sed 1q`
12798"
12799
12800_ACEOF
12801
12802case $ac_config_files in *"
12803"*) set x $ac_config_files; shift; ac_config_files=$*;;
12804esac
12805
12806case $ac_config_headers in *"
12807"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12808esac
12809
12810
12811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12812# Files that config.status was made for.
12813config_files="$ac_config_files"
12814config_headers="$ac_config_headers"
12815config_commands="$ac_config_commands"
12816
12817_ACEOF
12818
12819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12820ac_cs_usage="\
12821\`$as_me' instantiates files and other configuration actions
12822from templates according to the current configuration.  Unless the files
12823and actions are specified as TAGs, all are instantiated by default.
12824
12825Usage: $0 [OPTION]... [TAG]...
12826
12827  -h, --help       print this help, then exit
12828  -V, --version    print version number and configuration settings, then exit
12829      --config     print configuration, then exit
12830  -q, --quiet, --silent
12831                   do not print progress messages
12832  -d, --debug      don't remove temporary files
12833      --recheck    update $as_me by reconfiguring in the same conditions
12834      --file=FILE[:TEMPLATE]
12835                   instantiate the configuration file FILE
12836      --header=FILE[:TEMPLATE]
12837                   instantiate the configuration header FILE
12838
12839Configuration files:
12840$config_files
12841
12842Configuration headers:
12843$config_headers
12844
12845Configuration commands:
12846$config_commands
12847
12848Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12849
12850_ACEOF
12851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12852ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12853ac_cs_version="\\
12854xfs config.status 1.1.4
12855configured by $0, generated by GNU Autoconf 2.68,
12856  with options \\"\$ac_cs_config\\"
12857
12858Copyright (C) 2010 Free Software Foundation, Inc.
12859This config.status script is free software; the Free Software Foundation
12860gives unlimited permission to copy, distribute and modify it."
12861
12862ac_pwd='$ac_pwd'
12863srcdir='$srcdir'
12864INSTALL='$INSTALL'
12865MKDIR_P='$MKDIR_P'
12866AWK='$AWK'
12867test -n "\$AWK" || AWK=awk
12868_ACEOF
12869
12870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12871# The default lists apply if the user does not specify any file.
12872ac_need_defaults=:
12873while test $# != 0
12874do
12875  case $1 in
12876  --*=?*)
12877    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12878    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12879    ac_shift=:
12880    ;;
12881  --*=)
12882    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12883    ac_optarg=
12884    ac_shift=:
12885    ;;
12886  *)
12887    ac_option=$1
12888    ac_optarg=$2
12889    ac_shift=shift
12890    ;;
12891  esac
12892
12893  case $ac_option in
12894  # Handling of the options.
12895  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12896    ac_cs_recheck=: ;;
12897  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12898    $as_echo "$ac_cs_version"; exit ;;
12899  --config | --confi | --conf | --con | --co | --c )
12900    $as_echo "$ac_cs_config"; exit ;;
12901  --debug | --debu | --deb | --de | --d | -d )
12902    debug=: ;;
12903  --file | --fil | --fi | --f )
12904    $ac_shift
12905    case $ac_optarg in
12906    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12907    '') as_fn_error $? "missing file argument" ;;
12908    esac
12909    as_fn_append CONFIG_FILES " '$ac_optarg'"
12910    ac_need_defaults=false;;
12911  --header | --heade | --head | --hea )
12912    $ac_shift
12913    case $ac_optarg in
12914    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12915    esac
12916    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12917    ac_need_defaults=false;;
12918  --he | --h)
12919    # Conflict between --help and --header
12920    as_fn_error $? "ambiguous option: \`$1'
12921Try \`$0 --help' for more information.";;
12922  --help | --hel | -h )
12923    $as_echo "$ac_cs_usage"; exit ;;
12924  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12925  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12926    ac_cs_silent=: ;;
12927
12928  # This is an error.
12929  -*) as_fn_error $? "unrecognized option: \`$1'
12930Try \`$0 --help' for more information." ;;
12931
12932  *) as_fn_append ac_config_targets " $1"
12933     ac_need_defaults=false ;;
12934
12935  esac
12936  shift
12937done
12938
12939ac_configure_extra_args=
12940
12941if $ac_cs_silent; then
12942  exec 6>/dev/null
12943  ac_configure_extra_args="$ac_configure_extra_args --silent"
12944fi
12945
12946_ACEOF
12947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12948if \$ac_cs_recheck; then
12949  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12950  shift
12951  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12952  CONFIG_SHELL='$SHELL'
12953  export CONFIG_SHELL
12954  exec "\$@"
12955fi
12956
12957_ACEOF
12958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12959exec 5>>config.log
12960{
12961  echo
12962  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12963## Running $as_me. ##
12964_ASBOX
12965  $as_echo "$ac_log"
12966} >&5
12967
12968_ACEOF
12969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12970#
12971# INIT-COMMANDS
12972#
12973AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12974
12975_ACEOF
12976
12977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12978
12979# Handling of arguments.
12980for ac_config_target in $ac_config_targets
12981do
12982  case $ac_config_target in
12983    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12984    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12985    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12986    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
12987    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12988    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12989
12990  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12991  esac
12992done
12993
12994
12995# If the user did not use the arguments to specify the items to instantiate,
12996# then the envvar interface is used.  Set only those that are not.
12997# We use the long form for the default assignment because of an extremely
12998# bizarre bug on SunOS 4.1.3.
12999if $ac_need_defaults; then
13000  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13001  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13002  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13003fi
13004
13005# Have a temporary directory for convenience.  Make it in the build tree
13006# simply because there is no reason against having it here, and in addition,
13007# creating and moving files from /tmp can sometimes cause problems.
13008# Hook for its removal unless debugging.
13009# Note that there is a small window in which the directory will not be cleaned:
13010# after its creation but before its name has been assigned to `$tmp'.
13011$debug ||
13012{
13013  tmp= ac_tmp=
13014  trap 'exit_status=$?
13015  : "${ac_tmp:=$tmp}"
13016  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13017' 0
13018  trap 'as_fn_exit 1' 1 2 13 15
13019}
13020# Create a (secure) tmp directory for tmp files.
13021
13022{
13023  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13024  test -d "$tmp"
13025}  ||
13026{
13027  tmp=./conf$$-$RANDOM
13028  (umask 077 && mkdir "$tmp")
13029} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13030ac_tmp=$tmp
13031
13032# Set up the scripts for CONFIG_FILES section.
13033# No need to generate them if there are no CONFIG_FILES.
13034# This happens for instance with `./config.status config.h'.
13035if test -n "$CONFIG_FILES"; then
13036
13037
13038ac_cr=`echo X | tr X '\015'`
13039# On cygwin, bash can eat \r inside `` if the user requested igncr.
13040# But we know of no other shell where ac_cr would be empty at this
13041# point, so we can use a bashism as a fallback.
13042if test "x$ac_cr" = x; then
13043  eval ac_cr=\$\'\\r\'
13044fi
13045ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13046if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13047  ac_cs_awk_cr='\\r'
13048else
13049  ac_cs_awk_cr=$ac_cr
13050fi
13051
13052echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13053_ACEOF
13054
13055
13056{
13057  echo "cat >conf$$subs.awk <<_ACEOF" &&
13058  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13059  echo "_ACEOF"
13060} >conf$$subs.sh ||
13061  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13062ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13063ac_delim='%!_!# '
13064for ac_last_try in false false false false false :; do
13065  . ./conf$$subs.sh ||
13066    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13067
13068  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13069  if test $ac_delim_n = $ac_delim_num; then
13070    break
13071  elif $ac_last_try; then
13072    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13073  else
13074    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13075  fi
13076done
13077rm -f conf$$subs.sh
13078
13079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13080cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13081_ACEOF
13082sed -n '
13083h
13084s/^/S["/; s/!.*/"]=/
13085p
13086g
13087s/^[^!]*!//
13088:repl
13089t repl
13090s/'"$ac_delim"'$//
13091t delim
13092:nl
13093h
13094s/\(.\{148\}\)..*/\1/
13095t more1
13096s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13097p
13098n
13099b repl
13100:more1
13101s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13102p
13103g
13104s/.\{148\}//
13105t nl
13106:delim
13107h
13108s/\(.\{148\}\)..*/\1/
13109t more2
13110s/["\\]/\\&/g; s/^/"/; s/$/"/
13111p
13112b
13113:more2
13114s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13115p
13116g
13117s/.\{148\}//
13118t delim
13119' <conf$$subs.awk | sed '
13120/^[^""]/{
13121  N
13122  s/\n//
13123}
13124' >>$CONFIG_STATUS || ac_write_fail=1
13125rm -f conf$$subs.awk
13126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13127_ACAWK
13128cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13129  for (key in S) S_is_set[key] = 1
13130  FS = ""
13131
13132}
13133{
13134  line = $ 0
13135  nfields = split(line, field, "@")
13136  substed = 0
13137  len = length(field[1])
13138  for (i = 2; i < nfields; i++) {
13139    key = field[i]
13140    keylen = length(key)
13141    if (S_is_set[key]) {
13142      value = S[key]
13143      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13144      len += length(value) + length(field[++i])
13145      substed = 1
13146    } else
13147      len += 1 + keylen
13148  }
13149
13150  print line
13151}
13152
13153_ACAWK
13154_ACEOF
13155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13156if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13157  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13158else
13159  cat
13160fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13161  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13162_ACEOF
13163
13164# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13165# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13166# trailing colons and then remove the whole line if VPATH becomes empty
13167# (actually we leave an empty line to preserve line numbers).
13168if test "x$srcdir" = x.; then
13169  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13170h
13171s///
13172s/^/:/
13173s/[	 ]*$/:/
13174s/:\$(srcdir):/:/g
13175s/:\${srcdir}:/:/g
13176s/:@srcdir@:/:/g
13177s/^:*//
13178s/:*$//
13179x
13180s/\(=[	 ]*\).*/\1/
13181G
13182s/\n//
13183s/^[^=]*=[	 ]*$//
13184}'
13185fi
13186
13187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13188fi # test -n "$CONFIG_FILES"
13189
13190# Set up the scripts for CONFIG_HEADERS section.
13191# No need to generate them if there are no CONFIG_HEADERS.
13192# This happens for instance with `./config.status Makefile'.
13193if test -n "$CONFIG_HEADERS"; then
13194cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13195BEGIN {
13196_ACEOF
13197
13198# Transform confdefs.h into an awk script `defines.awk', embedded as
13199# here-document in config.status, that substitutes the proper values into
13200# config.h.in to produce config.h.
13201
13202# Create a delimiter string that does not exist in confdefs.h, to ease
13203# handling of long lines.
13204ac_delim='%!_!# '
13205for ac_last_try in false false :; do
13206  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13207  if test -z "$ac_tt"; then
13208    break
13209  elif $ac_last_try; then
13210    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13211  else
13212    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13213  fi
13214done
13215
13216# For the awk script, D is an array of macro values keyed by name,
13217# likewise P contains macro parameters if any.  Preserve backslash
13218# newline sequences.
13219
13220ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13221sed -n '
13222s/.\{148\}/&'"$ac_delim"'/g
13223t rset
13224:rset
13225s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13226t def
13227d
13228:def
13229s/\\$//
13230t bsnl
13231s/["\\]/\\&/g
13232s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13233D["\1"]=" \3"/p
13234s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13235d
13236:bsnl
13237s/["\\]/\\&/g
13238s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13239D["\1"]=" \3\\\\\\n"\\/p
13240t cont
13241s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13242t cont
13243d
13244:cont
13245n
13246s/.\{148\}/&'"$ac_delim"'/g
13247t clear
13248:clear
13249s/\\$//
13250t bsnlc
13251s/["\\]/\\&/g; s/^/"/; s/$/"/p
13252d
13253:bsnlc
13254s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13255b cont
13256' <confdefs.h | sed '
13257s/'"$ac_delim"'/"\\\
13258"/g' >>$CONFIG_STATUS || ac_write_fail=1
13259
13260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13261  for (key in D) D_is_set[key] = 1
13262  FS = ""
13263}
13264/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13265  line = \$ 0
13266  split(line, arg, " ")
13267  if (arg[1] == "#") {
13268    defundef = arg[2]
13269    mac1 = arg[3]
13270  } else {
13271    defundef = substr(arg[1], 2)
13272    mac1 = arg[2]
13273  }
13274  split(mac1, mac2, "(") #)
13275  macro = mac2[1]
13276  prefix = substr(line, 1, index(line, defundef) - 1)
13277  if (D_is_set[macro]) {
13278    # Preserve the white space surrounding the "#".
13279    print prefix "define", macro P[macro] D[macro]
13280    next
13281  } else {
13282    # Replace #undef with comments.  This is necessary, for example,
13283    # in the case of _POSIX_SOURCE, which is predefined and required
13284    # on some systems where configure will not decide to define it.
13285    if (defundef == "undef") {
13286      print "/*", prefix defundef, macro, "*/"
13287      next
13288    }
13289  }
13290}
13291{ print }
13292_ACAWK
13293_ACEOF
13294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13295  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13296fi # test -n "$CONFIG_HEADERS"
13297
13298
13299eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13300shift
13301for ac_tag
13302do
13303  case $ac_tag in
13304  :[FHLC]) ac_mode=$ac_tag; continue;;
13305  esac
13306  case $ac_mode$ac_tag in
13307  :[FHL]*:*);;
13308  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13309  :[FH]-) ac_tag=-:-;;
13310  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13311  esac
13312  ac_save_IFS=$IFS
13313  IFS=:
13314  set x $ac_tag
13315  IFS=$ac_save_IFS
13316  shift
13317  ac_file=$1
13318  shift
13319
13320  case $ac_mode in
13321  :L) ac_source=$1;;
13322  :[FH])
13323    ac_file_inputs=
13324    for ac_f
13325    do
13326      case $ac_f in
13327      -) ac_f="$ac_tmp/stdin";;
13328      *) # Look for the file first in the build tree, then in the source tree
13329	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13330	 # because $ac_f cannot contain `:'.
13331	 test -f "$ac_f" ||
13332	   case $ac_f in
13333	   [\\/$]*) false;;
13334	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13335	   esac ||
13336	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13337      esac
13338      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13339      as_fn_append ac_file_inputs " '$ac_f'"
13340    done
13341
13342    # Let's still pretend it is `configure' which instantiates (i.e., don't
13343    # use $as_me), people would be surprised to read:
13344    #    /* config.h.  Generated by config.status.  */
13345    configure_input='Generated from '`
13346	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13347	`' by configure.'
13348    if test x"$ac_file" != x-; then
13349      configure_input="$ac_file.  $configure_input"
13350      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13351$as_echo "$as_me: creating $ac_file" >&6;}
13352    fi
13353    # Neutralize special characters interpreted by sed in replacement strings.
13354    case $configure_input in #(
13355    *\&* | *\|* | *\\* )
13356       ac_sed_conf_input=`$as_echo "$configure_input" |
13357       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13358    *) ac_sed_conf_input=$configure_input;;
13359    esac
13360
13361    case $ac_tag in
13362    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13363      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13364    esac
13365    ;;
13366  esac
13367
13368  ac_dir=`$as_dirname -- "$ac_file" ||
13369$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13370	 X"$ac_file" : 'X\(//\)[^/]' \| \
13371	 X"$ac_file" : 'X\(//\)$' \| \
13372	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13373$as_echo X"$ac_file" |
13374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13375	    s//\1/
13376	    q
13377	  }
13378	  /^X\(\/\/\)[^/].*/{
13379	    s//\1/
13380	    q
13381	  }
13382	  /^X\(\/\/\)$/{
13383	    s//\1/
13384	    q
13385	  }
13386	  /^X\(\/\).*/{
13387	    s//\1/
13388	    q
13389	  }
13390	  s/.*/./; q'`
13391  as_dir="$ac_dir"; as_fn_mkdir_p
13392  ac_builddir=.
13393
13394case "$ac_dir" in
13395.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13396*)
13397  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13398  # A ".." for each directory in $ac_dir_suffix.
13399  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13400  case $ac_top_builddir_sub in
13401  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13402  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13403  esac ;;
13404esac
13405ac_abs_top_builddir=$ac_pwd
13406ac_abs_builddir=$ac_pwd$ac_dir_suffix
13407# for backward compatibility:
13408ac_top_builddir=$ac_top_build_prefix
13409
13410case $srcdir in
13411  .)  # We are building in place.
13412    ac_srcdir=.
13413    ac_top_srcdir=$ac_top_builddir_sub
13414    ac_abs_top_srcdir=$ac_pwd ;;
13415  [\\/]* | ?:[\\/]* )  # Absolute name.
13416    ac_srcdir=$srcdir$ac_dir_suffix;
13417    ac_top_srcdir=$srcdir
13418    ac_abs_top_srcdir=$srcdir ;;
13419  *) # Relative name.
13420    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13421    ac_top_srcdir=$ac_top_build_prefix$srcdir
13422    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13423esac
13424ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13425
13426
13427  case $ac_mode in
13428  :F)
13429  #
13430  # CONFIG_FILE
13431  #
13432
13433  case $INSTALL in
13434  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13435  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13436  esac
13437  ac_MKDIR_P=$MKDIR_P
13438  case $MKDIR_P in
13439  [\\/$]* | ?:[\\/]* ) ;;
13440  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13441  esac
13442_ACEOF
13443
13444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13445# If the template does not know about datarootdir, expand it.
13446# FIXME: This hack should be removed a few years after 2.60.
13447ac_datarootdir_hack=; ac_datarootdir_seen=
13448ac_sed_dataroot='
13449/datarootdir/ {
13450  p
13451  q
13452}
13453/@datadir@/p
13454/@docdir@/p
13455/@infodir@/p
13456/@localedir@/p
13457/@mandir@/p'
13458case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13459*datarootdir*) ac_datarootdir_seen=yes;;
13460*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13461  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13462$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13463_ACEOF
13464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13465  ac_datarootdir_hack='
13466  s&@datadir@&$datadir&g
13467  s&@docdir@&$docdir&g
13468  s&@infodir@&$infodir&g
13469  s&@localedir@&$localedir&g
13470  s&@mandir@&$mandir&g
13471  s&\\\${datarootdir}&$datarootdir&g' ;;
13472esac
13473_ACEOF
13474
13475# Neutralize VPATH when `$srcdir' = `.'.
13476# Shell code in configure.ac might set extrasub.
13477# FIXME: do we really want to maintain this feature?
13478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13479ac_sed_extra="$ac_vpsub
13480$extrasub
13481_ACEOF
13482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13483:t
13484/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13485s|@configure_input@|$ac_sed_conf_input|;t t
13486s&@top_builddir@&$ac_top_builddir_sub&;t t
13487s&@top_build_prefix@&$ac_top_build_prefix&;t t
13488s&@srcdir@&$ac_srcdir&;t t
13489s&@abs_srcdir@&$ac_abs_srcdir&;t t
13490s&@top_srcdir@&$ac_top_srcdir&;t t
13491s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13492s&@builddir@&$ac_builddir&;t t
13493s&@abs_builddir@&$ac_abs_builddir&;t t
13494s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13495s&@INSTALL@&$ac_INSTALL&;t t
13496s&@MKDIR_P@&$ac_MKDIR_P&;t t
13497$ac_datarootdir_hack
13498"
13499eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13500  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13501
13502test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13503  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13504  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13505      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13506  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13507which seems to be undefined.  Please make sure it is defined" >&5
13508$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13509which seems to be undefined.  Please make sure it is defined" >&2;}
13510
13511  rm -f "$ac_tmp/stdin"
13512  case $ac_file in
13513  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13514  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13515  esac \
13516  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13517 ;;
13518  :H)
13519  #
13520  # CONFIG_HEADER
13521  #
13522  if test x"$ac_file" != x-; then
13523    {
13524      $as_echo "/* $configure_input  */" \
13525      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13526    } >"$ac_tmp/config.h" \
13527      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13528    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13529      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13530$as_echo "$as_me: $ac_file is unchanged" >&6;}
13531    else
13532      rm -f "$ac_file"
13533      mv "$ac_tmp/config.h" "$ac_file" \
13534	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13535    fi
13536  else
13537    $as_echo "/* $configure_input  */" \
13538      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13539      || as_fn_error $? "could not create -" "$LINENO" 5
13540  fi
13541# Compute "$ac_file"'s index in $config_headers.
13542_am_arg="$ac_file"
13543_am_stamp_count=1
13544for _am_header in $config_headers :; do
13545  case $_am_header in
13546    $_am_arg | $_am_arg:* )
13547      break ;;
13548    * )
13549      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13550  esac
13551done
13552echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13553$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13554	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13555	 X"$_am_arg" : 'X\(//\)$' \| \
13556	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13557$as_echo X"$_am_arg" |
13558    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13559	    s//\1/
13560	    q
13561	  }
13562	  /^X\(\/\/\)[^/].*/{
13563	    s//\1/
13564	    q
13565	  }
13566	  /^X\(\/\/\)$/{
13567	    s//\1/
13568	    q
13569	  }
13570	  /^X\(\/\).*/{
13571	    s//\1/
13572	    q
13573	  }
13574	  s/.*/./; q'`/stamp-h$_am_stamp_count
13575 ;;
13576
13577  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13578$as_echo "$as_me: executing $ac_file commands" >&6;}
13579 ;;
13580  esac
13581
13582
13583  case $ac_file$ac_mode in
13584    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13585  # Older Autoconf quotes --file arguments for eval, but not when files
13586  # are listed without --file.  Let's play safe and only enable the eval
13587  # if we detect the quoting.
13588  case $CONFIG_FILES in
13589  *\'*) eval set x "$CONFIG_FILES" ;;
13590  *)   set x $CONFIG_FILES ;;
13591  esac
13592  shift
13593  for mf
13594  do
13595    # Strip MF so we end up with the name of the file.
13596    mf=`echo "$mf" | sed -e 's/:.*$//'`
13597    # Check whether this is an Automake generated Makefile or not.
13598    # We used to match only the files named 'Makefile.in', but
13599    # some people rename them; so instead we look at the file content.
13600    # Grep'ing the first line is not enough: some people post-process
13601    # each Makefile.in and add a new line on top of each file to say so.
13602    # Grep'ing the whole file is not good either: AIX grep has a line
13603    # limit of 2048, but all sed's we know have understand at least 4000.
13604    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13605      dirpart=`$as_dirname -- "$mf" ||
13606$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13607	 X"$mf" : 'X\(//\)[^/]' \| \
13608	 X"$mf" : 'X\(//\)$' \| \
13609	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13610$as_echo X"$mf" |
13611    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13612	    s//\1/
13613	    q
13614	  }
13615	  /^X\(\/\/\)[^/].*/{
13616	    s//\1/
13617	    q
13618	  }
13619	  /^X\(\/\/\)$/{
13620	    s//\1/
13621	    q
13622	  }
13623	  /^X\(\/\).*/{
13624	    s//\1/
13625	    q
13626	  }
13627	  s/.*/./; q'`
13628    else
13629      continue
13630    fi
13631    # Extract the definition of DEPDIR, am__include, and am__quote
13632    # from the Makefile without running 'make'.
13633    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13634    test -z "$DEPDIR" && continue
13635    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13636    test -z "$am__include" && continue
13637    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13638    # Find all dependency output files, they are included files with
13639    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13640    # simplest approach to changing $(DEPDIR) to its actual value in the
13641    # expansion.
13642    for file in `sed -n "
13643      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13644	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13645      # Make sure the directory exists.
13646      test -f "$dirpart/$file" && continue
13647      fdir=`$as_dirname -- "$file" ||
13648$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13649	 X"$file" : 'X\(//\)[^/]' \| \
13650	 X"$file" : 'X\(//\)$' \| \
13651	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13652$as_echo X"$file" |
13653    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13654	    s//\1/
13655	    q
13656	  }
13657	  /^X\(\/\/\)[^/].*/{
13658	    s//\1/
13659	    q
13660	  }
13661	  /^X\(\/\/\)$/{
13662	    s//\1/
13663	    q
13664	  }
13665	  /^X\(\/\).*/{
13666	    s//\1/
13667	    q
13668	  }
13669	  s/.*/./; q'`
13670      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13671      # echo "creating $dirpart/$file"
13672      echo '# dummy' > "$dirpart/$file"
13673    done
13674  done
13675}
13676 ;;
13677
13678  esac
13679done # for ac_tag
13680
13681
13682as_fn_exit 0
13683_ACEOF
13684ac_clean_files=$ac_clean_files_save
13685
13686test $ac_write_fail = 0 ||
13687  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13688
13689
13690# configure is writing to config.log, and then calls config.status.
13691# config.status does its own redirection, appending to config.log.
13692# Unfortunately, on DOS this fails, as config.log is still kept open
13693# by configure, so config.status won't be able to write to it; its
13694# output is simply discarded.  So we exec the FD to /dev/null,
13695# effectively closing config.log, so it can be properly (re)opened and
13696# appended to by config.status.  When coming back to configure, we
13697# need to make the FD available again.
13698if test "$no_create" != yes; then
13699  ac_cs_success=:
13700  ac_config_status_args=
13701  test "$silent" = yes &&
13702    ac_config_status_args="$ac_config_status_args --quiet"
13703  exec 5>/dev/null
13704  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13705  exec 5>>config.log
13706  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13707  # would make configure fail if this is the last instruction.
13708  $ac_cs_success || as_fn_exit 1
13709fi
13710if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13711  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13712$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13713fi
13714
13715