configure revision 5eeb4e8f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xorg-docs 1.7.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560as_awk_strverscmp='
561  # Use only awk features that work with 7th edition Unix awk (1978).
562  # My, what an old awk you have, Mr. Solaris!
563  END {
564    while (length(v1) && length(v2)) {
565      # Set d1 to be the next thing to compare from v1, and likewise for d2.
566      # Normally this is a single character, but if v1 and v2 contain digits,
567      # compare them as integers and fractions as strverscmp does.
568      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
569	# Split v1 and v2 into their leading digit string components d1 and d2,
570	# and advance v1 and v2 past the leading digit strings.
571	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
572	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
573	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
574	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
575	if (d1 ~ /^0/) {
576	  if (d2 ~ /^0/) {
577	    # Compare two fractions.
578	    while (d1 ~ /^0/ && d2 ~ /^0/) {
579	      d1 = substr(d1, 2); len1--
580	      d2 = substr(d2, 2); len2--
581	    }
582	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
583	      # The two components differ in length, and the common prefix
584	      # contains only leading zeros.  Consider the longer to be less.
585	      d1 = -len1
586	      d2 = -len2
587	    } else {
588	      # Otherwise, compare as strings.
589	      d1 = "x" d1
590	      d2 = "x" d2
591	    }
592	  } else {
593	    # A fraction is less than an integer.
594	    exit 1
595	  }
596	} else {
597	  if (d2 ~ /^0/) {
598	    # An integer is greater than a fraction.
599	    exit 2
600	  } else {
601	    # Compare two integers.
602	    d1 += 0
603	    d2 += 0
604	  }
605	}
606      } else {
607	# The normal case, without worrying about digits.
608	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
609	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
610      }
611      if (d1 < d2) exit 1
612      if (d1 > d2) exit 2
613    }
614    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
615    # which mishandles some comparisons of empty strings to integers.
616    if (length(v2)) exit 1
617    if (length(v1)) exit 2
618  }
619'
620
621test -n "$DJDIR" || exec 7<&0 </dev/null
622exec 6>&1
623
624# Name of the host.
625# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
626# so uname gets run too.
627ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
628
629#
630# Initializations.
631#
632ac_default_prefix=/usr/local
633ac_clean_files=
634ac_config_libobj_dir=.
635LIBOBJS=
636cross_compiling=no
637subdirs=
638MFLAGS=
639MAKEFLAGS=
640
641# Identity of this package.
642PACKAGE_NAME='xorg-docs'
643PACKAGE_TARNAME='xorg-docs'
644PACKAGE_VERSION='1.7.1'
645PACKAGE_STRING='xorg-docs 1.7.1'
646PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
647PACKAGE_URL=''
648
649ac_unique_file="Makefile.am"
650# Factoring default headers for most tests.
651ac_includes_default="\
652#include <stdio.h>
653#ifdef HAVE_SYS_TYPES_H
654# include <sys/types.h>
655#endif
656#ifdef HAVE_SYS_STAT_H
657# include <sys/stat.h>
658#endif
659#ifdef STDC_HEADERS
660# include <stdlib.h>
661# include <stddef.h>
662#else
663# ifdef HAVE_STDLIB_H
664#  include <stdlib.h>
665# endif
666#endif
667#ifdef HAVE_STRING_H
668# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
669#  include <memory.h>
670# endif
671# include <string.h>
672#endif
673#ifdef HAVE_STRINGS_H
674# include <strings.h>
675#endif
676#ifdef HAVE_INTTYPES_H
677# include <inttypes.h>
678#endif
679#ifdef HAVE_STDINT_H
680# include <stdint.h>
681#endif
682#ifdef HAVE_UNISTD_H
683# include <unistd.h>
684#endif"
685
686ac_subst_vars='am__EXEEXT_FALSE
687am__EXEEXT_TRUE
688LTLIBOBJS
689LIBOBJS
690HAVE_STYLESHEETS_FALSE
691HAVE_STYLESHEETS_TRUE
692XSL_STYLESHEET
693STYLESHEET_SRCDIR
694XORG_SGML_PATH
695HAVE_FOP_FALSE
696HAVE_FOP_TRUE
697FOP
698HAVE_XSLTPROC_FALSE
699HAVE_XSLTPROC_TRUE
700XSLTPROC
701HAVE_XMLTO_FALSE
702HAVE_XMLTO_TRUE
703HAVE_XMLTO_TEXT_FALSE
704HAVE_XMLTO_TEXT_TRUE
705XMLTO
706ENABLE_SPECS_FALSE
707ENABLE_SPECS_TRUE
708ENABLE_DOCS_FALSE
709ENABLE_DOCS_TRUE
710MAN_SUBSTS
711XORG_MAN_PAGE
712ADMIN_MAN_DIR
713DRIVER_MAN_DIR
714MISC_MAN_DIR
715FILE_MAN_DIR
716LIB_MAN_DIR
717APP_MAN_DIR
718ADMIN_MAN_SUFFIX
719DRIVER_MAN_SUFFIX
720MISC_MAN_SUFFIX
721FILE_MAN_SUFFIX
722LIB_MAN_SUFFIX
723APP_MAN_SUFFIX
724SED
725host_os
726host_vendor
727host_cpu
728host
729build_os
730build_vendor
731build_cpu
732build
733INSTALL_CMD
734PKG_CONFIG
735CHANGELOG_CMD
736STRICT_CFLAGS
737CWARNFLAGS
738BASE_CFLAGS
739EGREP
740GREP
741CPP
742am__fastdepCC_FALSE
743am__fastdepCC_TRUE
744CCDEPMODE
745am__nodep
746AMDEPBACKSLASH
747AMDEP_FALSE
748AMDEP_TRUE
749am__quote
750am__include
751DEPDIR
752OBJEXT
753EXEEXT
754ac_ct_CC
755CPPFLAGS
756LDFLAGS
757CFLAGS
758CC
759AM_BACKSLASH
760AM_DEFAULT_VERBOSITY
761AM_DEFAULT_V
762AM_V
763am__untar
764am__tar
765AMTAR
766am__leading_dot
767SET_MAKE
768AWK
769mkdir_p
770MKDIR_P
771INSTALL_STRIP_PROGRAM
772STRIP
773install_sh
774MAKEINFO
775AUTOHEADER
776AUTOMAKE
777AUTOCONF
778ACLOCAL
779VERSION
780PACKAGE
781CYGPATH_W
782am__isrc
783INSTALL_DATA
784INSTALL_SCRIPT
785INSTALL_PROGRAM
786target_alias
787host_alias
788build_alias
789LIBS
790ECHO_T
791ECHO_N
792ECHO_C
793DEFS
794mandir
795localedir
796libdir
797psdir
798pdfdir
799dvidir
800htmldir
801infodir
802docdir
803oldincludedir
804includedir
805localstatedir
806sharedstatedir
807sysconfdir
808datadir
809datarootdir
810libexecdir
811sbindir
812bindir
813program_transform_name
814prefix
815exec_prefix
816PACKAGE_URL
817PACKAGE_BUGREPORT
818PACKAGE_STRING
819PACKAGE_VERSION
820PACKAGE_TARNAME
821PACKAGE_NAME
822PATH_SEPARATOR
823SHELL'
824ac_subst_files=''
825ac_user_opts='
826enable_option_checking
827enable_silent_rules
828enable_dependency_tracking
829enable_selective_werror
830enable_strict_compilation
831enable_docs
832enable_specs
833with_xmlto
834with_xsltproc
835with_fop
836'
837      ac_precious_vars='build_alias
838host_alias
839target_alias
840CC
841CFLAGS
842LDFLAGS
843LIBS
844CPPFLAGS
845CPP
846PKG_CONFIG
847XMLTO
848XSLTPROC
849FOP'
850
851
852# Initialize some variables set by options.
853ac_init_help=
854ac_init_version=false
855ac_unrecognized_opts=
856ac_unrecognized_sep=
857# The variables have the same names as the options, with
858# dashes changed to underlines.
859cache_file=/dev/null
860exec_prefix=NONE
861no_create=
862no_recursion=
863prefix=NONE
864program_prefix=NONE
865program_suffix=NONE
866program_transform_name=s,x,x,
867silent=
868site=
869srcdir=
870verbose=
871x_includes=NONE
872x_libraries=NONE
873
874# Installation directory options.
875# These are left unexpanded so users can "make install exec_prefix=/foo"
876# and all the variables that are supposed to be based on exec_prefix
877# by default will actually change.
878# Use braces instead of parens because sh, perl, etc. also accept them.
879# (The list follows the same order as the GNU Coding Standards.)
880bindir='${exec_prefix}/bin'
881sbindir='${exec_prefix}/sbin'
882libexecdir='${exec_prefix}/libexec'
883datarootdir='${prefix}/share'
884datadir='${datarootdir}'
885sysconfdir='${prefix}/etc'
886sharedstatedir='${prefix}/com'
887localstatedir='${prefix}/var'
888includedir='${prefix}/include'
889oldincludedir='/usr/include'
890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891infodir='${datarootdir}/info'
892htmldir='${docdir}'
893dvidir='${docdir}'
894pdfdir='${docdir}'
895psdir='${docdir}'
896libdir='${exec_prefix}/lib'
897localedir='${datarootdir}/locale'
898mandir='${datarootdir}/man'
899
900ac_prev=
901ac_dashdash=
902for ac_option
903do
904  # If the previous option needs an argument, assign it.
905  if test -n "$ac_prev"; then
906    eval $ac_prev=\$ac_option
907    ac_prev=
908    continue
909  fi
910
911  case $ac_option in
912  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913  *=)   ac_optarg= ;;
914  *)    ac_optarg=yes ;;
915  esac
916
917  # Accept the important Cygnus configure options, so we can diagnose typos.
918
919  case $ac_dashdash$ac_option in
920  --)
921    ac_dashdash=yes ;;
922
923  -bindir | --bindir | --bindi | --bind | --bin | --bi)
924    ac_prev=bindir ;;
925  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926    bindir=$ac_optarg ;;
927
928  -build | --build | --buil | --bui | --bu)
929    ac_prev=build_alias ;;
930  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931    build_alias=$ac_optarg ;;
932
933  -cache-file | --cache-file | --cache-fil | --cache-fi \
934  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935    ac_prev=cache_file ;;
936  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938    cache_file=$ac_optarg ;;
939
940  --config-cache | -C)
941    cache_file=config.cache ;;
942
943  -datadir | --datadir | --datadi | --datad)
944    ac_prev=datadir ;;
945  -datadir=* | --datadir=* | --datadi=* | --datad=*)
946    datadir=$ac_optarg ;;
947
948  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949  | --dataroo | --dataro | --datar)
950    ac_prev=datarootdir ;;
951  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953    datarootdir=$ac_optarg ;;
954
955  -disable-* | --disable-*)
956    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957    # Reject names that are not valid shell variable names.
958    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959      as_fn_error $? "invalid feature name: $ac_useropt"
960    ac_useropt_orig=$ac_useropt
961    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962    case $ac_user_opts in
963      *"
964"enable_$ac_useropt"
965"*) ;;
966      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967	 ac_unrecognized_sep=', ';;
968    esac
969    eval enable_$ac_useropt=no ;;
970
971  -docdir | --docdir | --docdi | --doc | --do)
972    ac_prev=docdir ;;
973  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974    docdir=$ac_optarg ;;
975
976  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977    ac_prev=dvidir ;;
978  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979    dvidir=$ac_optarg ;;
980
981  -enable-* | --enable-*)
982    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983    # Reject names that are not valid shell variable names.
984    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985      as_fn_error $? "invalid feature name: $ac_useropt"
986    ac_useropt_orig=$ac_useropt
987    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988    case $ac_user_opts in
989      *"
990"enable_$ac_useropt"
991"*) ;;
992      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993	 ac_unrecognized_sep=', ';;
994    esac
995    eval enable_$ac_useropt=\$ac_optarg ;;
996
997  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999  | --exec | --exe | --ex)
1000    ac_prev=exec_prefix ;;
1001  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003  | --exec=* | --exe=* | --ex=*)
1004    exec_prefix=$ac_optarg ;;
1005
1006  -gas | --gas | --ga | --g)
1007    # Obsolete; use --with-gas.
1008    with_gas=yes ;;
1009
1010  -help | --help | --hel | --he | -h)
1011    ac_init_help=long ;;
1012  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013    ac_init_help=recursive ;;
1014  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015    ac_init_help=short ;;
1016
1017  -host | --host | --hos | --ho)
1018    ac_prev=host_alias ;;
1019  -host=* | --host=* | --hos=* | --ho=*)
1020    host_alias=$ac_optarg ;;
1021
1022  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023    ac_prev=htmldir ;;
1024  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025  | --ht=*)
1026    htmldir=$ac_optarg ;;
1027
1028  -includedir | --includedir | --includedi | --included | --include \
1029  | --includ | --inclu | --incl | --inc)
1030    ac_prev=includedir ;;
1031  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032  | --includ=* | --inclu=* | --incl=* | --inc=*)
1033    includedir=$ac_optarg ;;
1034
1035  -infodir | --infodir | --infodi | --infod | --info | --inf)
1036    ac_prev=infodir ;;
1037  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038    infodir=$ac_optarg ;;
1039
1040  -libdir | --libdir | --libdi | --libd)
1041    ac_prev=libdir ;;
1042  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043    libdir=$ac_optarg ;;
1044
1045  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046  | --libexe | --libex | --libe)
1047    ac_prev=libexecdir ;;
1048  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049  | --libexe=* | --libex=* | --libe=*)
1050    libexecdir=$ac_optarg ;;
1051
1052  -localedir | --localedir | --localedi | --localed | --locale)
1053    ac_prev=localedir ;;
1054  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055    localedir=$ac_optarg ;;
1056
1057  -localstatedir | --localstatedir | --localstatedi | --localstated \
1058  | --localstate | --localstat | --localsta | --localst | --locals)
1059    ac_prev=localstatedir ;;
1060  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062    localstatedir=$ac_optarg ;;
1063
1064  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065    ac_prev=mandir ;;
1066  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067    mandir=$ac_optarg ;;
1068
1069  -nfp | --nfp | --nf)
1070    # Obsolete; use --without-fp.
1071    with_fp=no ;;
1072
1073  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074  | --no-cr | --no-c | -n)
1075    no_create=yes ;;
1076
1077  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079    no_recursion=yes ;;
1080
1081  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083  | --oldin | --oldi | --old | --ol | --o)
1084    ac_prev=oldincludedir ;;
1085  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088    oldincludedir=$ac_optarg ;;
1089
1090  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091    ac_prev=prefix ;;
1092  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093    prefix=$ac_optarg ;;
1094
1095  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096  | --program-pre | --program-pr | --program-p)
1097    ac_prev=program_prefix ;;
1098  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100    program_prefix=$ac_optarg ;;
1101
1102  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103  | --program-suf | --program-su | --program-s)
1104    ac_prev=program_suffix ;;
1105  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107    program_suffix=$ac_optarg ;;
1108
1109  -program-transform-name | --program-transform-name \
1110  | --program-transform-nam | --program-transform-na \
1111  | --program-transform-n | --program-transform- \
1112  | --program-transform | --program-transfor \
1113  | --program-transfo | --program-transf \
1114  | --program-trans | --program-tran \
1115  | --progr-tra | --program-tr | --program-t)
1116    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1125
1126  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127    ac_prev=pdfdir ;;
1128  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129    pdfdir=$ac_optarg ;;
1130
1131  -psdir | --psdir | --psdi | --psd | --ps)
1132    ac_prev=psdir ;;
1133  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134    psdir=$ac_optarg ;;
1135
1136  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137  | -silent | --silent | --silen | --sile | --sil)
1138    silent=yes ;;
1139
1140  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141    ac_prev=sbindir ;;
1142  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143  | --sbi=* | --sb=*)
1144    sbindir=$ac_optarg ;;
1145
1146  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148  | --sharedst | --shareds | --shared | --share | --shar \
1149  | --sha | --sh)
1150    ac_prev=sharedstatedir ;;
1151  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154  | --sha=* | --sh=*)
1155    sharedstatedir=$ac_optarg ;;
1156
1157  -site | --site | --sit)
1158    ac_prev=site ;;
1159  -site=* | --site=* | --sit=*)
1160    site=$ac_optarg ;;
1161
1162  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163    ac_prev=srcdir ;;
1164  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165    srcdir=$ac_optarg ;;
1166
1167  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168  | --syscon | --sysco | --sysc | --sys | --sy)
1169    ac_prev=sysconfdir ;;
1170  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172    sysconfdir=$ac_optarg ;;
1173
1174  -target | --target | --targe | --targ | --tar | --ta | --t)
1175    ac_prev=target_alias ;;
1176  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177    target_alias=$ac_optarg ;;
1178
1179  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180    verbose=yes ;;
1181
1182  -version | --version | --versio | --versi | --vers | -V)
1183    ac_init_version=: ;;
1184
1185  -with-* | --with-*)
1186    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187    # Reject names that are not valid shell variable names.
1188    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189      as_fn_error $? "invalid package name: $ac_useropt"
1190    ac_useropt_orig=$ac_useropt
1191    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192    case $ac_user_opts in
1193      *"
1194"with_$ac_useropt"
1195"*) ;;
1196      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197	 ac_unrecognized_sep=', ';;
1198    esac
1199    eval with_$ac_useropt=\$ac_optarg ;;
1200
1201  -without-* | --without-*)
1202    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203    # Reject names that are not valid shell variable names.
1204    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205      as_fn_error $? "invalid package name: $ac_useropt"
1206    ac_useropt_orig=$ac_useropt
1207    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208    case $ac_user_opts in
1209      *"
1210"with_$ac_useropt"
1211"*) ;;
1212      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213	 ac_unrecognized_sep=', ';;
1214    esac
1215    eval with_$ac_useropt=no ;;
1216
1217  --x)
1218    # Obsolete; use --with-x.
1219    with_x=yes ;;
1220
1221  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222  | --x-incl | --x-inc | --x-in | --x-i)
1223    ac_prev=x_includes ;;
1224  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226    x_includes=$ac_optarg ;;
1227
1228  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230    ac_prev=x_libraries ;;
1231  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233    x_libraries=$ac_optarg ;;
1234
1235  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236Try \`$0 --help' for more information"
1237    ;;
1238
1239  *=*)
1240    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241    # Reject names that are not valid shell variable names.
1242    case $ac_envvar in #(
1243      '' | [0-9]* | *[!_$as_cr_alnum]* )
1244      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1245    esac
1246    eval $ac_envvar=\$ac_optarg
1247    export $ac_envvar ;;
1248
1249  *)
1250    # FIXME: should be removed in autoconf 3.0.
1251    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255    ;;
1256
1257  esac
1258done
1259
1260if test -n "$ac_prev"; then
1261  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262  as_fn_error $? "missing argument to $ac_option"
1263fi
1264
1265if test -n "$ac_unrecognized_opts"; then
1266  case $enable_option_checking in
1267    no) ;;
1268    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270  esac
1271fi
1272
1273# Check all directory arguments for consistency.
1274for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275		datadir sysconfdir sharedstatedir localstatedir includedir \
1276		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277		libdir localedir mandir
1278do
1279  eval ac_val=\$$ac_var
1280  # Remove trailing slashes.
1281  case $ac_val in
1282    */ )
1283      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284      eval $ac_var=\$ac_val;;
1285  esac
1286  # Be sure to have absolute directory names.
1287  case $ac_val in
1288    [\\/$]* | ?:[\\/]* )  continue;;
1289    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290  esac
1291  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303  if test "x$build_alias" = x; then
1304    cross_compiling=maybe
1305  elif test "x$build_alias" != "x$host_alias"; then
1306    cross_compiling=yes
1307  fi
1308fi
1309
1310ac_tool_prefix=
1311test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313test "$silent" = yes && exec 6>/dev/null
1314
1315
1316ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317ac_ls_di=`ls -di .` &&
1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319  as_fn_error $? "working directory cannot be determined"
1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321  as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324# Find the source files, if location was not specified.
1325if test -z "$srcdir"; then
1326  ac_srcdir_defaulted=yes
1327  # Try the directory containing this script, then the parent directory.
1328  ac_confdir=`$as_dirname -- "$as_myself" ||
1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330	 X"$as_myself" : 'X\(//\)[^/]' \| \
1331	 X"$as_myself" : 'X\(//\)$' \| \
1332	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333$as_echo X"$as_myself" |
1334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\/\)[^/].*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\/\)$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\).*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  s/.*/./; q'`
1351  srcdir=$ac_confdir
1352  if test ! -r "$srcdir/$ac_unique_file"; then
1353    srcdir=..
1354  fi
1355else
1356  ac_srcdir_defaulted=no
1357fi
1358if test ! -r "$srcdir/$ac_unique_file"; then
1359  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361fi
1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363ac_abs_confdir=`(
1364	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365	pwd)`
1366# When building in place, set srcdir=.
1367if test "$ac_abs_confdir" = "$ac_pwd"; then
1368  srcdir=.
1369fi
1370# Remove unnecessary trailing slashes from srcdir.
1371# Double slashes in file names in object file debugging info
1372# mess up M-x gdb in Emacs.
1373case $srcdir in
1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375esac
1376for ac_var in $ac_precious_vars; do
1377  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378  eval ac_env_${ac_var}_value=\$${ac_var}
1379  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387  # Omit some internal or obsolete options to make the list less imposing.
1388  # This message is too long to be a string in the A/UX 3.1 sh.
1389  cat <<_ACEOF
1390\`configure' configures xorg-docs 1.7.1 to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE.  See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400  -h, --help              display this help and exit
1401      --help=short        display options specific to this package
1402      --help=recursive    display the short help of all the included packages
1403  -V, --version           display version information and exit
1404  -q, --quiet, --silent   do not print \`checking ...' messages
1405      --cache-file=FILE   cache test results in FILE [disabled]
1406  -C, --config-cache      alias for \`--cache-file=config.cache'
1407  -n, --no-create         do not create output files
1408      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1409
1410Installation directories:
1411  --prefix=PREFIX         install architecture-independent files in PREFIX
1412                          [$ac_default_prefix]
1413  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1414                          [PREFIX]
1415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
1424  --bindir=DIR            user executables [EPREFIX/bin]
1425  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1426  --libexecdir=DIR        program executables [EPREFIX/libexec]
1427  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1428  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1429  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1430  --libdir=DIR            object code libraries [EPREFIX/lib]
1431  --includedir=DIR        C header files [PREFIX/include]
1432  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1433  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1434  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1435  --infodir=DIR           info documentation [DATAROOTDIR/info]
1436  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1437  --mandir=DIR            man documentation [DATAROOTDIR/man]
1438  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorg-docs]
1439  --htmldir=DIR           html documentation [DOCDIR]
1440  --dvidir=DIR            dvi documentation [DOCDIR]
1441  --pdfdir=DIR            pdf documentation [DOCDIR]
1442  --psdir=DIR             ps documentation [DOCDIR]
1443_ACEOF
1444
1445  cat <<\_ACEOF
1446
1447Program names:
1448  --program-prefix=PREFIX            prepend PREFIX to installed program names
1449  --program-suffix=SUFFIX            append SUFFIX to installed program names
1450  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1451
1452System types:
1453  --build=BUILD     configure for building on BUILD [guessed]
1454  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1455_ACEOF
1456fi
1457
1458if test -n "$ac_init_help"; then
1459  case $ac_init_help in
1460     short | recursive ) echo "Configuration of xorg-docs 1.7.1:";;
1461   esac
1462  cat <<\_ACEOF
1463
1464Optional Features:
1465  --disable-option-checking  ignore unrecognized --enable/--with options
1466  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1467  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1468  --enable-silent-rules   less verbose build output (undo: "make V=1")
1469  --disable-silent-rules  verbose build output (undo: "make V=0")
1470  --enable-dependency-tracking
1471                          do not reject slow dependency extractors
1472  --disable-dependency-tracking
1473                          speeds up one-time build
1474  --disable-selective-werror
1475                          Turn off selective compiler errors. (default:
1476                          enabled)
1477  --enable-strict-compilation
1478                          Enable all warnings from compiler and make them
1479                          errors (default: disabled)
1480  --enable-docs           Enable building the documentation (default: yes)
1481  --enable-specs          Enable building the specs (default: yes)
1482
1483Optional Packages:
1484  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1485  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1486  --with-xmlto            Use xmlto to regenerate documentation (default:
1487                          auto)
1488  --with-xsltproc         Use xsltproc for the transformation of XML documents
1489                          (default: auto)
1490  --with-fop              Use fop to regenerate documentation (default: auto)
1491
1492Some influential environment variables:
1493  CC          C compiler command
1494  CFLAGS      C compiler flags
1495  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496              nonstandard directory <lib dir>
1497  LIBS        libraries to pass to the linker, e.g. -l<library>
1498  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499              you have headers in a nonstandard directory <include dir>
1500  CPP         C preprocessor
1501  PKG_CONFIG  path to pkg-config utility
1502  XMLTO       Path to xmlto command
1503  XSLTPROC    Path to xsltproc command
1504  FOP         Path to fop command
1505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
1509Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1510_ACEOF
1511ac_status=$?
1512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515  # If there are subdirs, report their specific --help.
1516  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517    test -d "$ac_dir" ||
1518      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519      continue
1520    ac_builddir=.
1521
1522case "$ac_dir" in
1523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524*)
1525  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526  # A ".." for each directory in $ac_dir_suffix.
1527  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528  case $ac_top_builddir_sub in
1529  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531  esac ;;
1532esac
1533ac_abs_top_builddir=$ac_pwd
1534ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535# for backward compatibility:
1536ac_top_builddir=$ac_top_build_prefix
1537
1538case $srcdir in
1539  .)  # We are building in place.
1540    ac_srcdir=.
1541    ac_top_srcdir=$ac_top_builddir_sub
1542    ac_abs_top_srcdir=$ac_pwd ;;
1543  [\\/]* | ?:[\\/]* )  # Absolute name.
1544    ac_srcdir=$srcdir$ac_dir_suffix;
1545    ac_top_srcdir=$srcdir
1546    ac_abs_top_srcdir=$srcdir ;;
1547  *) # Relative name.
1548    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549    ac_top_srcdir=$ac_top_build_prefix$srcdir
1550    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551esac
1552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554    cd "$ac_dir" || { ac_status=$?; continue; }
1555    # Check for guested configure.
1556    if test -f "$ac_srcdir/configure.gnu"; then
1557      echo &&
1558      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559    elif test -f "$ac_srcdir/configure"; then
1560      echo &&
1561      $SHELL "$ac_srcdir/configure" --help=recursive
1562    else
1563      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564    fi || ac_status=$?
1565    cd "$ac_pwd" || { ac_status=$?; break; }
1566  done
1567fi
1568
1569test -n "$ac_init_help" && exit $ac_status
1570if $ac_init_version; then
1571  cat <<\_ACEOF
1572xorg-docs configure 1.7.1
1573generated by GNU Autoconf 2.69
1574
1575Copyright (C) 2012 Free Software Foundation, Inc.
1576This configure script is free software; the Free Software Foundation
1577gives unlimited permission to copy, distribute and modify it.
1578_ACEOF
1579  exit
1580fi
1581
1582## ------------------------ ##
1583## Autoconf initialization. ##
1584## ------------------------ ##
1585
1586# ac_fn_c_try_compile LINENO
1587# --------------------------
1588# Try to compile conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_c_try_compile ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  rm -f conftest.$ac_objext
1593  if { { ac_try="$ac_compile"
1594case "(($ac_try" in
1595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596  *) ac_try_echo=$ac_try;;
1597esac
1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599$as_echo "$ac_try_echo"; } >&5
1600  (eval "$ac_compile") 2>conftest.err
1601  ac_status=$?
1602  if test -s conftest.err; then
1603    grep -v '^ *+' conftest.err >conftest.er1
1604    cat conftest.er1 >&5
1605    mv -f conftest.er1 conftest.err
1606  fi
1607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608  test $ac_status = 0; } && {
1609	 test -z "$ac_c_werror_flag" ||
1610	 test ! -s conftest.err
1611       } && test -s conftest.$ac_objext; then :
1612  ac_retval=0
1613else
1614  $as_echo "$as_me: failed program was:" >&5
1615sed 's/^/| /' conftest.$ac_ext >&5
1616
1617	ac_retval=1
1618fi
1619  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620  as_fn_set_status $ac_retval
1621
1622} # ac_fn_c_try_compile
1623
1624# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1625# ---------------------------------------------
1626# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1627# accordingly.
1628ac_fn_c_check_decl ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  as_decl_name=`echo $2|sed 's/ *(.*//'`
1632  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1634$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1635if eval \${$3+:} false; then :
1636  $as_echo_n "(cached) " >&6
1637else
1638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h.  */
1640$4
1641int
1642main ()
1643{
1644#ifndef $as_decl_name
1645#ifdef __cplusplus
1646  (void) $as_decl_use;
1647#else
1648  (void) $as_decl_name;
1649#endif
1650#endif
1651
1652  ;
1653  return 0;
1654}
1655_ACEOF
1656if ac_fn_c_try_compile "$LINENO"; then :
1657  eval "$3=yes"
1658else
1659  eval "$3=no"
1660fi
1661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662fi
1663eval ac_res=\$$3
1664	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665$as_echo "$ac_res" >&6; }
1666  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668} # ac_fn_c_check_decl
1669
1670# ac_fn_c_try_cpp LINENO
1671# ----------------------
1672# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_cpp ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  if { { ac_try="$ac_cpp conftest.$ac_ext"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684  ac_status=$?
1685  if test -s conftest.err; then
1686    grep -v '^ *+' conftest.err >conftest.er1
1687    cat conftest.er1 >&5
1688    mv -f conftest.er1 conftest.err
1689  fi
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } > conftest.i && {
1692	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693	 test ! -s conftest.err
1694       }; then :
1695  ac_retval=0
1696else
1697  $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700    ac_retval=1
1701fi
1702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703  as_fn_set_status $ac_retval
1704
1705} # ac_fn_c_try_cpp
1706
1707# ac_fn_c_try_run LINENO
1708# ----------------------
1709# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710# that executables *can* be run.
1711ac_fn_c_try_run ()
1712{
1713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714  if { { ac_try="$ac_link"
1715case "(($ac_try" in
1716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717  *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721  (eval "$ac_link") 2>&5
1722  ac_status=$?
1723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725  { { case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731  (eval "$ac_try") 2>&5
1732  ac_status=$?
1733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734  test $ac_status = 0; }; }; then :
1735  ac_retval=0
1736else
1737  $as_echo "$as_me: program exited with status $ac_status" >&5
1738       $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741       ac_retval=$ac_status
1742fi
1743  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745  as_fn_set_status $ac_retval
1746
1747} # ac_fn_c_try_run
1748
1749# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750# -------------------------------------------------------
1751# Tests whether HEADER exists and can be compiled using the include files in
1752# INCLUDES, setting the cache variable VAR accordingly.
1753ac_fn_c_check_header_compile ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval \${$3+:} false; then :
1759  $as_echo_n "(cached) " >&6
1760else
1761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h.  */
1763$4
1764#include <$2>
1765_ACEOF
1766if ac_fn_c_try_compile "$LINENO"; then :
1767  eval "$3=yes"
1768else
1769  eval "$3=no"
1770fi
1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772fi
1773eval ac_res=\$$3
1774	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775$as_echo "$ac_res" >&6; }
1776  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778} # ac_fn_c_check_header_compile
1779
1780# ac_fn_c_try_link LINENO
1781# -----------------------
1782# Try to link conftest.$ac_ext, and return whether this succeeded.
1783ac_fn_c_try_link ()
1784{
1785  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786  rm -f conftest.$ac_objext conftest$ac_exeext
1787  if { { ac_try="$ac_link"
1788case "(($ac_try" in
1789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790  *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794  (eval "$ac_link") 2>conftest.err
1795  ac_status=$?
1796  if test -s conftest.err; then
1797    grep -v '^ *+' conftest.err >conftest.er1
1798    cat conftest.er1 >&5
1799    mv -f conftest.er1 conftest.err
1800  fi
1801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802  test $ac_status = 0; } && {
1803	 test -z "$ac_c_werror_flag" ||
1804	 test ! -s conftest.err
1805       } && test -s conftest$ac_exeext && {
1806	 test "$cross_compiling" = yes ||
1807	 test -x conftest$ac_exeext
1808       }; then :
1809  ac_retval=0
1810else
1811  $as_echo "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814	ac_retval=1
1815fi
1816  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818  # interfere with the next link command; also delete a directory that is
1819  # left behind by Apple's compiler.  We do this before executing the actions.
1820  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822  as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_link
1825cat >config.log <<_ACEOF
1826This file contains any messages produced by compilers while
1827running configure, to aid debugging if configure makes a mistake.
1828
1829It was created by xorg-docs $as_me 1.7.1, which was
1830generated by GNU Autoconf 2.69.  Invocation command line was
1831
1832  $ $0 $@
1833
1834_ACEOF
1835exec 5>>config.log
1836{
1837cat <<_ASUNAME
1838## --------- ##
1839## Platform. ##
1840## --------- ##
1841
1842hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1843uname -m = `(uname -m) 2>/dev/null || echo unknown`
1844uname -r = `(uname -r) 2>/dev/null || echo unknown`
1845uname -s = `(uname -s) 2>/dev/null || echo unknown`
1846uname -v = `(uname -v) 2>/dev/null || echo unknown`
1847
1848/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1849/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1850
1851/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1852/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1853/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1854/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1855/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1856/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1857/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1858
1859_ASUNAME
1860
1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862for as_dir in $PATH
1863do
1864  IFS=$as_save_IFS
1865  test -z "$as_dir" && as_dir=.
1866    $as_echo "PATH: $as_dir"
1867  done
1868IFS=$as_save_IFS
1869
1870} >&5
1871
1872cat >&5 <<_ACEOF
1873
1874
1875## ----------- ##
1876## Core tests. ##
1877## ----------- ##
1878
1879_ACEOF
1880
1881
1882# Keep a trace of the command line.
1883# Strip out --no-create and --no-recursion so they do not pile up.
1884# Strip out --silent because we don't want to record it for future runs.
1885# Also quote any args containing shell meta-characters.
1886# Make two passes to allow for proper duplicate-argument suppression.
1887ac_configure_args=
1888ac_configure_args0=
1889ac_configure_args1=
1890ac_must_keep_next=false
1891for ac_pass in 1 2
1892do
1893  for ac_arg
1894  do
1895    case $ac_arg in
1896    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1897    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1898    | -silent | --silent | --silen | --sile | --sil)
1899      continue ;;
1900    *\'*)
1901      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1902    esac
1903    case $ac_pass in
1904    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1905    2)
1906      as_fn_append ac_configure_args1 " '$ac_arg'"
1907      if test $ac_must_keep_next = true; then
1908	ac_must_keep_next=false # Got value, back to normal.
1909      else
1910	case $ac_arg in
1911	  *=* | --config-cache | -C | -disable-* | --disable-* \
1912	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1913	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1914	  | -with-* | --with-* | -without-* | --without-* | --x)
1915	    case "$ac_configure_args0 " in
1916	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1917	    esac
1918	    ;;
1919	  -* ) ac_must_keep_next=true ;;
1920	esac
1921      fi
1922      as_fn_append ac_configure_args " '$ac_arg'"
1923      ;;
1924    esac
1925  done
1926done
1927{ ac_configure_args0=; unset ac_configure_args0;}
1928{ ac_configure_args1=; unset ac_configure_args1;}
1929
1930# When interrupted or exit'd, cleanup temporary files, and complete
1931# config.log.  We remove comments because anyway the quotes in there
1932# would cause problems or look ugly.
1933# WARNING: Use '\'' to represent an apostrophe within the trap.
1934# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1935trap 'exit_status=$?
1936  # Save into config.log some information that might help in debugging.
1937  {
1938    echo
1939
1940    $as_echo "## ---------------- ##
1941## Cache variables. ##
1942## ---------------- ##"
1943    echo
1944    # The following way of writing the cache mishandles newlines in values,
1945(
1946  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947    eval ac_val=\$$ac_var
1948    case $ac_val in #(
1949    *${as_nl}*)
1950      case $ac_var in #(
1951      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953      esac
1954      case $ac_var in #(
1955      _ | IFS | as_nl) ;; #(
1956      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957      *) { eval $ac_var=; unset $ac_var;} ;;
1958      esac ;;
1959    esac
1960  done
1961  (set) 2>&1 |
1962    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963    *${as_nl}ac_space=\ *)
1964      sed -n \
1965	"s/'\''/'\''\\\\'\'''\''/g;
1966	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967      ;; #(
1968    *)
1969      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1970      ;;
1971    esac |
1972    sort
1973)
1974    echo
1975
1976    $as_echo "## ----------------- ##
1977## Output variables. ##
1978## ----------------- ##"
1979    echo
1980    for ac_var in $ac_subst_vars
1981    do
1982      eval ac_val=\$$ac_var
1983      case $ac_val in
1984      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985      esac
1986      $as_echo "$ac_var='\''$ac_val'\''"
1987    done | sort
1988    echo
1989
1990    if test -n "$ac_subst_files"; then
1991      $as_echo "## ------------------- ##
1992## File substitutions. ##
1993## ------------------- ##"
1994      echo
1995      for ac_var in $ac_subst_files
1996      do
1997	eval ac_val=\$$ac_var
1998	case $ac_val in
1999	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000	esac
2001	$as_echo "$ac_var='\''$ac_val'\''"
2002      done | sort
2003      echo
2004    fi
2005
2006    if test -s confdefs.h; then
2007      $as_echo "## ----------- ##
2008## confdefs.h. ##
2009## ----------- ##"
2010      echo
2011      cat confdefs.h
2012      echo
2013    fi
2014    test "$ac_signal" != 0 &&
2015      $as_echo "$as_me: caught signal $ac_signal"
2016    $as_echo "$as_me: exit $exit_status"
2017  } >&5
2018  rm -f core *.core core.conftest.* &&
2019    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020    exit $exit_status
2021' 0
2022for ac_signal in 1 2 13 15; do
2023  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2024done
2025ac_signal=0
2026
2027# confdefs.h avoids OS command line length limits that DEFS can exceed.
2028rm -f -r conftest* confdefs.h
2029
2030$as_echo "/* confdefs.h */" > confdefs.h
2031
2032# Predefined preprocessor variables.
2033
2034cat >>confdefs.h <<_ACEOF
2035#define PACKAGE_NAME "$PACKAGE_NAME"
2036_ACEOF
2037
2038cat >>confdefs.h <<_ACEOF
2039#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2040_ACEOF
2041
2042cat >>confdefs.h <<_ACEOF
2043#define PACKAGE_VERSION "$PACKAGE_VERSION"
2044_ACEOF
2045
2046cat >>confdefs.h <<_ACEOF
2047#define PACKAGE_STRING "$PACKAGE_STRING"
2048_ACEOF
2049
2050cat >>confdefs.h <<_ACEOF
2051#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2052_ACEOF
2053
2054cat >>confdefs.h <<_ACEOF
2055#define PACKAGE_URL "$PACKAGE_URL"
2056_ACEOF
2057
2058
2059# Let the site file select an alternate cache file if it wants to.
2060# Prefer an explicitly selected file to automatically selected ones.
2061ac_site_file1=NONE
2062ac_site_file2=NONE
2063if test -n "$CONFIG_SITE"; then
2064  # We do not want a PATH search for config.site.
2065  case $CONFIG_SITE in #((
2066    -*)  ac_site_file1=./$CONFIG_SITE;;
2067    */*) ac_site_file1=$CONFIG_SITE;;
2068    *)   ac_site_file1=./$CONFIG_SITE;;
2069  esac
2070elif test "x$prefix" != xNONE; then
2071  ac_site_file1=$prefix/share/config.site
2072  ac_site_file2=$prefix/etc/config.site
2073else
2074  ac_site_file1=$ac_default_prefix/share/config.site
2075  ac_site_file2=$ac_default_prefix/etc/config.site
2076fi
2077for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2078do
2079  test "x$ac_site_file" = xNONE && continue
2080  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2081    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2082$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2083    sed 's/^/| /' "$ac_site_file" >&5
2084    . "$ac_site_file" \
2085      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2087as_fn_error $? "failed to load site script $ac_site_file
2088See \`config.log' for more details" "$LINENO" 5; }
2089  fi
2090done
2091
2092if test -r "$cache_file"; then
2093  # Some versions of bash will fail to source /dev/null (special files
2094  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2095  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2096    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2097$as_echo "$as_me: loading cache $cache_file" >&6;}
2098    case $cache_file in
2099      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2100      *)                      . "./$cache_file";;
2101    esac
2102  fi
2103else
2104  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2105$as_echo "$as_me: creating cache $cache_file" >&6;}
2106  >$cache_file
2107fi
2108
2109# Check that the precious variables saved in the cache have kept the same
2110# value.
2111ac_cache_corrupted=false
2112for ac_var in $ac_precious_vars; do
2113  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2114  eval ac_new_set=\$ac_env_${ac_var}_set
2115  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2116  eval ac_new_val=\$ac_env_${ac_var}_value
2117  case $ac_old_set,$ac_new_set in
2118    set,)
2119      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2120$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2121      ac_cache_corrupted=: ;;
2122    ,set)
2123      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2124$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2125      ac_cache_corrupted=: ;;
2126    ,);;
2127    *)
2128      if test "x$ac_old_val" != "x$ac_new_val"; then
2129	# differences in whitespace do not lead to failure.
2130	ac_old_val_w=`echo x $ac_old_val`
2131	ac_new_val_w=`echo x $ac_new_val`
2132	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2133	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2134$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135	  ac_cache_corrupted=:
2136	else
2137	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2138$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2139	  eval $ac_var=\$ac_old_val
2140	fi
2141	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2142$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2143	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2144$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2145      fi;;
2146  esac
2147  # Pass precious variables to config.status.
2148  if test "$ac_new_set" = set; then
2149    case $ac_new_val in
2150    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2151    *) ac_arg=$ac_var=$ac_new_val ;;
2152    esac
2153    case " $ac_configure_args " in
2154      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2155      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2156    esac
2157  fi
2158done
2159if $ac_cache_corrupted; then
2160  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2162  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2163$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2164  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2165fi
2166## -------------------- ##
2167## Main body of script. ##
2168## -------------------- ##
2169
2170ac_ext=c
2171ac_cpp='$CPP $CPPFLAGS'
2172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175
2176
2177
2178
2179# Initialize Automake
2180am__api_version='1.15'
2181
2182ac_aux_dir=
2183for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2184  if test -f "$ac_dir/install-sh"; then
2185    ac_aux_dir=$ac_dir
2186    ac_install_sh="$ac_aux_dir/install-sh -c"
2187    break
2188  elif test -f "$ac_dir/install.sh"; then
2189    ac_aux_dir=$ac_dir
2190    ac_install_sh="$ac_aux_dir/install.sh -c"
2191    break
2192  elif test -f "$ac_dir/shtool"; then
2193    ac_aux_dir=$ac_dir
2194    ac_install_sh="$ac_aux_dir/shtool install -c"
2195    break
2196  fi
2197done
2198if test -z "$ac_aux_dir"; then
2199  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2200fi
2201
2202# These three variables are undocumented and unsupported,
2203# and are intended to be withdrawn in a future Autoconf release.
2204# They can cause serious problems if a builder's source tree is in a directory
2205# whose full name contains unusual characters.
2206ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2207ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2208ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2209
2210
2211# Find a good install program.  We prefer a C program (faster),
2212# so one script is as good as another.  But avoid the broken or
2213# incompatible versions:
2214# SysV /etc/install, /usr/sbin/install
2215# SunOS /usr/etc/install
2216# IRIX /sbin/install
2217# AIX /bin/install
2218# AmigaOS /C/install, which installs bootblocks on floppy discs
2219# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2220# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2221# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2222# OS/2's system install, which has a completely different semantic
2223# ./install, which can be erroneously created by make from ./install.sh.
2224# Reject install programs that cannot install multiple files.
2225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2226$as_echo_n "checking for a BSD-compatible install... " >&6; }
2227if test -z "$INSTALL"; then
2228if ${ac_cv_path_install+:} false; then :
2229  $as_echo_n "(cached) " >&6
2230else
2231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232for as_dir in $PATH
2233do
2234  IFS=$as_save_IFS
2235  test -z "$as_dir" && as_dir=.
2236    # Account for people who put trailing slashes in PATH elements.
2237case $as_dir/ in #((
2238  ./ | .// | /[cC]/* | \
2239  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2240  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2241  /usr/ucb/* ) ;;
2242  *)
2243    # OSF1 and SCO ODT 3.0 have their own names for install.
2244    # Don't use installbsd from OSF since it installs stuff as root
2245    # by default.
2246    for ac_prog in ginstall scoinst install; do
2247      for ac_exec_ext in '' $ac_executable_extensions; do
2248	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2249	  if test $ac_prog = install &&
2250	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2251	    # AIX install.  It has an incompatible calling convention.
2252	    :
2253	  elif test $ac_prog = install &&
2254	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2255	    # program-specific install script used by HP pwplus--don't use.
2256	    :
2257	  else
2258	    rm -rf conftest.one conftest.two conftest.dir
2259	    echo one > conftest.one
2260	    echo two > conftest.two
2261	    mkdir conftest.dir
2262	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2263	      test -s conftest.one && test -s conftest.two &&
2264	      test -s conftest.dir/conftest.one &&
2265	      test -s conftest.dir/conftest.two
2266	    then
2267	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2268	      break 3
2269	    fi
2270	  fi
2271	fi
2272      done
2273    done
2274    ;;
2275esac
2276
2277  done
2278IFS=$as_save_IFS
2279
2280rm -rf conftest.one conftest.two conftest.dir
2281
2282fi
2283  if test "${ac_cv_path_install+set}" = set; then
2284    INSTALL=$ac_cv_path_install
2285  else
2286    # As a last resort, use the slow shell script.  Don't cache a
2287    # value for INSTALL within a source directory, because that will
2288    # break other packages using the cache if that directory is
2289    # removed, or if the value is a relative name.
2290    INSTALL=$ac_install_sh
2291  fi
2292fi
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2294$as_echo "$INSTALL" >&6; }
2295
2296# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2297# It thinks the first close brace ends the variable substitution.
2298test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2299
2300test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2301
2302test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2303
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2305$as_echo_n "checking whether build environment is sane... " >&6; }
2306# Reject unsafe characters in $srcdir or the absolute working directory
2307# name.  Accept space and tab only in the latter.
2308am_lf='
2309'
2310case `pwd` in
2311  *[\\\"\#\$\&\'\`$am_lf]*)
2312    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2313esac
2314case $srcdir in
2315  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2316    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2317esac
2318
2319# Do 'set' in a subshell so we don't clobber the current shell's
2320# arguments.  Must try -L first in case configure is actually a
2321# symlink; some systems play weird games with the mod time of symlinks
2322# (eg FreeBSD returns the mod time of the symlink's containing
2323# directory).
2324if (
2325   am_has_slept=no
2326   for am_try in 1 2; do
2327     echo "timestamp, slept: $am_has_slept" > conftest.file
2328     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2329     if test "$*" = "X"; then
2330	# -L didn't work.
2331	set X `ls -t "$srcdir/configure" conftest.file`
2332     fi
2333     if test "$*" != "X $srcdir/configure conftest.file" \
2334	&& test "$*" != "X conftest.file $srcdir/configure"; then
2335
2336	# If neither matched, then we have a broken ls.  This can happen
2337	# if, for instance, CONFIG_SHELL is bash and it inherits a
2338	# broken ls alias from the environment.  This has actually
2339	# happened.  Such a system could not be considered "sane".
2340	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2341  alias in your environment" "$LINENO" 5
2342     fi
2343     if test "$2" = conftest.file || test $am_try -eq 2; then
2344       break
2345     fi
2346     # Just in case.
2347     sleep 1
2348     am_has_slept=yes
2349   done
2350   test "$2" = conftest.file
2351   )
2352then
2353   # Ok.
2354   :
2355else
2356   as_fn_error $? "newly created file is older than distributed files!
2357Check your system clock" "$LINENO" 5
2358fi
2359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2360$as_echo "yes" >&6; }
2361# If we didn't sleep, we still need to ensure time stamps of config.status and
2362# generated files are strictly newer.
2363am_sleep_pid=
2364if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2365  ( sleep 1 ) &
2366  am_sleep_pid=$!
2367fi
2368
2369rm -f conftest.file
2370
2371test "$program_prefix" != NONE &&
2372  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2373# Use a double $ so make ignores it.
2374test "$program_suffix" != NONE &&
2375  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2376# Double any \ or $.
2377# By default was `s,x,x', remove it if useless.
2378ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2379program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2380
2381# Expand $ac_aux_dir to an absolute path.
2382am_aux_dir=`cd "$ac_aux_dir" && pwd`
2383
2384if test x"${MISSING+set}" != xset; then
2385  case $am_aux_dir in
2386  *\ * | *\	*)
2387    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2388  *)
2389    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2390  esac
2391fi
2392# Use eval to expand $SHELL
2393if eval "$MISSING --is-lightweight"; then
2394  am_missing_run="$MISSING "
2395else
2396  am_missing_run=
2397  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2398$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2399fi
2400
2401if test x"${install_sh+set}" != xset; then
2402  case $am_aux_dir in
2403  *\ * | *\	*)
2404    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2405  *)
2406    install_sh="\${SHELL} $am_aux_dir/install-sh"
2407  esac
2408fi
2409
2410# Installed binaries are usually stripped using 'strip' when the user
2411# run "make install-strip".  However 'strip' might not be the right
2412# tool to use in cross-compilation environments, therefore Automake
2413# will honor the 'STRIP' environment variable to overrule this program.
2414if test "$cross_compiling" != no; then
2415  if test -n "$ac_tool_prefix"; then
2416  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2417set dummy ${ac_tool_prefix}strip; ac_word=$2
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419$as_echo_n "checking for $ac_word... " >&6; }
2420if ${ac_cv_prog_STRIP+:} false; then :
2421  $as_echo_n "(cached) " >&6
2422else
2423  if test -n "$STRIP"; then
2424  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429  IFS=$as_save_IFS
2430  test -z "$as_dir" && as_dir=.
2431    for ac_exec_ext in '' $ac_executable_extensions; do
2432  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2433    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435    break 2
2436  fi
2437done
2438  done
2439IFS=$as_save_IFS
2440
2441fi
2442fi
2443STRIP=$ac_cv_prog_STRIP
2444if test -n "$STRIP"; then
2445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2446$as_echo "$STRIP" >&6; }
2447else
2448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449$as_echo "no" >&6; }
2450fi
2451
2452
2453fi
2454if test -z "$ac_cv_prog_STRIP"; then
2455  ac_ct_STRIP=$STRIP
2456  # Extract the first word of "strip", so it can be a program name with args.
2457set dummy strip; ac_word=$2
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459$as_echo_n "checking for $ac_word... " >&6; }
2460if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2461  $as_echo_n "(cached) " >&6
2462else
2463  if test -n "$ac_ct_STRIP"; then
2464  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2465else
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469  IFS=$as_save_IFS
2470  test -z "$as_dir" && as_dir=.
2471    for ac_exec_ext in '' $ac_executable_extensions; do
2472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473    ac_cv_prog_ac_ct_STRIP="strip"
2474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475    break 2
2476  fi
2477done
2478  done
2479IFS=$as_save_IFS
2480
2481fi
2482fi
2483ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2484if test -n "$ac_ct_STRIP"; then
2485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2486$as_echo "$ac_ct_STRIP" >&6; }
2487else
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489$as_echo "no" >&6; }
2490fi
2491
2492  if test "x$ac_ct_STRIP" = x; then
2493    STRIP=":"
2494  else
2495    case $cross_compiling:$ac_tool_warned in
2496yes:)
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2499ac_tool_warned=yes ;;
2500esac
2501    STRIP=$ac_ct_STRIP
2502  fi
2503else
2504  STRIP="$ac_cv_prog_STRIP"
2505fi
2506
2507fi
2508INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2509
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2511$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2512if test -z "$MKDIR_P"; then
2513  if ${ac_cv_path_mkdir+:} false; then :
2514  $as_echo_n "(cached) " >&6
2515else
2516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2518do
2519  IFS=$as_save_IFS
2520  test -z "$as_dir" && as_dir=.
2521    for ac_prog in mkdir gmkdir; do
2522	 for ac_exec_ext in '' $ac_executable_extensions; do
2523	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2524	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2525	     'mkdir (GNU coreutils) '* | \
2526	     'mkdir (coreutils) '* | \
2527	     'mkdir (fileutils) '4.1*)
2528	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2529	       break 3;;
2530	   esac
2531	 done
2532       done
2533  done
2534IFS=$as_save_IFS
2535
2536fi
2537
2538  test -d ./--version && rmdir ./--version
2539  if test "${ac_cv_path_mkdir+set}" = set; then
2540    MKDIR_P="$ac_cv_path_mkdir -p"
2541  else
2542    # As a last resort, use the slow shell script.  Don't cache a
2543    # value for MKDIR_P within a source directory, because that will
2544    # break other packages using the cache if that directory is
2545    # removed, or if the value is a relative name.
2546    MKDIR_P="$ac_install_sh -d"
2547  fi
2548fi
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2550$as_echo "$MKDIR_P" >&6; }
2551
2552for ac_prog in gawk mawk nawk awk
2553do
2554  # Extract the first word of "$ac_prog", so it can be a program name with args.
2555set dummy $ac_prog; ac_word=$2
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557$as_echo_n "checking for $ac_word... " >&6; }
2558if ${ac_cv_prog_AWK+:} false; then :
2559  $as_echo_n "(cached) " >&6
2560else
2561  if test -n "$AWK"; then
2562  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567  IFS=$as_save_IFS
2568  test -z "$as_dir" && as_dir=.
2569    for ac_exec_ext in '' $ac_executable_extensions; do
2570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571    ac_cv_prog_AWK="$ac_prog"
2572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573    break 2
2574  fi
2575done
2576  done
2577IFS=$as_save_IFS
2578
2579fi
2580fi
2581AWK=$ac_cv_prog_AWK
2582if test -n "$AWK"; then
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2584$as_echo "$AWK" >&6; }
2585else
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
2588fi
2589
2590
2591  test -n "$AWK" && break
2592done
2593
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2595$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2596set x ${MAKE-make}
2597ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2598if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2599  $as_echo_n "(cached) " >&6
2600else
2601  cat >conftest.make <<\_ACEOF
2602SHELL = /bin/sh
2603all:
2604	@echo '@@@%%%=$(MAKE)=@@@%%%'
2605_ACEOF
2606# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2607case `${MAKE-make} -f conftest.make 2>/dev/null` in
2608  *@@@%%%=?*=@@@%%%*)
2609    eval ac_cv_prog_make_${ac_make}_set=yes;;
2610  *)
2611    eval ac_cv_prog_make_${ac_make}_set=no;;
2612esac
2613rm -f conftest.make
2614fi
2615if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2617$as_echo "yes" >&6; }
2618  SET_MAKE=
2619else
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621$as_echo "no" >&6; }
2622  SET_MAKE="MAKE=${MAKE-make}"
2623fi
2624
2625rm -rf .tst 2>/dev/null
2626mkdir .tst 2>/dev/null
2627if test -d .tst; then
2628  am__leading_dot=.
2629else
2630  am__leading_dot=_
2631fi
2632rmdir .tst 2>/dev/null
2633
2634# Check whether --enable-silent-rules was given.
2635if test "${enable_silent_rules+set}" = set; then :
2636  enableval=$enable_silent_rules;
2637fi
2638
2639case $enable_silent_rules in # (((
2640  yes) AM_DEFAULT_VERBOSITY=0;;
2641   no) AM_DEFAULT_VERBOSITY=1;;
2642    *) AM_DEFAULT_VERBOSITY=1;;
2643esac
2644am_make=${MAKE-make}
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2646$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2647if ${am_cv_make_support_nested_variables+:} false; then :
2648  $as_echo_n "(cached) " >&6
2649else
2650  if $as_echo 'TRUE=$(BAR$(V))
2651BAR0=false
2652BAR1=true
2653V=1
2654am__doit:
2655	@$(TRUE)
2656.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2657  am_cv_make_support_nested_variables=yes
2658else
2659  am_cv_make_support_nested_variables=no
2660fi
2661fi
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2663$as_echo "$am_cv_make_support_nested_variables" >&6; }
2664if test $am_cv_make_support_nested_variables = yes; then
2665    AM_V='$(V)'
2666  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2667else
2668  AM_V=$AM_DEFAULT_VERBOSITY
2669  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2670fi
2671AM_BACKSLASH='\'
2672
2673if test "`cd $srcdir && pwd`" != "`pwd`"; then
2674  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2675  # is not polluted with repeated "-I."
2676  am__isrc=' -I$(srcdir)'
2677  # test to see if srcdir already configured
2678  if test -f $srcdir/config.status; then
2679    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2680  fi
2681fi
2682
2683# test whether we have cygpath
2684if test -z "$CYGPATH_W"; then
2685  if (cygpath --version) >/dev/null 2>/dev/null; then
2686    CYGPATH_W='cygpath -w'
2687  else
2688    CYGPATH_W=echo
2689  fi
2690fi
2691
2692
2693# Define the identity of the package.
2694 PACKAGE='xorg-docs'
2695 VERSION='1.7.1'
2696
2697
2698cat >>confdefs.h <<_ACEOF
2699#define PACKAGE "$PACKAGE"
2700_ACEOF
2701
2702
2703cat >>confdefs.h <<_ACEOF
2704#define VERSION "$VERSION"
2705_ACEOF
2706
2707# Some tools Automake needs.
2708
2709ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2710
2711
2712AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2713
2714
2715AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2716
2717
2718AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2719
2720
2721MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2722
2723# For better backward compatibility.  To be removed once Automake 1.9.x
2724# dies out for good.  For more background, see:
2725# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2726# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2727mkdir_p='$(MKDIR_P)'
2728
2729# We need awk for the "check" target (and possibly the TAP driver).  The
2730# system "awk" is bad on some platforms.
2731# Always define AMTAR for backward compatibility.  Yes, it's still used
2732# in the wild :-(  We should find a proper way to deprecate it ...
2733AMTAR='$${TAR-tar}'
2734
2735
2736# We'll loop over all known methods to create a tar archive until one works.
2737_am_tools='gnutar  pax cpio none'
2738
2739am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2740
2741
2742
2743
2744
2745
2746# POSIX will say in a future version that running "rm -f" with no argument
2747# is OK; and we want to be able to make that assumption in our Makefile
2748# recipes.  So use an aggressive probe to check that the usage we want is
2749# actually supported "in the wild" to an acceptable degree.
2750# See automake bug#10828.
2751# To make any issue more visible, cause the running configure to be aborted
2752# by default if the 'rm' program in use doesn't match our expectations; the
2753# user can still override this though.
2754if rm -f && rm -fr && rm -rf; then : OK; else
2755  cat >&2 <<'END'
2756Oops!
2757
2758Your 'rm' program seems unable to run without file operands specified
2759on the command line, even when the '-f' option is present.  This is contrary
2760to the behaviour of most rm programs out there, and not conforming with
2761the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2762
2763Please tell bug-automake@gnu.org about your system, including the value
2764of your $PATH and any error possibly output before this message.  This
2765can help us improve future automake versions.
2766
2767END
2768  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2769    echo 'Configuration will proceed anyway, since you have set the' >&2
2770    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2771    echo >&2
2772  else
2773    cat >&2 <<'END'
2774Aborting the configuration process, to ensure you take notice of the issue.
2775
2776You can download and install GNU coreutils to get an 'rm' implementation
2777that behaves properly: <http://www.gnu.org/software/coreutils/>.
2778
2779If you want to complete the configuration process using your problematic
2780'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2781to "yes", and re-run configure.
2782
2783END
2784    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2785  fi
2786fi
2787
2788
2789# Require xorg-macros minimum of 1.12 for XORG_WITH_XSLTPROC
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801DEPDIR="${am__leading_dot}deps"
2802
2803ac_config_commands="$ac_config_commands depfiles"
2804
2805
2806am_make=${MAKE-make}
2807cat > confinc << 'END'
2808am__doit:
2809	@echo this is the am__doit target
2810.PHONY: am__doit
2811END
2812# If we don't find an include directive, just comment out the code.
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2814$as_echo_n "checking for style of include used by $am_make... " >&6; }
2815am__include="#"
2816am__quote=
2817_am_result=none
2818# First try GNU make style include.
2819echo "include confinc" > confmf
2820# Ignore all kinds of additional output from 'make'.
2821case `$am_make -s -f confmf 2> /dev/null` in #(
2822*the\ am__doit\ target*)
2823  am__include=include
2824  am__quote=
2825  _am_result=GNU
2826  ;;
2827esac
2828# Now try BSD make style include.
2829if test "$am__include" = "#"; then
2830   echo '.include "confinc"' > confmf
2831   case `$am_make -s -f confmf 2> /dev/null` in #(
2832   *the\ am__doit\ target*)
2833     am__include=.include
2834     am__quote="\""
2835     _am_result=BSD
2836     ;;
2837   esac
2838fi
2839
2840
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2842$as_echo "$_am_result" >&6; }
2843rm -f confinc confmf
2844
2845# Check whether --enable-dependency-tracking was given.
2846if test "${enable_dependency_tracking+set}" = set; then :
2847  enableval=$enable_dependency_tracking;
2848fi
2849
2850if test "x$enable_dependency_tracking" != xno; then
2851  am_depcomp="$ac_aux_dir/depcomp"
2852  AMDEPBACKSLASH='\'
2853  am__nodep='_no'
2854fi
2855 if test "x$enable_dependency_tracking" != xno; then
2856  AMDEP_TRUE=
2857  AMDEP_FALSE='#'
2858else
2859  AMDEP_TRUE='#'
2860  AMDEP_FALSE=
2861fi
2862
2863
2864ac_ext=c
2865ac_cpp='$CPP $CPPFLAGS'
2866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869if test -n "$ac_tool_prefix"; then
2870  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2871set dummy ${ac_tool_prefix}gcc; ac_word=$2
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873$as_echo_n "checking for $ac_word... " >&6; }
2874if ${ac_cv_prog_CC+:} false; then :
2875  $as_echo_n "(cached) " >&6
2876else
2877  if test -n "$CC"; then
2878  ac_cv_prog_CC="$CC" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883  IFS=$as_save_IFS
2884  test -z "$as_dir" && as_dir=.
2885    for ac_exec_ext in '' $ac_executable_extensions; do
2886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889    break 2
2890  fi
2891done
2892  done
2893IFS=$as_save_IFS
2894
2895fi
2896fi
2897CC=$ac_cv_prog_CC
2898if test -n "$CC"; then
2899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900$as_echo "$CC" >&6; }
2901else
2902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903$as_echo "no" >&6; }
2904fi
2905
2906
2907fi
2908if test -z "$ac_cv_prog_CC"; then
2909  ac_ct_CC=$CC
2910  # Extract the first word of "gcc", so it can be a program name with args.
2911set dummy gcc; ac_word=$2
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913$as_echo_n "checking for $ac_word... " >&6; }
2914if ${ac_cv_prog_ac_ct_CC+:} false; then :
2915  $as_echo_n "(cached) " >&6
2916else
2917  if test -n "$ac_ct_CC"; then
2918  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923  IFS=$as_save_IFS
2924  test -z "$as_dir" && as_dir=.
2925    for ac_exec_ext in '' $ac_executable_extensions; do
2926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927    ac_cv_prog_ac_ct_CC="gcc"
2928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929    break 2
2930  fi
2931done
2932  done
2933IFS=$as_save_IFS
2934
2935fi
2936fi
2937ac_ct_CC=$ac_cv_prog_ac_ct_CC
2938if test -n "$ac_ct_CC"; then
2939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2940$as_echo "$ac_ct_CC" >&6; }
2941else
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
2944fi
2945
2946  if test "x$ac_ct_CC" = x; then
2947    CC=""
2948  else
2949    case $cross_compiling:$ac_tool_warned in
2950yes:)
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2953ac_tool_warned=yes ;;
2954esac
2955    CC=$ac_ct_CC
2956  fi
2957else
2958  CC="$ac_cv_prog_CC"
2959fi
2960
2961if test -z "$CC"; then
2962          if test -n "$ac_tool_prefix"; then
2963    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2964set dummy ${ac_tool_prefix}cc; ac_word=$2
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966$as_echo_n "checking for $ac_word... " >&6; }
2967if ${ac_cv_prog_CC+:} false; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  if test -n "$CC"; then
2971  ac_cv_prog_CC="$CC" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978    for ac_exec_ext in '' $ac_executable_extensions; do
2979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980    ac_cv_prog_CC="${ac_tool_prefix}cc"
2981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990CC=$ac_cv_prog_CC
2991if test -n "$CC"; then
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993$as_echo "$CC" >&6; }
2994else
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997fi
2998
2999
3000  fi
3001fi
3002if test -z "$CC"; then
3003  # Extract the first word of "cc", so it can be a program name with args.
3004set dummy cc; ac_word=$2
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006$as_echo_n "checking for $ac_word... " >&6; }
3007if ${ac_cv_prog_CC+:} false; then :
3008  $as_echo_n "(cached) " >&6
3009else
3010  if test -n "$CC"; then
3011  ac_cv_prog_CC="$CC" # Let the user override the test.
3012else
3013  ac_prog_rejected=no
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017  IFS=$as_save_IFS
3018  test -z "$as_dir" && as_dir=.
3019    for ac_exec_ext in '' $ac_executable_extensions; do
3020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3022       ac_prog_rejected=yes
3023       continue
3024     fi
3025    ac_cv_prog_CC="cc"
3026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027    break 2
3028  fi
3029done
3030  done
3031IFS=$as_save_IFS
3032
3033if test $ac_prog_rejected = yes; then
3034  # We found a bogon in the path, so make sure we never use it.
3035  set dummy $ac_cv_prog_CC
3036  shift
3037  if test $# != 0; then
3038    # We chose a different compiler from the bogus one.
3039    # However, it has the same basename, so the bogon will be chosen
3040    # first if we set CC to just the basename; use the full file name.
3041    shift
3042    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3043  fi
3044fi
3045fi
3046fi
3047CC=$ac_cv_prog_CC
3048if test -n "$CC"; then
3049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050$as_echo "$CC" >&6; }
3051else
3052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053$as_echo "no" >&6; }
3054fi
3055
3056
3057fi
3058if test -z "$CC"; then
3059  if test -n "$ac_tool_prefix"; then
3060  for ac_prog in cl.exe
3061  do
3062    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065$as_echo_n "checking for $ac_word... " >&6; }
3066if ${ac_cv_prog_CC+:} false; then :
3067  $as_echo_n "(cached) " >&6
3068else
3069  if test -n "$CC"; then
3070  ac_cv_prog_CC="$CC" # Let the user override the test.
3071else
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075  IFS=$as_save_IFS
3076  test -z "$as_dir" && as_dir=.
3077    for ac_exec_ext in '' $ac_executable_extensions; do
3078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081    break 2
3082  fi
3083done
3084  done
3085IFS=$as_save_IFS
3086
3087fi
3088fi
3089CC=$ac_cv_prog_CC
3090if test -n "$CC"; then
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092$as_echo "$CC" >&6; }
3093else
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095$as_echo "no" >&6; }
3096fi
3097
3098
3099    test -n "$CC" && break
3100  done
3101fi
3102if test -z "$CC"; then
3103  ac_ct_CC=$CC
3104  for ac_prog in cl.exe
3105do
3106  # Extract the first word of "$ac_prog", so it can be a program name with args.
3107set dummy $ac_prog; ac_word=$2
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109$as_echo_n "checking for $ac_word... " >&6; }
3110if ${ac_cv_prog_ac_ct_CC+:} false; then :
3111  $as_echo_n "(cached) " >&6
3112else
3113  if test -n "$ac_ct_CC"; then
3114  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3115else
3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117for as_dir in $PATH
3118do
3119  IFS=$as_save_IFS
3120  test -z "$as_dir" && as_dir=.
3121    for ac_exec_ext in '' $ac_executable_extensions; do
3122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123    ac_cv_prog_ac_ct_CC="$ac_prog"
3124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125    break 2
3126  fi
3127done
3128  done
3129IFS=$as_save_IFS
3130
3131fi
3132fi
3133ac_ct_CC=$ac_cv_prog_ac_ct_CC
3134if test -n "$ac_ct_CC"; then
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3136$as_echo "$ac_ct_CC" >&6; }
3137else
3138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139$as_echo "no" >&6; }
3140fi
3141
3142
3143  test -n "$ac_ct_CC" && break
3144done
3145
3146  if test "x$ac_ct_CC" = x; then
3147    CC=""
3148  else
3149    case $cross_compiling:$ac_tool_warned in
3150yes:)
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3153ac_tool_warned=yes ;;
3154esac
3155    CC=$ac_ct_CC
3156  fi
3157fi
3158
3159fi
3160
3161
3162test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164as_fn_error $? "no acceptable C compiler found in \$PATH
3165See \`config.log' for more details" "$LINENO" 5; }
3166
3167# Provide some information about the compiler.
3168$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3169set X $ac_compile
3170ac_compiler=$2
3171for ac_option in --version -v -V -qversion; do
3172  { { ac_try="$ac_compiler $ac_option >&5"
3173case "(($ac_try" in
3174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175  *) ac_try_echo=$ac_try;;
3176esac
3177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178$as_echo "$ac_try_echo"; } >&5
3179  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3180  ac_status=$?
3181  if test -s conftest.err; then
3182    sed '10a\
3183... rest of stderr output deleted ...
3184         10q' conftest.err >conftest.er1
3185    cat conftest.er1 >&5
3186  fi
3187  rm -f conftest.er1 conftest.err
3188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189  test $ac_status = 0; }
3190done
3191
3192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193/* end confdefs.h.  */
3194
3195int
3196main ()
3197{
3198
3199  ;
3200  return 0;
3201}
3202_ACEOF
3203ac_clean_files_save=$ac_clean_files
3204ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3205# Try to create an executable without -o first, disregard a.out.
3206# It will help us diagnose broken compilers, and finding out an intuition
3207# of exeext.
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3209$as_echo_n "checking whether the C compiler works... " >&6; }
3210ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3211
3212# The possible output files:
3213ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3214
3215ac_rmfiles=
3216for ac_file in $ac_files
3217do
3218  case $ac_file in
3219    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3220    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3221  esac
3222done
3223rm -f $ac_rmfiles
3224
3225if { { ac_try="$ac_link_default"
3226case "(($ac_try" in
3227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228  *) ac_try_echo=$ac_try;;
3229esac
3230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231$as_echo "$ac_try_echo"; } >&5
3232  (eval "$ac_link_default") 2>&5
3233  ac_status=$?
3234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235  test $ac_status = 0; }; then :
3236  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3237# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3238# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3239# so that the user can short-circuit this test for compilers unknown to
3240# Autoconf.
3241for ac_file in $ac_files ''
3242do
3243  test -f "$ac_file" || continue
3244  case $ac_file in
3245    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3246	;;
3247    [ab].out )
3248	# We found the default executable, but exeext='' is most
3249	# certainly right.
3250	break;;
3251    *.* )
3252	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3253	then :; else
3254	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255	fi
3256	# We set ac_cv_exeext here because the later test for it is not
3257	# safe: cross compilers may not add the suffix if given an `-o'
3258	# argument, so we may need to know it at that point already.
3259	# Even if this section looks crufty: it has the advantage of
3260	# actually working.
3261	break;;
3262    * )
3263	break;;
3264  esac
3265done
3266test "$ac_cv_exeext" = no && ac_cv_exeext=
3267
3268else
3269  ac_file=''
3270fi
3271if test -z "$ac_file"; then :
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274$as_echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
3276
3277{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279as_fn_error 77 "C compiler cannot create executables
3280See \`config.log' for more details" "$LINENO" 5; }
3281else
3282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283$as_echo "yes" >&6; }
3284fi
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3286$as_echo_n "checking for C compiler default output file name... " >&6; }
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3288$as_echo "$ac_file" >&6; }
3289ac_exeext=$ac_cv_exeext
3290
3291rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3292ac_clean_files=$ac_clean_files_save
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3294$as_echo_n "checking for suffix of executables... " >&6; }
3295if { { ac_try="$ac_link"
3296case "(($ac_try" in
3297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298  *) ac_try_echo=$ac_try;;
3299esac
3300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301$as_echo "$ac_try_echo"; } >&5
3302  (eval "$ac_link") 2>&5
3303  ac_status=$?
3304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305  test $ac_status = 0; }; then :
3306  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3307# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3308# work properly (i.e., refer to `conftest.exe'), while it won't with
3309# `rm'.
3310for ac_file in conftest.exe conftest conftest.*; do
3311  test -f "$ac_file" || continue
3312  case $ac_file in
3313    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315	  break;;
3316    * ) break;;
3317  esac
3318done
3319else
3320  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3323See \`config.log' for more details" "$LINENO" 5; }
3324fi
3325rm -f conftest conftest$ac_cv_exeext
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3327$as_echo "$ac_cv_exeext" >&6; }
3328
3329rm -f conftest.$ac_ext
3330EXEEXT=$ac_cv_exeext
3331ac_exeext=$EXEEXT
3332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333/* end confdefs.h.  */
3334#include <stdio.h>
3335int
3336main ()
3337{
3338FILE *f = fopen ("conftest.out", "w");
3339 return ferror (f) || fclose (f) != 0;
3340
3341  ;
3342  return 0;
3343}
3344_ACEOF
3345ac_clean_files="$ac_clean_files conftest.out"
3346# Check that the compiler produces executables we can run.  If not, either
3347# the compiler is broken, or we cross compile.
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3349$as_echo_n "checking whether we are cross compiling... " >&6; }
3350if test "$cross_compiling" != yes; then
3351  { { ac_try="$ac_link"
3352case "(($ac_try" in
3353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354  *) ac_try_echo=$ac_try;;
3355esac
3356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357$as_echo "$ac_try_echo"; } >&5
3358  (eval "$ac_link") 2>&5
3359  ac_status=$?
3360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361  test $ac_status = 0; }
3362  if { ac_try='./conftest$ac_cv_exeext'
3363  { { case "(($ac_try" in
3364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365  *) ac_try_echo=$ac_try;;
3366esac
3367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368$as_echo "$ac_try_echo"; } >&5
3369  (eval "$ac_try") 2>&5
3370  ac_status=$?
3371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372  test $ac_status = 0; }; }; then
3373    cross_compiling=no
3374  else
3375    if test "$cross_compiling" = maybe; then
3376	cross_compiling=yes
3377    else
3378	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380as_fn_error $? "cannot run C compiled programs.
3381If you meant to cross compile, use \`--host'.
3382See \`config.log' for more details" "$LINENO" 5; }
3383    fi
3384  fi
3385fi
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3387$as_echo "$cross_compiling" >&6; }
3388
3389rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3390ac_clean_files=$ac_clean_files_save
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3392$as_echo_n "checking for suffix of object files... " >&6; }
3393if ${ac_cv_objext+:} false; then :
3394  $as_echo_n "(cached) " >&6
3395else
3396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397/* end confdefs.h.  */
3398
3399int
3400main ()
3401{
3402
3403  ;
3404  return 0;
3405}
3406_ACEOF
3407rm -f conftest.o conftest.obj
3408if { { ac_try="$ac_compile"
3409case "(($ac_try" in
3410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411  *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415  (eval "$ac_compile") 2>&5
3416  ac_status=$?
3417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418  test $ac_status = 0; }; then :
3419  for ac_file in conftest.o conftest.obj conftest.*; do
3420  test -f "$ac_file" || continue;
3421  case $ac_file in
3422    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3423    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3424       break;;
3425  esac
3426done
3427else
3428  $as_echo "$as_me: failed program was:" >&5
3429sed 's/^/| /' conftest.$ac_ext >&5
3430
3431{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433as_fn_error $? "cannot compute suffix of object files: cannot compile
3434See \`config.log' for more details" "$LINENO" 5; }
3435fi
3436rm -f conftest.$ac_cv_objext conftest.$ac_ext
3437fi
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3439$as_echo "$ac_cv_objext" >&6; }
3440OBJEXT=$ac_cv_objext
3441ac_objext=$OBJEXT
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3443$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3444if ${ac_cv_c_compiler_gnu+:} false; then :
3445  $as_echo_n "(cached) " >&6
3446else
3447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448/* end confdefs.h.  */
3449
3450int
3451main ()
3452{
3453#ifndef __GNUC__
3454       choke me
3455#endif
3456
3457  ;
3458  return 0;
3459}
3460_ACEOF
3461if ac_fn_c_try_compile "$LINENO"; then :
3462  ac_compiler_gnu=yes
3463else
3464  ac_compiler_gnu=no
3465fi
3466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467ac_cv_c_compiler_gnu=$ac_compiler_gnu
3468
3469fi
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3471$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3472if test $ac_compiler_gnu = yes; then
3473  GCC=yes
3474else
3475  GCC=
3476fi
3477ac_test_CFLAGS=${CFLAGS+set}
3478ac_save_CFLAGS=$CFLAGS
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3480$as_echo_n "checking whether $CC accepts -g... " >&6; }
3481if ${ac_cv_prog_cc_g+:} false; then :
3482  $as_echo_n "(cached) " >&6
3483else
3484  ac_save_c_werror_flag=$ac_c_werror_flag
3485   ac_c_werror_flag=yes
3486   ac_cv_prog_cc_g=no
3487   CFLAGS="-g"
3488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489/* end confdefs.h.  */
3490
3491int
3492main ()
3493{
3494
3495  ;
3496  return 0;
3497}
3498_ACEOF
3499if ac_fn_c_try_compile "$LINENO"; then :
3500  ac_cv_prog_cc_g=yes
3501else
3502  CFLAGS=""
3503      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h.  */
3505
3506int
3507main ()
3508{
3509
3510  ;
3511  return 0;
3512}
3513_ACEOF
3514if ac_fn_c_try_compile "$LINENO"; then :
3515
3516else
3517  ac_c_werror_flag=$ac_save_c_werror_flag
3518	 CFLAGS="-g"
3519	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520/* end confdefs.h.  */
3521
3522int
3523main ()
3524{
3525
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530if ac_fn_c_try_compile "$LINENO"; then :
3531  ac_cv_prog_cc_g=yes
3532fi
3533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534fi
3535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536fi
3537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538   ac_c_werror_flag=$ac_save_c_werror_flag
3539fi
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3541$as_echo "$ac_cv_prog_cc_g" >&6; }
3542if test "$ac_test_CFLAGS" = set; then
3543  CFLAGS=$ac_save_CFLAGS
3544elif test $ac_cv_prog_cc_g = yes; then
3545  if test "$GCC" = yes; then
3546    CFLAGS="-g -O2"
3547  else
3548    CFLAGS="-g"
3549  fi
3550else
3551  if test "$GCC" = yes; then
3552    CFLAGS="-O2"
3553  else
3554    CFLAGS=
3555  fi
3556fi
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3558$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3559if ${ac_cv_prog_cc_c89+:} false; then :
3560  $as_echo_n "(cached) " >&6
3561else
3562  ac_cv_prog_cc_c89=no
3563ac_save_CC=$CC
3564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565/* end confdefs.h.  */
3566#include <stdarg.h>
3567#include <stdio.h>
3568struct stat;
3569/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3570struct buf { int x; };
3571FILE * (*rcsopen) (struct buf *, struct stat *, int);
3572static char *e (p, i)
3573     char **p;
3574     int i;
3575{
3576  return p[i];
3577}
3578static char *f (char * (*g) (char **, int), char **p, ...)
3579{
3580  char *s;
3581  va_list v;
3582  va_start (v,p);
3583  s = g (p, va_arg (v,int));
3584  va_end (v);
3585  return s;
3586}
3587
3588/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3589   function prototypes and stuff, but not '\xHH' hex character constants.
3590   These don't provoke an error unfortunately, instead are silently treated
3591   as 'x'.  The following induces an error, until -std is added to get
3592   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3593   array size at least.  It's necessary to write '\x00'==0 to get something
3594   that's true only with -std.  */
3595int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3596
3597/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3598   inside strings and character constants.  */
3599#define FOO(x) 'x'
3600int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3601
3602int test (int i, double x);
3603struct s1 {int (*f) (int a);};
3604struct s2 {int (*f) (double a);};
3605int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3606int argc;
3607char **argv;
3608int
3609main ()
3610{
3611return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3612  ;
3613  return 0;
3614}
3615_ACEOF
3616for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3617	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3618do
3619  CC="$ac_save_CC $ac_arg"
3620  if ac_fn_c_try_compile "$LINENO"; then :
3621  ac_cv_prog_cc_c89=$ac_arg
3622fi
3623rm -f core conftest.err conftest.$ac_objext
3624  test "x$ac_cv_prog_cc_c89" != "xno" && break
3625done
3626rm -f conftest.$ac_ext
3627CC=$ac_save_CC
3628
3629fi
3630# AC_CACHE_VAL
3631case "x$ac_cv_prog_cc_c89" in
3632  x)
3633    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3634$as_echo "none needed" >&6; } ;;
3635  xno)
3636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3637$as_echo "unsupported" >&6; } ;;
3638  *)
3639    CC="$CC $ac_cv_prog_cc_c89"
3640    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3641$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3642esac
3643if test "x$ac_cv_prog_cc_c89" != xno; then :
3644
3645fi
3646
3647ac_ext=c
3648ac_cpp='$CPP $CPPFLAGS'
3649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652
3653ac_ext=c
3654ac_cpp='$CPP $CPPFLAGS'
3655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3659$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3660if ${am_cv_prog_cc_c_o+:} false; then :
3661  $as_echo_n "(cached) " >&6
3662else
3663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h.  */
3665
3666int
3667main ()
3668{
3669
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674  # Make sure it works both with $CC and with simple cc.
3675  # Following AC_PROG_CC_C_O, we do the test twice because some
3676  # compilers refuse to overwrite an existing .o file with -o,
3677  # though they will create one.
3678  am_cv_prog_cc_c_o=yes
3679  for am_i in 1 2; do
3680    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3681   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); } \
3685         && test -f conftest2.$ac_objext; then
3686      : OK
3687    else
3688      am_cv_prog_cc_c_o=no
3689      break
3690    fi
3691  done
3692  rm -f core conftest*
3693  unset am_i
3694fi
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3696$as_echo "$am_cv_prog_cc_c_o" >&6; }
3697if test "$am_cv_prog_cc_c_o" != yes; then
3698   # Losing compiler, so override with the script.
3699   # FIXME: It is wrong to rewrite CC.
3700   # But if we don't then we get into trouble of one sort or another.
3701   # A longer-term fix would be to have automake use am__CC in this case,
3702   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3703   CC="$am_aux_dir/compile $CC"
3704fi
3705ac_ext=c
3706ac_cpp='$CPP $CPPFLAGS'
3707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710
3711
3712depcc="$CC"   am_compiler_list=
3713
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3715$as_echo_n "checking dependency style of $depcc... " >&6; }
3716if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3720  # We make a subdir and do the tests there.  Otherwise we can end up
3721  # making bogus files that we don't know about and never remove.  For
3722  # instance it was reported that on HP-UX the gcc test will end up
3723  # making a dummy file named 'D' -- because '-MD' means "put the output
3724  # in D".
3725  rm -rf conftest.dir
3726  mkdir conftest.dir
3727  # Copy depcomp to subdir because otherwise we won't find it if we're
3728  # using a relative directory.
3729  cp "$am_depcomp" conftest.dir
3730  cd conftest.dir
3731  # We will build objects and dependencies in a subdirectory because
3732  # it helps to detect inapplicable dependency modes.  For instance
3733  # both Tru64's cc and ICC support -MD to output dependencies as a
3734  # side effect of compilation, but ICC will put the dependencies in
3735  # the current directory while Tru64 will put them in the object
3736  # directory.
3737  mkdir sub
3738
3739  am_cv_CC_dependencies_compiler_type=none
3740  if test "$am_compiler_list" = ""; then
3741     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3742  fi
3743  am__universal=false
3744  case " $depcc " in #(
3745     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3746     esac
3747
3748  for depmode in $am_compiler_list; do
3749    # Setup a source with many dependencies, because some compilers
3750    # like to wrap large dependency lists on column 80 (with \), and
3751    # we should not choose a depcomp mode which is confused by this.
3752    #
3753    # We need to recreate these files for each test, as the compiler may
3754    # overwrite some of them when testing with obscure command lines.
3755    # This happens at least with the AIX C compiler.
3756    : > sub/conftest.c
3757    for i in 1 2 3 4 5 6; do
3758      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3759      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3760      # Solaris 10 /bin/sh.
3761      echo '/* dummy */' > sub/conftst$i.h
3762    done
3763    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3764
3765    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3766    # mode.  It turns out that the SunPro C++ compiler does not properly
3767    # handle '-M -o', and we need to detect this.  Also, some Intel
3768    # versions had trouble with output in subdirs.
3769    am__obj=sub/conftest.${OBJEXT-o}
3770    am__minus_obj="-o $am__obj"
3771    case $depmode in
3772    gcc)
3773      # This depmode causes a compiler race in universal mode.
3774      test "$am__universal" = false || continue
3775      ;;
3776    nosideeffect)
3777      # After this tag, mechanisms are not by side-effect, so they'll
3778      # only be used when explicitly requested.
3779      if test "x$enable_dependency_tracking" = xyes; then
3780	continue
3781      else
3782	break
3783      fi
3784      ;;
3785    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3786      # This compiler won't grok '-c -o', but also, the minuso test has
3787      # not run yet.  These depmodes are late enough in the game, and
3788      # so weak that their functioning should not be impacted.
3789      am__obj=conftest.${OBJEXT-o}
3790      am__minus_obj=
3791      ;;
3792    none) break ;;
3793    esac
3794    if depmode=$depmode \
3795       source=sub/conftest.c object=$am__obj \
3796       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3797       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3798         >/dev/null 2>conftest.err &&
3799       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3800       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3801       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3802       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3803      # icc doesn't choke on unknown options, it will just issue warnings
3804      # or remarks (even with -Werror).  So we grep stderr for any message
3805      # that says an option was ignored or not supported.
3806      # When given -MP, icc 7.0 and 7.1 complain thusly:
3807      #   icc: Command line warning: ignoring option '-M'; no argument required
3808      # The diagnosis changed in icc 8.0:
3809      #   icc: Command line remark: option '-MP' not supported
3810      if (grep 'ignoring option' conftest.err ||
3811          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3812        am_cv_CC_dependencies_compiler_type=$depmode
3813        break
3814      fi
3815    fi
3816  done
3817
3818  cd ..
3819  rm -rf conftest.dir
3820else
3821  am_cv_CC_dependencies_compiler_type=none
3822fi
3823
3824fi
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3826$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3827CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3828
3829 if
3830  test "x$enable_dependency_tracking" != xno \
3831  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3832  am__fastdepCC_TRUE=
3833  am__fastdepCC_FALSE='#'
3834else
3835  am__fastdepCC_TRUE='#'
3836  am__fastdepCC_FALSE=
3837fi
3838
3839
3840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3841$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3842if ${ac_cv_prog_cc_c99+:} false; then :
3843  $as_echo_n "(cached) " >&6
3844else
3845  ac_cv_prog_cc_c99=no
3846ac_save_CC=$CC
3847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h.  */
3849#include <stdarg.h>
3850#include <stdbool.h>
3851#include <stdlib.h>
3852#include <wchar.h>
3853#include <stdio.h>
3854
3855// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3856#define debug(...) fprintf (stderr, __VA_ARGS__)
3857#define showlist(...) puts (#__VA_ARGS__)
3858#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3859static void
3860test_varargs_macros (void)
3861{
3862  int x = 1234;
3863  int y = 5678;
3864  debug ("Flag");
3865  debug ("X = %d\n", x);
3866  showlist (The first, second, and third items.);
3867  report (x>y, "x is %d but y is %d", x, y);
3868}
3869
3870// Check long long types.
3871#define BIG64 18446744073709551615ull
3872#define BIG32 4294967295ul
3873#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3874#if !BIG_OK
3875  your preprocessor is broken;
3876#endif
3877#if BIG_OK
3878#else
3879  your preprocessor is broken;
3880#endif
3881static long long int bignum = -9223372036854775807LL;
3882static unsigned long long int ubignum = BIG64;
3883
3884struct incomplete_array
3885{
3886  int datasize;
3887  double data[];
3888};
3889
3890struct named_init {
3891  int number;
3892  const wchar_t *name;
3893  double average;
3894};
3895
3896typedef const char *ccp;
3897
3898static inline int
3899test_restrict (ccp restrict text)
3900{
3901  // See if C++-style comments work.
3902  // Iterate through items via the restricted pointer.
3903  // Also check for declarations in for loops.
3904  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3905    continue;
3906  return 0;
3907}
3908
3909// Check varargs and va_copy.
3910static void
3911test_varargs (const char *format, ...)
3912{
3913  va_list args;
3914  va_start (args, format);
3915  va_list args_copy;
3916  va_copy (args_copy, args);
3917
3918  const char *str;
3919  int number;
3920  float fnumber;
3921
3922  while (*format)
3923    {
3924      switch (*format++)
3925	{
3926	case 's': // string
3927	  str = va_arg (args_copy, const char *);
3928	  break;
3929	case 'd': // int
3930	  number = va_arg (args_copy, int);
3931	  break;
3932	case 'f': // float
3933	  fnumber = va_arg (args_copy, double);
3934	  break;
3935	default:
3936	  break;
3937	}
3938    }
3939  va_end (args_copy);
3940  va_end (args);
3941}
3942
3943int
3944main ()
3945{
3946
3947  // Check bool.
3948  _Bool success = false;
3949
3950  // Check restrict.
3951  if (test_restrict ("String literal") == 0)
3952    success = true;
3953  char *restrict newvar = "Another string";
3954
3955  // Check varargs.
3956  test_varargs ("s, d' f .", "string", 65, 34.234);
3957  test_varargs_macros ();
3958
3959  // Check flexible array members.
3960  struct incomplete_array *ia =
3961    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3962  ia->datasize = 10;
3963  for (int i = 0; i < ia->datasize; ++i)
3964    ia->data[i] = i * 1.234;
3965
3966  // Check named initializers.
3967  struct named_init ni = {
3968    .number = 34,
3969    .name = L"Test wide string",
3970    .average = 543.34343,
3971  };
3972
3973  ni.number = 58;
3974
3975  int dynamic_array[ni.number];
3976  dynamic_array[ni.number - 1] = 543;
3977
3978  // work around unused variable warnings
3979  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3980	  || dynamic_array[ni.number - 1] != 543);
3981
3982  ;
3983  return 0;
3984}
3985_ACEOF
3986for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3987do
3988  CC="$ac_save_CC $ac_arg"
3989  if ac_fn_c_try_compile "$LINENO"; then :
3990  ac_cv_prog_cc_c99=$ac_arg
3991fi
3992rm -f core conftest.err conftest.$ac_objext
3993  test "x$ac_cv_prog_cc_c99" != "xno" && break
3994done
3995rm -f conftest.$ac_ext
3996CC=$ac_save_CC
3997
3998fi
3999# AC_CACHE_VAL
4000case "x$ac_cv_prog_cc_c99" in
4001  x)
4002    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4003$as_echo "none needed" >&6; } ;;
4004  xno)
4005    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4006$as_echo "unsupported" >&6; } ;;
4007  *)
4008    CC="$CC $ac_cv_prog_cc_c99"
4009    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4010$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4011esac
4012if test "x$ac_cv_prog_cc_c99" != xno; then :
4013
4014fi
4015
4016
4017
4018ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4024$as_echo_n "checking how to run the C preprocessor... " >&6; }
4025# On Suns, sometimes $CPP names a directory.
4026if test -n "$CPP" && test -d "$CPP"; then
4027  CPP=
4028fi
4029if test -z "$CPP"; then
4030  if ${ac_cv_prog_CPP+:} false; then :
4031  $as_echo_n "(cached) " >&6
4032else
4033      # Double quotes because CPP needs to be expanded
4034    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4035    do
4036      ac_preproc_ok=false
4037for ac_c_preproc_warn_flag in '' yes
4038do
4039  # Use a header file that comes with gcc, so configuring glibc
4040  # with a fresh cross-compiler works.
4041  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4042  # <limits.h> exists even on freestanding compilers.
4043  # On the NeXT, cc -E runs the code through the compiler's parser,
4044  # not just through cpp. "Syntax error" is here to catch this case.
4045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h.  */
4047#ifdef __STDC__
4048# include <limits.h>
4049#else
4050# include <assert.h>
4051#endif
4052		     Syntax error
4053_ACEOF
4054if ac_fn_c_try_cpp "$LINENO"; then :
4055
4056else
4057  # Broken: fails on valid input.
4058continue
4059fi
4060rm -f conftest.err conftest.i conftest.$ac_ext
4061
4062  # OK, works on sane cases.  Now check whether nonexistent headers
4063  # can be detected and how.
4064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065/* end confdefs.h.  */
4066#include <ac_nonexistent.h>
4067_ACEOF
4068if ac_fn_c_try_cpp "$LINENO"; then :
4069  # Broken: success on invalid input.
4070continue
4071else
4072  # Passes both tests.
4073ac_preproc_ok=:
4074break
4075fi
4076rm -f conftest.err conftest.i conftest.$ac_ext
4077
4078done
4079# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4080rm -f conftest.i conftest.err conftest.$ac_ext
4081if $ac_preproc_ok; then :
4082  break
4083fi
4084
4085    done
4086    ac_cv_prog_CPP=$CPP
4087
4088fi
4089  CPP=$ac_cv_prog_CPP
4090else
4091  ac_cv_prog_CPP=$CPP
4092fi
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4094$as_echo "$CPP" >&6; }
4095ac_preproc_ok=false
4096for ac_c_preproc_warn_flag in '' yes
4097do
4098  # Use a header file that comes with gcc, so configuring glibc
4099  # with a fresh cross-compiler works.
4100  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4101  # <limits.h> exists even on freestanding compilers.
4102  # On the NeXT, cc -E runs the code through the compiler's parser,
4103  # not just through cpp. "Syntax error" is here to catch this case.
4104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105/* end confdefs.h.  */
4106#ifdef __STDC__
4107# include <limits.h>
4108#else
4109# include <assert.h>
4110#endif
4111		     Syntax error
4112_ACEOF
4113if ac_fn_c_try_cpp "$LINENO"; then :
4114
4115else
4116  # Broken: fails on valid input.
4117continue
4118fi
4119rm -f conftest.err conftest.i conftest.$ac_ext
4120
4121  # OK, works on sane cases.  Now check whether nonexistent headers
4122  # can be detected and how.
4123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124/* end confdefs.h.  */
4125#include <ac_nonexistent.h>
4126_ACEOF
4127if ac_fn_c_try_cpp "$LINENO"; then :
4128  # Broken: success on invalid input.
4129continue
4130else
4131  # Passes both tests.
4132ac_preproc_ok=:
4133break
4134fi
4135rm -f conftest.err conftest.i conftest.$ac_ext
4136
4137done
4138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4139rm -f conftest.i conftest.err conftest.$ac_ext
4140if $ac_preproc_ok; then :
4141
4142else
4143  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4145as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4146See \`config.log' for more details" "$LINENO" 5; }
4147fi
4148
4149ac_ext=c
4150ac_cpp='$CPP $CPPFLAGS'
4151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4157$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4158if ${ac_cv_path_GREP+:} false; then :
4159  $as_echo_n "(cached) " >&6
4160else
4161  if test -z "$GREP"; then
4162  ac_path_GREP_found=false
4163  # Loop through the user's path and test for each of PROGNAME-LIST
4164  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4166do
4167  IFS=$as_save_IFS
4168  test -z "$as_dir" && as_dir=.
4169    for ac_prog in grep ggrep; do
4170    for ac_exec_ext in '' $ac_executable_extensions; do
4171      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4172      as_fn_executable_p "$ac_path_GREP" || continue
4173# Check for GNU ac_path_GREP and select it if it is found.
4174  # Check for GNU $ac_path_GREP
4175case `"$ac_path_GREP" --version 2>&1` in
4176*GNU*)
4177  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4178*)
4179  ac_count=0
4180  $as_echo_n 0123456789 >"conftest.in"
4181  while :
4182  do
4183    cat "conftest.in" "conftest.in" >"conftest.tmp"
4184    mv "conftest.tmp" "conftest.in"
4185    cp "conftest.in" "conftest.nl"
4186    $as_echo 'GREP' >> "conftest.nl"
4187    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189    as_fn_arith $ac_count + 1 && ac_count=$as_val
4190    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4191      # Best one so far, save it but keep looking for a better one
4192      ac_cv_path_GREP="$ac_path_GREP"
4193      ac_path_GREP_max=$ac_count
4194    fi
4195    # 10*(2^10) chars as input seems more than enough
4196    test $ac_count -gt 10 && break
4197  done
4198  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199esac
4200
4201      $ac_path_GREP_found && break 3
4202    done
4203  done
4204  done
4205IFS=$as_save_IFS
4206  if test -z "$ac_cv_path_GREP"; then
4207    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4208  fi
4209else
4210  ac_cv_path_GREP=$GREP
4211fi
4212
4213fi
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4215$as_echo "$ac_cv_path_GREP" >&6; }
4216 GREP="$ac_cv_path_GREP"
4217
4218
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4220$as_echo_n "checking for egrep... " >&6; }
4221if ${ac_cv_path_EGREP+:} false; then :
4222  $as_echo_n "(cached) " >&6
4223else
4224  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4225   then ac_cv_path_EGREP="$GREP -E"
4226   else
4227     if test -z "$EGREP"; then
4228  ac_path_EGREP_found=false
4229  # Loop through the user's path and test for each of PROGNAME-LIST
4230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4232do
4233  IFS=$as_save_IFS
4234  test -z "$as_dir" && as_dir=.
4235    for ac_prog in egrep; do
4236    for ac_exec_ext in '' $ac_executable_extensions; do
4237      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4238      as_fn_executable_p "$ac_path_EGREP" || continue
4239# Check for GNU ac_path_EGREP and select it if it is found.
4240  # Check for GNU $ac_path_EGREP
4241case `"$ac_path_EGREP" --version 2>&1` in
4242*GNU*)
4243  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4244*)
4245  ac_count=0
4246  $as_echo_n 0123456789 >"conftest.in"
4247  while :
4248  do
4249    cat "conftest.in" "conftest.in" >"conftest.tmp"
4250    mv "conftest.tmp" "conftest.in"
4251    cp "conftest.in" "conftest.nl"
4252    $as_echo 'EGREP' >> "conftest.nl"
4253    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4254    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4255    as_fn_arith $ac_count + 1 && ac_count=$as_val
4256    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4257      # Best one so far, save it but keep looking for a better one
4258      ac_cv_path_EGREP="$ac_path_EGREP"
4259      ac_path_EGREP_max=$ac_count
4260    fi
4261    # 10*(2^10) chars as input seems more than enough
4262    test $ac_count -gt 10 && break
4263  done
4264  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4265esac
4266
4267      $ac_path_EGREP_found && break 3
4268    done
4269  done
4270  done
4271IFS=$as_save_IFS
4272  if test -z "$ac_cv_path_EGREP"; then
4273    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4274  fi
4275else
4276  ac_cv_path_EGREP=$EGREP
4277fi
4278
4279   fi
4280fi
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4282$as_echo "$ac_cv_path_EGREP" >&6; }
4283 EGREP="$ac_cv_path_EGREP"
4284
4285
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4287$as_echo_n "checking for ANSI C header files... " >&6; }
4288if ${ac_cv_header_stdc+:} false; then :
4289  $as_echo_n "(cached) " >&6
4290else
4291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292/* end confdefs.h.  */
4293#include <stdlib.h>
4294#include <stdarg.h>
4295#include <string.h>
4296#include <float.h>
4297
4298int
4299main ()
4300{
4301
4302  ;
4303  return 0;
4304}
4305_ACEOF
4306if ac_fn_c_try_compile "$LINENO"; then :
4307  ac_cv_header_stdc=yes
4308else
4309  ac_cv_header_stdc=no
4310fi
4311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312
4313if test $ac_cv_header_stdc = yes; then
4314  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317#include <string.h>
4318
4319_ACEOF
4320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321  $EGREP "memchr" >/dev/null 2>&1; then :
4322
4323else
4324  ac_cv_header_stdc=no
4325fi
4326rm -f conftest*
4327
4328fi
4329
4330if test $ac_cv_header_stdc = yes; then
4331  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333/* end confdefs.h.  */
4334#include <stdlib.h>
4335
4336_ACEOF
4337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338  $EGREP "free" >/dev/null 2>&1; then :
4339
4340else
4341  ac_cv_header_stdc=no
4342fi
4343rm -f conftest*
4344
4345fi
4346
4347if test $ac_cv_header_stdc = yes; then
4348  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4349  if test "$cross_compiling" = yes; then :
4350  :
4351else
4352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353/* end confdefs.h.  */
4354#include <ctype.h>
4355#include <stdlib.h>
4356#if ((' ' & 0x0FF) == 0x020)
4357# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4358# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4359#else
4360# define ISLOWER(c) \
4361		   (('a' <= (c) && (c) <= 'i') \
4362		     || ('j' <= (c) && (c) <= 'r') \
4363		     || ('s' <= (c) && (c) <= 'z'))
4364# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4365#endif
4366
4367#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4368int
4369main ()
4370{
4371  int i;
4372  for (i = 0; i < 256; i++)
4373    if (XOR (islower (i), ISLOWER (i))
4374	|| toupper (i) != TOUPPER (i))
4375      return 2;
4376  return 0;
4377}
4378_ACEOF
4379if ac_fn_c_try_run "$LINENO"; then :
4380
4381else
4382  ac_cv_header_stdc=no
4383fi
4384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4385  conftest.$ac_objext conftest.beam conftest.$ac_ext
4386fi
4387
4388fi
4389fi
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4391$as_echo "$ac_cv_header_stdc" >&6; }
4392if test $ac_cv_header_stdc = yes; then
4393
4394$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4395
4396fi
4397
4398# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4399for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4400		  inttypes.h stdint.h unistd.h
4401do :
4402  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4403ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4404"
4405if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4406  cat >>confdefs.h <<_ACEOF
4407#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4408_ACEOF
4409
4410fi
4411
4412done
4413
4414
4415
4416
4417
4418
4419ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4420if test "x$ac_cv_have_decl___clang__" = xyes; then :
4421  CLANGCC="yes"
4422else
4423  CLANGCC="no"
4424fi
4425
4426ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4427if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4428  INTELCC="yes"
4429else
4430  INTELCC="no"
4431fi
4432
4433ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4434if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4435  SUNCC="yes"
4436else
4437  SUNCC="no"
4438fi
4439
4440
4441
4442
4443if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4444	if test -n "$ac_tool_prefix"; then
4445  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4446set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448$as_echo_n "checking for $ac_word... " >&6; }
4449if ${ac_cv_path_PKG_CONFIG+:} false; then :
4450  $as_echo_n "(cached) " >&6
4451else
4452  case $PKG_CONFIG in
4453  [\\/]* | ?:[\\/]*)
4454  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4455  ;;
4456  *)
4457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460  IFS=$as_save_IFS
4461  test -z "$as_dir" && as_dir=.
4462    for ac_exec_ext in '' $ac_executable_extensions; do
4463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466    break 2
4467  fi
4468done
4469  done
4470IFS=$as_save_IFS
4471
4472  ;;
4473esac
4474fi
4475PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4476if test -n "$PKG_CONFIG"; then
4477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4478$as_echo "$PKG_CONFIG" >&6; }
4479else
4480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481$as_echo "no" >&6; }
4482fi
4483
4484
4485fi
4486if test -z "$ac_cv_path_PKG_CONFIG"; then
4487  ac_pt_PKG_CONFIG=$PKG_CONFIG
4488  # Extract the first word of "pkg-config", so it can be a program name with args.
4489set dummy pkg-config; ac_word=$2
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491$as_echo_n "checking for $ac_word... " >&6; }
4492if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4493  $as_echo_n "(cached) " >&6
4494else
4495  case $ac_pt_PKG_CONFIG in
4496  [\\/]* | ?:[\\/]*)
4497  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4498  ;;
4499  *)
4500  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH
4502do
4503  IFS=$as_save_IFS
4504  test -z "$as_dir" && as_dir=.
4505    for ac_exec_ext in '' $ac_executable_extensions; do
4506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4507    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509    break 2
4510  fi
4511done
4512  done
4513IFS=$as_save_IFS
4514
4515  ;;
4516esac
4517fi
4518ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4519if test -n "$ac_pt_PKG_CONFIG"; then
4520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4521$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4522else
4523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524$as_echo "no" >&6; }
4525fi
4526
4527  if test "x$ac_pt_PKG_CONFIG" = x; then
4528    PKG_CONFIG=""
4529  else
4530    case $cross_compiling:$ac_tool_warned in
4531yes:)
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4534ac_tool_warned=yes ;;
4535esac
4536    PKG_CONFIG=$ac_pt_PKG_CONFIG
4537  fi
4538else
4539  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4540fi
4541
4542fi
4543if test -n "$PKG_CONFIG"; then
4544	_pkg_min_version=0.9.0
4545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4546$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4547	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4548		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4549$as_echo "yes" >&6; }
4550	else
4551		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552$as_echo "no" >&6; }
4553		PKG_CONFIG=""
4554	fi
4555
4556fi
4557# Make sure we can run config.sub.
4558$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4559  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4560
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4562$as_echo_n "checking build system type... " >&6; }
4563if ${ac_cv_build+:} false; then :
4564  $as_echo_n "(cached) " >&6
4565else
4566  ac_build_alias=$build_alias
4567test "x$ac_build_alias" = x &&
4568  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4569test "x$ac_build_alias" = x &&
4570  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4571ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4572  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4573
4574fi
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4576$as_echo "$ac_cv_build" >&6; }
4577case $ac_cv_build in
4578*-*-*) ;;
4579*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4580esac
4581build=$ac_cv_build
4582ac_save_IFS=$IFS; IFS='-'
4583set x $ac_cv_build
4584shift
4585build_cpu=$1
4586build_vendor=$2
4587shift; shift
4588# Remember, the first character of IFS is used to create $*,
4589# except with old shells:
4590build_os=$*
4591IFS=$ac_save_IFS
4592case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4593
4594
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4596$as_echo_n "checking host system type... " >&6; }
4597if ${ac_cv_host+:} false; then :
4598  $as_echo_n "(cached) " >&6
4599else
4600  if test "x$host_alias" = x; then
4601  ac_cv_host=$ac_cv_build
4602else
4603  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4604    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4605fi
4606
4607fi
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4609$as_echo "$ac_cv_host" >&6; }
4610case $ac_cv_host in
4611*-*-*) ;;
4612*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4613esac
4614host=$ac_cv_host
4615ac_save_IFS=$IFS; IFS='-'
4616set x $ac_cv_host
4617shift
4618host_cpu=$1
4619host_vendor=$2
4620shift; shift
4621# Remember, the first character of IFS is used to create $*,
4622# except with old shells:
4623host_os=$*
4624IFS=$ac_save_IFS
4625case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4626
4627
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4629$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4630if ${ac_cv_path_SED+:} false; then :
4631  $as_echo_n "(cached) " >&6
4632else
4633            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4634     for ac_i in 1 2 3 4 5 6 7; do
4635       ac_script="$ac_script$as_nl$ac_script"
4636     done
4637     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4638     { ac_script=; unset ac_script;}
4639     if test -z "$SED"; then
4640  ac_path_SED_found=false
4641  # Loop through the user's path and test for each of PROGNAME-LIST
4642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645  IFS=$as_save_IFS
4646  test -z "$as_dir" && as_dir=.
4647    for ac_prog in sed gsed; do
4648    for ac_exec_ext in '' $ac_executable_extensions; do
4649      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4650      as_fn_executable_p "$ac_path_SED" || continue
4651# Check for GNU ac_path_SED and select it if it is found.
4652  # Check for GNU $ac_path_SED
4653case `"$ac_path_SED" --version 2>&1` in
4654*GNU*)
4655  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4656*)
4657  ac_count=0
4658  $as_echo_n 0123456789 >"conftest.in"
4659  while :
4660  do
4661    cat "conftest.in" "conftest.in" >"conftest.tmp"
4662    mv "conftest.tmp" "conftest.in"
4663    cp "conftest.in" "conftest.nl"
4664    $as_echo '' >> "conftest.nl"
4665    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4667    as_fn_arith $ac_count + 1 && ac_count=$as_val
4668    if test $ac_count -gt ${ac_path_SED_max-0}; then
4669      # Best one so far, save it but keep looking for a better one
4670      ac_cv_path_SED="$ac_path_SED"
4671      ac_path_SED_max=$ac_count
4672    fi
4673    # 10*(2^10) chars as input seems more than enough
4674    test $ac_count -gt 10 && break
4675  done
4676  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4677esac
4678
4679      $ac_path_SED_found && break 3
4680    done
4681  done
4682  done
4683IFS=$as_save_IFS
4684  if test -z "$ac_cv_path_SED"; then
4685    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4686  fi
4687else
4688  ac_cv_path_SED=$SED
4689fi
4690
4691fi
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4693$as_echo "$ac_cv_path_SED" >&6; }
4694 SED="$ac_cv_path_SED"
4695  rm -f conftest.sed
4696
4697
4698
4699
4700
4701
4702# Check whether --enable-selective-werror was given.
4703if test "${enable_selective_werror+set}" = set; then :
4704  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4705else
4706  SELECTIVE_WERROR=yes
4707fi
4708
4709
4710
4711
4712
4713# -v is too short to test reliably with XORG_TESTSET_CFLAG
4714if test "x$SUNCC" = "xyes"; then
4715    BASE_CFLAGS="-v"
4716else
4717    BASE_CFLAGS=""
4718fi
4719
4720# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734xorg_testset_save_CFLAGS="$CFLAGS"
4735
4736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4738	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4741  $as_echo_n "(cached) " >&6
4742else
4743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h.  */
4745int i;
4746_ACEOF
4747if ac_fn_c_try_compile "$LINENO"; then :
4748  xorg_cv_cc_flag_unknown_warning_option=yes
4749else
4750  xorg_cv_cc_flag_unknown_warning_option=no
4751fi
4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753fi
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4757	CFLAGS="$xorg_testset_save_CFLAGS"
4758fi
4759
4760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4763	fi
4764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4768  $as_echo_n "(cached) " >&6
4769else
4770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h.  */
4772int i;
4773_ACEOF
4774if ac_fn_c_try_compile "$LINENO"; then :
4775  xorg_cv_cc_flag_unused_command_line_argument=yes
4776else
4777  xorg_cv_cc_flag_unused_command_line_argument=no
4778fi
4779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780fi
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4783	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4784	CFLAGS="$xorg_testset_save_CFLAGS"
4785fi
4786
4787found="no"
4788
4789	if test $found = "no" ; then
4790		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4792		fi
4793
4794		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4796		fi
4797
4798		CFLAGS="$CFLAGS -Wall"
4799
4800		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4801$as_echo_n "checking if $CC supports -Wall... " >&6; }
4802		cacheid=xorg_cv_cc_flag__Wall
4803		if eval \${$cacheid+:} false; then :
4804  $as_echo_n "(cached) " >&6
4805else
4806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807/* end confdefs.h.  */
4808int i;
4809int
4810main ()
4811{
4812
4813  ;
4814  return 0;
4815}
4816_ACEOF
4817if ac_fn_c_try_link "$LINENO"; then :
4818  eval $cacheid=yes
4819else
4820  eval $cacheid=no
4821fi
4822rm -f core conftest.err conftest.$ac_objext \
4823    conftest$ac_exeext conftest.$ac_ext
4824fi
4825
4826
4827		CFLAGS="$xorg_testset_save_CFLAGS"
4828
4829		eval supported=\$$cacheid
4830		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4831$as_echo "$supported" >&6; }
4832		if test "$supported" = "yes" ; then
4833			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4834			found="yes"
4835		fi
4836	fi
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852xorg_testset_save_CFLAGS="$CFLAGS"
4853
4854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4855	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4859  $as_echo_n "(cached) " >&6
4860else
4861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862/* end confdefs.h.  */
4863int i;
4864_ACEOF
4865if ac_fn_c_try_compile "$LINENO"; then :
4866  xorg_cv_cc_flag_unknown_warning_option=yes
4867else
4868  xorg_cv_cc_flag_unknown_warning_option=no
4869fi
4870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871fi
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4875	CFLAGS="$xorg_testset_save_CFLAGS"
4876fi
4877
4878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4881	fi
4882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4886  $as_echo_n "(cached) " >&6
4887else
4888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889/* end confdefs.h.  */
4890int i;
4891_ACEOF
4892if ac_fn_c_try_compile "$LINENO"; then :
4893  xorg_cv_cc_flag_unused_command_line_argument=yes
4894else
4895  xorg_cv_cc_flag_unused_command_line_argument=no
4896fi
4897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898fi
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4902	CFLAGS="$xorg_testset_save_CFLAGS"
4903fi
4904
4905found="no"
4906
4907	if test $found = "no" ; then
4908		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4910		fi
4911
4912		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4914		fi
4915
4916		CFLAGS="$CFLAGS -Wpointer-arith"
4917
4918		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4919$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4920		cacheid=xorg_cv_cc_flag__Wpointer_arith
4921		if eval \${$cacheid+:} false; then :
4922  $as_echo_n "(cached) " >&6
4923else
4924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925/* end confdefs.h.  */
4926int i;
4927int
4928main ()
4929{
4930
4931  ;
4932  return 0;
4933}
4934_ACEOF
4935if ac_fn_c_try_link "$LINENO"; then :
4936  eval $cacheid=yes
4937else
4938  eval $cacheid=no
4939fi
4940rm -f core conftest.err conftest.$ac_objext \
4941    conftest$ac_exeext conftest.$ac_ext
4942fi
4943
4944
4945		CFLAGS="$xorg_testset_save_CFLAGS"
4946
4947		eval supported=\$$cacheid
4948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4949$as_echo "$supported" >&6; }
4950		if test "$supported" = "yes" ; then
4951			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4952			found="yes"
4953		fi
4954	fi
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970xorg_testset_save_CFLAGS="$CFLAGS"
4971
4972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4977  $as_echo_n "(cached) " >&6
4978else
4979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980/* end confdefs.h.  */
4981int i;
4982_ACEOF
4983if ac_fn_c_try_compile "$LINENO"; then :
4984  xorg_cv_cc_flag_unknown_warning_option=yes
4985else
4986  xorg_cv_cc_flag_unknown_warning_option=no
4987fi
4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989fi
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4993	CFLAGS="$xorg_testset_save_CFLAGS"
4994fi
4995
4996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4999	fi
5000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5004  $as_echo_n "(cached) " >&6
5005else
5006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h.  */
5008int i;
5009_ACEOF
5010if ac_fn_c_try_compile "$LINENO"; then :
5011  xorg_cv_cc_flag_unused_command_line_argument=yes
5012else
5013  xorg_cv_cc_flag_unused_command_line_argument=no
5014fi
5015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016fi
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5020	CFLAGS="$xorg_testset_save_CFLAGS"
5021fi
5022
5023found="no"
5024
5025	if test $found = "no" ; then
5026		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5028		fi
5029
5030		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5032		fi
5033
5034		CFLAGS="$CFLAGS -Wmissing-declarations"
5035
5036		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5037$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5038		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5039		if eval \${$cacheid+:} false; then :
5040  $as_echo_n "(cached) " >&6
5041else
5042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h.  */
5044int i;
5045int
5046main ()
5047{
5048
5049  ;
5050  return 0;
5051}
5052_ACEOF
5053if ac_fn_c_try_link "$LINENO"; then :
5054  eval $cacheid=yes
5055else
5056  eval $cacheid=no
5057fi
5058rm -f core conftest.err conftest.$ac_objext \
5059    conftest$ac_exeext conftest.$ac_ext
5060fi
5061
5062
5063		CFLAGS="$xorg_testset_save_CFLAGS"
5064
5065		eval supported=\$$cacheid
5066		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5067$as_echo "$supported" >&6; }
5068		if test "$supported" = "yes" ; then
5069			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5070			found="yes"
5071		fi
5072	fi
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088xorg_testset_save_CFLAGS="$CFLAGS"
5089
5090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5091	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5092	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5095  $as_echo_n "(cached) " >&6
5096else
5097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098/* end confdefs.h.  */
5099int i;
5100_ACEOF
5101if ac_fn_c_try_compile "$LINENO"; then :
5102  xorg_cv_cc_flag_unknown_warning_option=yes
5103else
5104  xorg_cv_cc_flag_unknown_warning_option=no
5105fi
5106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107fi
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5111	CFLAGS="$xorg_testset_save_CFLAGS"
5112fi
5113
5114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5117	fi
5118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5122  $as_echo_n "(cached) " >&6
5123else
5124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125/* end confdefs.h.  */
5126int i;
5127_ACEOF
5128if ac_fn_c_try_compile "$LINENO"; then :
5129  xorg_cv_cc_flag_unused_command_line_argument=yes
5130else
5131  xorg_cv_cc_flag_unused_command_line_argument=no
5132fi
5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134fi
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5137	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5138	CFLAGS="$xorg_testset_save_CFLAGS"
5139fi
5140
5141found="no"
5142
5143	if test $found = "no" ; then
5144		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5146		fi
5147
5148		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5150		fi
5151
5152		CFLAGS="$CFLAGS -Wformat=2"
5153
5154		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5155$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5156		cacheid=xorg_cv_cc_flag__Wformat_2
5157		if eval \${$cacheid+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h.  */
5162int i;
5163int
5164main ()
5165{
5166
5167  ;
5168  return 0;
5169}
5170_ACEOF
5171if ac_fn_c_try_link "$LINENO"; then :
5172  eval $cacheid=yes
5173else
5174  eval $cacheid=no
5175fi
5176rm -f core conftest.err conftest.$ac_objext \
5177    conftest$ac_exeext conftest.$ac_ext
5178fi
5179
5180
5181		CFLAGS="$xorg_testset_save_CFLAGS"
5182
5183		eval supported=\$$cacheid
5184		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5185$as_echo "$supported" >&6; }
5186		if test "$supported" = "yes" ; then
5187			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5188			found="yes"
5189		fi
5190	fi
5191
5192	if test $found = "no" ; then
5193		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5195		fi
5196
5197		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5199		fi
5200
5201		CFLAGS="$CFLAGS -Wformat"
5202
5203		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5204$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5205		cacheid=xorg_cv_cc_flag__Wformat
5206		if eval \${$cacheid+:} false; then :
5207  $as_echo_n "(cached) " >&6
5208else
5209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210/* end confdefs.h.  */
5211int i;
5212int
5213main ()
5214{
5215
5216  ;
5217  return 0;
5218}
5219_ACEOF
5220if ac_fn_c_try_link "$LINENO"; then :
5221  eval $cacheid=yes
5222else
5223  eval $cacheid=no
5224fi
5225rm -f core conftest.err conftest.$ac_objext \
5226    conftest$ac_exeext conftest.$ac_ext
5227fi
5228
5229
5230		CFLAGS="$xorg_testset_save_CFLAGS"
5231
5232		eval supported=\$$cacheid
5233		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5234$as_echo "$supported" >&6; }
5235		if test "$supported" = "yes" ; then
5236			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5237			found="yes"
5238		fi
5239	fi
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257xorg_testset_save_CFLAGS="$CFLAGS"
5258
5259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5260	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5264  $as_echo_n "(cached) " >&6
5265else
5266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267/* end confdefs.h.  */
5268int i;
5269_ACEOF
5270if ac_fn_c_try_compile "$LINENO"; then :
5271  xorg_cv_cc_flag_unknown_warning_option=yes
5272else
5273  xorg_cv_cc_flag_unknown_warning_option=no
5274fi
5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276fi
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5279	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5280	CFLAGS="$xorg_testset_save_CFLAGS"
5281fi
5282
5283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5284	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5285		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5286	fi
5287	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5288	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5291  $as_echo_n "(cached) " >&6
5292else
5293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294/* end confdefs.h.  */
5295int i;
5296_ACEOF
5297if ac_fn_c_try_compile "$LINENO"; then :
5298  xorg_cv_cc_flag_unused_command_line_argument=yes
5299else
5300  xorg_cv_cc_flag_unused_command_line_argument=no
5301fi
5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303fi
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5306	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5307	CFLAGS="$xorg_testset_save_CFLAGS"
5308fi
5309
5310found="no"
5311
5312	if test $found = "no" ; then
5313		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5315		fi
5316
5317		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5319		fi
5320
5321		CFLAGS="$CFLAGS -Wstrict-prototypes"
5322
5323		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5324$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5325		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5326		if eval \${$cacheid+:} false; then :
5327  $as_echo_n "(cached) " >&6
5328else
5329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h.  */
5331int i;
5332int
5333main ()
5334{
5335
5336  ;
5337  return 0;
5338}
5339_ACEOF
5340if ac_fn_c_try_link "$LINENO"; then :
5341  eval $cacheid=yes
5342else
5343  eval $cacheid=no
5344fi
5345rm -f core conftest.err conftest.$ac_objext \
5346    conftest$ac_exeext conftest.$ac_ext
5347fi
5348
5349
5350		CFLAGS="$xorg_testset_save_CFLAGS"
5351
5352		eval supported=\$$cacheid
5353		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5354$as_echo "$supported" >&6; }
5355		if test "$supported" = "yes" ; then
5356			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5357			found="yes"
5358		fi
5359	fi
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375xorg_testset_save_CFLAGS="$CFLAGS"
5376
5377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5378	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5382  $as_echo_n "(cached) " >&6
5383else
5384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385/* end confdefs.h.  */
5386int i;
5387_ACEOF
5388if ac_fn_c_try_compile "$LINENO"; then :
5389  xorg_cv_cc_flag_unknown_warning_option=yes
5390else
5391  xorg_cv_cc_flag_unknown_warning_option=no
5392fi
5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394fi
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5397	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5398	CFLAGS="$xorg_testset_save_CFLAGS"
5399fi
5400
5401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5402	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5403		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404	fi
5405	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5406	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5409  $as_echo_n "(cached) " >&6
5410else
5411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h.  */
5413int i;
5414_ACEOF
5415if ac_fn_c_try_compile "$LINENO"; then :
5416  xorg_cv_cc_flag_unused_command_line_argument=yes
5417else
5418  xorg_cv_cc_flag_unused_command_line_argument=no
5419fi
5420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421fi
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5424	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5425	CFLAGS="$xorg_testset_save_CFLAGS"
5426fi
5427
5428found="no"
5429
5430	if test $found = "no" ; then
5431		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5432			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5433		fi
5434
5435		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5436			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5437		fi
5438
5439		CFLAGS="$CFLAGS -Wmissing-prototypes"
5440
5441		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5442$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5443		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5444		if eval \${$cacheid+:} false; then :
5445  $as_echo_n "(cached) " >&6
5446else
5447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448/* end confdefs.h.  */
5449int i;
5450int
5451main ()
5452{
5453
5454  ;
5455  return 0;
5456}
5457_ACEOF
5458if ac_fn_c_try_link "$LINENO"; then :
5459  eval $cacheid=yes
5460else
5461  eval $cacheid=no
5462fi
5463rm -f core conftest.err conftest.$ac_objext \
5464    conftest$ac_exeext conftest.$ac_ext
5465fi
5466
5467
5468		CFLAGS="$xorg_testset_save_CFLAGS"
5469
5470		eval supported=\$$cacheid
5471		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5472$as_echo "$supported" >&6; }
5473		if test "$supported" = "yes" ; then
5474			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5475			found="yes"
5476		fi
5477	fi
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493xorg_testset_save_CFLAGS="$CFLAGS"
5494
5495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5496	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5500  $as_echo_n "(cached) " >&6
5501else
5502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h.  */
5504int i;
5505_ACEOF
5506if ac_fn_c_try_compile "$LINENO"; then :
5507  xorg_cv_cc_flag_unknown_warning_option=yes
5508else
5509  xorg_cv_cc_flag_unknown_warning_option=no
5510fi
5511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512fi
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5515	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5516	CFLAGS="$xorg_testset_save_CFLAGS"
5517fi
5518
5519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5520	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5521		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522	fi
5523	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5527  $as_echo_n "(cached) " >&6
5528else
5529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531int i;
5532_ACEOF
5533if ac_fn_c_try_compile "$LINENO"; then :
5534  xorg_cv_cc_flag_unused_command_line_argument=yes
5535else
5536  xorg_cv_cc_flag_unused_command_line_argument=no
5537fi
5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539fi
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5543	CFLAGS="$xorg_testset_save_CFLAGS"
5544fi
5545
5546found="no"
5547
5548	if test $found = "no" ; then
5549		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5551		fi
5552
5553		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5555		fi
5556
5557		CFLAGS="$CFLAGS -Wnested-externs"
5558
5559		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5560$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5561		cacheid=xorg_cv_cc_flag__Wnested_externs
5562		if eval \${$cacheid+:} false; then :
5563  $as_echo_n "(cached) " >&6
5564else
5565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566/* end confdefs.h.  */
5567int i;
5568int
5569main ()
5570{
5571
5572  ;
5573  return 0;
5574}
5575_ACEOF
5576if ac_fn_c_try_link "$LINENO"; then :
5577  eval $cacheid=yes
5578else
5579  eval $cacheid=no
5580fi
5581rm -f core conftest.err conftest.$ac_objext \
5582    conftest$ac_exeext conftest.$ac_ext
5583fi
5584
5585
5586		CFLAGS="$xorg_testset_save_CFLAGS"
5587
5588		eval supported=\$$cacheid
5589		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5590$as_echo "$supported" >&6; }
5591		if test "$supported" = "yes" ; then
5592			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5593			found="yes"
5594		fi
5595	fi
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611xorg_testset_save_CFLAGS="$CFLAGS"
5612
5613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5618  $as_echo_n "(cached) " >&6
5619else
5620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h.  */
5622int i;
5623_ACEOF
5624if ac_fn_c_try_compile "$LINENO"; then :
5625  xorg_cv_cc_flag_unknown_warning_option=yes
5626else
5627  xorg_cv_cc_flag_unknown_warning_option=no
5628fi
5629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630fi
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5634	CFLAGS="$xorg_testset_save_CFLAGS"
5635fi
5636
5637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640	fi
5641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5642	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5645  $as_echo_n "(cached) " >&6
5646else
5647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648/* end confdefs.h.  */
5649int i;
5650_ACEOF
5651if ac_fn_c_try_compile "$LINENO"; then :
5652  xorg_cv_cc_flag_unused_command_line_argument=yes
5653else
5654  xorg_cv_cc_flag_unused_command_line_argument=no
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5661	CFLAGS="$xorg_testset_save_CFLAGS"
5662fi
5663
5664found="no"
5665
5666	if test $found = "no" ; then
5667		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5669		fi
5670
5671		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5673		fi
5674
5675		CFLAGS="$CFLAGS -Wbad-function-cast"
5676
5677		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5678$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5679		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5680		if eval \${$cacheid+:} false; then :
5681  $as_echo_n "(cached) " >&6
5682else
5683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h.  */
5685int i;
5686int
5687main ()
5688{
5689
5690  ;
5691  return 0;
5692}
5693_ACEOF
5694if ac_fn_c_try_link "$LINENO"; then :
5695  eval $cacheid=yes
5696else
5697  eval $cacheid=no
5698fi
5699rm -f core conftest.err conftest.$ac_objext \
5700    conftest$ac_exeext conftest.$ac_ext
5701fi
5702
5703
5704		CFLAGS="$xorg_testset_save_CFLAGS"
5705
5706		eval supported=\$$cacheid
5707		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5708$as_echo "$supported" >&6; }
5709		if test "$supported" = "yes" ; then
5710			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5711			found="yes"
5712		fi
5713	fi
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729xorg_testset_save_CFLAGS="$CFLAGS"
5730
5731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5736  $as_echo_n "(cached) " >&6
5737else
5738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h.  */
5740int i;
5741_ACEOF
5742if ac_fn_c_try_compile "$LINENO"; then :
5743  xorg_cv_cc_flag_unknown_warning_option=yes
5744else
5745  xorg_cv_cc_flag_unknown_warning_option=no
5746fi
5747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748fi
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5752	CFLAGS="$xorg_testset_save_CFLAGS"
5753fi
5754
5755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5758	fi
5759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5763  $as_echo_n "(cached) " >&6
5764else
5765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766/* end confdefs.h.  */
5767int i;
5768_ACEOF
5769if ac_fn_c_try_compile "$LINENO"; then :
5770  xorg_cv_cc_flag_unused_command_line_argument=yes
5771else
5772  xorg_cv_cc_flag_unused_command_line_argument=no
5773fi
5774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775fi
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5778	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5779	CFLAGS="$xorg_testset_save_CFLAGS"
5780fi
5781
5782found="no"
5783
5784	if test $found = "no" ; then
5785		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787		fi
5788
5789		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5791		fi
5792
5793		CFLAGS="$CFLAGS -Wold-style-definition"
5794
5795		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5796$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5797		cacheid=xorg_cv_cc_flag__Wold_style_definition
5798		if eval \${$cacheid+:} false; then :
5799  $as_echo_n "(cached) " >&6
5800else
5801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h.  */
5803int i;
5804int
5805main ()
5806{
5807
5808  ;
5809  return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_link "$LINENO"; then :
5813  eval $cacheid=yes
5814else
5815  eval $cacheid=no
5816fi
5817rm -f core conftest.err conftest.$ac_objext \
5818    conftest$ac_exeext conftest.$ac_ext
5819fi
5820
5821
5822		CFLAGS="$xorg_testset_save_CFLAGS"
5823
5824		eval supported=\$$cacheid
5825		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5826$as_echo "$supported" >&6; }
5827		if test "$supported" = "yes" ; then
5828			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5829			found="yes"
5830		fi
5831	fi
5832
5833	if test $found = "no" ; then
5834		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5835			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5836		fi
5837
5838		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5839			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5840		fi
5841
5842		CFLAGS="$CFLAGS -fd"
5843
5844		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5845$as_echo_n "checking if $CC supports -fd... " >&6; }
5846		cacheid=xorg_cv_cc_flag__fd
5847		if eval \${$cacheid+:} false; then :
5848  $as_echo_n "(cached) " >&6
5849else
5850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851/* end confdefs.h.  */
5852int i;
5853int
5854main ()
5855{
5856
5857  ;
5858  return 0;
5859}
5860_ACEOF
5861if ac_fn_c_try_link "$LINENO"; then :
5862  eval $cacheid=yes
5863else
5864  eval $cacheid=no
5865fi
5866rm -f core conftest.err conftest.$ac_objext \
5867    conftest$ac_exeext conftest.$ac_ext
5868fi
5869
5870
5871		CFLAGS="$xorg_testset_save_CFLAGS"
5872
5873		eval supported=\$$cacheid
5874		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5875$as_echo "$supported" >&6; }
5876		if test "$supported" = "yes" ; then
5877			BASE_CFLAGS="$BASE_CFLAGS -fd"
5878			found="yes"
5879		fi
5880	fi
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896xorg_testset_save_CFLAGS="$CFLAGS"
5897
5898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5899	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5900	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5901$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5902if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5903  $as_echo_n "(cached) " >&6
5904else
5905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h.  */
5907int i;
5908_ACEOF
5909if ac_fn_c_try_compile "$LINENO"; then :
5910  xorg_cv_cc_flag_unknown_warning_option=yes
5911else
5912  xorg_cv_cc_flag_unknown_warning_option=no
5913fi
5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915fi
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5917$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5918	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5919	CFLAGS="$xorg_testset_save_CFLAGS"
5920fi
5921
5922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5923	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5924		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5925	fi
5926	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5927	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5928$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5929if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5930  $as_echo_n "(cached) " >&6
5931else
5932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933/* end confdefs.h.  */
5934int i;
5935_ACEOF
5936if ac_fn_c_try_compile "$LINENO"; then :
5937  xorg_cv_cc_flag_unused_command_line_argument=yes
5938else
5939  xorg_cv_cc_flag_unused_command_line_argument=no
5940fi
5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942fi
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5944$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5945	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5946	CFLAGS="$xorg_testset_save_CFLAGS"
5947fi
5948
5949found="no"
5950
5951	if test $found = "no" ; then
5952		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5953			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5954		fi
5955
5956		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5957			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5958		fi
5959
5960		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5961
5962		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5963$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5964		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5965		if eval \${$cacheid+:} false; then :
5966  $as_echo_n "(cached) " >&6
5967else
5968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969/* end confdefs.h.  */
5970int i;
5971int
5972main ()
5973{
5974
5975  ;
5976  return 0;
5977}
5978_ACEOF
5979if ac_fn_c_try_link "$LINENO"; then :
5980  eval $cacheid=yes
5981else
5982  eval $cacheid=no
5983fi
5984rm -f core conftest.err conftest.$ac_objext \
5985    conftest$ac_exeext conftest.$ac_ext
5986fi
5987
5988
5989		CFLAGS="$xorg_testset_save_CFLAGS"
5990
5991		eval supported=\$$cacheid
5992		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5993$as_echo "$supported" >&6; }
5994		if test "$supported" = "yes" ; then
5995			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5996			found="yes"
5997		fi
5998	fi
5999
6000
6001
6002
6003
6004# This chunk adds additional warnings that could catch undesired effects.
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018xorg_testset_save_CFLAGS="$CFLAGS"
6019
6020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6021	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6023$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6024if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6025  $as_echo_n "(cached) " >&6
6026else
6027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028/* end confdefs.h.  */
6029int i;
6030_ACEOF
6031if ac_fn_c_try_compile "$LINENO"; then :
6032  xorg_cv_cc_flag_unknown_warning_option=yes
6033else
6034  xorg_cv_cc_flag_unknown_warning_option=no
6035fi
6036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6039$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6040	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6041	CFLAGS="$xorg_testset_save_CFLAGS"
6042fi
6043
6044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6045	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6046		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6047	fi
6048	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6050$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6051if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6052  $as_echo_n "(cached) " >&6
6053else
6054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h.  */
6056int i;
6057_ACEOF
6058if ac_fn_c_try_compile "$LINENO"; then :
6059  xorg_cv_cc_flag_unused_command_line_argument=yes
6060else
6061  xorg_cv_cc_flag_unused_command_line_argument=no
6062fi
6063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064fi
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6066$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6068	CFLAGS="$xorg_testset_save_CFLAGS"
6069fi
6070
6071found="no"
6072
6073	if test $found = "no" ; then
6074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6076		fi
6077
6078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6080		fi
6081
6082		CFLAGS="$CFLAGS -Wunused"
6083
6084		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6085$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6086		cacheid=xorg_cv_cc_flag__Wunused
6087		if eval \${$cacheid+:} false; then :
6088  $as_echo_n "(cached) " >&6
6089else
6090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091/* end confdefs.h.  */
6092int i;
6093int
6094main ()
6095{
6096
6097  ;
6098  return 0;
6099}
6100_ACEOF
6101if ac_fn_c_try_link "$LINENO"; then :
6102  eval $cacheid=yes
6103else
6104  eval $cacheid=no
6105fi
6106rm -f core conftest.err conftest.$ac_objext \
6107    conftest$ac_exeext conftest.$ac_ext
6108fi
6109
6110
6111		CFLAGS="$xorg_testset_save_CFLAGS"
6112
6113		eval supported=\$$cacheid
6114		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6115$as_echo "$supported" >&6; }
6116		if test "$supported" = "yes" ; then
6117			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6118			found="yes"
6119		fi
6120	fi
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136xorg_testset_save_CFLAGS="$CFLAGS"
6137
6138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6139	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6141$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6142if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146/* end confdefs.h.  */
6147int i;
6148_ACEOF
6149if ac_fn_c_try_compile "$LINENO"; then :
6150  xorg_cv_cc_flag_unknown_warning_option=yes
6151else
6152  xorg_cv_cc_flag_unknown_warning_option=no
6153fi
6154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155fi
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6157$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6158	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6159	CFLAGS="$xorg_testset_save_CFLAGS"
6160fi
6161
6162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6163	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6164		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6165	fi
6166	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6168$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6169if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6170  $as_echo_n "(cached) " >&6
6171else
6172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173/* end confdefs.h.  */
6174int i;
6175_ACEOF
6176if ac_fn_c_try_compile "$LINENO"; then :
6177  xorg_cv_cc_flag_unused_command_line_argument=yes
6178else
6179  xorg_cv_cc_flag_unused_command_line_argument=no
6180fi
6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182fi
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6184$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6185	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6186	CFLAGS="$xorg_testset_save_CFLAGS"
6187fi
6188
6189found="no"
6190
6191	if test $found = "no" ; then
6192		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6193			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194		fi
6195
6196		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6197			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6198		fi
6199
6200		CFLAGS="$CFLAGS -Wuninitialized"
6201
6202		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6203$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6204		cacheid=xorg_cv_cc_flag__Wuninitialized
6205		if eval \${$cacheid+:} false; then :
6206  $as_echo_n "(cached) " >&6
6207else
6208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209/* end confdefs.h.  */
6210int i;
6211int
6212main ()
6213{
6214
6215  ;
6216  return 0;
6217}
6218_ACEOF
6219if ac_fn_c_try_link "$LINENO"; then :
6220  eval $cacheid=yes
6221else
6222  eval $cacheid=no
6223fi
6224rm -f core conftest.err conftest.$ac_objext \
6225    conftest$ac_exeext conftest.$ac_ext
6226fi
6227
6228
6229		CFLAGS="$xorg_testset_save_CFLAGS"
6230
6231		eval supported=\$$cacheid
6232		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6233$as_echo "$supported" >&6; }
6234		if test "$supported" = "yes" ; then
6235			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6236			found="yes"
6237		fi
6238	fi
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254xorg_testset_save_CFLAGS="$CFLAGS"
6255
6256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6257	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6261  $as_echo_n "(cached) " >&6
6262else
6263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264/* end confdefs.h.  */
6265int i;
6266_ACEOF
6267if ac_fn_c_try_compile "$LINENO"; then :
6268  xorg_cv_cc_flag_unknown_warning_option=yes
6269else
6270  xorg_cv_cc_flag_unknown_warning_option=no
6271fi
6272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273fi
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6276	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6277	CFLAGS="$xorg_testset_save_CFLAGS"
6278fi
6279
6280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6281	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6282		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6283	fi
6284	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6288  $as_echo_n "(cached) " >&6
6289else
6290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291/* end confdefs.h.  */
6292int i;
6293_ACEOF
6294if ac_fn_c_try_compile "$LINENO"; then :
6295  xorg_cv_cc_flag_unused_command_line_argument=yes
6296else
6297  xorg_cv_cc_flag_unused_command_line_argument=no
6298fi
6299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300fi
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6304	CFLAGS="$xorg_testset_save_CFLAGS"
6305fi
6306
6307found="no"
6308
6309	if test $found = "no" ; then
6310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312		fi
6313
6314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6316		fi
6317
6318		CFLAGS="$CFLAGS -Wshadow"
6319
6320		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6321$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6322		cacheid=xorg_cv_cc_flag__Wshadow
6323		if eval \${$cacheid+:} false; then :
6324  $as_echo_n "(cached) " >&6
6325else
6326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327/* end confdefs.h.  */
6328int i;
6329int
6330main ()
6331{
6332
6333  ;
6334  return 0;
6335}
6336_ACEOF
6337if ac_fn_c_try_link "$LINENO"; then :
6338  eval $cacheid=yes
6339else
6340  eval $cacheid=no
6341fi
6342rm -f core conftest.err conftest.$ac_objext \
6343    conftest$ac_exeext conftest.$ac_ext
6344fi
6345
6346
6347		CFLAGS="$xorg_testset_save_CFLAGS"
6348
6349		eval supported=\$$cacheid
6350		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6351$as_echo "$supported" >&6; }
6352		if test "$supported" = "yes" ; then
6353			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6354			found="yes"
6355		fi
6356	fi
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372xorg_testset_save_CFLAGS="$CFLAGS"
6373
6374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6375	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6379  $as_echo_n "(cached) " >&6
6380else
6381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h.  */
6383int i;
6384_ACEOF
6385if ac_fn_c_try_compile "$LINENO"; then :
6386  xorg_cv_cc_flag_unknown_warning_option=yes
6387else
6388  xorg_cv_cc_flag_unknown_warning_option=no
6389fi
6390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391fi
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6394	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6395	CFLAGS="$xorg_testset_save_CFLAGS"
6396fi
6397
6398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6399	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6400		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6401	fi
6402	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6406  $as_echo_n "(cached) " >&6
6407else
6408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409/* end confdefs.h.  */
6410int i;
6411_ACEOF
6412if ac_fn_c_try_compile "$LINENO"; then :
6413  xorg_cv_cc_flag_unused_command_line_argument=yes
6414else
6415  xorg_cv_cc_flag_unused_command_line_argument=no
6416fi
6417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418fi
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6422	CFLAGS="$xorg_testset_save_CFLAGS"
6423fi
6424
6425found="no"
6426
6427	if test $found = "no" ; then
6428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6430		fi
6431
6432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6434		fi
6435
6436		CFLAGS="$CFLAGS -Wmissing-noreturn"
6437
6438		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6439$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6440		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6441		if eval \${$cacheid+:} false; then :
6442  $as_echo_n "(cached) " >&6
6443else
6444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445/* end confdefs.h.  */
6446int i;
6447int
6448main ()
6449{
6450
6451  ;
6452  return 0;
6453}
6454_ACEOF
6455if ac_fn_c_try_link "$LINENO"; then :
6456  eval $cacheid=yes
6457else
6458  eval $cacheid=no
6459fi
6460rm -f core conftest.err conftest.$ac_objext \
6461    conftest$ac_exeext conftest.$ac_ext
6462fi
6463
6464
6465		CFLAGS="$xorg_testset_save_CFLAGS"
6466
6467		eval supported=\$$cacheid
6468		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6469$as_echo "$supported" >&6; }
6470		if test "$supported" = "yes" ; then
6471			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6472			found="yes"
6473		fi
6474	fi
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490xorg_testset_save_CFLAGS="$CFLAGS"
6491
6492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6493	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500/* end confdefs.h.  */
6501int i;
6502_ACEOF
6503if ac_fn_c_try_compile "$LINENO"; then :
6504  xorg_cv_cc_flag_unknown_warning_option=yes
6505else
6506  xorg_cv_cc_flag_unknown_warning_option=no
6507fi
6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509fi
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6512	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6513	CFLAGS="$xorg_testset_save_CFLAGS"
6514fi
6515
6516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6517	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6518		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6519	fi
6520	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6524  $as_echo_n "(cached) " >&6
6525else
6526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527/* end confdefs.h.  */
6528int i;
6529_ACEOF
6530if ac_fn_c_try_compile "$LINENO"; then :
6531  xorg_cv_cc_flag_unused_command_line_argument=yes
6532else
6533  xorg_cv_cc_flag_unused_command_line_argument=no
6534fi
6535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536fi
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6540	CFLAGS="$xorg_testset_save_CFLAGS"
6541fi
6542
6543found="no"
6544
6545	if test $found = "no" ; then
6546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6548		fi
6549
6550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6552		fi
6553
6554		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6555
6556		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6557$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6558		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6559		if eval \${$cacheid+:} false; then :
6560  $as_echo_n "(cached) " >&6
6561else
6562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563/* end confdefs.h.  */
6564int i;
6565int
6566main ()
6567{
6568
6569  ;
6570  return 0;
6571}
6572_ACEOF
6573if ac_fn_c_try_link "$LINENO"; then :
6574  eval $cacheid=yes
6575else
6576  eval $cacheid=no
6577fi
6578rm -f core conftest.err conftest.$ac_objext \
6579    conftest$ac_exeext conftest.$ac_ext
6580fi
6581
6582
6583		CFLAGS="$xorg_testset_save_CFLAGS"
6584
6585		eval supported=\$$cacheid
6586		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6587$as_echo "$supported" >&6; }
6588		if test "$supported" = "yes" ; then
6589			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6590			found="yes"
6591		fi
6592	fi
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608xorg_testset_save_CFLAGS="$CFLAGS"
6609
6610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6615  $as_echo_n "(cached) " >&6
6616else
6617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h.  */
6619int i;
6620_ACEOF
6621if ac_fn_c_try_compile "$LINENO"; then :
6622  xorg_cv_cc_flag_unknown_warning_option=yes
6623else
6624  xorg_cv_cc_flag_unknown_warning_option=no
6625fi
6626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627fi
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6630	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6631	CFLAGS="$xorg_testset_save_CFLAGS"
6632fi
6633
6634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6635	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6636		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6637	fi
6638	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6642  $as_echo_n "(cached) " >&6
6643else
6644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645/* end confdefs.h.  */
6646int i;
6647_ACEOF
6648if ac_fn_c_try_compile "$LINENO"; then :
6649  xorg_cv_cc_flag_unused_command_line_argument=yes
6650else
6651  xorg_cv_cc_flag_unused_command_line_argument=no
6652fi
6653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654fi
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6657	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6658	CFLAGS="$xorg_testset_save_CFLAGS"
6659fi
6660
6661found="no"
6662
6663	if test $found = "no" ; then
6664		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6666		fi
6667
6668		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6670		fi
6671
6672		CFLAGS="$CFLAGS -Wredundant-decls"
6673
6674		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6675$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6676		cacheid=xorg_cv_cc_flag__Wredundant_decls
6677		if eval \${$cacheid+:} false; then :
6678  $as_echo_n "(cached) " >&6
6679else
6680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681/* end confdefs.h.  */
6682int i;
6683int
6684main ()
6685{
6686
6687  ;
6688  return 0;
6689}
6690_ACEOF
6691if ac_fn_c_try_link "$LINENO"; then :
6692  eval $cacheid=yes
6693else
6694  eval $cacheid=no
6695fi
6696rm -f core conftest.err conftest.$ac_objext \
6697    conftest$ac_exeext conftest.$ac_ext
6698fi
6699
6700
6701		CFLAGS="$xorg_testset_save_CFLAGS"
6702
6703		eval supported=\$$cacheid
6704		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6705$as_echo "$supported" >&6; }
6706		if test "$supported" = "yes" ; then
6707			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6708			found="yes"
6709		fi
6710	fi
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726xorg_testset_save_CFLAGS="$CFLAGS"
6727
6728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736/* end confdefs.h.  */
6737int i;
6738_ACEOF
6739if ac_fn_c_try_compile "$LINENO"; then :
6740  xorg_cv_cc_flag_unknown_warning_option=yes
6741else
6742  xorg_cv_cc_flag_unknown_warning_option=no
6743fi
6744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745fi
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6748	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6749	CFLAGS="$xorg_testset_save_CFLAGS"
6750fi
6751
6752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6753	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6754		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6755	fi
6756	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6760  $as_echo_n "(cached) " >&6
6761else
6762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763/* end confdefs.h.  */
6764int i;
6765_ACEOF
6766if ac_fn_c_try_compile "$LINENO"; then :
6767  xorg_cv_cc_flag_unused_command_line_argument=yes
6768else
6769  xorg_cv_cc_flag_unused_command_line_argument=no
6770fi
6771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772fi
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6775	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6776	CFLAGS="$xorg_testset_save_CFLAGS"
6777fi
6778
6779found="no"
6780
6781	if test $found = "no" ; then
6782		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6783			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6784		fi
6785
6786		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6787			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6788		fi
6789
6790		CFLAGS="$CFLAGS -Wlogical-op"
6791
6792		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6793$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6794		cacheid=xorg_cv_cc_flag__Wlogical_op
6795		if eval \${$cacheid+:} false; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799/* end confdefs.h.  */
6800int i;
6801int
6802main ()
6803{
6804
6805  ;
6806  return 0;
6807}
6808_ACEOF
6809if ac_fn_c_try_link "$LINENO"; then :
6810  eval $cacheid=yes
6811else
6812  eval $cacheid=no
6813fi
6814rm -f core conftest.err conftest.$ac_objext \
6815    conftest$ac_exeext conftest.$ac_ext
6816fi
6817
6818
6819		CFLAGS="$xorg_testset_save_CFLAGS"
6820
6821		eval supported=\$$cacheid
6822		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6823$as_echo "$supported" >&6; }
6824		if test "$supported" = "yes" ; then
6825			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6826			found="yes"
6827		fi
6828	fi
6829
6830
6831
6832# These are currently disabled because they are noisy.  They will be enabled
6833# in the future once the codebase is sufficiently modernized to silence
6834# them.  For now, I don't want them to drown out the other warnings.
6835# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6836# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6837# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6838
6839# Turn some warnings into errors, so we don't accidently get successful builds
6840# when there are problems that should be fixed.
6841
6842if test "x$SELECTIVE_WERROR" = "xyes" ; then
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856xorg_testset_save_CFLAGS="$CFLAGS"
6857
6858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6863  $as_echo_n "(cached) " >&6
6864else
6865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866/* end confdefs.h.  */
6867int i;
6868_ACEOF
6869if ac_fn_c_try_compile "$LINENO"; then :
6870  xorg_cv_cc_flag_unknown_warning_option=yes
6871else
6872  xorg_cv_cc_flag_unknown_warning_option=no
6873fi
6874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875fi
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6878	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6879	CFLAGS="$xorg_testset_save_CFLAGS"
6880fi
6881
6882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6883	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6884		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6885	fi
6886	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6890  $as_echo_n "(cached) " >&6
6891else
6892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893/* end confdefs.h.  */
6894int i;
6895_ACEOF
6896if ac_fn_c_try_compile "$LINENO"; then :
6897  xorg_cv_cc_flag_unused_command_line_argument=yes
6898else
6899  xorg_cv_cc_flag_unused_command_line_argument=no
6900fi
6901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902fi
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6905	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6906	CFLAGS="$xorg_testset_save_CFLAGS"
6907fi
6908
6909found="no"
6910
6911	if test $found = "no" ; then
6912		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6913			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6914		fi
6915
6916		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6917			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6918		fi
6919
6920		CFLAGS="$CFLAGS -Werror=implicit"
6921
6922		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6923$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6924		cacheid=xorg_cv_cc_flag__Werror_implicit
6925		if eval \${$cacheid+:} false; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929/* end confdefs.h.  */
6930int i;
6931int
6932main ()
6933{
6934
6935  ;
6936  return 0;
6937}
6938_ACEOF
6939if ac_fn_c_try_link "$LINENO"; then :
6940  eval $cacheid=yes
6941else
6942  eval $cacheid=no
6943fi
6944rm -f core conftest.err conftest.$ac_objext \
6945    conftest$ac_exeext conftest.$ac_ext
6946fi
6947
6948
6949		CFLAGS="$xorg_testset_save_CFLAGS"
6950
6951		eval supported=\$$cacheid
6952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6953$as_echo "$supported" >&6; }
6954		if test "$supported" = "yes" ; then
6955			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6956			found="yes"
6957		fi
6958	fi
6959
6960	if test $found = "no" ; then
6961		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6962			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6963		fi
6964
6965		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6966			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6967		fi
6968
6969		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6970
6971		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6972$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6973		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6974		if eval \${$cacheid+:} false; then :
6975  $as_echo_n "(cached) " >&6
6976else
6977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978/* end confdefs.h.  */
6979int i;
6980int
6981main ()
6982{
6983
6984  ;
6985  return 0;
6986}
6987_ACEOF
6988if ac_fn_c_try_link "$LINENO"; then :
6989  eval $cacheid=yes
6990else
6991  eval $cacheid=no
6992fi
6993rm -f core conftest.err conftest.$ac_objext \
6994    conftest$ac_exeext conftest.$ac_ext
6995fi
6996
6997
6998		CFLAGS="$xorg_testset_save_CFLAGS"
6999
7000		eval supported=\$$cacheid
7001		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7002$as_echo "$supported" >&6; }
7003		if test "$supported" = "yes" ; then
7004			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7005			found="yes"
7006		fi
7007	fi
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023xorg_testset_save_CFLAGS="$CFLAGS"
7024
7025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7030  $as_echo_n "(cached) " >&6
7031else
7032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033/* end confdefs.h.  */
7034int i;
7035_ACEOF
7036if ac_fn_c_try_compile "$LINENO"; then :
7037  xorg_cv_cc_flag_unknown_warning_option=yes
7038else
7039  xorg_cv_cc_flag_unknown_warning_option=no
7040fi
7041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042fi
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7046	CFLAGS="$xorg_testset_save_CFLAGS"
7047fi
7048
7049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7052	fi
7053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7057  $as_echo_n "(cached) " >&6
7058else
7059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060/* end confdefs.h.  */
7061int i;
7062_ACEOF
7063if ac_fn_c_try_compile "$LINENO"; then :
7064  xorg_cv_cc_flag_unused_command_line_argument=yes
7065else
7066  xorg_cv_cc_flag_unused_command_line_argument=no
7067fi
7068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069fi
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7073	CFLAGS="$xorg_testset_save_CFLAGS"
7074fi
7075
7076found="no"
7077
7078	if test $found = "no" ; then
7079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7081		fi
7082
7083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7085		fi
7086
7087		CFLAGS="$CFLAGS -Werror=nonnull"
7088
7089		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7090$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7091		cacheid=xorg_cv_cc_flag__Werror_nonnull
7092		if eval \${$cacheid+:} false; then :
7093  $as_echo_n "(cached) " >&6
7094else
7095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096/* end confdefs.h.  */
7097int i;
7098int
7099main ()
7100{
7101
7102  ;
7103  return 0;
7104}
7105_ACEOF
7106if ac_fn_c_try_link "$LINENO"; then :
7107  eval $cacheid=yes
7108else
7109  eval $cacheid=no
7110fi
7111rm -f core conftest.err conftest.$ac_objext \
7112    conftest$ac_exeext conftest.$ac_ext
7113fi
7114
7115
7116		CFLAGS="$xorg_testset_save_CFLAGS"
7117
7118		eval supported=\$$cacheid
7119		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7120$as_echo "$supported" >&6; }
7121		if test "$supported" = "yes" ; then
7122			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7123			found="yes"
7124		fi
7125	fi
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141xorg_testset_save_CFLAGS="$CFLAGS"
7142
7143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7148  $as_echo_n "(cached) " >&6
7149else
7150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151/* end confdefs.h.  */
7152int i;
7153_ACEOF
7154if ac_fn_c_try_compile "$LINENO"; then :
7155  xorg_cv_cc_flag_unknown_warning_option=yes
7156else
7157  xorg_cv_cc_flag_unknown_warning_option=no
7158fi
7159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160fi
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7164	CFLAGS="$xorg_testset_save_CFLAGS"
7165fi
7166
7167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7170	fi
7171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7175  $as_echo_n "(cached) " >&6
7176else
7177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178/* end confdefs.h.  */
7179int i;
7180_ACEOF
7181if ac_fn_c_try_compile "$LINENO"; then :
7182  xorg_cv_cc_flag_unused_command_line_argument=yes
7183else
7184  xorg_cv_cc_flag_unused_command_line_argument=no
7185fi
7186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7187fi
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7191	CFLAGS="$xorg_testset_save_CFLAGS"
7192fi
7193
7194found="no"
7195
7196	if test $found = "no" ; then
7197		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7199		fi
7200
7201		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7203		fi
7204
7205		CFLAGS="$CFLAGS -Werror=init-self"
7206
7207		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7208$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7209		cacheid=xorg_cv_cc_flag__Werror_init_self
7210		if eval \${$cacheid+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214/* end confdefs.h.  */
7215int i;
7216int
7217main ()
7218{
7219
7220  ;
7221  return 0;
7222}
7223_ACEOF
7224if ac_fn_c_try_link "$LINENO"; then :
7225  eval $cacheid=yes
7226else
7227  eval $cacheid=no
7228fi
7229rm -f core conftest.err conftest.$ac_objext \
7230    conftest$ac_exeext conftest.$ac_ext
7231fi
7232
7233
7234		CFLAGS="$xorg_testset_save_CFLAGS"
7235
7236		eval supported=\$$cacheid
7237		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7238$as_echo "$supported" >&6; }
7239		if test "$supported" = "yes" ; then
7240			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7241			found="yes"
7242		fi
7243	fi
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259xorg_testset_save_CFLAGS="$CFLAGS"
7260
7261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7262	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7263	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7266  $as_echo_n "(cached) " >&6
7267else
7268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h.  */
7270int i;
7271_ACEOF
7272if ac_fn_c_try_compile "$LINENO"; then :
7273  xorg_cv_cc_flag_unknown_warning_option=yes
7274else
7275  xorg_cv_cc_flag_unknown_warning_option=no
7276fi
7277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278fi
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7281	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7282	CFLAGS="$xorg_testset_save_CFLAGS"
7283fi
7284
7285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7286	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7287		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7288	fi
7289	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7293  $as_echo_n "(cached) " >&6
7294else
7295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296/* end confdefs.h.  */
7297int i;
7298_ACEOF
7299if ac_fn_c_try_compile "$LINENO"; then :
7300  xorg_cv_cc_flag_unused_command_line_argument=yes
7301else
7302  xorg_cv_cc_flag_unused_command_line_argument=no
7303fi
7304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305fi
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7308	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7309	CFLAGS="$xorg_testset_save_CFLAGS"
7310fi
7311
7312found="no"
7313
7314	if test $found = "no" ; then
7315		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7316			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7317		fi
7318
7319		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7320			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7321		fi
7322
7323		CFLAGS="$CFLAGS -Werror=main"
7324
7325		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7326$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7327		cacheid=xorg_cv_cc_flag__Werror_main
7328		if eval \${$cacheid+:} false; then :
7329  $as_echo_n "(cached) " >&6
7330else
7331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332/* end confdefs.h.  */
7333int i;
7334int
7335main ()
7336{
7337
7338  ;
7339  return 0;
7340}
7341_ACEOF
7342if ac_fn_c_try_link "$LINENO"; then :
7343  eval $cacheid=yes
7344else
7345  eval $cacheid=no
7346fi
7347rm -f core conftest.err conftest.$ac_objext \
7348    conftest$ac_exeext conftest.$ac_ext
7349fi
7350
7351
7352		CFLAGS="$xorg_testset_save_CFLAGS"
7353
7354		eval supported=\$$cacheid
7355		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7356$as_echo "$supported" >&6; }
7357		if test "$supported" = "yes" ; then
7358			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7359			found="yes"
7360		fi
7361	fi
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377xorg_testset_save_CFLAGS="$CFLAGS"
7378
7379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7380	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7384  $as_echo_n "(cached) " >&6
7385else
7386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387/* end confdefs.h.  */
7388int i;
7389_ACEOF
7390if ac_fn_c_try_compile "$LINENO"; then :
7391  xorg_cv_cc_flag_unknown_warning_option=yes
7392else
7393  xorg_cv_cc_flag_unknown_warning_option=no
7394fi
7395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396fi
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7399	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7400	CFLAGS="$xorg_testset_save_CFLAGS"
7401fi
7402
7403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7404	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7405		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406	fi
7407	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7411  $as_echo_n "(cached) " >&6
7412else
7413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414/* end confdefs.h.  */
7415int i;
7416_ACEOF
7417if ac_fn_c_try_compile "$LINENO"; then :
7418  xorg_cv_cc_flag_unused_command_line_argument=yes
7419else
7420  xorg_cv_cc_flag_unused_command_line_argument=no
7421fi
7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423fi
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7426	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7427	CFLAGS="$xorg_testset_save_CFLAGS"
7428fi
7429
7430found="no"
7431
7432	if test $found = "no" ; then
7433		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7435		fi
7436
7437		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7439		fi
7440
7441		CFLAGS="$CFLAGS -Werror=missing-braces"
7442
7443		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7444$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7445		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7446		if eval \${$cacheid+:} false; then :
7447  $as_echo_n "(cached) " >&6
7448else
7449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450/* end confdefs.h.  */
7451int i;
7452int
7453main ()
7454{
7455
7456  ;
7457  return 0;
7458}
7459_ACEOF
7460if ac_fn_c_try_link "$LINENO"; then :
7461  eval $cacheid=yes
7462else
7463  eval $cacheid=no
7464fi
7465rm -f core conftest.err conftest.$ac_objext \
7466    conftest$ac_exeext conftest.$ac_ext
7467fi
7468
7469
7470		CFLAGS="$xorg_testset_save_CFLAGS"
7471
7472		eval supported=\$$cacheid
7473		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7474$as_echo "$supported" >&6; }
7475		if test "$supported" = "yes" ; then
7476			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7477			found="yes"
7478		fi
7479	fi
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495xorg_testset_save_CFLAGS="$CFLAGS"
7496
7497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7498	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7500$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7501if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7502  $as_echo_n "(cached) " >&6
7503else
7504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h.  */
7506int i;
7507_ACEOF
7508if ac_fn_c_try_compile "$LINENO"; then :
7509  xorg_cv_cc_flag_unknown_warning_option=yes
7510else
7511  xorg_cv_cc_flag_unknown_warning_option=no
7512fi
7513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514fi
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7516$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7517	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7518	CFLAGS="$xorg_testset_save_CFLAGS"
7519fi
7520
7521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7522	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7523		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7524	fi
7525	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7527$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7528if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7529  $as_echo_n "(cached) " >&6
7530else
7531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532/* end confdefs.h.  */
7533int i;
7534_ACEOF
7535if ac_fn_c_try_compile "$LINENO"; then :
7536  xorg_cv_cc_flag_unused_command_line_argument=yes
7537else
7538  xorg_cv_cc_flag_unused_command_line_argument=no
7539fi
7540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541fi
7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7543$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7544	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7545	CFLAGS="$xorg_testset_save_CFLAGS"
7546fi
7547
7548found="no"
7549
7550	if test $found = "no" ; then
7551		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7552			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7553		fi
7554
7555		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7556			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7557		fi
7558
7559		CFLAGS="$CFLAGS -Werror=sequence-point"
7560
7561		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7562$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7563		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7564		if eval \${$cacheid+:} false; then :
7565  $as_echo_n "(cached) " >&6
7566else
7567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568/* end confdefs.h.  */
7569int i;
7570int
7571main ()
7572{
7573
7574  ;
7575  return 0;
7576}
7577_ACEOF
7578if ac_fn_c_try_link "$LINENO"; then :
7579  eval $cacheid=yes
7580else
7581  eval $cacheid=no
7582fi
7583rm -f core conftest.err conftest.$ac_objext \
7584    conftest$ac_exeext conftest.$ac_ext
7585fi
7586
7587
7588		CFLAGS="$xorg_testset_save_CFLAGS"
7589
7590		eval supported=\$$cacheid
7591		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7592$as_echo "$supported" >&6; }
7593		if test "$supported" = "yes" ; then
7594			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7595			found="yes"
7596		fi
7597	fi
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613xorg_testset_save_CFLAGS="$CFLAGS"
7614
7615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7616	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7618$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7619if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7620  $as_echo_n "(cached) " >&6
7621else
7622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623/* end confdefs.h.  */
7624int i;
7625_ACEOF
7626if ac_fn_c_try_compile "$LINENO"; then :
7627  xorg_cv_cc_flag_unknown_warning_option=yes
7628else
7629  xorg_cv_cc_flag_unknown_warning_option=no
7630fi
7631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632fi
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7634$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7635	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7636	CFLAGS="$xorg_testset_save_CFLAGS"
7637fi
7638
7639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7640	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7641		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7642	fi
7643	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7645$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7646if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7647  $as_echo_n "(cached) " >&6
7648else
7649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650/* end confdefs.h.  */
7651int i;
7652_ACEOF
7653if ac_fn_c_try_compile "$LINENO"; then :
7654  xorg_cv_cc_flag_unused_command_line_argument=yes
7655else
7656  xorg_cv_cc_flag_unused_command_line_argument=no
7657fi
7658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659fi
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7661$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7662	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7663	CFLAGS="$xorg_testset_save_CFLAGS"
7664fi
7665
7666found="no"
7667
7668	if test $found = "no" ; then
7669		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7671		fi
7672
7673		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7675		fi
7676
7677		CFLAGS="$CFLAGS -Werror=return-type"
7678
7679		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7680$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7681		cacheid=xorg_cv_cc_flag__Werror_return_type
7682		if eval \${$cacheid+:} false; then :
7683  $as_echo_n "(cached) " >&6
7684else
7685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686/* end confdefs.h.  */
7687int i;
7688int
7689main ()
7690{
7691
7692  ;
7693  return 0;
7694}
7695_ACEOF
7696if ac_fn_c_try_link "$LINENO"; then :
7697  eval $cacheid=yes
7698else
7699  eval $cacheid=no
7700fi
7701rm -f core conftest.err conftest.$ac_objext \
7702    conftest$ac_exeext conftest.$ac_ext
7703fi
7704
7705
7706		CFLAGS="$xorg_testset_save_CFLAGS"
7707
7708		eval supported=\$$cacheid
7709		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7710$as_echo "$supported" >&6; }
7711		if test "$supported" = "yes" ; then
7712			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7713			found="yes"
7714		fi
7715	fi
7716
7717	if test $found = "no" ; then
7718		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7719			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7720		fi
7721
7722		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7723			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7724		fi
7725
7726		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7727
7728		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7729$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7730		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7731		if eval \${$cacheid+:} false; then :
7732  $as_echo_n "(cached) " >&6
7733else
7734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735/* end confdefs.h.  */
7736int i;
7737int
7738main ()
7739{
7740
7741  ;
7742  return 0;
7743}
7744_ACEOF
7745if ac_fn_c_try_link "$LINENO"; then :
7746  eval $cacheid=yes
7747else
7748  eval $cacheid=no
7749fi
7750rm -f core conftest.err conftest.$ac_objext \
7751    conftest$ac_exeext conftest.$ac_ext
7752fi
7753
7754
7755		CFLAGS="$xorg_testset_save_CFLAGS"
7756
7757		eval supported=\$$cacheid
7758		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7759$as_echo "$supported" >&6; }
7760		if test "$supported" = "yes" ; then
7761			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7762			found="yes"
7763		fi
7764	fi
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780xorg_testset_save_CFLAGS="$CFLAGS"
7781
7782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7783	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7785$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7786if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7787  $as_echo_n "(cached) " >&6
7788else
7789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790/* end confdefs.h.  */
7791int i;
7792_ACEOF
7793if ac_fn_c_try_compile "$LINENO"; then :
7794  xorg_cv_cc_flag_unknown_warning_option=yes
7795else
7796  xorg_cv_cc_flag_unknown_warning_option=no
7797fi
7798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799fi
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7801$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7802	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7803	CFLAGS="$xorg_testset_save_CFLAGS"
7804fi
7805
7806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7807	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7808		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7809	fi
7810	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7811	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7812$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7813if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7814  $as_echo_n "(cached) " >&6
7815else
7816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817/* end confdefs.h.  */
7818int i;
7819_ACEOF
7820if ac_fn_c_try_compile "$LINENO"; then :
7821  xorg_cv_cc_flag_unused_command_line_argument=yes
7822else
7823  xorg_cv_cc_flag_unused_command_line_argument=no
7824fi
7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826fi
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7828$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7829	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7830	CFLAGS="$xorg_testset_save_CFLAGS"
7831fi
7832
7833found="no"
7834
7835	if test $found = "no" ; then
7836		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7837			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7838		fi
7839
7840		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7841			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7842		fi
7843
7844		CFLAGS="$CFLAGS -Werror=trigraphs"
7845
7846		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7847$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7848		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7849		if eval \${$cacheid+:} false; then :
7850  $as_echo_n "(cached) " >&6
7851else
7852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h.  */
7854int i;
7855int
7856main ()
7857{
7858
7859  ;
7860  return 0;
7861}
7862_ACEOF
7863if ac_fn_c_try_link "$LINENO"; then :
7864  eval $cacheid=yes
7865else
7866  eval $cacheid=no
7867fi
7868rm -f core conftest.err conftest.$ac_objext \
7869    conftest$ac_exeext conftest.$ac_ext
7870fi
7871
7872
7873		CFLAGS="$xorg_testset_save_CFLAGS"
7874
7875		eval supported=\$$cacheid
7876		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7877$as_echo "$supported" >&6; }
7878		if test "$supported" = "yes" ; then
7879			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7880			found="yes"
7881		fi
7882	fi
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898xorg_testset_save_CFLAGS="$CFLAGS"
7899
7900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7902	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7903$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7904if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7905  $as_echo_n "(cached) " >&6
7906else
7907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908/* end confdefs.h.  */
7909int i;
7910_ACEOF
7911if ac_fn_c_try_compile "$LINENO"; then :
7912  xorg_cv_cc_flag_unknown_warning_option=yes
7913else
7914  xorg_cv_cc_flag_unknown_warning_option=no
7915fi
7916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7917fi
7918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7919$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7920	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7921	CFLAGS="$xorg_testset_save_CFLAGS"
7922fi
7923
7924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7925	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7926		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7927	fi
7928	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7929	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7930$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7931if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7932  $as_echo_n "(cached) " >&6
7933else
7934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935/* end confdefs.h.  */
7936int i;
7937_ACEOF
7938if ac_fn_c_try_compile "$LINENO"; then :
7939  xorg_cv_cc_flag_unused_command_line_argument=yes
7940else
7941  xorg_cv_cc_flag_unused_command_line_argument=no
7942fi
7943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944fi
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7946$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7947	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7948	CFLAGS="$xorg_testset_save_CFLAGS"
7949fi
7950
7951found="no"
7952
7953	if test $found = "no" ; then
7954		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7955			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7956		fi
7957
7958		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7959			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7960		fi
7961
7962		CFLAGS="$CFLAGS -Werror=array-bounds"
7963
7964		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7965$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7966		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7967		if eval \${$cacheid+:} false; then :
7968  $as_echo_n "(cached) " >&6
7969else
7970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971/* end confdefs.h.  */
7972int i;
7973int
7974main ()
7975{
7976
7977  ;
7978  return 0;
7979}
7980_ACEOF
7981if ac_fn_c_try_link "$LINENO"; then :
7982  eval $cacheid=yes
7983else
7984  eval $cacheid=no
7985fi
7986rm -f core conftest.err conftest.$ac_objext \
7987    conftest$ac_exeext conftest.$ac_ext
7988fi
7989
7990
7991		CFLAGS="$xorg_testset_save_CFLAGS"
7992
7993		eval supported=\$$cacheid
7994		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7995$as_echo "$supported" >&6; }
7996		if test "$supported" = "yes" ; then
7997			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7998			found="yes"
7999		fi
8000	fi
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016xorg_testset_save_CFLAGS="$CFLAGS"
8017
8018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8019	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8021$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8022if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8023  $as_echo_n "(cached) " >&6
8024else
8025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h.  */
8027int i;
8028_ACEOF
8029if ac_fn_c_try_compile "$LINENO"; then :
8030  xorg_cv_cc_flag_unknown_warning_option=yes
8031else
8032  xorg_cv_cc_flag_unknown_warning_option=no
8033fi
8034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035fi
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8037$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8039	CFLAGS="$xorg_testset_save_CFLAGS"
8040fi
8041
8042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8045	fi
8046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8048$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8049if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8050  $as_echo_n "(cached) " >&6
8051else
8052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h.  */
8054int i;
8055_ACEOF
8056if ac_fn_c_try_compile "$LINENO"; then :
8057  xorg_cv_cc_flag_unused_command_line_argument=yes
8058else
8059  xorg_cv_cc_flag_unused_command_line_argument=no
8060fi
8061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062fi
8063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8064$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8066	CFLAGS="$xorg_testset_save_CFLAGS"
8067fi
8068
8069found="no"
8070
8071	if test $found = "no" ; then
8072		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8074		fi
8075
8076		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8078		fi
8079
8080		CFLAGS="$CFLAGS -Werror=write-strings"
8081
8082		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8083$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8084		cacheid=xorg_cv_cc_flag__Werror_write_strings
8085		if eval \${$cacheid+:} false; then :
8086  $as_echo_n "(cached) " >&6
8087else
8088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089/* end confdefs.h.  */
8090int i;
8091int
8092main ()
8093{
8094
8095  ;
8096  return 0;
8097}
8098_ACEOF
8099if ac_fn_c_try_link "$LINENO"; then :
8100  eval $cacheid=yes
8101else
8102  eval $cacheid=no
8103fi
8104rm -f core conftest.err conftest.$ac_objext \
8105    conftest$ac_exeext conftest.$ac_ext
8106fi
8107
8108
8109		CFLAGS="$xorg_testset_save_CFLAGS"
8110
8111		eval supported=\$$cacheid
8112		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8113$as_echo "$supported" >&6; }
8114		if test "$supported" = "yes" ; then
8115			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8116			found="yes"
8117		fi
8118	fi
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134xorg_testset_save_CFLAGS="$CFLAGS"
8135
8136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8141  $as_echo_n "(cached) " >&6
8142else
8143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144/* end confdefs.h.  */
8145int i;
8146_ACEOF
8147if ac_fn_c_try_compile "$LINENO"; then :
8148  xorg_cv_cc_flag_unknown_warning_option=yes
8149else
8150  xorg_cv_cc_flag_unknown_warning_option=no
8151fi
8152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153fi
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8156	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8157	CFLAGS="$xorg_testset_save_CFLAGS"
8158fi
8159
8160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8161	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8162		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163	fi
8164	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8168  $as_echo_n "(cached) " >&6
8169else
8170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171/* end confdefs.h.  */
8172int i;
8173_ACEOF
8174if ac_fn_c_try_compile "$LINENO"; then :
8175  xorg_cv_cc_flag_unused_command_line_argument=yes
8176else
8177  xorg_cv_cc_flag_unused_command_line_argument=no
8178fi
8179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180fi
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8183	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8184	CFLAGS="$xorg_testset_save_CFLAGS"
8185fi
8186
8187found="no"
8188
8189	if test $found = "no" ; then
8190		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8192		fi
8193
8194		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8196		fi
8197
8198		CFLAGS="$CFLAGS -Werror=address"
8199
8200		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8201$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8202		cacheid=xorg_cv_cc_flag__Werror_address
8203		if eval \${$cacheid+:} false; then :
8204  $as_echo_n "(cached) " >&6
8205else
8206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207/* end confdefs.h.  */
8208int i;
8209int
8210main ()
8211{
8212
8213  ;
8214  return 0;
8215}
8216_ACEOF
8217if ac_fn_c_try_link "$LINENO"; then :
8218  eval $cacheid=yes
8219else
8220  eval $cacheid=no
8221fi
8222rm -f core conftest.err conftest.$ac_objext \
8223    conftest$ac_exeext conftest.$ac_ext
8224fi
8225
8226
8227		CFLAGS="$xorg_testset_save_CFLAGS"
8228
8229		eval supported=\$$cacheid
8230		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8231$as_echo "$supported" >&6; }
8232		if test "$supported" = "yes" ; then
8233			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8234			found="yes"
8235		fi
8236	fi
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252xorg_testset_save_CFLAGS="$CFLAGS"
8253
8254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8259  $as_echo_n "(cached) " >&6
8260else
8261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262/* end confdefs.h.  */
8263int i;
8264_ACEOF
8265if ac_fn_c_try_compile "$LINENO"; then :
8266  xorg_cv_cc_flag_unknown_warning_option=yes
8267else
8268  xorg_cv_cc_flag_unknown_warning_option=no
8269fi
8270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271fi
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8275	CFLAGS="$xorg_testset_save_CFLAGS"
8276fi
8277
8278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8281	fi
8282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8286  $as_echo_n "(cached) " >&6
8287else
8288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h.  */
8290int i;
8291_ACEOF
8292if ac_fn_c_try_compile "$LINENO"; then :
8293  xorg_cv_cc_flag_unused_command_line_argument=yes
8294else
8295  xorg_cv_cc_flag_unused_command_line_argument=no
8296fi
8297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298fi
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8302	CFLAGS="$xorg_testset_save_CFLAGS"
8303fi
8304
8305found="no"
8306
8307	if test $found = "no" ; then
8308		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8310		fi
8311
8312		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8314		fi
8315
8316		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8317
8318		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8319$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8320		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8321		if eval \${$cacheid+:} false; then :
8322  $as_echo_n "(cached) " >&6
8323else
8324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325/* end confdefs.h.  */
8326int i;
8327int
8328main ()
8329{
8330
8331  ;
8332  return 0;
8333}
8334_ACEOF
8335if ac_fn_c_try_link "$LINENO"; then :
8336  eval $cacheid=yes
8337else
8338  eval $cacheid=no
8339fi
8340rm -f core conftest.err conftest.$ac_objext \
8341    conftest$ac_exeext conftest.$ac_ext
8342fi
8343
8344
8345		CFLAGS="$xorg_testset_save_CFLAGS"
8346
8347		eval supported=\$$cacheid
8348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8349$as_echo "$supported" >&6; }
8350		if test "$supported" = "yes" ; then
8351			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8352			found="yes"
8353		fi
8354	fi
8355
8356	if test $found = "no" ; then
8357		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8359		fi
8360
8361		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8363		fi
8364
8365		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8366
8367		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8368$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8369		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8370		if eval \${$cacheid+:} false; then :
8371  $as_echo_n "(cached) " >&6
8372else
8373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374/* end confdefs.h.  */
8375int i;
8376int
8377main ()
8378{
8379
8380  ;
8381  return 0;
8382}
8383_ACEOF
8384if ac_fn_c_try_link "$LINENO"; then :
8385  eval $cacheid=yes
8386else
8387  eval $cacheid=no
8388fi
8389rm -f core conftest.err conftest.$ac_objext \
8390    conftest$ac_exeext conftest.$ac_ext
8391fi
8392
8393
8394		CFLAGS="$xorg_testset_save_CFLAGS"
8395
8396		eval supported=\$$cacheid
8397		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8398$as_echo "$supported" >&6; }
8399		if test "$supported" = "yes" ; then
8400			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8401			found="yes"
8402		fi
8403	fi
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419xorg_testset_save_CFLAGS="$CFLAGS"
8420
8421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8422	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8426  $as_echo_n "(cached) " >&6
8427else
8428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429/* end confdefs.h.  */
8430int i;
8431_ACEOF
8432if ac_fn_c_try_compile "$LINENO"; then :
8433  xorg_cv_cc_flag_unknown_warning_option=yes
8434else
8435  xorg_cv_cc_flag_unknown_warning_option=no
8436fi
8437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438fi
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8441	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8442	CFLAGS="$xorg_testset_save_CFLAGS"
8443fi
8444
8445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8446	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8447		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448	fi
8449	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8453  $as_echo_n "(cached) " >&6
8454else
8455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456/* end confdefs.h.  */
8457int i;
8458_ACEOF
8459if ac_fn_c_try_compile "$LINENO"; then :
8460  xorg_cv_cc_flag_unused_command_line_argument=yes
8461else
8462  xorg_cv_cc_flag_unused_command_line_argument=no
8463fi
8464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465fi
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8468	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8469	CFLAGS="$xorg_testset_save_CFLAGS"
8470fi
8471
8472found="no"
8473
8474	if test $found = "no" ; then
8475		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8476			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477		fi
8478
8479		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8480			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8481		fi
8482
8483		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8484
8485		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8486$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8487		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8488		if eval \${$cacheid+:} false; then :
8489  $as_echo_n "(cached) " >&6
8490else
8491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492/* end confdefs.h.  */
8493int i;
8494int
8495main ()
8496{
8497
8498  ;
8499  return 0;
8500}
8501_ACEOF
8502if ac_fn_c_try_link "$LINENO"; then :
8503  eval $cacheid=yes
8504else
8505  eval $cacheid=no
8506fi
8507rm -f core conftest.err conftest.$ac_objext \
8508    conftest$ac_exeext conftest.$ac_ext
8509fi
8510
8511
8512		CFLAGS="$xorg_testset_save_CFLAGS"
8513
8514		eval supported=\$$cacheid
8515		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8516$as_echo "$supported" >&6; }
8517		if test "$supported" = "yes" ; then
8518			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8519			found="yes"
8520		fi
8521	fi
8522
8523 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8524else
8525{ $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
8526$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;}
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540xorg_testset_save_CFLAGS="$CFLAGS"
8541
8542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8545$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8546if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8547  $as_echo_n "(cached) " >&6
8548else
8549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550/* end confdefs.h.  */
8551int i;
8552_ACEOF
8553if ac_fn_c_try_compile "$LINENO"; then :
8554  xorg_cv_cc_flag_unknown_warning_option=yes
8555else
8556  xorg_cv_cc_flag_unknown_warning_option=no
8557fi
8558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559fi
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8561$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8563	CFLAGS="$xorg_testset_save_CFLAGS"
8564fi
8565
8566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8569	fi
8570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8572$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8573if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8574  $as_echo_n "(cached) " >&6
8575else
8576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577/* end confdefs.h.  */
8578int i;
8579_ACEOF
8580if ac_fn_c_try_compile "$LINENO"; then :
8581  xorg_cv_cc_flag_unused_command_line_argument=yes
8582else
8583  xorg_cv_cc_flag_unused_command_line_argument=no
8584fi
8585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8586fi
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8588$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8589	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8590	CFLAGS="$xorg_testset_save_CFLAGS"
8591fi
8592
8593found="no"
8594
8595	if test $found = "no" ; then
8596		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8597			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8598		fi
8599
8600		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8601			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8602		fi
8603
8604		CFLAGS="$CFLAGS -Wimplicit"
8605
8606		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8607$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8608		cacheid=xorg_cv_cc_flag__Wimplicit
8609		if eval \${$cacheid+:} false; then :
8610  $as_echo_n "(cached) " >&6
8611else
8612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613/* end confdefs.h.  */
8614int i;
8615int
8616main ()
8617{
8618
8619  ;
8620  return 0;
8621}
8622_ACEOF
8623if ac_fn_c_try_link "$LINENO"; then :
8624  eval $cacheid=yes
8625else
8626  eval $cacheid=no
8627fi
8628rm -f core conftest.err conftest.$ac_objext \
8629    conftest$ac_exeext conftest.$ac_ext
8630fi
8631
8632
8633		CFLAGS="$xorg_testset_save_CFLAGS"
8634
8635		eval supported=\$$cacheid
8636		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8637$as_echo "$supported" >&6; }
8638		if test "$supported" = "yes" ; then
8639			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8640			found="yes"
8641		fi
8642	fi
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658xorg_testset_save_CFLAGS="$CFLAGS"
8659
8660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8661	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8663$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8664if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8665  $as_echo_n "(cached) " >&6
8666else
8667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668/* end confdefs.h.  */
8669int i;
8670_ACEOF
8671if ac_fn_c_try_compile "$LINENO"; then :
8672  xorg_cv_cc_flag_unknown_warning_option=yes
8673else
8674  xorg_cv_cc_flag_unknown_warning_option=no
8675fi
8676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677fi
8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8679$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8680	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8681	CFLAGS="$xorg_testset_save_CFLAGS"
8682fi
8683
8684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8685	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8686		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8687	fi
8688	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8689	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8690$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8691if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8692  $as_echo_n "(cached) " >&6
8693else
8694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695/* end confdefs.h.  */
8696int i;
8697_ACEOF
8698if ac_fn_c_try_compile "$LINENO"; then :
8699  xorg_cv_cc_flag_unused_command_line_argument=yes
8700else
8701  xorg_cv_cc_flag_unused_command_line_argument=no
8702fi
8703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704fi
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8706$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8707	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8708	CFLAGS="$xorg_testset_save_CFLAGS"
8709fi
8710
8711found="no"
8712
8713	if test $found = "no" ; then
8714		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8715			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8716		fi
8717
8718		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8719			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8720		fi
8721
8722		CFLAGS="$CFLAGS -Wnonnull"
8723
8724		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8725$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8726		cacheid=xorg_cv_cc_flag__Wnonnull
8727		if eval \${$cacheid+:} false; then :
8728  $as_echo_n "(cached) " >&6
8729else
8730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731/* end confdefs.h.  */
8732int i;
8733int
8734main ()
8735{
8736
8737  ;
8738  return 0;
8739}
8740_ACEOF
8741if ac_fn_c_try_link "$LINENO"; then :
8742  eval $cacheid=yes
8743else
8744  eval $cacheid=no
8745fi
8746rm -f core conftest.err conftest.$ac_objext \
8747    conftest$ac_exeext conftest.$ac_ext
8748fi
8749
8750
8751		CFLAGS="$xorg_testset_save_CFLAGS"
8752
8753		eval supported=\$$cacheid
8754		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8755$as_echo "$supported" >&6; }
8756		if test "$supported" = "yes" ; then
8757			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8758			found="yes"
8759		fi
8760	fi
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776xorg_testset_save_CFLAGS="$CFLAGS"
8777
8778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8779	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8781$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8782if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8783  $as_echo_n "(cached) " >&6
8784else
8785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786/* end confdefs.h.  */
8787int i;
8788_ACEOF
8789if ac_fn_c_try_compile "$LINENO"; then :
8790  xorg_cv_cc_flag_unknown_warning_option=yes
8791else
8792  xorg_cv_cc_flag_unknown_warning_option=no
8793fi
8794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795fi
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8797$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8798	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8799	CFLAGS="$xorg_testset_save_CFLAGS"
8800fi
8801
8802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8803	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8804		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8805	fi
8806	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8808$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8809if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8810  $as_echo_n "(cached) " >&6
8811else
8812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813/* end confdefs.h.  */
8814int i;
8815_ACEOF
8816if ac_fn_c_try_compile "$LINENO"; then :
8817  xorg_cv_cc_flag_unused_command_line_argument=yes
8818else
8819  xorg_cv_cc_flag_unused_command_line_argument=no
8820fi
8821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822fi
8823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8824$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8825	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8826	CFLAGS="$xorg_testset_save_CFLAGS"
8827fi
8828
8829found="no"
8830
8831	if test $found = "no" ; then
8832		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8834		fi
8835
8836		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8838		fi
8839
8840		CFLAGS="$CFLAGS -Winit-self"
8841
8842		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8843$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8844		cacheid=xorg_cv_cc_flag__Winit_self
8845		if eval \${$cacheid+:} false; then :
8846  $as_echo_n "(cached) " >&6
8847else
8848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849/* end confdefs.h.  */
8850int i;
8851int
8852main ()
8853{
8854
8855  ;
8856  return 0;
8857}
8858_ACEOF
8859if ac_fn_c_try_link "$LINENO"; then :
8860  eval $cacheid=yes
8861else
8862  eval $cacheid=no
8863fi
8864rm -f core conftest.err conftest.$ac_objext \
8865    conftest$ac_exeext conftest.$ac_ext
8866fi
8867
8868
8869		CFLAGS="$xorg_testset_save_CFLAGS"
8870
8871		eval supported=\$$cacheid
8872		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8873$as_echo "$supported" >&6; }
8874		if test "$supported" = "yes" ; then
8875			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8876			found="yes"
8877		fi
8878	fi
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894xorg_testset_save_CFLAGS="$CFLAGS"
8895
8896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8897	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8899$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8900if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8901  $as_echo_n "(cached) " >&6
8902else
8903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h.  */
8905int i;
8906_ACEOF
8907if ac_fn_c_try_compile "$LINENO"; then :
8908  xorg_cv_cc_flag_unknown_warning_option=yes
8909else
8910  xorg_cv_cc_flag_unknown_warning_option=no
8911fi
8912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913fi
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8915$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8916	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8917	CFLAGS="$xorg_testset_save_CFLAGS"
8918fi
8919
8920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8921	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8922		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8923	fi
8924	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8926$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8927if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8928  $as_echo_n "(cached) " >&6
8929else
8930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931/* end confdefs.h.  */
8932int i;
8933_ACEOF
8934if ac_fn_c_try_compile "$LINENO"; then :
8935  xorg_cv_cc_flag_unused_command_line_argument=yes
8936else
8937  xorg_cv_cc_flag_unused_command_line_argument=no
8938fi
8939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940fi
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8942$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8943	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8944	CFLAGS="$xorg_testset_save_CFLAGS"
8945fi
8946
8947found="no"
8948
8949	if test $found = "no" ; then
8950		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8952		fi
8953
8954		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8956		fi
8957
8958		CFLAGS="$CFLAGS -Wmain"
8959
8960		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8961$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8962		cacheid=xorg_cv_cc_flag__Wmain
8963		if eval \${$cacheid+:} false; then :
8964  $as_echo_n "(cached) " >&6
8965else
8966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967/* end confdefs.h.  */
8968int i;
8969int
8970main ()
8971{
8972
8973  ;
8974  return 0;
8975}
8976_ACEOF
8977if ac_fn_c_try_link "$LINENO"; then :
8978  eval $cacheid=yes
8979else
8980  eval $cacheid=no
8981fi
8982rm -f core conftest.err conftest.$ac_objext \
8983    conftest$ac_exeext conftest.$ac_ext
8984fi
8985
8986
8987		CFLAGS="$xorg_testset_save_CFLAGS"
8988
8989		eval supported=\$$cacheid
8990		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8991$as_echo "$supported" >&6; }
8992		if test "$supported" = "yes" ; then
8993			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8994			found="yes"
8995		fi
8996	fi
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012xorg_testset_save_CFLAGS="$CFLAGS"
9013
9014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9015	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9016	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9018if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9019  $as_echo_n "(cached) " >&6
9020else
9021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022/* end confdefs.h.  */
9023int i;
9024_ACEOF
9025if ac_fn_c_try_compile "$LINENO"; then :
9026  xorg_cv_cc_flag_unknown_warning_option=yes
9027else
9028  xorg_cv_cc_flag_unknown_warning_option=no
9029fi
9030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031fi
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9033$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9035	CFLAGS="$xorg_testset_save_CFLAGS"
9036fi
9037
9038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9041	fi
9042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9044$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9045if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9046  $as_echo_n "(cached) " >&6
9047else
9048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049/* end confdefs.h.  */
9050int i;
9051_ACEOF
9052if ac_fn_c_try_compile "$LINENO"; then :
9053  xorg_cv_cc_flag_unused_command_line_argument=yes
9054else
9055  xorg_cv_cc_flag_unused_command_line_argument=no
9056fi
9057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058fi
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9060$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9061	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9062	CFLAGS="$xorg_testset_save_CFLAGS"
9063fi
9064
9065found="no"
9066
9067	if test $found = "no" ; then
9068		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9070		fi
9071
9072		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9074		fi
9075
9076		CFLAGS="$CFLAGS -Wmissing-braces"
9077
9078		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9079$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9080		cacheid=xorg_cv_cc_flag__Wmissing_braces
9081		if eval \${$cacheid+:} false; then :
9082  $as_echo_n "(cached) " >&6
9083else
9084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085/* end confdefs.h.  */
9086int i;
9087int
9088main ()
9089{
9090
9091  ;
9092  return 0;
9093}
9094_ACEOF
9095if ac_fn_c_try_link "$LINENO"; then :
9096  eval $cacheid=yes
9097else
9098  eval $cacheid=no
9099fi
9100rm -f core conftest.err conftest.$ac_objext \
9101    conftest$ac_exeext conftest.$ac_ext
9102fi
9103
9104
9105		CFLAGS="$xorg_testset_save_CFLAGS"
9106
9107		eval supported=\$$cacheid
9108		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9109$as_echo "$supported" >&6; }
9110		if test "$supported" = "yes" ; then
9111			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9112			found="yes"
9113		fi
9114	fi
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130xorg_testset_save_CFLAGS="$CFLAGS"
9131
9132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9133	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9137  $as_echo_n "(cached) " >&6
9138else
9139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140/* end confdefs.h.  */
9141int i;
9142_ACEOF
9143if ac_fn_c_try_compile "$LINENO"; then :
9144  xorg_cv_cc_flag_unknown_warning_option=yes
9145else
9146  xorg_cv_cc_flag_unknown_warning_option=no
9147fi
9148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9149fi
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9152	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9153	CFLAGS="$xorg_testset_save_CFLAGS"
9154fi
9155
9156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9157	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9158		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9159	fi
9160	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9164  $as_echo_n "(cached) " >&6
9165else
9166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167/* end confdefs.h.  */
9168int i;
9169_ACEOF
9170if ac_fn_c_try_compile "$LINENO"; then :
9171  xorg_cv_cc_flag_unused_command_line_argument=yes
9172else
9173  xorg_cv_cc_flag_unused_command_line_argument=no
9174fi
9175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9176fi
9177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9179	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9180	CFLAGS="$xorg_testset_save_CFLAGS"
9181fi
9182
9183found="no"
9184
9185	if test $found = "no" ; then
9186		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9187			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9188		fi
9189
9190		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9191			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9192		fi
9193
9194		CFLAGS="$CFLAGS -Wsequence-point"
9195
9196		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9197$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9198		cacheid=xorg_cv_cc_flag__Wsequence_point
9199		if eval \${$cacheid+:} false; then :
9200  $as_echo_n "(cached) " >&6
9201else
9202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203/* end confdefs.h.  */
9204int i;
9205int
9206main ()
9207{
9208
9209  ;
9210  return 0;
9211}
9212_ACEOF
9213if ac_fn_c_try_link "$LINENO"; then :
9214  eval $cacheid=yes
9215else
9216  eval $cacheid=no
9217fi
9218rm -f core conftest.err conftest.$ac_objext \
9219    conftest$ac_exeext conftest.$ac_ext
9220fi
9221
9222
9223		CFLAGS="$xorg_testset_save_CFLAGS"
9224
9225		eval supported=\$$cacheid
9226		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9227$as_echo "$supported" >&6; }
9228		if test "$supported" = "yes" ; then
9229			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9230			found="yes"
9231		fi
9232	fi
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248xorg_testset_save_CFLAGS="$CFLAGS"
9249
9250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9251	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9253$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9254if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9255  $as_echo_n "(cached) " >&6
9256else
9257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258/* end confdefs.h.  */
9259int i;
9260_ACEOF
9261if ac_fn_c_try_compile "$LINENO"; then :
9262  xorg_cv_cc_flag_unknown_warning_option=yes
9263else
9264  xorg_cv_cc_flag_unknown_warning_option=no
9265fi
9266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9267fi
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9269$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9270	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9271	CFLAGS="$xorg_testset_save_CFLAGS"
9272fi
9273
9274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9275	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9276		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9277	fi
9278	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9280$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9281if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9282  $as_echo_n "(cached) " >&6
9283else
9284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285/* end confdefs.h.  */
9286int i;
9287_ACEOF
9288if ac_fn_c_try_compile "$LINENO"; then :
9289  xorg_cv_cc_flag_unused_command_line_argument=yes
9290else
9291  xorg_cv_cc_flag_unused_command_line_argument=no
9292fi
9293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294fi
9295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9296$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9297	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9298	CFLAGS="$xorg_testset_save_CFLAGS"
9299fi
9300
9301found="no"
9302
9303	if test $found = "no" ; then
9304		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9306		fi
9307
9308		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9310		fi
9311
9312		CFLAGS="$CFLAGS -Wreturn-type"
9313
9314		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9315$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9316		cacheid=xorg_cv_cc_flag__Wreturn_type
9317		if eval \${$cacheid+:} false; then :
9318  $as_echo_n "(cached) " >&6
9319else
9320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321/* end confdefs.h.  */
9322int i;
9323int
9324main ()
9325{
9326
9327  ;
9328  return 0;
9329}
9330_ACEOF
9331if ac_fn_c_try_link "$LINENO"; then :
9332  eval $cacheid=yes
9333else
9334  eval $cacheid=no
9335fi
9336rm -f core conftest.err conftest.$ac_objext \
9337    conftest$ac_exeext conftest.$ac_ext
9338fi
9339
9340
9341		CFLAGS="$xorg_testset_save_CFLAGS"
9342
9343		eval supported=\$$cacheid
9344		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9345$as_echo "$supported" >&6; }
9346		if test "$supported" = "yes" ; then
9347			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9348			found="yes"
9349		fi
9350	fi
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366xorg_testset_save_CFLAGS="$CFLAGS"
9367
9368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9369	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9371$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9372if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9373  $as_echo_n "(cached) " >&6
9374else
9375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376/* end confdefs.h.  */
9377int i;
9378_ACEOF
9379if ac_fn_c_try_compile "$LINENO"; then :
9380  xorg_cv_cc_flag_unknown_warning_option=yes
9381else
9382  xorg_cv_cc_flag_unknown_warning_option=no
9383fi
9384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385fi
9386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9387$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9388	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9389	CFLAGS="$xorg_testset_save_CFLAGS"
9390fi
9391
9392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9393	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9394		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9395	fi
9396	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9398$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9399if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9400  $as_echo_n "(cached) " >&6
9401else
9402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403/* end confdefs.h.  */
9404int i;
9405_ACEOF
9406if ac_fn_c_try_compile "$LINENO"; then :
9407  xorg_cv_cc_flag_unused_command_line_argument=yes
9408else
9409  xorg_cv_cc_flag_unused_command_line_argument=no
9410fi
9411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412fi
9413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9414$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9415	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9416	CFLAGS="$xorg_testset_save_CFLAGS"
9417fi
9418
9419found="no"
9420
9421	if test $found = "no" ; then
9422		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424		fi
9425
9426		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428		fi
9429
9430		CFLAGS="$CFLAGS -Wtrigraphs"
9431
9432		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9433$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9434		cacheid=xorg_cv_cc_flag__Wtrigraphs
9435		if eval \${$cacheid+:} false; then :
9436  $as_echo_n "(cached) " >&6
9437else
9438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439/* end confdefs.h.  */
9440int i;
9441int
9442main ()
9443{
9444
9445  ;
9446  return 0;
9447}
9448_ACEOF
9449if ac_fn_c_try_link "$LINENO"; then :
9450  eval $cacheid=yes
9451else
9452  eval $cacheid=no
9453fi
9454rm -f core conftest.err conftest.$ac_objext \
9455    conftest$ac_exeext conftest.$ac_ext
9456fi
9457
9458
9459		CFLAGS="$xorg_testset_save_CFLAGS"
9460
9461		eval supported=\$$cacheid
9462		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9463$as_echo "$supported" >&6; }
9464		if test "$supported" = "yes" ; then
9465			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9466			found="yes"
9467		fi
9468	fi
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484xorg_testset_save_CFLAGS="$CFLAGS"
9485
9486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9491  $as_echo_n "(cached) " >&6
9492else
9493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494/* end confdefs.h.  */
9495int i;
9496_ACEOF
9497if ac_fn_c_try_compile "$LINENO"; then :
9498  xorg_cv_cc_flag_unknown_warning_option=yes
9499else
9500  xorg_cv_cc_flag_unknown_warning_option=no
9501fi
9502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9503fi
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9506	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9507	CFLAGS="$xorg_testset_save_CFLAGS"
9508fi
9509
9510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9511	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9512		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9513	fi
9514	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9518  $as_echo_n "(cached) " >&6
9519else
9520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521/* end confdefs.h.  */
9522int i;
9523_ACEOF
9524if ac_fn_c_try_compile "$LINENO"; then :
9525  xorg_cv_cc_flag_unused_command_line_argument=yes
9526else
9527  xorg_cv_cc_flag_unused_command_line_argument=no
9528fi
9529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9530fi
9531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9534	CFLAGS="$xorg_testset_save_CFLAGS"
9535fi
9536
9537found="no"
9538
9539	if test $found = "no" ; then
9540		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9542		fi
9543
9544		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9546		fi
9547
9548		CFLAGS="$CFLAGS -Warray-bounds"
9549
9550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9551$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9552		cacheid=xorg_cv_cc_flag__Warray_bounds
9553		if eval \${$cacheid+:} false; then :
9554  $as_echo_n "(cached) " >&6
9555else
9556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557/* end confdefs.h.  */
9558int i;
9559int
9560main ()
9561{
9562
9563  ;
9564  return 0;
9565}
9566_ACEOF
9567if ac_fn_c_try_link "$LINENO"; then :
9568  eval $cacheid=yes
9569else
9570  eval $cacheid=no
9571fi
9572rm -f core conftest.err conftest.$ac_objext \
9573    conftest$ac_exeext conftest.$ac_ext
9574fi
9575
9576
9577		CFLAGS="$xorg_testset_save_CFLAGS"
9578
9579		eval supported=\$$cacheid
9580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9581$as_echo "$supported" >&6; }
9582		if test "$supported" = "yes" ; then
9583			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9584			found="yes"
9585		fi
9586	fi
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602xorg_testset_save_CFLAGS="$CFLAGS"
9603
9604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9609  $as_echo_n "(cached) " >&6
9610else
9611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612/* end confdefs.h.  */
9613int i;
9614_ACEOF
9615if ac_fn_c_try_compile "$LINENO"; then :
9616  xorg_cv_cc_flag_unknown_warning_option=yes
9617else
9618  xorg_cv_cc_flag_unknown_warning_option=no
9619fi
9620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621fi
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9624	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9625	CFLAGS="$xorg_testset_save_CFLAGS"
9626fi
9627
9628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9629	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9630		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631	fi
9632	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9636  $as_echo_n "(cached) " >&6
9637else
9638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h.  */
9640int i;
9641_ACEOF
9642if ac_fn_c_try_compile "$LINENO"; then :
9643  xorg_cv_cc_flag_unused_command_line_argument=yes
9644else
9645  xorg_cv_cc_flag_unused_command_line_argument=no
9646fi
9647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648fi
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9651	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9652	CFLAGS="$xorg_testset_save_CFLAGS"
9653fi
9654
9655found="no"
9656
9657	if test $found = "no" ; then
9658		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9660		fi
9661
9662		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9664		fi
9665
9666		CFLAGS="$CFLAGS -Wwrite-strings"
9667
9668		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9669$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9670		cacheid=xorg_cv_cc_flag__Wwrite_strings
9671		if eval \${$cacheid+:} false; then :
9672  $as_echo_n "(cached) " >&6
9673else
9674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675/* end confdefs.h.  */
9676int i;
9677int
9678main ()
9679{
9680
9681  ;
9682  return 0;
9683}
9684_ACEOF
9685if ac_fn_c_try_link "$LINENO"; then :
9686  eval $cacheid=yes
9687else
9688  eval $cacheid=no
9689fi
9690rm -f core conftest.err conftest.$ac_objext \
9691    conftest$ac_exeext conftest.$ac_ext
9692fi
9693
9694
9695		CFLAGS="$xorg_testset_save_CFLAGS"
9696
9697		eval supported=\$$cacheid
9698		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9699$as_echo "$supported" >&6; }
9700		if test "$supported" = "yes" ; then
9701			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9702			found="yes"
9703		fi
9704	fi
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720xorg_testset_save_CFLAGS="$CFLAGS"
9721
9722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9723	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9727  $as_echo_n "(cached) " >&6
9728else
9729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730/* end confdefs.h.  */
9731int i;
9732_ACEOF
9733if ac_fn_c_try_compile "$LINENO"; then :
9734  xorg_cv_cc_flag_unknown_warning_option=yes
9735else
9736  xorg_cv_cc_flag_unknown_warning_option=no
9737fi
9738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9739fi
9740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9743	CFLAGS="$xorg_testset_save_CFLAGS"
9744fi
9745
9746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9749	fi
9750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9754  $as_echo_n "(cached) " >&6
9755else
9756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757/* end confdefs.h.  */
9758int i;
9759_ACEOF
9760if ac_fn_c_try_compile "$LINENO"; then :
9761  xorg_cv_cc_flag_unused_command_line_argument=yes
9762else
9763  xorg_cv_cc_flag_unused_command_line_argument=no
9764fi
9765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9766fi
9767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9770	CFLAGS="$xorg_testset_save_CFLAGS"
9771fi
9772
9773found="no"
9774
9775	if test $found = "no" ; then
9776		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9778		fi
9779
9780		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9782		fi
9783
9784		CFLAGS="$CFLAGS -Waddress"
9785
9786		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9787$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9788		cacheid=xorg_cv_cc_flag__Waddress
9789		if eval \${$cacheid+:} false; then :
9790  $as_echo_n "(cached) " >&6
9791else
9792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793/* end confdefs.h.  */
9794int i;
9795int
9796main ()
9797{
9798
9799  ;
9800  return 0;
9801}
9802_ACEOF
9803if ac_fn_c_try_link "$LINENO"; then :
9804  eval $cacheid=yes
9805else
9806  eval $cacheid=no
9807fi
9808rm -f core conftest.err conftest.$ac_objext \
9809    conftest$ac_exeext conftest.$ac_ext
9810fi
9811
9812
9813		CFLAGS="$xorg_testset_save_CFLAGS"
9814
9815		eval supported=\$$cacheid
9816		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9817$as_echo "$supported" >&6; }
9818		if test "$supported" = "yes" ; then
9819			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9820			found="yes"
9821		fi
9822	fi
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838xorg_testset_save_CFLAGS="$CFLAGS"
9839
9840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9845  $as_echo_n "(cached) " >&6
9846else
9847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848/* end confdefs.h.  */
9849int i;
9850_ACEOF
9851if ac_fn_c_try_compile "$LINENO"; then :
9852  xorg_cv_cc_flag_unknown_warning_option=yes
9853else
9854  xorg_cv_cc_flag_unknown_warning_option=no
9855fi
9856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9857fi
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9861	CFLAGS="$xorg_testset_save_CFLAGS"
9862fi
9863
9864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9867	fi
9868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9872  $as_echo_n "(cached) " >&6
9873else
9874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875/* end confdefs.h.  */
9876int i;
9877_ACEOF
9878if ac_fn_c_try_compile "$LINENO"; then :
9879  xorg_cv_cc_flag_unused_command_line_argument=yes
9880else
9881  xorg_cv_cc_flag_unused_command_line_argument=no
9882fi
9883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884fi
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9888	CFLAGS="$xorg_testset_save_CFLAGS"
9889fi
9890
9891found="no"
9892
9893	if test $found = "no" ; then
9894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9896		fi
9897
9898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9900		fi
9901
9902		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9903
9904		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9905$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9906		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9907		if eval \${$cacheid+:} false; then :
9908  $as_echo_n "(cached) " >&6
9909else
9910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911/* end confdefs.h.  */
9912int i;
9913int
9914main ()
9915{
9916
9917  ;
9918  return 0;
9919}
9920_ACEOF
9921if ac_fn_c_try_link "$LINENO"; then :
9922  eval $cacheid=yes
9923else
9924  eval $cacheid=no
9925fi
9926rm -f core conftest.err conftest.$ac_objext \
9927    conftest$ac_exeext conftest.$ac_ext
9928fi
9929
9930
9931		CFLAGS="$xorg_testset_save_CFLAGS"
9932
9933		eval supported=\$$cacheid
9934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9935$as_echo "$supported" >&6; }
9936		if test "$supported" = "yes" ; then
9937			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9938			found="yes"
9939		fi
9940	fi
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956xorg_testset_save_CFLAGS="$CFLAGS"
9957
9958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9963  $as_echo_n "(cached) " >&6
9964else
9965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966/* end confdefs.h.  */
9967int i;
9968_ACEOF
9969if ac_fn_c_try_compile "$LINENO"; then :
9970  xorg_cv_cc_flag_unknown_warning_option=yes
9971else
9972  xorg_cv_cc_flag_unknown_warning_option=no
9973fi
9974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975fi
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9979	CFLAGS="$xorg_testset_save_CFLAGS"
9980fi
9981
9982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9985	fi
9986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9990  $as_echo_n "(cached) " >&6
9991else
9992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h.  */
9994int i;
9995_ACEOF
9996if ac_fn_c_try_compile "$LINENO"; then :
9997  xorg_cv_cc_flag_unused_command_line_argument=yes
9998else
9999  xorg_cv_cc_flag_unused_command_line_argument=no
10000fi
10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10002fi
10003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10006	CFLAGS="$xorg_testset_save_CFLAGS"
10007fi
10008
10009found="no"
10010
10011	if test $found = "no" ; then
10012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10014		fi
10015
10016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10018		fi
10019
10020		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10021
10022		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10023$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10024		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10025		if eval \${$cacheid+:} false; then :
10026  $as_echo_n "(cached) " >&6
10027else
10028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029/* end confdefs.h.  */
10030int i;
10031int
10032main ()
10033{
10034
10035  ;
10036  return 0;
10037}
10038_ACEOF
10039if ac_fn_c_try_link "$LINENO"; then :
10040  eval $cacheid=yes
10041else
10042  eval $cacheid=no
10043fi
10044rm -f core conftest.err conftest.$ac_objext \
10045    conftest$ac_exeext conftest.$ac_ext
10046fi
10047
10048
10049		CFLAGS="$xorg_testset_save_CFLAGS"
10050
10051		eval supported=\$$cacheid
10052		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10053$as_echo "$supported" >&6; }
10054		if test "$supported" = "yes" ; then
10055			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10056			found="yes"
10057		fi
10058	fi
10059
10060
10061fi
10062
10063
10064
10065
10066
10067
10068
10069		CWARNFLAGS="$BASE_CFLAGS"
10070		if  test "x$GCC" = xyes ; then
10071		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10072		fi
10073
10074
10075
10076
10077
10078
10079
10080
10081# Check whether --enable-strict-compilation was given.
10082if test "${enable_strict_compilation+set}" = set; then :
10083  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10084else
10085  STRICT_COMPILE=no
10086fi
10087
10088
10089
10090
10091
10092
10093STRICT_CFLAGS=""
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107xorg_testset_save_CFLAGS="$CFLAGS"
10108
10109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10110	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10112$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10113if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10114  $as_echo_n "(cached) " >&6
10115else
10116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117/* end confdefs.h.  */
10118int i;
10119_ACEOF
10120if ac_fn_c_try_compile "$LINENO"; then :
10121  xorg_cv_cc_flag_unknown_warning_option=yes
10122else
10123  xorg_cv_cc_flag_unknown_warning_option=no
10124fi
10125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126fi
10127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10128$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10130	CFLAGS="$xorg_testset_save_CFLAGS"
10131fi
10132
10133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136	fi
10137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10139$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10140if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10141  $as_echo_n "(cached) " >&6
10142else
10143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144/* end confdefs.h.  */
10145int i;
10146_ACEOF
10147if ac_fn_c_try_compile "$LINENO"; then :
10148  xorg_cv_cc_flag_unused_command_line_argument=yes
10149else
10150  xorg_cv_cc_flag_unused_command_line_argument=no
10151fi
10152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153fi
10154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10155$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10156	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10157	CFLAGS="$xorg_testset_save_CFLAGS"
10158fi
10159
10160found="no"
10161
10162	if test $found = "no" ; then
10163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10165		fi
10166
10167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10169		fi
10170
10171		CFLAGS="$CFLAGS -pedantic"
10172
10173		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10174$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10175		cacheid=xorg_cv_cc_flag__pedantic
10176		if eval \${$cacheid+:} false; then :
10177  $as_echo_n "(cached) " >&6
10178else
10179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180/* end confdefs.h.  */
10181int i;
10182int
10183main ()
10184{
10185
10186  ;
10187  return 0;
10188}
10189_ACEOF
10190if ac_fn_c_try_link "$LINENO"; then :
10191  eval $cacheid=yes
10192else
10193  eval $cacheid=no
10194fi
10195rm -f core conftest.err conftest.$ac_objext \
10196    conftest$ac_exeext conftest.$ac_ext
10197fi
10198
10199
10200		CFLAGS="$xorg_testset_save_CFLAGS"
10201
10202		eval supported=\$$cacheid
10203		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10204$as_echo "$supported" >&6; }
10205		if test "$supported" = "yes" ; then
10206			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10207			found="yes"
10208		fi
10209	fi
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225xorg_testset_save_CFLAGS="$CFLAGS"
10226
10227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10232  $as_echo_n "(cached) " >&6
10233else
10234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235/* end confdefs.h.  */
10236int i;
10237_ACEOF
10238if ac_fn_c_try_compile "$LINENO"; then :
10239  xorg_cv_cc_flag_unknown_warning_option=yes
10240else
10241  xorg_cv_cc_flag_unknown_warning_option=no
10242fi
10243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244fi
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10247	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10248	CFLAGS="$xorg_testset_save_CFLAGS"
10249fi
10250
10251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10252	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10253		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10254	fi
10255	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10259  $as_echo_n "(cached) " >&6
10260else
10261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262/* end confdefs.h.  */
10263int i;
10264_ACEOF
10265if ac_fn_c_try_compile "$LINENO"; then :
10266  xorg_cv_cc_flag_unused_command_line_argument=yes
10267else
10268  xorg_cv_cc_flag_unused_command_line_argument=no
10269fi
10270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10271fi
10272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10274	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10275	CFLAGS="$xorg_testset_save_CFLAGS"
10276fi
10277
10278found="no"
10279
10280	if test $found = "no" ; then
10281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10283		fi
10284
10285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10287		fi
10288
10289		CFLAGS="$CFLAGS -Werror"
10290
10291		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10292$as_echo_n "checking if $CC supports -Werror... " >&6; }
10293		cacheid=xorg_cv_cc_flag__Werror
10294		if eval \${$cacheid+:} false; then :
10295  $as_echo_n "(cached) " >&6
10296else
10297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298/* end confdefs.h.  */
10299int i;
10300int
10301main ()
10302{
10303
10304  ;
10305  return 0;
10306}
10307_ACEOF
10308if ac_fn_c_try_link "$LINENO"; then :
10309  eval $cacheid=yes
10310else
10311  eval $cacheid=no
10312fi
10313rm -f core conftest.err conftest.$ac_objext \
10314    conftest$ac_exeext conftest.$ac_ext
10315fi
10316
10317
10318		CFLAGS="$xorg_testset_save_CFLAGS"
10319
10320		eval supported=\$$cacheid
10321		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10322$as_echo "$supported" >&6; }
10323		if test "$supported" = "yes" ; then
10324			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10325			found="yes"
10326		fi
10327	fi
10328
10329	if test $found = "no" ; then
10330		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10331			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10332		fi
10333
10334		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10335			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10336		fi
10337
10338		CFLAGS="$CFLAGS -errwarn"
10339
10340		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10341$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10342		cacheid=xorg_cv_cc_flag__errwarn
10343		if eval \${$cacheid+:} false; then :
10344  $as_echo_n "(cached) " >&6
10345else
10346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347/* end confdefs.h.  */
10348int i;
10349int
10350main ()
10351{
10352
10353  ;
10354  return 0;
10355}
10356_ACEOF
10357if ac_fn_c_try_link "$LINENO"; then :
10358  eval $cacheid=yes
10359else
10360  eval $cacheid=no
10361fi
10362rm -f core conftest.err conftest.$ac_objext \
10363    conftest$ac_exeext conftest.$ac_ext
10364fi
10365
10366
10367		CFLAGS="$xorg_testset_save_CFLAGS"
10368
10369		eval supported=\$$cacheid
10370		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10371$as_echo "$supported" >&6; }
10372		if test "$supported" = "yes" ; then
10373			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10374			found="yes"
10375		fi
10376	fi
10377
10378
10379
10380# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10381# activate it with -Werror, so we add it here explicitly.
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395xorg_testset_save_CFLAGS="$CFLAGS"
10396
10397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10402  $as_echo_n "(cached) " >&6
10403else
10404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405/* end confdefs.h.  */
10406int i;
10407_ACEOF
10408if ac_fn_c_try_compile "$LINENO"; then :
10409  xorg_cv_cc_flag_unknown_warning_option=yes
10410else
10411  xorg_cv_cc_flag_unknown_warning_option=no
10412fi
10413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10414fi
10415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10418	CFLAGS="$xorg_testset_save_CFLAGS"
10419fi
10420
10421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10424	fi
10425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10429  $as_echo_n "(cached) " >&6
10430else
10431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432/* end confdefs.h.  */
10433int i;
10434_ACEOF
10435if ac_fn_c_try_compile "$LINENO"; then :
10436  xorg_cv_cc_flag_unused_command_line_argument=yes
10437else
10438  xorg_cv_cc_flag_unused_command_line_argument=no
10439fi
10440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441fi
10442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10444	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10445	CFLAGS="$xorg_testset_save_CFLAGS"
10446fi
10447
10448found="no"
10449
10450	if test $found = "no" ; then
10451		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10452			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10453		fi
10454
10455		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10456			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10457		fi
10458
10459		CFLAGS="$CFLAGS -Werror=attributes"
10460
10461		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10462$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10463		cacheid=xorg_cv_cc_flag__Werror_attributes
10464		if eval \${$cacheid+:} false; then :
10465  $as_echo_n "(cached) " >&6
10466else
10467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468/* end confdefs.h.  */
10469int i;
10470int
10471main ()
10472{
10473
10474  ;
10475  return 0;
10476}
10477_ACEOF
10478if ac_fn_c_try_link "$LINENO"; then :
10479  eval $cacheid=yes
10480else
10481  eval $cacheid=no
10482fi
10483rm -f core conftest.err conftest.$ac_objext \
10484    conftest$ac_exeext conftest.$ac_ext
10485fi
10486
10487
10488		CFLAGS="$xorg_testset_save_CFLAGS"
10489
10490		eval supported=\$$cacheid
10491		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10492$as_echo "$supported" >&6; }
10493		if test "$supported" = "yes" ; then
10494			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10495			found="yes"
10496		fi
10497	fi
10498
10499
10500
10501if test "x$STRICT_COMPILE" = "xyes"; then
10502    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10503    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10504fi
10505
10506
10507
10508
10509
10510
10511cat >>confdefs.h <<_ACEOF
10512#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10513_ACEOF
10514
10515	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10516	if test "x$PVM" = "x"; then
10517		PVM="0"
10518	fi
10519
10520cat >>confdefs.h <<_ACEOF
10521#define PACKAGE_VERSION_MINOR $PVM
10522_ACEOF
10523
10524	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10525	if test "x$PVP" = "x"; then
10526		PVP="0"
10527	fi
10528
10529cat >>confdefs.h <<_ACEOF
10530#define PACKAGE_VERSION_PATCHLEVEL $PVP
10531_ACEOF
10532
10533
10534
10535CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10536mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10537|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10538echo 'git directory not found: installing possibly empty changelog.' >&2)"
10539
10540
10541
10542
10543macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10544INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10545mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10546|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10547echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10548
10549
10550
10551
10552
10553
10554if test x$APP_MAN_SUFFIX = x    ; then
10555    APP_MAN_SUFFIX=1
10556fi
10557if test x$APP_MAN_DIR = x    ; then
10558    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10559fi
10560
10561if test x$LIB_MAN_SUFFIX = x    ; then
10562    LIB_MAN_SUFFIX=3
10563fi
10564if test x$LIB_MAN_DIR = x    ; then
10565    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10566fi
10567
10568if test x$FILE_MAN_SUFFIX = x    ; then
10569    case $host_os in
10570	solaris*)	FILE_MAN_SUFFIX=4  ;;
10571	*)		FILE_MAN_SUFFIX=5  ;;
10572    esac
10573fi
10574if test x$FILE_MAN_DIR = x    ; then
10575    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10576fi
10577
10578if test x$MISC_MAN_SUFFIX = x    ; then
10579    case $host_os in
10580	solaris*)	MISC_MAN_SUFFIX=5  ;;
10581	*)		MISC_MAN_SUFFIX=7  ;;
10582    esac
10583fi
10584if test x$MISC_MAN_DIR = x    ; then
10585    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10586fi
10587
10588if test x$DRIVER_MAN_SUFFIX = x    ; then
10589    case $host_os in
10590	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10591	*)		DRIVER_MAN_SUFFIX=4  ;;
10592    esac
10593fi
10594if test x$DRIVER_MAN_DIR = x    ; then
10595    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10596fi
10597
10598if test x$ADMIN_MAN_SUFFIX = x    ; then
10599    case $host_os in
10600	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10601	*)		ADMIN_MAN_SUFFIX=8  ;;
10602    esac
10603fi
10604if test x$ADMIN_MAN_DIR = x    ; then
10605    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10606fi
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622XORG_MAN_PAGE="X Version 11"
10623
10624MAN_SUBSTS="\
10625	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10626	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10627	-e 's|__xservername__|Xorg|g' \
10628	-e 's|__xconfigfile__|xorg.conf|g' \
10629	-e 's|__projectroot__|\$(prefix)|g' \
10630	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10631	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10632	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10633	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10634	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10635	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10636	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10637
10638
10639
10640# Check whether --enable-silent-rules was given.
10641if test "${enable_silent_rules+set}" = set; then :
10642  enableval=$enable_silent_rules;
10643fi
10644
10645case $enable_silent_rules in # (((
10646  yes) AM_DEFAULT_VERBOSITY=0;;
10647   no) AM_DEFAULT_VERBOSITY=1;;
10648    *) AM_DEFAULT_VERBOSITY=0;;
10649esac
10650am_make=${MAKE-make}
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10652$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10653if ${am_cv_make_support_nested_variables+:} false; then :
10654  $as_echo_n "(cached) " >&6
10655else
10656  if $as_echo 'TRUE=$(BAR$(V))
10657BAR0=false
10658BAR1=true
10659V=1
10660am__doit:
10661	@$(TRUE)
10662.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10663  am_cv_make_support_nested_variables=yes
10664else
10665  am_cv_make_support_nested_variables=no
10666fi
10667fi
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10669$as_echo "$am_cv_make_support_nested_variables" >&6; }
10670if test $am_cv_make_support_nested_variables = yes; then
10671    AM_V='$(V)'
10672  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10673else
10674  AM_V=$AM_DEFAULT_VERBOSITY
10675  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10676fi
10677AM_BACKSLASH='\'
10678
10679
10680
10681
10682# Check whether --enable-docs was given.
10683if test "${enable_docs+set}" = set; then :
10684  enableval=$enable_docs; build_docs=$enableval
10685else
10686  build_docs=yes
10687fi
10688
10689
10690 if test x$build_docs = xyes; then
10691  ENABLE_DOCS_TRUE=
10692  ENABLE_DOCS_FALSE='#'
10693else
10694  ENABLE_DOCS_TRUE='#'
10695  ENABLE_DOCS_FALSE=
10696fi
10697
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
10699$as_echo_n "checking whether to build documentation... " >&6; }
10700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
10701$as_echo "$build_docs" >&6; }
10702
10703
10704
10705# Check whether --enable-specs was given.
10706if test "${enable_specs+set}" = set; then :
10707  enableval=$enable_specs; build_specs=$enableval
10708else
10709  build_specs=yes
10710fi
10711
10712
10713 if test x$build_specs = xyes; then
10714  ENABLE_SPECS_TRUE=
10715  ENABLE_SPECS_FALSE='#'
10716else
10717  ENABLE_SPECS_TRUE='#'
10718  ENABLE_SPECS_FALSE=
10719fi
10720
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
10722$as_echo_n "checking whether to build functional specifications... " >&6; }
10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
10724$as_echo "$build_specs" >&6; }
10725
10726
10727
10728
10729
10730# Check whether --with-xmlto was given.
10731if test "${with_xmlto+set}" = set; then :
10732  withval=$with_xmlto; use_xmlto=$withval
10733else
10734  use_xmlto=auto
10735fi
10736
10737
10738
10739if test "x$use_xmlto" = x"auto"; then
10740   # Extract the first word of "xmlto", so it can be a program name with args.
10741set dummy xmlto; ac_word=$2
10742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743$as_echo_n "checking for $ac_word... " >&6; }
10744if ${ac_cv_path_XMLTO+:} false; then :
10745  $as_echo_n "(cached) " >&6
10746else
10747  case $XMLTO in
10748  [\\/]* | ?:[\\/]*)
10749  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10750  ;;
10751  *)
10752  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753for as_dir in $PATH
10754do
10755  IFS=$as_save_IFS
10756  test -z "$as_dir" && as_dir=.
10757    for ac_exec_ext in '' $ac_executable_extensions; do
10758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10761    break 2
10762  fi
10763done
10764  done
10765IFS=$as_save_IFS
10766
10767  ;;
10768esac
10769fi
10770XMLTO=$ac_cv_path_XMLTO
10771if test -n "$XMLTO"; then
10772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10773$as_echo "$XMLTO" >&6; }
10774else
10775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776$as_echo "no" >&6; }
10777fi
10778
10779
10780   if test "x$XMLTO" = "x"; then
10781        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10782$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10783	have_xmlto=no
10784   else
10785        have_xmlto=yes
10786   fi
10787elif test "x$use_xmlto" = x"yes" ; then
10788   # Extract the first word of "xmlto", so it can be a program name with args.
10789set dummy xmlto; ac_word=$2
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791$as_echo_n "checking for $ac_word... " >&6; }
10792if ${ac_cv_path_XMLTO+:} false; then :
10793  $as_echo_n "(cached) " >&6
10794else
10795  case $XMLTO in
10796  [\\/]* | ?:[\\/]*)
10797  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10798  ;;
10799  *)
10800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801for as_dir in $PATH
10802do
10803  IFS=$as_save_IFS
10804  test -z "$as_dir" && as_dir=.
10805    for ac_exec_ext in '' $ac_executable_extensions; do
10806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10807    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809    break 2
10810  fi
10811done
10812  done
10813IFS=$as_save_IFS
10814
10815  ;;
10816esac
10817fi
10818XMLTO=$ac_cv_path_XMLTO
10819if test -n "$XMLTO"; then
10820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10821$as_echo "$XMLTO" >&6; }
10822else
10823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824$as_echo "no" >&6; }
10825fi
10826
10827
10828   if test "x$XMLTO" = "x"; then
10829        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10830   fi
10831   have_xmlto=yes
10832elif test "x$use_xmlto" = x"no" ; then
10833   if test "x$XMLTO" != "x"; then
10834      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
10835$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
10836   fi
10837   have_xmlto=no
10838else
10839   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
10840fi
10841
10842# Test for a minimum version of xmlto, if provided.
10843if test "$have_xmlto" = yes; then
10844    # scrape the xmlto version
10845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
10846$as_echo_n "checking the xmlto version... " >&6; }
10847    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
10848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
10849$as_echo "$xmlto_version" >&6; }
10850    as_arg_v1=$xmlto_version
10851as_arg_v2=0.0.22
10852awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10853case $? in #(
10854  1) :
10855    if test "x$use_xmlto" = xauto; then
10856            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
10857$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
10858            have_xmlto=no
10859        else
10860            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
10861        fi ;; #(
10862  0) :
10863     ;; #(
10864  2) :
10865     ;; #(
10866  *) :
10867     ;;
10868esac
10869fi
10870
10871# Test for the ability of xmlto to generate a text target
10872have_xmlto_text=no
10873cat > conftest.xml << "EOF"
10874EOF
10875if test "$have_xmlto" = yes; then :
10876  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
10877  have_xmlto_text=yes
10878else
10879  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
10880$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
10881fi
10882fi
10883rm -f conftest.xml
10884 if test $have_xmlto_text = yes; then
10885  HAVE_XMLTO_TEXT_TRUE=
10886  HAVE_XMLTO_TEXT_FALSE='#'
10887else
10888  HAVE_XMLTO_TEXT_TRUE='#'
10889  HAVE_XMLTO_TEXT_FALSE=
10890fi
10891
10892 if test "$have_xmlto" = yes; then
10893  HAVE_XMLTO_TRUE=
10894  HAVE_XMLTO_FALSE='#'
10895else
10896  HAVE_XMLTO_TRUE='#'
10897  HAVE_XMLTO_FALSE=
10898fi
10899
10900
10901
10902
10903# Preserves the interface, should it be implemented later
10904
10905
10906
10907# Check whether --with-xsltproc was given.
10908if test "${with_xsltproc+set}" = set; then :
10909  withval=$with_xsltproc; use_xsltproc=$withval
10910else
10911  use_xsltproc=auto
10912fi
10913
10914
10915
10916if test "x$use_xsltproc" = x"auto"; then
10917   # Extract the first word of "xsltproc", so it can be a program name with args.
10918set dummy xsltproc; ac_word=$2
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920$as_echo_n "checking for $ac_word... " >&6; }
10921if ${ac_cv_path_XSLTPROC+:} false; then :
10922  $as_echo_n "(cached) " >&6
10923else
10924  case $XSLTPROC in
10925  [\\/]* | ?:[\\/]*)
10926  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10927  ;;
10928  *)
10929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930for as_dir in $PATH
10931do
10932  IFS=$as_save_IFS
10933  test -z "$as_dir" && as_dir=.
10934    for ac_exec_ext in '' $ac_executable_extensions; do
10935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10936    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938    break 2
10939  fi
10940done
10941  done
10942IFS=$as_save_IFS
10943
10944  ;;
10945esac
10946fi
10947XSLTPROC=$ac_cv_path_XSLTPROC
10948if test -n "$XSLTPROC"; then
10949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10950$as_echo "$XSLTPROC" >&6; }
10951else
10952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953$as_echo "no" >&6; }
10954fi
10955
10956
10957   if test "x$XSLTPROC" = "x"; then
10958        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
10959$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
10960	have_xsltproc=no
10961   else
10962        have_xsltproc=yes
10963   fi
10964elif test "x$use_xsltproc" = x"yes" ; then
10965   # Extract the first word of "xsltproc", so it can be a program name with args.
10966set dummy xsltproc; ac_word=$2
10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968$as_echo_n "checking for $ac_word... " >&6; }
10969if ${ac_cv_path_XSLTPROC+:} false; then :
10970  $as_echo_n "(cached) " >&6
10971else
10972  case $XSLTPROC in
10973  [\\/]* | ?:[\\/]*)
10974  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10975  ;;
10976  *)
10977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978for as_dir in $PATH
10979do
10980  IFS=$as_save_IFS
10981  test -z "$as_dir" && as_dir=.
10982    for ac_exec_ext in '' $ac_executable_extensions; do
10983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986    break 2
10987  fi
10988done
10989  done
10990IFS=$as_save_IFS
10991
10992  ;;
10993esac
10994fi
10995XSLTPROC=$ac_cv_path_XSLTPROC
10996if test -n "$XSLTPROC"; then
10997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10998$as_echo "$XSLTPROC" >&6; }
10999else
11000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001$as_echo "no" >&6; }
11002fi
11003
11004
11005   if test "x$XSLTPROC" = "x"; then
11006        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
11007   fi
11008   have_xsltproc=yes
11009elif test "x$use_xsltproc" = x"no" ; then
11010   if test "x$XSLTPROC" != "x"; then
11011      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
11012$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
11013   fi
11014   have_xsltproc=no
11015else
11016   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
11017fi
11018
11019 if test "$have_xsltproc" = yes; then
11020  HAVE_XSLTPROC_TRUE=
11021  HAVE_XSLTPROC_FALSE='#'
11022else
11023  HAVE_XSLTPROC_TRUE='#'
11024  HAVE_XSLTPROC_FALSE=
11025fi
11026
11027
11028
11029
11030
11031
11032# Check whether --with-fop was given.
11033if test "${with_fop+set}" = set; then :
11034  withval=$with_fop; use_fop=$withval
11035else
11036  use_fop=auto
11037fi
11038
11039
11040
11041if test "x$use_fop" = x"auto"; then
11042   # Extract the first word of "fop", so it can be a program name with args.
11043set dummy fop; ac_word=$2
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045$as_echo_n "checking for $ac_word... " >&6; }
11046if ${ac_cv_path_FOP+:} false; then :
11047  $as_echo_n "(cached) " >&6
11048else
11049  case $FOP in
11050  [\\/]* | ?:[\\/]*)
11051  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11052  ;;
11053  *)
11054  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055for as_dir in $PATH
11056do
11057  IFS=$as_save_IFS
11058  test -z "$as_dir" && as_dir=.
11059    for ac_exec_ext in '' $ac_executable_extensions; do
11060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11061    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11063    break 2
11064  fi
11065done
11066  done
11067IFS=$as_save_IFS
11068
11069  ;;
11070esac
11071fi
11072FOP=$ac_cv_path_FOP
11073if test -n "$FOP"; then
11074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11075$as_echo "$FOP" >&6; }
11076else
11077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078$as_echo "no" >&6; }
11079fi
11080
11081
11082   if test "x$FOP" = "x"; then
11083        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11084$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11085	have_fop=no
11086   else
11087        have_fop=yes
11088   fi
11089elif test "x$use_fop" = x"yes" ; then
11090   # Extract the first word of "fop", so it can be a program name with args.
11091set dummy fop; ac_word=$2
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093$as_echo_n "checking for $ac_word... " >&6; }
11094if ${ac_cv_path_FOP+:} false; then :
11095  $as_echo_n "(cached) " >&6
11096else
11097  case $FOP in
11098  [\\/]* | ?:[\\/]*)
11099  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11100  ;;
11101  *)
11102  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103for as_dir in $PATH
11104do
11105  IFS=$as_save_IFS
11106  test -z "$as_dir" && as_dir=.
11107    for ac_exec_ext in '' $ac_executable_extensions; do
11108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11109    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111    break 2
11112  fi
11113done
11114  done
11115IFS=$as_save_IFS
11116
11117  ;;
11118esac
11119fi
11120FOP=$ac_cv_path_FOP
11121if test -n "$FOP"; then
11122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11123$as_echo "$FOP" >&6; }
11124else
11125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126$as_echo "no" >&6; }
11127fi
11128
11129
11130   if test "x$FOP" = "x"; then
11131        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11132   fi
11133   have_fop=yes
11134elif test "x$use_fop" = x"no" ; then
11135   if test "x$FOP" != "x"; then
11136      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11137$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11138   fi
11139   have_fop=no
11140else
11141   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11142fi
11143
11144# Test for a minimum version of fop, if provided.
11145
11146 if test "$have_fop" = yes; then
11147  HAVE_FOP_TRUE=
11148  HAVE_FOP_FALSE='#'
11149else
11150  HAVE_FOP_TRUE='#'
11151  HAVE_FOP_FALSE=
11152fi
11153
11154
11155
11156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
11157$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
11158XORG_SGML_PATH=
11159if test -n "$PKG_CONFIG" && \
11160    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
11161  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
11162  ac_status=$?
11163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11164  test $ac_status = 0; }; then
11165  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11166else
11167  :
11168
11169fi
11170
11171# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11172# the path and the name of the doc stylesheet
11173if test "x$XORG_SGML_PATH" != "x" ; then
11174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11175$as_echo "$XORG_SGML_PATH" >&6; }
11176   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11177   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11178else
11179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180$as_echo "no" >&6; }
11181fi
11182
11183
11184
11185
11186 if test "x$XSL_STYLESHEET" != "x"; then
11187  HAVE_STYLESHEETS_TRUE=
11188  HAVE_STYLESHEETS_FALSE='#'
11189else
11190  HAVE_STYLESHEETS_TRUE='#'
11191  HAVE_STYLESHEETS_FALSE=
11192fi
11193
11194
11195
11196ac_config_files="$ac_config_files Makefile general/Makefile general/fonts/Makefile general/input/Makefile general/graphics/Makefile general/platforms/Makefile man/Makefile specs/Makefile specs/CTEXT/Makefile specs/ICCCM/Makefile specs/Xext/Makefile specs/XLFD/Makefile specs/Xserver/Makefile"
11197
11198cat >confcache <<\_ACEOF
11199# This file is a shell script that caches the results of configure
11200# tests run on this system so they can be shared between configure
11201# scripts and configure runs, see configure's option --config-cache.
11202# It is not useful on other systems.  If it contains results you don't
11203# want to keep, you may remove or edit it.
11204#
11205# config.status only pays attention to the cache file if you give it
11206# the --recheck option to rerun configure.
11207#
11208# `ac_cv_env_foo' variables (set or unset) will be overridden when
11209# loading this file, other *unset* `ac_cv_foo' will be assigned the
11210# following values.
11211
11212_ACEOF
11213
11214# The following way of writing the cache mishandles newlines in values,
11215# but we know of no workaround that is simple, portable, and efficient.
11216# So, we kill variables containing newlines.
11217# Ultrix sh set writes to stderr and can't be redirected directly,
11218# and sets the high bit in the cache file unless we assign to the vars.
11219(
11220  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11221    eval ac_val=\$$ac_var
11222    case $ac_val in #(
11223    *${as_nl}*)
11224      case $ac_var in #(
11225      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11226$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11227      esac
11228      case $ac_var in #(
11229      _ | IFS | as_nl) ;; #(
11230      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11231      *) { eval $ac_var=; unset $ac_var;} ;;
11232      esac ;;
11233    esac
11234  done
11235
11236  (set) 2>&1 |
11237    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11238    *${as_nl}ac_space=\ *)
11239      # `set' does not quote correctly, so add quotes: double-quote
11240      # substitution turns \\\\ into \\, and sed turns \\ into \.
11241      sed -n \
11242	"s/'/'\\\\''/g;
11243	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11244      ;; #(
11245    *)
11246      # `set' quotes correctly as required by POSIX, so do not add quotes.
11247      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11248      ;;
11249    esac |
11250    sort
11251) |
11252  sed '
11253     /^ac_cv_env_/b end
11254     t clear
11255     :clear
11256     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11257     t end
11258     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11259     :end' >>confcache
11260if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11261  if test -w "$cache_file"; then
11262    if test "x$cache_file" != "x/dev/null"; then
11263      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11264$as_echo "$as_me: updating cache $cache_file" >&6;}
11265      if test ! -f "$cache_file" || test -h "$cache_file"; then
11266	cat confcache >"$cache_file"
11267      else
11268        case $cache_file in #(
11269        */* | ?:*)
11270	  mv -f confcache "$cache_file"$$ &&
11271	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11272        *)
11273	  mv -f confcache "$cache_file" ;;
11274	esac
11275      fi
11276    fi
11277  else
11278    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11279$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11280  fi
11281fi
11282rm -f confcache
11283
11284test "x$prefix" = xNONE && prefix=$ac_default_prefix
11285# Let make expand exec_prefix.
11286test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11287
11288# Transform confdefs.h into DEFS.
11289# Protect against shell expansion while executing Makefile rules.
11290# Protect against Makefile macro expansion.
11291#
11292# If the first sed substitution is executed (which looks for macros that
11293# take arguments), then branch to the quote section.  Otherwise,
11294# look for a macro that doesn't take arguments.
11295ac_script='
11296:mline
11297/\\$/{
11298 N
11299 s,\\\n,,
11300 b mline
11301}
11302t clear
11303:clear
11304s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
11305t quote
11306s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
11307t quote
11308b any
11309:quote
11310s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11311s/\[/\\&/g
11312s/\]/\\&/g
11313s/\$/$$/g
11314H
11315:any
11316${
11317	g
11318	s/^\n//
11319	s/\n/ /g
11320	p
11321}
11322'
11323DEFS=`sed -n "$ac_script" confdefs.h`
11324
11325
11326ac_libobjs=
11327ac_ltlibobjs=
11328U=
11329for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11330  # 1. Remove the extension, and $U if already installed.
11331  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11332  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11333  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11334  #    will be set to the directory where LIBOBJS objects are built.
11335  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11336  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11337done
11338LIBOBJS=$ac_libobjs
11339
11340LTLIBOBJS=$ac_ltlibobjs
11341
11342
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11344$as_echo_n "checking that generated files are newer than configure... " >&6; }
11345   if test -n "$am_sleep_pid"; then
11346     # Hide warnings about reused PIDs.
11347     wait $am_sleep_pid 2>/dev/null
11348   fi
11349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11350$as_echo "done" >&6; }
11351 if test -n "$EXEEXT"; then
11352  am__EXEEXT_TRUE=
11353  am__EXEEXT_FALSE='#'
11354else
11355  am__EXEEXT_TRUE='#'
11356  am__EXEEXT_FALSE=
11357fi
11358
11359if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11360  as_fn_error $? "conditional \"AMDEP\" was never defined.
11361Usually this means the macro was only invoked conditionally." "$LINENO" 5
11362fi
11363if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11364  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11365Usually this means the macro was only invoked conditionally." "$LINENO" 5
11366fi
11367if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
11368  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
11369Usually this means the macro was only invoked conditionally." "$LINENO" 5
11370fi
11371if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
11372  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
11373Usually this means the macro was only invoked conditionally." "$LINENO" 5
11374fi
11375if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11376  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11377Usually this means the macro was only invoked conditionally." "$LINENO" 5
11378fi
11379if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11380  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11381Usually this means the macro was only invoked conditionally." "$LINENO" 5
11382fi
11383if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11384  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11385Usually this means the macro was only invoked conditionally." "$LINENO" 5
11386fi
11387if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11388  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11389Usually this means the macro was only invoked conditionally." "$LINENO" 5
11390fi
11391if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
11392  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
11393Usually this means the macro was only invoked conditionally." "$LINENO" 5
11394fi
11395
11396: "${CONFIG_STATUS=./config.status}"
11397ac_write_fail=0
11398ac_clean_files_save=$ac_clean_files
11399ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11401$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11402as_write_fail=0
11403cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11404#! $SHELL
11405# Generated by $as_me.
11406# Run this file to recreate the current configuration.
11407# Compiler output produced by configure, useful for debugging
11408# configure, is in config.log if it exists.
11409
11410debug=false
11411ac_cs_recheck=false
11412ac_cs_silent=false
11413
11414SHELL=\${CONFIG_SHELL-$SHELL}
11415export SHELL
11416_ASEOF
11417cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11418## -------------------- ##
11419## M4sh Initialization. ##
11420## -------------------- ##
11421
11422# Be more Bourne compatible
11423DUALCASE=1; export DUALCASE # for MKS sh
11424if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11425  emulate sh
11426  NULLCMD=:
11427  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11428  # is contrary to our usage.  Disable this feature.
11429  alias -g '${1+"$@"}'='"$@"'
11430  setopt NO_GLOB_SUBST
11431else
11432  case `(set -o) 2>/dev/null` in #(
11433  *posix*) :
11434    set -o posix ;; #(
11435  *) :
11436     ;;
11437esac
11438fi
11439
11440
11441as_nl='
11442'
11443export as_nl
11444# Printing a long string crashes Solaris 7 /usr/bin/printf.
11445as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11446as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11447as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11448# Prefer a ksh shell builtin over an external printf program on Solaris,
11449# but without wasting forks for bash or zsh.
11450if test -z "$BASH_VERSION$ZSH_VERSION" \
11451    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11452  as_echo='print -r --'
11453  as_echo_n='print -rn --'
11454elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11455  as_echo='printf %s\n'
11456  as_echo_n='printf %s'
11457else
11458  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11459    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11460    as_echo_n='/usr/ucb/echo -n'
11461  else
11462    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11463    as_echo_n_body='eval
11464      arg=$1;
11465      case $arg in #(
11466      *"$as_nl"*)
11467	expr "X$arg" : "X\\(.*\\)$as_nl";
11468	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11469      esac;
11470      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11471    '
11472    export as_echo_n_body
11473    as_echo_n='sh -c $as_echo_n_body as_echo'
11474  fi
11475  export as_echo_body
11476  as_echo='sh -c $as_echo_body as_echo'
11477fi
11478
11479# The user is always right.
11480if test "${PATH_SEPARATOR+set}" != set; then
11481  PATH_SEPARATOR=:
11482  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11483    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11484      PATH_SEPARATOR=';'
11485  }
11486fi
11487
11488
11489# IFS
11490# We need space, tab and new line, in precisely that order.  Quoting is
11491# there to prevent editors from complaining about space-tab.
11492# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11493# splitting by setting IFS to empty value.)
11494IFS=" ""	$as_nl"
11495
11496# Find who we are.  Look in the path if we contain no directory separator.
11497as_myself=
11498case $0 in #((
11499  *[\\/]* ) as_myself=$0 ;;
11500  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501for as_dir in $PATH
11502do
11503  IFS=$as_save_IFS
11504  test -z "$as_dir" && as_dir=.
11505    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11506  done
11507IFS=$as_save_IFS
11508
11509     ;;
11510esac
11511# We did not find ourselves, most probably we were run as `sh COMMAND'
11512# in which case we are not to be found in the path.
11513if test "x$as_myself" = x; then
11514  as_myself=$0
11515fi
11516if test ! -f "$as_myself"; then
11517  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11518  exit 1
11519fi
11520
11521# Unset variables that we do not need and which cause bugs (e.g. in
11522# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11523# suppresses any "Segmentation fault" message there.  '((' could
11524# trigger a bug in pdksh 5.2.14.
11525for as_var in BASH_ENV ENV MAIL MAILPATH
11526do eval test x\${$as_var+set} = xset \
11527  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11528done
11529PS1='$ '
11530PS2='> '
11531PS4='+ '
11532
11533# NLS nuisances.
11534LC_ALL=C
11535export LC_ALL
11536LANGUAGE=C
11537export LANGUAGE
11538
11539# CDPATH.
11540(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11541
11542
11543# as_fn_error STATUS ERROR [LINENO LOG_FD]
11544# ----------------------------------------
11545# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11546# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11547# script with STATUS, using 1 if that was 0.
11548as_fn_error ()
11549{
11550  as_status=$1; test $as_status -eq 0 && as_status=1
11551  if test "$4"; then
11552    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11553    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11554  fi
11555  $as_echo "$as_me: error: $2" >&2
11556  as_fn_exit $as_status
11557} # as_fn_error
11558
11559
11560# as_fn_set_status STATUS
11561# -----------------------
11562# Set $? to STATUS, without forking.
11563as_fn_set_status ()
11564{
11565  return $1
11566} # as_fn_set_status
11567
11568# as_fn_exit STATUS
11569# -----------------
11570# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11571as_fn_exit ()
11572{
11573  set +e
11574  as_fn_set_status $1
11575  exit $1
11576} # as_fn_exit
11577
11578# as_fn_unset VAR
11579# ---------------
11580# Portably unset VAR.
11581as_fn_unset ()
11582{
11583  { eval $1=; unset $1;}
11584}
11585as_unset=as_fn_unset
11586# as_fn_append VAR VALUE
11587# ----------------------
11588# Append the text in VALUE to the end of the definition contained in VAR. Take
11589# advantage of any shell optimizations that allow amortized linear growth over
11590# repeated appends, instead of the typical quadratic growth present in naive
11591# implementations.
11592if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11593  eval 'as_fn_append ()
11594  {
11595    eval $1+=\$2
11596  }'
11597else
11598  as_fn_append ()
11599  {
11600    eval $1=\$$1\$2
11601  }
11602fi # as_fn_append
11603
11604# as_fn_arith ARG...
11605# ------------------
11606# Perform arithmetic evaluation on the ARGs, and store the result in the
11607# global $as_val. Take advantage of shells that can avoid forks. The arguments
11608# must be portable across $(()) and expr.
11609if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11610  eval 'as_fn_arith ()
11611  {
11612    as_val=$(( $* ))
11613  }'
11614else
11615  as_fn_arith ()
11616  {
11617    as_val=`expr "$@" || test $? -eq 1`
11618  }
11619fi # as_fn_arith
11620
11621
11622if expr a : '\(a\)' >/dev/null 2>&1 &&
11623   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11624  as_expr=expr
11625else
11626  as_expr=false
11627fi
11628
11629if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11630  as_basename=basename
11631else
11632  as_basename=false
11633fi
11634
11635if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11636  as_dirname=dirname
11637else
11638  as_dirname=false
11639fi
11640
11641as_me=`$as_basename -- "$0" ||
11642$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11643	 X"$0" : 'X\(//\)$' \| \
11644	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11645$as_echo X/"$0" |
11646    sed '/^.*\/\([^/][^/]*\)\/*$/{
11647	    s//\1/
11648	    q
11649	  }
11650	  /^X\/\(\/\/\)$/{
11651	    s//\1/
11652	    q
11653	  }
11654	  /^X\/\(\/\).*/{
11655	    s//\1/
11656	    q
11657	  }
11658	  s/.*/./; q'`
11659
11660# Avoid depending upon Character Ranges.
11661as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11662as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11663as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11664as_cr_digits='0123456789'
11665as_cr_alnum=$as_cr_Letters$as_cr_digits
11666
11667ECHO_C= ECHO_N= ECHO_T=
11668case `echo -n x` in #(((((
11669-n*)
11670  case `echo 'xy\c'` in
11671  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11672  xy)  ECHO_C='\c';;
11673  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11674       ECHO_T='	';;
11675  esac;;
11676*)
11677  ECHO_N='-n';;
11678esac
11679
11680rm -f conf$$ conf$$.exe conf$$.file
11681if test -d conf$$.dir; then
11682  rm -f conf$$.dir/conf$$.file
11683else
11684  rm -f conf$$.dir
11685  mkdir conf$$.dir 2>/dev/null
11686fi
11687if (echo >conf$$.file) 2>/dev/null; then
11688  if ln -s conf$$.file conf$$ 2>/dev/null; then
11689    as_ln_s='ln -s'
11690    # ... but there are two gotchas:
11691    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11692    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11693    # In both cases, we have to default to `cp -pR'.
11694    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11695      as_ln_s='cp -pR'
11696  elif ln conf$$.file conf$$ 2>/dev/null; then
11697    as_ln_s=ln
11698  else
11699    as_ln_s='cp -pR'
11700  fi
11701else
11702  as_ln_s='cp -pR'
11703fi
11704rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11705rmdir conf$$.dir 2>/dev/null
11706
11707
11708# as_fn_mkdir_p
11709# -------------
11710# Create "$as_dir" as a directory, including parents if necessary.
11711as_fn_mkdir_p ()
11712{
11713
11714  case $as_dir in #(
11715  -*) as_dir=./$as_dir;;
11716  esac
11717  test -d "$as_dir" || eval $as_mkdir_p || {
11718    as_dirs=
11719    while :; do
11720      case $as_dir in #(
11721      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11722      *) as_qdir=$as_dir;;
11723      esac
11724      as_dirs="'$as_qdir' $as_dirs"
11725      as_dir=`$as_dirname -- "$as_dir" ||
11726$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11727	 X"$as_dir" : 'X\(//\)[^/]' \| \
11728	 X"$as_dir" : 'X\(//\)$' \| \
11729	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11730$as_echo X"$as_dir" |
11731    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11732	    s//\1/
11733	    q
11734	  }
11735	  /^X\(\/\/\)[^/].*/{
11736	    s//\1/
11737	    q
11738	  }
11739	  /^X\(\/\/\)$/{
11740	    s//\1/
11741	    q
11742	  }
11743	  /^X\(\/\).*/{
11744	    s//\1/
11745	    q
11746	  }
11747	  s/.*/./; q'`
11748      test -d "$as_dir" && break
11749    done
11750    test -z "$as_dirs" || eval "mkdir $as_dirs"
11751  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11752
11753
11754} # as_fn_mkdir_p
11755if mkdir -p . 2>/dev/null; then
11756  as_mkdir_p='mkdir -p "$as_dir"'
11757else
11758  test -d ./-p && rmdir ./-p
11759  as_mkdir_p=false
11760fi
11761
11762
11763# as_fn_executable_p FILE
11764# -----------------------
11765# Test if FILE is an executable regular file.
11766as_fn_executable_p ()
11767{
11768  test -f "$1" && test -x "$1"
11769} # as_fn_executable_p
11770as_test_x='test -x'
11771as_executable_p=as_fn_executable_p
11772
11773# Sed expression to map a string onto a valid CPP name.
11774as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11775
11776# Sed expression to map a string onto a valid variable name.
11777as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11778
11779
11780exec 6>&1
11781## ----------------------------------- ##
11782## Main body of $CONFIG_STATUS script. ##
11783## ----------------------------------- ##
11784_ASEOF
11785test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11786
11787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11788# Save the log message, to keep $0 and so on meaningful, and to
11789# report actual input values of CONFIG_FILES etc. instead of their
11790# values after options handling.
11791ac_log="
11792This file was extended by xorg-docs $as_me 1.7.1, which was
11793generated by GNU Autoconf 2.69.  Invocation command line was
11794
11795  CONFIG_FILES    = $CONFIG_FILES
11796  CONFIG_HEADERS  = $CONFIG_HEADERS
11797  CONFIG_LINKS    = $CONFIG_LINKS
11798  CONFIG_COMMANDS = $CONFIG_COMMANDS
11799  $ $0 $@
11800
11801on `(hostname || uname -n) 2>/dev/null | sed 1q`
11802"
11803
11804_ACEOF
11805
11806case $ac_config_files in *"
11807"*) set x $ac_config_files; shift; ac_config_files=$*;;
11808esac
11809
11810
11811
11812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11813# Files that config.status was made for.
11814config_files="$ac_config_files"
11815config_commands="$ac_config_commands"
11816
11817_ACEOF
11818
11819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11820ac_cs_usage="\
11821\`$as_me' instantiates files and other configuration actions
11822from templates according to the current configuration.  Unless the files
11823and actions are specified as TAGs, all are instantiated by default.
11824
11825Usage: $0 [OPTION]... [TAG]...
11826
11827  -h, --help       print this help, then exit
11828  -V, --version    print version number and configuration settings, then exit
11829      --config     print configuration, then exit
11830  -q, --quiet, --silent
11831                   do not print progress messages
11832  -d, --debug      don't remove temporary files
11833      --recheck    update $as_me by reconfiguring in the same conditions
11834      --file=FILE[:TEMPLATE]
11835                   instantiate the configuration file FILE
11836
11837Configuration files:
11838$config_files
11839
11840Configuration commands:
11841$config_commands
11842
11843Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11844
11845_ACEOF
11846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11847ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11848ac_cs_version="\\
11849xorg-docs config.status 1.7.1
11850configured by $0, generated by GNU Autoconf 2.69,
11851  with options \\"\$ac_cs_config\\"
11852
11853Copyright (C) 2012 Free Software Foundation, Inc.
11854This config.status script is free software; the Free Software Foundation
11855gives unlimited permission to copy, distribute and modify it."
11856
11857ac_pwd='$ac_pwd'
11858srcdir='$srcdir'
11859INSTALL='$INSTALL'
11860MKDIR_P='$MKDIR_P'
11861AWK='$AWK'
11862test -n "\$AWK" || AWK=awk
11863_ACEOF
11864
11865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11866# The default lists apply if the user does not specify any file.
11867ac_need_defaults=:
11868while test $# != 0
11869do
11870  case $1 in
11871  --*=?*)
11872    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11873    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11874    ac_shift=:
11875    ;;
11876  --*=)
11877    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11878    ac_optarg=
11879    ac_shift=:
11880    ;;
11881  *)
11882    ac_option=$1
11883    ac_optarg=$2
11884    ac_shift=shift
11885    ;;
11886  esac
11887
11888  case $ac_option in
11889  # Handling of the options.
11890  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11891    ac_cs_recheck=: ;;
11892  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11893    $as_echo "$ac_cs_version"; exit ;;
11894  --config | --confi | --conf | --con | --co | --c )
11895    $as_echo "$ac_cs_config"; exit ;;
11896  --debug | --debu | --deb | --de | --d | -d )
11897    debug=: ;;
11898  --file | --fil | --fi | --f )
11899    $ac_shift
11900    case $ac_optarg in
11901    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11902    '') as_fn_error $? "missing file argument" ;;
11903    esac
11904    as_fn_append CONFIG_FILES " '$ac_optarg'"
11905    ac_need_defaults=false;;
11906  --he | --h |  --help | --hel | -h )
11907    $as_echo "$ac_cs_usage"; exit ;;
11908  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11909  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11910    ac_cs_silent=: ;;
11911
11912  # This is an error.
11913  -*) as_fn_error $? "unrecognized option: \`$1'
11914Try \`$0 --help' for more information." ;;
11915
11916  *) as_fn_append ac_config_targets " $1"
11917     ac_need_defaults=false ;;
11918
11919  esac
11920  shift
11921done
11922
11923ac_configure_extra_args=
11924
11925if $ac_cs_silent; then
11926  exec 6>/dev/null
11927  ac_configure_extra_args="$ac_configure_extra_args --silent"
11928fi
11929
11930_ACEOF
11931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11932if \$ac_cs_recheck; then
11933  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11934  shift
11935  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11936  CONFIG_SHELL='$SHELL'
11937  export CONFIG_SHELL
11938  exec "\$@"
11939fi
11940
11941_ACEOF
11942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11943exec 5>>config.log
11944{
11945  echo
11946  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11947## Running $as_me. ##
11948_ASBOX
11949  $as_echo "$ac_log"
11950} >&5
11951
11952_ACEOF
11953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11954#
11955# INIT-COMMANDS
11956#
11957AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11958
11959_ACEOF
11960
11961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11962
11963# Handling of arguments.
11964for ac_config_target in $ac_config_targets
11965do
11966  case $ac_config_target in
11967    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11968    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11969    "general/Makefile") CONFIG_FILES="$CONFIG_FILES general/Makefile" ;;
11970    "general/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES general/fonts/Makefile" ;;
11971    "general/input/Makefile") CONFIG_FILES="$CONFIG_FILES general/input/Makefile" ;;
11972    "general/graphics/Makefile") CONFIG_FILES="$CONFIG_FILES general/graphics/Makefile" ;;
11973    "general/platforms/Makefile") CONFIG_FILES="$CONFIG_FILES general/platforms/Makefile" ;;
11974    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11975    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
11976    "specs/CTEXT/Makefile") CONFIG_FILES="$CONFIG_FILES specs/CTEXT/Makefile" ;;
11977    "specs/ICCCM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/ICCCM/Makefile" ;;
11978    "specs/Xext/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Xext/Makefile" ;;
11979    "specs/XLFD/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XLFD/Makefile" ;;
11980    "specs/Xserver/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Xserver/Makefile" ;;
11981
11982  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11983  esac
11984done
11985
11986
11987# If the user did not use the arguments to specify the items to instantiate,
11988# then the envvar interface is used.  Set only those that are not.
11989# We use the long form for the default assignment because of an extremely
11990# bizarre bug on SunOS 4.1.3.
11991if $ac_need_defaults; then
11992  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11993  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11994fi
11995
11996# Have a temporary directory for convenience.  Make it in the build tree
11997# simply because there is no reason against having it here, and in addition,
11998# creating and moving files from /tmp can sometimes cause problems.
11999# Hook for its removal unless debugging.
12000# Note that there is a small window in which the directory will not be cleaned:
12001# after its creation but before its name has been assigned to `$tmp'.
12002$debug ||
12003{
12004  tmp= ac_tmp=
12005  trap 'exit_status=$?
12006  : "${ac_tmp:=$tmp}"
12007  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12008' 0
12009  trap 'as_fn_exit 1' 1 2 13 15
12010}
12011# Create a (secure) tmp directory for tmp files.
12012
12013{
12014  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12015  test -d "$tmp"
12016}  ||
12017{
12018  tmp=./conf$$-$RANDOM
12019  (umask 077 && mkdir "$tmp")
12020} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12021ac_tmp=$tmp
12022
12023# Set up the scripts for CONFIG_FILES section.
12024# No need to generate them if there are no CONFIG_FILES.
12025# This happens for instance with `./config.status config.h'.
12026if test -n "$CONFIG_FILES"; then
12027
12028
12029ac_cr=`echo X | tr X '\015'`
12030# On cygwin, bash can eat \r inside `` if the user requested igncr.
12031# But we know of no other shell where ac_cr would be empty at this
12032# point, so we can use a bashism as a fallback.
12033if test "x$ac_cr" = x; then
12034  eval ac_cr=\$\'\\r\'
12035fi
12036ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12037if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12038  ac_cs_awk_cr='\\r'
12039else
12040  ac_cs_awk_cr=$ac_cr
12041fi
12042
12043echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12044_ACEOF
12045
12046
12047{
12048  echo "cat >conf$$subs.awk <<_ACEOF" &&
12049  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12050  echo "_ACEOF"
12051} >conf$$subs.sh ||
12052  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12053ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12054ac_delim='%!_!# '
12055for ac_last_try in false false false false false :; do
12056  . ./conf$$subs.sh ||
12057    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12058
12059  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12060  if test $ac_delim_n = $ac_delim_num; then
12061    break
12062  elif $ac_last_try; then
12063    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12064  else
12065    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12066  fi
12067done
12068rm -f conf$$subs.sh
12069
12070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12071cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12072_ACEOF
12073sed -n '
12074h
12075s/^/S["/; s/!.*/"]=/
12076p
12077g
12078s/^[^!]*!//
12079:repl
12080t repl
12081s/'"$ac_delim"'$//
12082t delim
12083:nl
12084h
12085s/\(.\{148\}\)..*/\1/
12086t more1
12087s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12088p
12089n
12090b repl
12091:more1
12092s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12093p
12094g
12095s/.\{148\}//
12096t nl
12097:delim
12098h
12099s/\(.\{148\}\)..*/\1/
12100t more2
12101s/["\\]/\\&/g; s/^/"/; s/$/"/
12102p
12103b
12104:more2
12105s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12106p
12107g
12108s/.\{148\}//
12109t delim
12110' <conf$$subs.awk | sed '
12111/^[^""]/{
12112  N
12113  s/\n//
12114}
12115' >>$CONFIG_STATUS || ac_write_fail=1
12116rm -f conf$$subs.awk
12117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12118_ACAWK
12119cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12120  for (key in S) S_is_set[key] = 1
12121  FS = ""
12122
12123}
12124{
12125  line = $ 0
12126  nfields = split(line, field, "@")
12127  substed = 0
12128  len = length(field[1])
12129  for (i = 2; i < nfields; i++) {
12130    key = field[i]
12131    keylen = length(key)
12132    if (S_is_set[key]) {
12133      value = S[key]
12134      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12135      len += length(value) + length(field[++i])
12136      substed = 1
12137    } else
12138      len += 1 + keylen
12139  }
12140
12141  print line
12142}
12143
12144_ACAWK
12145_ACEOF
12146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12147if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12148  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12149else
12150  cat
12151fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12152  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12153_ACEOF
12154
12155# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12156# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12157# trailing colons and then remove the whole line if VPATH becomes empty
12158# (actually we leave an empty line to preserve line numbers).
12159if test "x$srcdir" = x.; then
12160  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12161h
12162s///
12163s/^/:/
12164s/[	 ]*$/:/
12165s/:\$(srcdir):/:/g
12166s/:\${srcdir}:/:/g
12167s/:@srcdir@:/:/g
12168s/^:*//
12169s/:*$//
12170x
12171s/\(=[	 ]*\).*/\1/
12172G
12173s/\n//
12174s/^[^=]*=[	 ]*$//
12175}'
12176fi
12177
12178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12179fi # test -n "$CONFIG_FILES"
12180
12181
12182eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12183shift
12184for ac_tag
12185do
12186  case $ac_tag in
12187  :[FHLC]) ac_mode=$ac_tag; continue;;
12188  esac
12189  case $ac_mode$ac_tag in
12190  :[FHL]*:*);;
12191  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12192  :[FH]-) ac_tag=-:-;;
12193  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12194  esac
12195  ac_save_IFS=$IFS
12196  IFS=:
12197  set x $ac_tag
12198  IFS=$ac_save_IFS
12199  shift
12200  ac_file=$1
12201  shift
12202
12203  case $ac_mode in
12204  :L) ac_source=$1;;
12205  :[FH])
12206    ac_file_inputs=
12207    for ac_f
12208    do
12209      case $ac_f in
12210      -) ac_f="$ac_tmp/stdin";;
12211      *) # Look for the file first in the build tree, then in the source tree
12212	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12213	 # because $ac_f cannot contain `:'.
12214	 test -f "$ac_f" ||
12215	   case $ac_f in
12216	   [\\/$]*) false;;
12217	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12218	   esac ||
12219	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12220      esac
12221      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12222      as_fn_append ac_file_inputs " '$ac_f'"
12223    done
12224
12225    # Let's still pretend it is `configure' which instantiates (i.e., don't
12226    # use $as_me), people would be surprised to read:
12227    #    /* config.h.  Generated by config.status.  */
12228    configure_input='Generated from '`
12229	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12230	`' by configure.'
12231    if test x"$ac_file" != x-; then
12232      configure_input="$ac_file.  $configure_input"
12233      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12234$as_echo "$as_me: creating $ac_file" >&6;}
12235    fi
12236    # Neutralize special characters interpreted by sed in replacement strings.
12237    case $configure_input in #(
12238    *\&* | *\|* | *\\* )
12239       ac_sed_conf_input=`$as_echo "$configure_input" |
12240       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12241    *) ac_sed_conf_input=$configure_input;;
12242    esac
12243
12244    case $ac_tag in
12245    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12246      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12247    esac
12248    ;;
12249  esac
12250
12251  ac_dir=`$as_dirname -- "$ac_file" ||
12252$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12253	 X"$ac_file" : 'X\(//\)[^/]' \| \
12254	 X"$ac_file" : 'X\(//\)$' \| \
12255	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12256$as_echo X"$ac_file" |
12257    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12258	    s//\1/
12259	    q
12260	  }
12261	  /^X\(\/\/\)[^/].*/{
12262	    s//\1/
12263	    q
12264	  }
12265	  /^X\(\/\/\)$/{
12266	    s//\1/
12267	    q
12268	  }
12269	  /^X\(\/\).*/{
12270	    s//\1/
12271	    q
12272	  }
12273	  s/.*/./; q'`
12274  as_dir="$ac_dir"; as_fn_mkdir_p
12275  ac_builddir=.
12276
12277case "$ac_dir" in
12278.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12279*)
12280  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12281  # A ".." for each directory in $ac_dir_suffix.
12282  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12283  case $ac_top_builddir_sub in
12284  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12285  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12286  esac ;;
12287esac
12288ac_abs_top_builddir=$ac_pwd
12289ac_abs_builddir=$ac_pwd$ac_dir_suffix
12290# for backward compatibility:
12291ac_top_builddir=$ac_top_build_prefix
12292
12293case $srcdir in
12294  .)  # We are building in place.
12295    ac_srcdir=.
12296    ac_top_srcdir=$ac_top_builddir_sub
12297    ac_abs_top_srcdir=$ac_pwd ;;
12298  [\\/]* | ?:[\\/]* )  # Absolute name.
12299    ac_srcdir=$srcdir$ac_dir_suffix;
12300    ac_top_srcdir=$srcdir
12301    ac_abs_top_srcdir=$srcdir ;;
12302  *) # Relative name.
12303    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12304    ac_top_srcdir=$ac_top_build_prefix$srcdir
12305    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12306esac
12307ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12308
12309
12310  case $ac_mode in
12311  :F)
12312  #
12313  # CONFIG_FILE
12314  #
12315
12316  case $INSTALL in
12317  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12318  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12319  esac
12320  ac_MKDIR_P=$MKDIR_P
12321  case $MKDIR_P in
12322  [\\/$]* | ?:[\\/]* ) ;;
12323  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12324  esac
12325_ACEOF
12326
12327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12328# If the template does not know about datarootdir, expand it.
12329# FIXME: This hack should be removed a few years after 2.60.
12330ac_datarootdir_hack=; ac_datarootdir_seen=
12331ac_sed_dataroot='
12332/datarootdir/ {
12333  p
12334  q
12335}
12336/@datadir@/p
12337/@docdir@/p
12338/@infodir@/p
12339/@localedir@/p
12340/@mandir@/p'
12341case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12342*datarootdir*) ac_datarootdir_seen=yes;;
12343*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12344  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12345$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12346_ACEOF
12347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12348  ac_datarootdir_hack='
12349  s&@datadir@&$datadir&g
12350  s&@docdir@&$docdir&g
12351  s&@infodir@&$infodir&g
12352  s&@localedir@&$localedir&g
12353  s&@mandir@&$mandir&g
12354  s&\\\${datarootdir}&$datarootdir&g' ;;
12355esac
12356_ACEOF
12357
12358# Neutralize VPATH when `$srcdir' = `.'.
12359# Shell code in configure.ac might set extrasub.
12360# FIXME: do we really want to maintain this feature?
12361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12362ac_sed_extra="$ac_vpsub
12363$extrasub
12364_ACEOF
12365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12366:t
12367/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12368s|@configure_input@|$ac_sed_conf_input|;t t
12369s&@top_builddir@&$ac_top_builddir_sub&;t t
12370s&@top_build_prefix@&$ac_top_build_prefix&;t t
12371s&@srcdir@&$ac_srcdir&;t t
12372s&@abs_srcdir@&$ac_abs_srcdir&;t t
12373s&@top_srcdir@&$ac_top_srcdir&;t t
12374s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12375s&@builddir@&$ac_builddir&;t t
12376s&@abs_builddir@&$ac_abs_builddir&;t t
12377s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12378s&@INSTALL@&$ac_INSTALL&;t t
12379s&@MKDIR_P@&$ac_MKDIR_P&;t t
12380$ac_datarootdir_hack
12381"
12382eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12383  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12384
12385test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12386  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12387  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12388      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12389  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12390which seems to be undefined.  Please make sure it is defined" >&5
12391$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12392which seems to be undefined.  Please make sure it is defined" >&2;}
12393
12394  rm -f "$ac_tmp/stdin"
12395  case $ac_file in
12396  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12397  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12398  esac \
12399  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12400 ;;
12401
12402
12403  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12404$as_echo "$as_me: executing $ac_file commands" >&6;}
12405 ;;
12406  esac
12407
12408
12409  case $ac_file$ac_mode in
12410    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12411  # Older Autoconf quotes --file arguments for eval, but not when files
12412  # are listed without --file.  Let's play safe and only enable the eval
12413  # if we detect the quoting.
12414  case $CONFIG_FILES in
12415  *\'*) eval set x "$CONFIG_FILES" ;;
12416  *)   set x $CONFIG_FILES ;;
12417  esac
12418  shift
12419  for mf
12420  do
12421    # Strip MF so we end up with the name of the file.
12422    mf=`echo "$mf" | sed -e 's/:.*$//'`
12423    # Check whether this is an Automake generated Makefile or not.
12424    # We used to match only the files named 'Makefile.in', but
12425    # some people rename them; so instead we look at the file content.
12426    # Grep'ing the first line is not enough: some people post-process
12427    # each Makefile.in and add a new line on top of each file to say so.
12428    # Grep'ing the whole file is not good either: AIX grep has a line
12429    # limit of 2048, but all sed's we know have understand at least 4000.
12430    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12431      dirpart=`$as_dirname -- "$mf" ||
12432$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12433	 X"$mf" : 'X\(//\)[^/]' \| \
12434	 X"$mf" : 'X\(//\)$' \| \
12435	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12436$as_echo X"$mf" |
12437    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12438	    s//\1/
12439	    q
12440	  }
12441	  /^X\(\/\/\)[^/].*/{
12442	    s//\1/
12443	    q
12444	  }
12445	  /^X\(\/\/\)$/{
12446	    s//\1/
12447	    q
12448	  }
12449	  /^X\(\/\).*/{
12450	    s//\1/
12451	    q
12452	  }
12453	  s/.*/./; q'`
12454    else
12455      continue
12456    fi
12457    # Extract the definition of DEPDIR, am__include, and am__quote
12458    # from the Makefile without running 'make'.
12459    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12460    test -z "$DEPDIR" && continue
12461    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12462    test -z "$am__include" && continue
12463    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12464    # Find all dependency output files, they are included files with
12465    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12466    # simplest approach to changing $(DEPDIR) to its actual value in the
12467    # expansion.
12468    for file in `sed -n "
12469      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12470	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12471      # Make sure the directory exists.
12472      test -f "$dirpart/$file" && continue
12473      fdir=`$as_dirname -- "$file" ||
12474$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12475	 X"$file" : 'X\(//\)[^/]' \| \
12476	 X"$file" : 'X\(//\)$' \| \
12477	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12478$as_echo X"$file" |
12479    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12480	    s//\1/
12481	    q
12482	  }
12483	  /^X\(\/\/\)[^/].*/{
12484	    s//\1/
12485	    q
12486	  }
12487	  /^X\(\/\/\)$/{
12488	    s//\1/
12489	    q
12490	  }
12491	  /^X\(\/\).*/{
12492	    s//\1/
12493	    q
12494	  }
12495	  s/.*/./; q'`
12496      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12497      # echo "creating $dirpart/$file"
12498      echo '# dummy' > "$dirpart/$file"
12499    done
12500  done
12501}
12502 ;;
12503
12504  esac
12505done # for ac_tag
12506
12507
12508as_fn_exit 0
12509_ACEOF
12510ac_clean_files=$ac_clean_files_save
12511
12512test $ac_write_fail = 0 ||
12513  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12514
12515
12516# configure is writing to config.log, and then calls config.status.
12517# config.status does its own redirection, appending to config.log.
12518# Unfortunately, on DOS this fails, as config.log is still kept open
12519# by configure, so config.status won't be able to write to it; its
12520# output is simply discarded.  So we exec the FD to /dev/null,
12521# effectively closing config.log, so it can be properly (re)opened and
12522# appended to by config.status.  When coming back to configure, we
12523# need to make the FD available again.
12524if test "$no_create" != yes; then
12525  ac_cs_success=:
12526  ac_config_status_args=
12527  test "$silent" = yes &&
12528    ac_config_status_args="$ac_config_status_args --quiet"
12529  exec 5>/dev/null
12530  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12531  exec 5>>config.log
12532  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12533  # would make configure fail if this is the last instruction.
12534  $ac_cs_success || as_fn_exit 1
12535fi
12536if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12537  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12538$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12539fi
12540
12541