configure revision fe567363
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xtrans 1.2.7.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540as_awk_strverscmp='
541  # Use only awk features that work with 7th edition Unix awk (1978).
542  # My, what an old awk you have, Mr. Solaris!
543  END {
544    while (length(v1) && length(v2)) {
545      # Set d1 to be the next thing to compare from v1, and likewise for d2.
546      # Normally this is a single character, but if v1 and v2 contain digits,
547      # compare them as integers and fractions as strverscmp does.
548      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
549	# Split v1 and v2 into their leading digit string components d1 and d2,
550	# and advance v1 and v2 past the leading digit strings.
551	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
552	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
553	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
554	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
555	if (d1 ~ /^0/) {
556	  if (d2 ~ /^0/) {
557	    # Compare two fractions.
558	    while (d1 ~ /^0/ && d2 ~ /^0/) {
559	      d1 = substr(d1, 2); len1--
560	      d2 = substr(d2, 2); len2--
561	    }
562	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
563	      # The two components differ in length, and the common prefix
564	      # contains only leading zeros.  Consider the longer to be less.
565	      d1 = -len1
566	      d2 = -len2
567	    } else {
568	      # Otherwise, compare as strings.
569	      d1 = "x" d1
570	      d2 = "x" d2
571	    }
572	  } else {
573	    # A fraction is less than an integer.
574	    exit 1
575	  }
576	} else {
577	  if (d2 ~ /^0/) {
578	    # An integer is greater than a fraction.
579	    exit 2
580	  } else {
581	    # Compare two integers.
582	    d1 += 0
583	    d2 += 0
584	  }
585	}
586      } else {
587	# The normal case, without worrying about digits.
588	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
589	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
590      }
591      if (d1 < d2) exit 1
592      if (d1 > d2) exit 2
593    }
594    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
595    # which mishandles some comparisons of empty strings to integers.
596    if (length(v2)) exit 1
597    if (length(v1)) exit 2
598  }
599'
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='xtrans'
623PACKAGE_TARNAME='xtrans'
624PACKAGE_VERSION='1.2.7'
625PACKAGE_STRING='xtrans 1.2.7'
626PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
627PACKAGE_URL=''
628
629ac_unique_file="Makefile.am"
630# Factoring default headers for most tests.
631ac_includes_default="\
632#include <stdio.h>
633#ifdef HAVE_SYS_TYPES_H
634# include <sys/types.h>
635#endif
636#ifdef HAVE_SYS_STAT_H
637# include <sys/stat.h>
638#endif
639#ifdef STDC_HEADERS
640# include <stdlib.h>
641# include <stddef.h>
642#else
643# ifdef HAVE_STDLIB_H
644#  include <stdlib.h>
645# endif
646#endif
647#ifdef HAVE_STRING_H
648# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
649#  include <memory.h>
650# endif
651# include <string.h>
652#endif
653#ifdef HAVE_STRINGS_H
654# include <strings.h>
655#endif
656#ifdef HAVE_INTTYPES_H
657# include <inttypes.h>
658#endif
659#ifdef HAVE_STDINT_H
660# include <stdint.h>
661#endif
662#ifdef HAVE_UNISTD_H
663# include <unistd.h>
664#endif"
665
666ac_subst_vars='am__EXEEXT_FALSE
667am__EXEEXT_TRUE
668LTLIBOBJS
669LIBOBJS
670sticky_bit_define
671fchown_define
672HAVE_STYLESHEETS_FALSE
673HAVE_STYLESHEETS_TRUE
674XSL_STYLESHEET
675STYLESHEET_SRCDIR
676XORG_SGML_PATH
677HAVE_XSLTPROC_FALSE
678HAVE_XSLTPROC_TRUE
679XSLTPROC
680HAVE_FOP_FALSE
681HAVE_FOP_TRUE
682FOP
683HAVE_XMLTO_FALSE
684HAVE_XMLTO_TRUE
685HAVE_XMLTO_TEXT_FALSE
686HAVE_XMLTO_TEXT_TRUE
687XMLTO
688ENABLE_DOCS_FALSE
689ENABLE_DOCS_TRUE
690AM_BACKSLASH
691AM_DEFAULT_VERBOSITY
692MAN_SUBSTS
693XORG_MAN_PAGE
694ADMIN_MAN_DIR
695DRIVER_MAN_DIR
696MISC_MAN_DIR
697FILE_MAN_DIR
698LIB_MAN_DIR
699APP_MAN_DIR
700ADMIN_MAN_SUFFIX
701DRIVER_MAN_SUFFIX
702MISC_MAN_SUFFIX
703FILE_MAN_SUFFIX
704LIB_MAN_SUFFIX
705APP_MAN_SUFFIX
706SED
707host_os
708host_vendor
709host_cpu
710host
711build_os
712build_vendor
713build_cpu
714build
715INSTALL_CMD
716PKG_CONFIG
717CHANGELOG_CMD
718STRICT_CFLAGS
719CWARNFLAGS
720BASE_CFLAGS
721EGREP
722GREP
723CPP
724am__fastdepCC_FALSE
725am__fastdepCC_TRUE
726CCDEPMODE
727AMDEPBACKSLASH
728AMDEP_FALSE
729AMDEP_TRUE
730am__quote
731am__include
732DEPDIR
733OBJEXT
734EXEEXT
735ac_ct_CC
736CPPFLAGS
737LDFLAGS
738CFLAGS
739CC
740MAINT
741MAINTAINER_MODE_FALSE
742MAINTAINER_MODE_TRUE
743am__untar
744am__tar
745AMTAR
746am__leading_dot
747SET_MAKE
748AWK
749mkdir_p
750MKDIR_P
751INSTALL_STRIP_PROGRAM
752STRIP
753install_sh
754MAKEINFO
755AUTOHEADER
756AUTOMAKE
757AUTOCONF
758ACLOCAL
759VERSION
760PACKAGE
761CYGPATH_W
762am__isrc
763INSTALL_DATA
764INSTALL_SCRIPT
765INSTALL_PROGRAM
766target_alias
767host_alias
768build_alias
769LIBS
770ECHO_T
771ECHO_N
772ECHO_C
773DEFS
774mandir
775localedir
776libdir
777psdir
778pdfdir
779dvidir
780htmldir
781infodir
782docdir
783oldincludedir
784includedir
785localstatedir
786sharedstatedir
787sysconfdir
788datadir
789datarootdir
790libexecdir
791sbindir
792bindir
793program_transform_name
794prefix
795exec_prefix
796PACKAGE_URL
797PACKAGE_BUGREPORT
798PACKAGE_STRING
799PACKAGE_VERSION
800PACKAGE_TARNAME
801PACKAGE_NAME
802PATH_SEPARATOR
803SHELL'
804ac_subst_files=''
805ac_user_opts='
806enable_option_checking
807enable_maintainer_mode
808enable_dependency_tracking
809enable_selective_werror
810enable_strict_compilation
811enable_silent_rules
812enable_docs
813with_xmlto
814with_fop
815with_xsltproc
816'
817      ac_precious_vars='build_alias
818host_alias
819target_alias
820CC
821CFLAGS
822LDFLAGS
823LIBS
824CPPFLAGS
825CPP
826PKG_CONFIG
827XMLTO
828FOP
829XSLTPROC'
830
831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835ac_unrecognized_opts=
836ac_unrecognized_sep=
837# The variables have the same names as the options, with
838# dashes changed to underlines.
839cache_file=/dev/null
840exec_prefix=NONE
841no_create=
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
850verbose=
851x_includes=NONE
852x_libraries=NONE
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
859# (The list follows the same order as the GNU Coding Standards.)
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
870docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
879
880ac_prev=
881ac_dashdash=
882for ac_option
883do
884  # If the previous option needs an argument, assign it.
885  if test -n "$ac_prev"; then
886    eval $ac_prev=\$ac_option
887    ac_prev=
888    continue
889  fi
890
891  case $ac_option in
892  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893  *=)   ac_optarg= ;;
894  *)    ac_optarg=yes ;;
895  esac
896
897  # Accept the important Cygnus configure options, so we can diagnose typos.
898
899  case $ac_dashdash$ac_option in
900  --)
901    ac_dashdash=yes ;;
902
903  -bindir | --bindir | --bindi | --bind | --bin | --bi)
904    ac_prev=bindir ;;
905  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906    bindir=$ac_optarg ;;
907
908  -build | --build | --buil | --bui | --bu)
909    ac_prev=build_alias ;;
910  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911    build_alias=$ac_optarg ;;
912
913  -cache-file | --cache-file | --cache-fil | --cache-fi \
914  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915    ac_prev=cache_file ;;
916  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918    cache_file=$ac_optarg ;;
919
920  --config-cache | -C)
921    cache_file=config.cache ;;
922
923  -datadir | --datadir | --datadi | --datad)
924    ac_prev=datadir ;;
925  -datadir=* | --datadir=* | --datadi=* | --datad=*)
926    datadir=$ac_optarg ;;
927
928  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929  | --dataroo | --dataro | --datar)
930    ac_prev=datarootdir ;;
931  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933    datarootdir=$ac_optarg ;;
934
935  -disable-* | --disable-*)
936    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937    # Reject names that are not valid shell variable names.
938    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939      as_fn_error $? "invalid feature name: $ac_useropt"
940    ac_useropt_orig=$ac_useropt
941    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942    case $ac_user_opts in
943      *"
944"enable_$ac_useropt"
945"*) ;;
946      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947	 ac_unrecognized_sep=', ';;
948    esac
949    eval enable_$ac_useropt=no ;;
950
951  -docdir | --docdir | --docdi | --doc | --do)
952    ac_prev=docdir ;;
953  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954    docdir=$ac_optarg ;;
955
956  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957    ac_prev=dvidir ;;
958  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959    dvidir=$ac_optarg ;;
960
961  -enable-* | --enable-*)
962    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963    # Reject names that are not valid shell variable names.
964    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965      as_fn_error $? "invalid feature name: $ac_useropt"
966    ac_useropt_orig=$ac_useropt
967    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968    case $ac_user_opts in
969      *"
970"enable_$ac_useropt"
971"*) ;;
972      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973	 ac_unrecognized_sep=', ';;
974    esac
975    eval enable_$ac_useropt=\$ac_optarg ;;
976
977  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979  | --exec | --exe | --ex)
980    ac_prev=exec_prefix ;;
981  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983  | --exec=* | --exe=* | --ex=*)
984    exec_prefix=$ac_optarg ;;
985
986  -gas | --gas | --ga | --g)
987    # Obsolete; use --with-gas.
988    with_gas=yes ;;
989
990  -help | --help | --hel | --he | -h)
991    ac_init_help=long ;;
992  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993    ac_init_help=recursive ;;
994  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995    ac_init_help=short ;;
996
997  -host | --host | --hos | --ho)
998    ac_prev=host_alias ;;
999  -host=* | --host=* | --hos=* | --ho=*)
1000    host_alias=$ac_optarg ;;
1001
1002  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003    ac_prev=htmldir ;;
1004  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005  | --ht=*)
1006    htmldir=$ac_optarg ;;
1007
1008  -includedir | --includedir | --includedi | --included | --include \
1009  | --includ | --inclu | --incl | --inc)
1010    ac_prev=includedir ;;
1011  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012  | --includ=* | --inclu=* | --incl=* | --inc=*)
1013    includedir=$ac_optarg ;;
1014
1015  -infodir | --infodir | --infodi | --infod | --info | --inf)
1016    ac_prev=infodir ;;
1017  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018    infodir=$ac_optarg ;;
1019
1020  -libdir | --libdir | --libdi | --libd)
1021    ac_prev=libdir ;;
1022  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023    libdir=$ac_optarg ;;
1024
1025  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026  | --libexe | --libex | --libe)
1027    ac_prev=libexecdir ;;
1028  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029  | --libexe=* | --libex=* | --libe=*)
1030    libexecdir=$ac_optarg ;;
1031
1032  -localedir | --localedir | --localedi | --localed | --locale)
1033    ac_prev=localedir ;;
1034  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035    localedir=$ac_optarg ;;
1036
1037  -localstatedir | --localstatedir | --localstatedi | --localstated \
1038  | --localstate | --localstat | --localsta | --localst | --locals)
1039    ac_prev=localstatedir ;;
1040  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042    localstatedir=$ac_optarg ;;
1043
1044  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045    ac_prev=mandir ;;
1046  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047    mandir=$ac_optarg ;;
1048
1049  -nfp | --nfp | --nf)
1050    # Obsolete; use --without-fp.
1051    with_fp=no ;;
1052
1053  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054  | --no-cr | --no-c | -n)
1055    no_create=yes ;;
1056
1057  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059    no_recursion=yes ;;
1060
1061  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063  | --oldin | --oldi | --old | --ol | --o)
1064    ac_prev=oldincludedir ;;
1065  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068    oldincludedir=$ac_optarg ;;
1069
1070  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071    ac_prev=prefix ;;
1072  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073    prefix=$ac_optarg ;;
1074
1075  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076  | --program-pre | --program-pr | --program-p)
1077    ac_prev=program_prefix ;;
1078  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080    program_prefix=$ac_optarg ;;
1081
1082  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083  | --program-suf | --program-su | --program-s)
1084    ac_prev=program_suffix ;;
1085  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087    program_suffix=$ac_optarg ;;
1088
1089  -program-transform-name | --program-transform-name \
1090  | --program-transform-nam | --program-transform-na \
1091  | --program-transform-n | --program-transform- \
1092  | --program-transform | --program-transfor \
1093  | --program-transfo | --program-transf \
1094  | --program-trans | --program-tran \
1095  | --progr-tra | --program-tr | --program-t)
1096    ac_prev=program_transform_name ;;
1097  -program-transform-name=* | --program-transform-name=* \
1098  | --program-transform-nam=* | --program-transform-na=* \
1099  | --program-transform-n=* | --program-transform-=* \
1100  | --program-transform=* | --program-transfor=* \
1101  | --program-transfo=* | --program-transf=* \
1102  | --program-trans=* | --program-tran=* \
1103  | --progr-tra=* | --program-tr=* | --program-t=*)
1104    program_transform_name=$ac_optarg ;;
1105
1106  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107    ac_prev=pdfdir ;;
1108  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109    pdfdir=$ac_optarg ;;
1110
1111  -psdir | --psdir | --psdi | --psd | --ps)
1112    ac_prev=psdir ;;
1113  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114    psdir=$ac_optarg ;;
1115
1116  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117  | -silent | --silent | --silen | --sile | --sil)
1118    silent=yes ;;
1119
1120  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121    ac_prev=sbindir ;;
1122  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123  | --sbi=* | --sb=*)
1124    sbindir=$ac_optarg ;;
1125
1126  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128  | --sharedst | --shareds | --shared | --share | --shar \
1129  | --sha | --sh)
1130    ac_prev=sharedstatedir ;;
1131  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134  | --sha=* | --sh=*)
1135    sharedstatedir=$ac_optarg ;;
1136
1137  -site | --site | --sit)
1138    ac_prev=site ;;
1139  -site=* | --site=* | --sit=*)
1140    site=$ac_optarg ;;
1141
1142  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143    ac_prev=srcdir ;;
1144  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145    srcdir=$ac_optarg ;;
1146
1147  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148  | --syscon | --sysco | --sysc | --sys | --sy)
1149    ac_prev=sysconfdir ;;
1150  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152    sysconfdir=$ac_optarg ;;
1153
1154  -target | --target | --targe | --targ | --tar | --ta | --t)
1155    ac_prev=target_alias ;;
1156  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157    target_alias=$ac_optarg ;;
1158
1159  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160    verbose=yes ;;
1161
1162  -version | --version | --versio | --versi | --vers | -V)
1163    ac_init_version=: ;;
1164
1165  -with-* | --with-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=\$ac_optarg ;;
1180
1181  -without-* | --without-*)
1182    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183    # Reject names that are not valid shell variable names.
1184    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185      as_fn_error $? "invalid package name: $ac_useropt"
1186    ac_useropt_orig=$ac_useropt
1187    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188    case $ac_user_opts in
1189      *"
1190"with_$ac_useropt"
1191"*) ;;
1192      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193	 ac_unrecognized_sep=', ';;
1194    esac
1195    eval with_$ac_useropt=no ;;
1196
1197  --x)
1198    # Obsolete; use --with-x.
1199    with_x=yes ;;
1200
1201  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202  | --x-incl | --x-inc | --x-in | --x-i)
1203    ac_prev=x_includes ;;
1204  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206    x_includes=$ac_optarg ;;
1207
1208  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210    ac_prev=x_libraries ;;
1211  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213    x_libraries=$ac_optarg ;;
1214
1215  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information"
1217    ;;
1218
1219  *=*)
1220    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221    # Reject names that are not valid shell variable names.
1222    case $ac_envvar in #(
1223      '' | [0-9]* | *[!_$as_cr_alnum]* )
1224      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225    esac
1226    eval $ac_envvar=\$ac_optarg
1227    export $ac_envvar ;;
1228
1229  *)
1230    # FIXME: should be removed in autoconf 3.0.
1231    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235    ;;
1236
1237  esac
1238done
1239
1240if test -n "$ac_prev"; then
1241  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242  as_fn_error $? "missing argument to $ac_option"
1243fi
1244
1245if test -n "$ac_unrecognized_opts"; then
1246  case $enable_option_checking in
1247    no) ;;
1248    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250  esac
1251fi
1252
1253# Check all directory arguments for consistency.
1254for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255		datadir sysconfdir sharedstatedir localstatedir includedir \
1256		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257		libdir localedir mandir
1258do
1259  eval ac_val=\$$ac_var
1260  # Remove trailing slashes.
1261  case $ac_val in
1262    */ )
1263      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264      eval $ac_var=\$ac_val;;
1265  esac
1266  # Be sure to have absolute directory names.
1267  case $ac_val in
1268    [\\/$]* | ?:[\\/]* )  continue;;
1269    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270  esac
1271  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272done
1273
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
1280
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283  if test "x$build_alias" = x; then
1284    cross_compiling=maybe
1285    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1286    If a cross compiler is detected then cross compile mode will be used" >&2
1287  elif test "x$build_alias" != "x$host_alias"; then
1288    cross_compiling=yes
1289  fi
1290fi
1291
1292ac_tool_prefix=
1293test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295test "$silent" = yes && exec 6>/dev/null
1296
1297
1298ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299ac_ls_di=`ls -di .` &&
1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301  as_fn_error $? "working directory cannot be determined"
1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303  as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306# Find the source files, if location was not specified.
1307if test -z "$srcdir"; then
1308  ac_srcdir_defaulted=yes
1309  # Try the directory containing this script, then the parent directory.
1310  ac_confdir=`$as_dirname -- "$as_myself" ||
1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312	 X"$as_myself" : 'X\(//\)[^/]' \| \
1313	 X"$as_myself" : 'X\(//\)$' \| \
1314	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315$as_echo X"$as_myself" |
1316    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317	    s//\1/
1318	    q
1319	  }
1320	  /^X\(\/\/\)[^/].*/{
1321	    s//\1/
1322	    q
1323	  }
1324	  /^X\(\/\/\)$/{
1325	    s//\1/
1326	    q
1327	  }
1328	  /^X\(\/\).*/{
1329	    s//\1/
1330	    q
1331	  }
1332	  s/.*/./; q'`
1333  srcdir=$ac_confdir
1334  if test ! -r "$srcdir/$ac_unique_file"; then
1335    srcdir=..
1336  fi
1337else
1338  ac_srcdir_defaulted=no
1339fi
1340if test ! -r "$srcdir/$ac_unique_file"; then
1341  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343fi
1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345ac_abs_confdir=`(
1346	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347	pwd)`
1348# When building in place, set srcdir=.
1349if test "$ac_abs_confdir" = "$ac_pwd"; then
1350  srcdir=.
1351fi
1352# Remove unnecessary trailing slashes from srcdir.
1353# Double slashes in file names in object file debugging info
1354# mess up M-x gdb in Emacs.
1355case $srcdir in
1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357esac
1358for ac_var in $ac_precious_vars; do
1359  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360  eval ac_env_${ac_var}_value=\$${ac_var}
1361  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363done
1364
1365#
1366# Report the --help message.
1367#
1368if test "$ac_init_help" = "long"; then
1369  # Omit some internal or obsolete options to make the list less imposing.
1370  # This message is too long to be a string in the A/UX 3.1 sh.
1371  cat <<_ACEOF
1372\`configure' configures xtrans 1.2.7 to adapt to many kinds of systems.
1373
1374Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377VAR=VALUE.  See below for descriptions of some of the useful variables.
1378
1379Defaults for the options are specified in brackets.
1380
1381Configuration:
1382  -h, --help              display this help and exit
1383      --help=short        display options specific to this package
1384      --help=recursive    display the short help of all the included packages
1385  -V, --version           display version information and exit
1386  -q, --quiet, --silent   do not print \`checking ...' messages
1387      --cache-file=FILE   cache test results in FILE [disabled]
1388  -C, --config-cache      alias for \`--cache-file=config.cache'
1389  -n, --no-create         do not create output files
1390      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1391
1392Installation directories:
1393  --prefix=PREFIX         install architecture-independent files in PREFIX
1394                          [$ac_default_prefix]
1395  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1396                          [PREFIX]
1397
1398By default, \`make install' will install all the files in
1399\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1400an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401for instance \`--prefix=\$HOME'.
1402
1403For better control, use the options below.
1404
1405Fine tuning of the installation directories:
1406  --bindir=DIR            user executables [EPREFIX/bin]
1407  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1408  --libexecdir=DIR        program executables [EPREFIX/libexec]
1409  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1410  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1411  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1412  --libdir=DIR            object code libraries [EPREFIX/lib]
1413  --includedir=DIR        C header files [PREFIX/include]
1414  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1415  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1416  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1417  --infodir=DIR           info documentation [DATAROOTDIR/info]
1418  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1419  --mandir=DIR            man documentation [DATAROOTDIR/man]
1420  --docdir=DIR            documentation root [DATAROOTDIR/doc/xtrans]
1421  --htmldir=DIR           html documentation [DOCDIR]
1422  --dvidir=DIR            dvi documentation [DOCDIR]
1423  --pdfdir=DIR            pdf documentation [DOCDIR]
1424  --psdir=DIR             ps documentation [DOCDIR]
1425_ACEOF
1426
1427  cat <<\_ACEOF
1428
1429Program names:
1430  --program-prefix=PREFIX            prepend PREFIX to installed program names
1431  --program-suffix=SUFFIX            append SUFFIX to installed program names
1432  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1433
1434System types:
1435  --build=BUILD     configure for building on BUILD [guessed]
1436  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1437_ACEOF
1438fi
1439
1440if test -n "$ac_init_help"; then
1441  case $ac_init_help in
1442     short | recursive ) echo "Configuration of xtrans 1.2.7:";;
1443   esac
1444  cat <<\_ACEOF
1445
1446Optional Features:
1447  --disable-option-checking  ignore unrecognized --enable/--with options
1448  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1449  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1450  --enable-maintainer-mode  enable make rules and dependencies not useful
1451			  (and sometimes confusing) to the casual installer
1452  --disable-dependency-tracking  speeds up one-time build
1453  --enable-dependency-tracking   do not reject slow dependency extractors
1454  --disable-selective-werror
1455                          Turn off selective compiler errors. (default:
1456                          enabled)
1457  --enable-strict-compilation
1458                          Enable all warnings from compiler and make them
1459                          errors (default: disabled)
1460  --enable-silent-rules          less verbose build output (undo: `make V=1')
1461  --disable-silent-rules         verbose build output (undo: `make V=0')
1462  --enable-docs           Enable building the documentation (default: yes)
1463
1464Optional Packages:
1465  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1466  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1467  --with-xmlto            Use xmlto to regenerate documentation (default:
1468                          auto)
1469  --with-fop              Use fop to regenerate documentation (default: auto)
1470  --with-xsltproc         Use xsltproc for the transformation of XML documents
1471                          (default: auto)
1472
1473Some influential environment variables:
1474  CC          C compiler command
1475  CFLAGS      C compiler flags
1476  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1477              nonstandard directory <lib dir>
1478  LIBS        libraries to pass to the linker, e.g. -l<library>
1479  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1480              you have headers in a nonstandard directory <include dir>
1481  CPP         C preprocessor
1482  PKG_CONFIG  path to pkg-config utility
1483  XMLTO       Path to xmlto command
1484  FOP         Path to fop command
1485  XSLTPROC    Path to xsltproc command
1486
1487Use these variables to override the choices made by `configure' or to help
1488it to find libraries and programs with nonstandard names/locations.
1489
1490Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1491_ACEOF
1492ac_status=$?
1493fi
1494
1495if test "$ac_init_help" = "recursive"; then
1496  # If there are subdirs, report their specific --help.
1497  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498    test -d "$ac_dir" ||
1499      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500      continue
1501    ac_builddir=.
1502
1503case "$ac_dir" in
1504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505*)
1506  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507  # A ".." for each directory in $ac_dir_suffix.
1508  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509  case $ac_top_builddir_sub in
1510  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512  esac ;;
1513esac
1514ac_abs_top_builddir=$ac_pwd
1515ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516# for backward compatibility:
1517ac_top_builddir=$ac_top_build_prefix
1518
1519case $srcdir in
1520  .)  # We are building in place.
1521    ac_srcdir=.
1522    ac_top_srcdir=$ac_top_builddir_sub
1523    ac_abs_top_srcdir=$ac_pwd ;;
1524  [\\/]* | ?:[\\/]* )  # Absolute name.
1525    ac_srcdir=$srcdir$ac_dir_suffix;
1526    ac_top_srcdir=$srcdir
1527    ac_abs_top_srcdir=$srcdir ;;
1528  *) # Relative name.
1529    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530    ac_top_srcdir=$ac_top_build_prefix$srcdir
1531    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532esac
1533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535    cd "$ac_dir" || { ac_status=$?; continue; }
1536    # Check for guested configure.
1537    if test -f "$ac_srcdir/configure.gnu"; then
1538      echo &&
1539      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540    elif test -f "$ac_srcdir/configure"; then
1541      echo &&
1542      $SHELL "$ac_srcdir/configure" --help=recursive
1543    else
1544      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545    fi || ac_status=$?
1546    cd "$ac_pwd" || { ac_status=$?; break; }
1547  done
1548fi
1549
1550test -n "$ac_init_help" && exit $ac_status
1551if $ac_init_version; then
1552  cat <<\_ACEOF
1553xtrans configure 1.2.7
1554generated by GNU Autoconf 2.68
1555
1556Copyright (C) 2010 Free Software Foundation, Inc.
1557This configure script is free software; the Free Software Foundation
1558gives unlimited permission to copy, distribute and modify it.
1559_ACEOF
1560  exit
1561fi
1562
1563## ------------------------ ##
1564## Autoconf initialization. ##
1565## ------------------------ ##
1566
1567# ac_fn_c_try_compile LINENO
1568# --------------------------
1569# Try to compile conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_compile ()
1571{
1572  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573  rm -f conftest.$ac_objext
1574  if { { ac_try="$ac_compile"
1575case "(($ac_try" in
1576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577  *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581  (eval "$ac_compile") 2>conftest.err
1582  ac_status=$?
1583  if test -s conftest.err; then
1584    grep -v '^ *+' conftest.err >conftest.er1
1585    cat conftest.er1 >&5
1586    mv -f conftest.er1 conftest.err
1587  fi
1588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589  test $ac_status = 0; } && {
1590	 test -z "$ac_c_werror_flag" ||
1591	 test ! -s conftest.err
1592       } && test -s conftest.$ac_objext; then :
1593  ac_retval=0
1594else
1595  $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598	ac_retval=1
1599fi
1600  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601  as_fn_set_status $ac_retval
1602
1603} # ac_fn_c_try_compile
1604
1605# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1606# ---------------------------------------------
1607# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1608# accordingly.
1609ac_fn_c_check_decl ()
1610{
1611  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612  as_decl_name=`echo $2|sed 's/ *(.*//'`
1613  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1615$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1616if eval \${$3+:} false; then :
1617  $as_echo_n "(cached) " >&6
1618else
1619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620/* end confdefs.h.  */
1621$4
1622int
1623main ()
1624{
1625#ifndef $as_decl_name
1626#ifdef __cplusplus
1627  (void) $as_decl_use;
1628#else
1629  (void) $as_decl_name;
1630#endif
1631#endif
1632
1633  ;
1634  return 0;
1635}
1636_ACEOF
1637if ac_fn_c_try_compile "$LINENO"; then :
1638  eval "$3=yes"
1639else
1640  eval "$3=no"
1641fi
1642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643fi
1644eval ac_res=\$$3
1645	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646$as_echo "$ac_res" >&6; }
1647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648
1649} # ac_fn_c_check_decl
1650
1651# ac_fn_c_try_cpp LINENO
1652# ----------------------
1653# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_cpp ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  if { { ac_try="$ac_cpp conftest.$ac_ext"
1658case "(($ac_try" in
1659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660  *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665  ac_status=$?
1666  if test -s conftest.err; then
1667    grep -v '^ *+' conftest.err >conftest.er1
1668    cat conftest.er1 >&5
1669    mv -f conftest.er1 conftest.err
1670  fi
1671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672  test $ac_status = 0; } > conftest.i && {
1673	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674	 test ! -s conftest.err
1675       }; then :
1676  ac_retval=0
1677else
1678  $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681    ac_retval=1
1682fi
1683  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684  as_fn_set_status $ac_retval
1685
1686} # ac_fn_c_try_cpp
1687
1688# ac_fn_c_try_run LINENO
1689# ----------------------
1690# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691# that executables *can* be run.
1692ac_fn_c_try_run ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  if { { ac_try="$ac_link"
1696case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702  (eval "$ac_link") 2>&5
1703  ac_status=$?
1704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706  { { case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_try") 2>&5
1713  ac_status=$?
1714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715  test $ac_status = 0; }; }; then :
1716  ac_retval=0
1717else
1718  $as_echo "$as_me: program exited with status $ac_status" >&5
1719       $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722       ac_retval=$ac_status
1723fi
1724  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726  as_fn_set_status $ac_retval
1727
1728} # ac_fn_c_try_run
1729
1730# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731# -------------------------------------------------------
1732# Tests whether HEADER exists and can be compiled using the include files in
1733# INCLUDES, setting the cache variable VAR accordingly.
1734ac_fn_c_check_header_compile ()
1735{
1736  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738$as_echo_n "checking for $2... " >&6; }
1739if eval \${$3+:} false; then :
1740  $as_echo_n "(cached) " >&6
1741else
1742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h.  */
1744$4
1745#include <$2>
1746_ACEOF
1747if ac_fn_c_try_compile "$LINENO"; then :
1748  eval "$3=yes"
1749else
1750  eval "$3=no"
1751fi
1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753fi
1754eval ac_res=\$$3
1755	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756$as_echo "$ac_res" >&6; }
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758
1759} # ac_fn_c_check_header_compile
1760
1761# ac_fn_c_try_link LINENO
1762# -----------------------
1763# Try to link conftest.$ac_ext, and return whether this succeeded.
1764ac_fn_c_try_link ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  rm -f conftest.$ac_objext conftest$ac_exeext
1768  if { { ac_try="$ac_link"
1769case "(($ac_try" in
1770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771  *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775  (eval "$ac_link") 2>conftest.err
1776  ac_status=$?
1777  if test -s conftest.err; then
1778    grep -v '^ *+' conftest.err >conftest.er1
1779    cat conftest.er1 >&5
1780    mv -f conftest.er1 conftest.err
1781  fi
1782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783  test $ac_status = 0; } && {
1784	 test -z "$ac_c_werror_flag" ||
1785	 test ! -s conftest.err
1786       } && test -s conftest$ac_exeext && {
1787	 test "$cross_compiling" = yes ||
1788	 $as_test_x conftest$ac_exeext
1789       }; then :
1790  ac_retval=0
1791else
1792  $as_echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
1795	ac_retval=1
1796fi
1797  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799  # interfere with the next link command; also delete a directory that is
1800  # left behind by Apple's compiler.  We do this before executing the actions.
1801  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803  as_fn_set_status $ac_retval
1804
1805} # ac_fn_c_try_link
1806
1807# ac_fn_c_check_func LINENO FUNC VAR
1808# ----------------------------------
1809# Tests whether FUNC exists, setting the cache variable VAR accordingly
1810ac_fn_c_check_func ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if eval \${$3+:} false; then :
1816  $as_echo_n "(cached) " >&6
1817else
1818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819/* end confdefs.h.  */
1820/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1822#define $2 innocuous_$2
1823
1824/* System header to define __stub macros and hopefully few prototypes,
1825    which can conflict with char $2 (); below.
1826    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827    <limits.h> exists even on freestanding compilers.  */
1828
1829#ifdef __STDC__
1830# include <limits.h>
1831#else
1832# include <assert.h>
1833#endif
1834
1835#undef $2
1836
1837/* Override any GCC internal prototype to avoid an error.
1838   Use char because int might match the return type of a GCC
1839   builtin and then its argument prototype would still apply.  */
1840#ifdef __cplusplus
1841extern "C"
1842#endif
1843char $2 ();
1844/* The GNU C library defines this for functions which it implements
1845    to always fail with ENOSYS.  Some functions are actually named
1846    something starting with __ and the normal name is an alias.  */
1847#if defined __stub_$2 || defined __stub___$2
1848choke me
1849#endif
1850
1851int
1852main ()
1853{
1854return $2 ();
1855  ;
1856  return 0;
1857}
1858_ACEOF
1859if ac_fn_c_try_link "$LINENO"; then :
1860  eval "$3=yes"
1861else
1862  eval "$3=no"
1863fi
1864rm -f core conftest.err conftest.$ac_objext \
1865    conftest$ac_exeext conftest.$ac_ext
1866fi
1867eval ac_res=\$$3
1868	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872} # ac_fn_c_check_func
1873cat >config.log <<_ACEOF
1874This file contains any messages produced by compilers while
1875running configure, to aid debugging if configure makes a mistake.
1876
1877It was created by xtrans $as_me 1.2.7, which was
1878generated by GNU Autoconf 2.68.  Invocation command line was
1879
1880  $ $0 $@
1881
1882_ACEOF
1883exec 5>>config.log
1884{
1885cat <<_ASUNAME
1886## --------- ##
1887## Platform. ##
1888## --------- ##
1889
1890hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1891uname -m = `(uname -m) 2>/dev/null || echo unknown`
1892uname -r = `(uname -r) 2>/dev/null || echo unknown`
1893uname -s = `(uname -s) 2>/dev/null || echo unknown`
1894uname -v = `(uname -v) 2>/dev/null || echo unknown`
1895
1896/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1897/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1898
1899/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1900/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1901/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1902/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1903/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1904/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1905/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1906
1907_ASUNAME
1908
1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910for as_dir in $PATH
1911do
1912  IFS=$as_save_IFS
1913  test -z "$as_dir" && as_dir=.
1914    $as_echo "PATH: $as_dir"
1915  done
1916IFS=$as_save_IFS
1917
1918} >&5
1919
1920cat >&5 <<_ACEOF
1921
1922
1923## ----------- ##
1924## Core tests. ##
1925## ----------- ##
1926
1927_ACEOF
1928
1929
1930# Keep a trace of the command line.
1931# Strip out --no-create and --no-recursion so they do not pile up.
1932# Strip out --silent because we don't want to record it for future runs.
1933# Also quote any args containing shell meta-characters.
1934# Make two passes to allow for proper duplicate-argument suppression.
1935ac_configure_args=
1936ac_configure_args0=
1937ac_configure_args1=
1938ac_must_keep_next=false
1939for ac_pass in 1 2
1940do
1941  for ac_arg
1942  do
1943    case $ac_arg in
1944    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1945    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1946    | -silent | --silent | --silen | --sile | --sil)
1947      continue ;;
1948    *\'*)
1949      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1950    esac
1951    case $ac_pass in
1952    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1953    2)
1954      as_fn_append ac_configure_args1 " '$ac_arg'"
1955      if test $ac_must_keep_next = true; then
1956	ac_must_keep_next=false # Got value, back to normal.
1957      else
1958	case $ac_arg in
1959	  *=* | --config-cache | -C | -disable-* | --disable-* \
1960	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1961	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1962	  | -with-* | --with-* | -without-* | --without-* | --x)
1963	    case "$ac_configure_args0 " in
1964	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1965	    esac
1966	    ;;
1967	  -* ) ac_must_keep_next=true ;;
1968	esac
1969      fi
1970      as_fn_append ac_configure_args " '$ac_arg'"
1971      ;;
1972    esac
1973  done
1974done
1975{ ac_configure_args0=; unset ac_configure_args0;}
1976{ ac_configure_args1=; unset ac_configure_args1;}
1977
1978# When interrupted or exit'd, cleanup temporary files, and complete
1979# config.log.  We remove comments because anyway the quotes in there
1980# would cause problems or look ugly.
1981# WARNING: Use '\'' to represent an apostrophe within the trap.
1982# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1983trap 'exit_status=$?
1984  # Save into config.log some information that might help in debugging.
1985  {
1986    echo
1987
1988    $as_echo "## ---------------- ##
1989## Cache variables. ##
1990## ---------------- ##"
1991    echo
1992    # The following way of writing the cache mishandles newlines in values,
1993(
1994  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1995    eval ac_val=\$$ac_var
1996    case $ac_val in #(
1997    *${as_nl}*)
1998      case $ac_var in #(
1999      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2000$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2001      esac
2002      case $ac_var in #(
2003      _ | IFS | as_nl) ;; #(
2004      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2005      *) { eval $ac_var=; unset $ac_var;} ;;
2006      esac ;;
2007    esac
2008  done
2009  (set) 2>&1 |
2010    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2011    *${as_nl}ac_space=\ *)
2012      sed -n \
2013	"s/'\''/'\''\\\\'\'''\''/g;
2014	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2015      ;; #(
2016    *)
2017      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2018      ;;
2019    esac |
2020    sort
2021)
2022    echo
2023
2024    $as_echo "## ----------------- ##
2025## Output variables. ##
2026## ----------------- ##"
2027    echo
2028    for ac_var in $ac_subst_vars
2029    do
2030      eval ac_val=\$$ac_var
2031      case $ac_val in
2032      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2033      esac
2034      $as_echo "$ac_var='\''$ac_val'\''"
2035    done | sort
2036    echo
2037
2038    if test -n "$ac_subst_files"; then
2039      $as_echo "## ------------------- ##
2040## File substitutions. ##
2041## ------------------- ##"
2042      echo
2043      for ac_var in $ac_subst_files
2044      do
2045	eval ac_val=\$$ac_var
2046	case $ac_val in
2047	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048	esac
2049	$as_echo "$ac_var='\''$ac_val'\''"
2050      done | sort
2051      echo
2052    fi
2053
2054    if test -s confdefs.h; then
2055      $as_echo "## ----------- ##
2056## confdefs.h. ##
2057## ----------- ##"
2058      echo
2059      cat confdefs.h
2060      echo
2061    fi
2062    test "$ac_signal" != 0 &&
2063      $as_echo "$as_me: caught signal $ac_signal"
2064    $as_echo "$as_me: exit $exit_status"
2065  } >&5
2066  rm -f core *.core core.conftest.* &&
2067    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2068    exit $exit_status
2069' 0
2070for ac_signal in 1 2 13 15; do
2071  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2072done
2073ac_signal=0
2074
2075# confdefs.h avoids OS command line length limits that DEFS can exceed.
2076rm -f -r conftest* confdefs.h
2077
2078$as_echo "/* confdefs.h */" > confdefs.h
2079
2080# Predefined preprocessor variables.
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_NAME "$PACKAGE_NAME"
2084_ACEOF
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2088_ACEOF
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_VERSION "$PACKAGE_VERSION"
2092_ACEOF
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_STRING "$PACKAGE_STRING"
2096_ACEOF
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2100_ACEOF
2101
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_URL "$PACKAGE_URL"
2104_ACEOF
2105
2106
2107# Let the site file select an alternate cache file if it wants to.
2108# Prefer an explicitly selected file to automatically selected ones.
2109ac_site_file1=NONE
2110ac_site_file2=NONE
2111if test -n "$CONFIG_SITE"; then
2112  # We do not want a PATH search for config.site.
2113  case $CONFIG_SITE in #((
2114    -*)  ac_site_file1=./$CONFIG_SITE;;
2115    */*) ac_site_file1=$CONFIG_SITE;;
2116    *)   ac_site_file1=./$CONFIG_SITE;;
2117  esac
2118elif test "x$prefix" != xNONE; then
2119  ac_site_file1=$prefix/share/config.site
2120  ac_site_file2=$prefix/etc/config.site
2121else
2122  ac_site_file1=$ac_default_prefix/share/config.site
2123  ac_site_file2=$ac_default_prefix/etc/config.site
2124fi
2125for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2126do
2127  test "x$ac_site_file" = xNONE && continue
2128  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2129    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2130$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2131    sed 's/^/| /' "$ac_site_file" >&5
2132    . "$ac_site_file" \
2133      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2135as_fn_error $? "failed to load site script $ac_site_file
2136See \`config.log' for more details" "$LINENO" 5; }
2137  fi
2138done
2139
2140if test -r "$cache_file"; then
2141  # Some versions of bash will fail to source /dev/null (special files
2142  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2143  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2144    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2145$as_echo "$as_me: loading cache $cache_file" >&6;}
2146    case $cache_file in
2147      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2148      *)                      . "./$cache_file";;
2149    esac
2150  fi
2151else
2152  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2153$as_echo "$as_me: creating cache $cache_file" >&6;}
2154  >$cache_file
2155fi
2156
2157# Check that the precious variables saved in the cache have kept the same
2158# value.
2159ac_cache_corrupted=false
2160for ac_var in $ac_precious_vars; do
2161  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2162  eval ac_new_set=\$ac_env_${ac_var}_set
2163  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2164  eval ac_new_val=\$ac_env_${ac_var}_value
2165  case $ac_old_set,$ac_new_set in
2166    set,)
2167      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2168$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2169      ac_cache_corrupted=: ;;
2170    ,set)
2171      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2172$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2173      ac_cache_corrupted=: ;;
2174    ,);;
2175    *)
2176      if test "x$ac_old_val" != "x$ac_new_val"; then
2177	# differences in whitespace do not lead to failure.
2178	ac_old_val_w=`echo x $ac_old_val`
2179	ac_new_val_w=`echo x $ac_new_val`
2180	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2181	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2182$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2183	  ac_cache_corrupted=:
2184	else
2185	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2186$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2187	  eval $ac_var=\$ac_old_val
2188	fi
2189	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2190$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2191	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2192$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2193      fi;;
2194  esac
2195  # Pass precious variables to config.status.
2196  if test "$ac_new_set" = set; then
2197    case $ac_new_val in
2198    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2199    *) ac_arg=$ac_var=$ac_new_val ;;
2200    esac
2201    case " $ac_configure_args " in
2202      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2203      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2204    esac
2205  fi
2206done
2207if $ac_cache_corrupted; then
2208  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2211$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2212  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2213fi
2214## -------------------- ##
2215## Main body of script. ##
2216## -------------------- ##
2217
2218ac_ext=c
2219ac_cpp='$CPP $CPPFLAGS'
2220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223
2224
2225
2226
2227# Initialize Automake
2228am__api_version='1.11'
2229
2230ac_aux_dir=
2231for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2232  if test -f "$ac_dir/install-sh"; then
2233    ac_aux_dir=$ac_dir
2234    ac_install_sh="$ac_aux_dir/install-sh -c"
2235    break
2236  elif test -f "$ac_dir/install.sh"; then
2237    ac_aux_dir=$ac_dir
2238    ac_install_sh="$ac_aux_dir/install.sh -c"
2239    break
2240  elif test -f "$ac_dir/shtool"; then
2241    ac_aux_dir=$ac_dir
2242    ac_install_sh="$ac_aux_dir/shtool install -c"
2243    break
2244  fi
2245done
2246if test -z "$ac_aux_dir"; then
2247  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2248fi
2249
2250# These three variables are undocumented and unsupported,
2251# and are intended to be withdrawn in a future Autoconf release.
2252# They can cause serious problems if a builder's source tree is in a directory
2253# whose full name contains unusual characters.
2254ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2255ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2256ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2257
2258
2259# Find a good install program.  We prefer a C program (faster),
2260# so one script is as good as another.  But avoid the broken or
2261# incompatible versions:
2262# SysV /etc/install, /usr/sbin/install
2263# SunOS /usr/etc/install
2264# IRIX /sbin/install
2265# AIX /bin/install
2266# AmigaOS /C/install, which installs bootblocks on floppy discs
2267# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2268# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2269# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2270# OS/2's system install, which has a completely different semantic
2271# ./install, which can be erroneously created by make from ./install.sh.
2272# Reject install programs that cannot install multiple files.
2273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2274$as_echo_n "checking for a BSD-compatible install... " >&6; }
2275if test -z "$INSTALL"; then
2276if ${ac_cv_path_install+:} false; then :
2277  $as_echo_n "(cached) " >&6
2278else
2279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282  IFS=$as_save_IFS
2283  test -z "$as_dir" && as_dir=.
2284    # Account for people who put trailing slashes in PATH elements.
2285case $as_dir/ in #((
2286  ./ | .// | /[cC]/* | \
2287  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2288  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2289  /usr/ucb/* ) ;;
2290  *)
2291    # OSF1 and SCO ODT 3.0 have their own names for install.
2292    # Don't use installbsd from OSF since it installs stuff as root
2293    # by default.
2294    for ac_prog in ginstall scoinst install; do
2295      for ac_exec_ext in '' $ac_executable_extensions; do
2296	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2297	  if test $ac_prog = install &&
2298	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299	    # AIX install.  It has an incompatible calling convention.
2300	    :
2301	  elif test $ac_prog = install &&
2302	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303	    # program-specific install script used by HP pwplus--don't use.
2304	    :
2305	  else
2306	    rm -rf conftest.one conftest.two conftest.dir
2307	    echo one > conftest.one
2308	    echo two > conftest.two
2309	    mkdir conftest.dir
2310	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2311	      test -s conftest.one && test -s conftest.two &&
2312	      test -s conftest.dir/conftest.one &&
2313	      test -s conftest.dir/conftest.two
2314	    then
2315	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2316	      break 3
2317	    fi
2318	  fi
2319	fi
2320      done
2321    done
2322    ;;
2323esac
2324
2325  done
2326IFS=$as_save_IFS
2327
2328rm -rf conftest.one conftest.two conftest.dir
2329
2330fi
2331  if test "${ac_cv_path_install+set}" = set; then
2332    INSTALL=$ac_cv_path_install
2333  else
2334    # As a last resort, use the slow shell script.  Don't cache a
2335    # value for INSTALL within a source directory, because that will
2336    # break other packages using the cache if that directory is
2337    # removed, or if the value is a relative name.
2338    INSTALL=$ac_install_sh
2339  fi
2340fi
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2342$as_echo "$INSTALL" >&6; }
2343
2344# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345# It thinks the first close brace ends the variable substitution.
2346test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2347
2348test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2349
2350test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2351
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2353$as_echo_n "checking whether build environment is sane... " >&6; }
2354# Just in case
2355sleep 1
2356echo timestamp > conftest.file
2357# Reject unsafe characters in $srcdir or the absolute working directory
2358# name.  Accept space and tab only in the latter.
2359am_lf='
2360'
2361case `pwd` in
2362  *[\\\"\#\$\&\'\`$am_lf]*)
2363    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2364esac
2365case $srcdir in
2366  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2367    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2368esac
2369
2370# Do `set' in a subshell so we don't clobber the current shell's
2371# arguments.  Must try -L first in case configure is actually a
2372# symlink; some systems play weird games with the mod time of symlinks
2373# (eg FreeBSD returns the mod time of the symlink's containing
2374# directory).
2375if (
2376   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2377   if test "$*" = "X"; then
2378      # -L didn't work.
2379      set X `ls -t "$srcdir/configure" conftest.file`
2380   fi
2381   rm -f conftest.file
2382   if test "$*" != "X $srcdir/configure conftest.file" \
2383      && test "$*" != "X conftest.file $srcdir/configure"; then
2384
2385      # If neither matched, then we have a broken ls.  This can happen
2386      # if, for instance, CONFIG_SHELL is bash and it inherits a
2387      # broken ls alias from the environment.  This has actually
2388      # happened.  Such a system could not be considered "sane".
2389      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2390alias in your environment" "$LINENO" 5
2391   fi
2392
2393   test "$2" = conftest.file
2394   )
2395then
2396   # Ok.
2397   :
2398else
2399   as_fn_error $? "newly created file is older than distributed files!
2400Check your system clock" "$LINENO" 5
2401fi
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2403$as_echo "yes" >&6; }
2404test "$program_prefix" != NONE &&
2405  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2406# Use a double $ so make ignores it.
2407test "$program_suffix" != NONE &&
2408  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2409# Double any \ or $.
2410# By default was `s,x,x', remove it if useless.
2411ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2412program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2413
2414# expand $ac_aux_dir to an absolute path
2415am_aux_dir=`cd $ac_aux_dir && pwd`
2416
2417if test x"${MISSING+set}" != xset; then
2418  case $am_aux_dir in
2419  *\ * | *\	*)
2420    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2421  *)
2422    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2423  esac
2424fi
2425# Use eval to expand $SHELL
2426if eval "$MISSING --run true"; then
2427  am_missing_run="$MISSING --run "
2428else
2429  am_missing_run=
2430  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2431$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2432fi
2433
2434if test x"${install_sh}" != xset; then
2435  case $am_aux_dir in
2436  *\ * | *\	*)
2437    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2438  *)
2439    install_sh="\${SHELL} $am_aux_dir/install-sh"
2440  esac
2441fi
2442
2443# Installed binaries are usually stripped using `strip' when the user
2444# run `make install-strip'.  However `strip' might not be the right
2445# tool to use in cross-compilation environments, therefore Automake
2446# will honor the `STRIP' environment variable to overrule this program.
2447if test "$cross_compiling" != no; then
2448  if test -n "$ac_tool_prefix"; then
2449  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2450set dummy ${ac_tool_prefix}strip; ac_word=$2
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452$as_echo_n "checking for $ac_word... " >&6; }
2453if ${ac_cv_prog_STRIP+:} false; then :
2454  $as_echo_n "(cached) " >&6
2455else
2456  if test -n "$STRIP"; then
2457  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462  IFS=$as_save_IFS
2463  test -z "$as_dir" && as_dir=.
2464    for ac_exec_ext in '' $ac_executable_extensions; do
2465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468    break 2
2469  fi
2470done
2471  done
2472IFS=$as_save_IFS
2473
2474fi
2475fi
2476STRIP=$ac_cv_prog_STRIP
2477if test -n "$STRIP"; then
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2479$as_echo "$STRIP" >&6; }
2480else
2481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482$as_echo "no" >&6; }
2483fi
2484
2485
2486fi
2487if test -z "$ac_cv_prog_STRIP"; then
2488  ac_ct_STRIP=$STRIP
2489  # Extract the first word of "strip", so it can be a program name with args.
2490set dummy strip; ac_word=$2
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2492$as_echo_n "checking for $ac_word... " >&6; }
2493if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2494  $as_echo_n "(cached) " >&6
2495else
2496  if test -n "$ac_ct_STRIP"; then
2497  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2498else
2499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500for as_dir in $PATH
2501do
2502  IFS=$as_save_IFS
2503  test -z "$as_dir" && as_dir=.
2504    for ac_exec_ext in '' $ac_executable_extensions; do
2505  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506    ac_cv_prog_ac_ct_STRIP="strip"
2507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2508    break 2
2509  fi
2510done
2511  done
2512IFS=$as_save_IFS
2513
2514fi
2515fi
2516ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2517if test -n "$ac_ct_STRIP"; then
2518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2519$as_echo "$ac_ct_STRIP" >&6; }
2520else
2521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2522$as_echo "no" >&6; }
2523fi
2524
2525  if test "x$ac_ct_STRIP" = x; then
2526    STRIP=":"
2527  else
2528    case $cross_compiling:$ac_tool_warned in
2529yes:)
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2532ac_tool_warned=yes ;;
2533esac
2534    STRIP=$ac_ct_STRIP
2535  fi
2536else
2537  STRIP="$ac_cv_prog_STRIP"
2538fi
2539
2540fi
2541INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2542
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2544$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2545if test -z "$MKDIR_P"; then
2546  if ${ac_cv_path_mkdir+:} false; then :
2547  $as_echo_n "(cached) " >&6
2548else
2549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2551do
2552  IFS=$as_save_IFS
2553  test -z "$as_dir" && as_dir=.
2554    for ac_prog in mkdir gmkdir; do
2555	 for ac_exec_ext in '' $ac_executable_extensions; do
2556	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2557	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2558	     'mkdir (GNU coreutils) '* | \
2559	     'mkdir (coreutils) '* | \
2560	     'mkdir (fileutils) '4.1*)
2561	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2562	       break 3;;
2563	   esac
2564	 done
2565       done
2566  done
2567IFS=$as_save_IFS
2568
2569fi
2570
2571  test -d ./--version && rmdir ./--version
2572  if test "${ac_cv_path_mkdir+set}" = set; then
2573    MKDIR_P="$ac_cv_path_mkdir -p"
2574  else
2575    # As a last resort, use the slow shell script.  Don't cache a
2576    # value for MKDIR_P within a source directory, because that will
2577    # break other packages using the cache if that directory is
2578    # removed, or if the value is a relative name.
2579    MKDIR_P="$ac_install_sh -d"
2580  fi
2581fi
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2583$as_echo "$MKDIR_P" >&6; }
2584
2585mkdir_p="$MKDIR_P"
2586case $mkdir_p in
2587  [\\/$]* | ?:[\\/]*) ;;
2588  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2589esac
2590
2591for ac_prog in gawk mawk nawk awk
2592do
2593  # Extract the first word of "$ac_prog", so it can be a program name with args.
2594set dummy $ac_prog; ac_word=$2
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2596$as_echo_n "checking for $ac_word... " >&6; }
2597if ${ac_cv_prog_AWK+:} false; then :
2598  $as_echo_n "(cached) " >&6
2599else
2600  if test -n "$AWK"; then
2601  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606  IFS=$as_save_IFS
2607  test -z "$as_dir" && as_dir=.
2608    for ac_exec_ext in '' $ac_executable_extensions; do
2609  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610    ac_cv_prog_AWK="$ac_prog"
2611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2612    break 2
2613  fi
2614done
2615  done
2616IFS=$as_save_IFS
2617
2618fi
2619fi
2620AWK=$ac_cv_prog_AWK
2621if test -n "$AWK"; then
2622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2623$as_echo "$AWK" >&6; }
2624else
2625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626$as_echo "no" >&6; }
2627fi
2628
2629
2630  test -n "$AWK" && break
2631done
2632
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2634$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2635set x ${MAKE-make}
2636ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2637if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2638  $as_echo_n "(cached) " >&6
2639else
2640  cat >conftest.make <<\_ACEOF
2641SHELL = /bin/sh
2642all:
2643	@echo '@@@%%%=$(MAKE)=@@@%%%'
2644_ACEOF
2645# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2646case `${MAKE-make} -f conftest.make 2>/dev/null` in
2647  *@@@%%%=?*=@@@%%%*)
2648    eval ac_cv_prog_make_${ac_make}_set=yes;;
2649  *)
2650    eval ac_cv_prog_make_${ac_make}_set=no;;
2651esac
2652rm -f conftest.make
2653fi
2654if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2656$as_echo "yes" >&6; }
2657  SET_MAKE=
2658else
2659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660$as_echo "no" >&6; }
2661  SET_MAKE="MAKE=${MAKE-make}"
2662fi
2663
2664rm -rf .tst 2>/dev/null
2665mkdir .tst 2>/dev/null
2666if test -d .tst; then
2667  am__leading_dot=.
2668else
2669  am__leading_dot=_
2670fi
2671rmdir .tst 2>/dev/null
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='xtrans'
2695 VERSION='1.2.7'
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# We need awk for the "check" target.  The system "awk" is bad on
2724# some platforms.
2725# Always define AMTAR for backward compatibility.
2726
2727AMTAR=${AMTAR-"${am_missing_run}tar"}
2728
2729am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2730
2731
2732
2733
2734
2735
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2737$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2738    # Check whether --enable-maintainer-mode was given.
2739if test "${enable_maintainer_mode+set}" = set; then :
2740  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2741else
2742  USE_MAINTAINER_MODE=no
2743fi
2744
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2746$as_echo "$USE_MAINTAINER_MODE" >&6; }
2747   if test $USE_MAINTAINER_MODE = yes; then
2748  MAINTAINER_MODE_TRUE=
2749  MAINTAINER_MODE_FALSE='#'
2750else
2751  MAINTAINER_MODE_TRUE='#'
2752  MAINTAINER_MODE_FALSE=
2753fi
2754
2755  MAINT=$MAINTAINER_MODE_TRUE
2756
2757
2758
2759# Require xorg-macros minimum of 1.12 for DocBook external references
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771DEPDIR="${am__leading_dot}deps"
2772
2773ac_config_commands="$ac_config_commands depfiles"
2774
2775
2776am_make=${MAKE-make}
2777cat > confinc << 'END'
2778am__doit:
2779	@echo this is the am__doit target
2780.PHONY: am__doit
2781END
2782# If we don't find an include directive, just comment out the code.
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2784$as_echo_n "checking for style of include used by $am_make... " >&6; }
2785am__include="#"
2786am__quote=
2787_am_result=none
2788# First try GNU make style include.
2789echo "include confinc" > confmf
2790# Ignore all kinds of additional output from `make'.
2791case `$am_make -s -f confmf 2> /dev/null` in #(
2792*the\ am__doit\ target*)
2793  am__include=include
2794  am__quote=
2795  _am_result=GNU
2796  ;;
2797esac
2798# Now try BSD make style include.
2799if test "$am__include" = "#"; then
2800   echo '.include "confinc"' > confmf
2801   case `$am_make -s -f confmf 2> /dev/null` in #(
2802   *the\ am__doit\ target*)
2803     am__include=.include
2804     am__quote="\""
2805     _am_result=BSD
2806     ;;
2807   esac
2808fi
2809
2810
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2812$as_echo "$_am_result" >&6; }
2813rm -f confinc confmf
2814
2815# Check whether --enable-dependency-tracking was given.
2816if test "${enable_dependency_tracking+set}" = set; then :
2817  enableval=$enable_dependency_tracking;
2818fi
2819
2820if test "x$enable_dependency_tracking" != xno; then
2821  am_depcomp="$ac_aux_dir/depcomp"
2822  AMDEPBACKSLASH='\'
2823fi
2824 if test "x$enable_dependency_tracking" != xno; then
2825  AMDEP_TRUE=
2826  AMDEP_FALSE='#'
2827else
2828  AMDEP_TRUE='#'
2829  AMDEP_FALSE=
2830fi
2831
2832
2833ac_ext=c
2834ac_cpp='$CPP $CPPFLAGS'
2835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838if test -n "$ac_tool_prefix"; then
2839  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2840set dummy ${ac_tool_prefix}gcc; ac_word=$2
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842$as_echo_n "checking for $ac_word... " >&6; }
2843if ${ac_cv_prog_CC+:} false; then :
2844  $as_echo_n "(cached) " >&6
2845else
2846  if test -n "$CC"; then
2847  ac_cv_prog_CC="$CC" # Let the user override the test.
2848else
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852  IFS=$as_save_IFS
2853  test -z "$as_dir" && as_dir=.
2854    for ac_exec_ext in '' $ac_executable_extensions; do
2855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858    break 2
2859  fi
2860done
2861  done
2862IFS=$as_save_IFS
2863
2864fi
2865fi
2866CC=$ac_cv_prog_CC
2867if test -n "$CC"; then
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869$as_echo "$CC" >&6; }
2870else
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872$as_echo "no" >&6; }
2873fi
2874
2875
2876fi
2877if test -z "$ac_cv_prog_CC"; then
2878  ac_ct_CC=$CC
2879  # Extract the first word of "gcc", so it can be a program name with args.
2880set dummy gcc; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if ${ac_cv_prog_ac_ct_CC+:} false; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  if test -n "$ac_ct_CC"; then
2887  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  test -z "$as_dir" && as_dir=.
2894    for ac_exec_ext in '' $ac_executable_extensions; do
2895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896    ac_cv_prog_ac_ct_CC="gcc"
2897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898    break 2
2899  fi
2900done
2901  done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907if test -n "$ac_ct_CC"; then
2908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909$as_echo "$ac_ct_CC" >&6; }
2910else
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913fi
2914
2915  if test "x$ac_ct_CC" = x; then
2916    CC=""
2917  else
2918    case $cross_compiling:$ac_tool_warned in
2919yes:)
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922ac_tool_warned=yes ;;
2923esac
2924    CC=$ac_ct_CC
2925  fi
2926else
2927  CC="$ac_cv_prog_CC"
2928fi
2929
2930if test -z "$CC"; then
2931          if test -n "$ac_tool_prefix"; then
2932    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933set dummy ${ac_tool_prefix}cc; ac_word=$2
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935$as_echo_n "checking for $ac_word... " >&6; }
2936if ${ac_cv_prog_CC+:} false; then :
2937  $as_echo_n "(cached) " >&6
2938else
2939  if test -n "$CC"; then
2940  ac_cv_prog_CC="$CC" # Let the user override the test.
2941else
2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943for as_dir in $PATH
2944do
2945  IFS=$as_save_IFS
2946  test -z "$as_dir" && as_dir=.
2947    for ac_exec_ext in '' $ac_executable_extensions; do
2948  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949    ac_cv_prog_CC="${ac_tool_prefix}cc"
2950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951    break 2
2952  fi
2953done
2954  done
2955IFS=$as_save_IFS
2956
2957fi
2958fi
2959CC=$ac_cv_prog_CC
2960if test -n "$CC"; then
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962$as_echo "$CC" >&6; }
2963else
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965$as_echo "no" >&6; }
2966fi
2967
2968
2969  fi
2970fi
2971if test -z "$CC"; then
2972  # Extract the first word of "cc", so it can be a program name with args.
2973set dummy cc; ac_word=$2
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975$as_echo_n "checking for $ac_word... " >&6; }
2976if ${ac_cv_prog_CC+:} false; then :
2977  $as_echo_n "(cached) " >&6
2978else
2979  if test -n "$CC"; then
2980  ac_cv_prog_CC="$CC" # Let the user override the test.
2981else
2982  ac_prog_rejected=no
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986  IFS=$as_save_IFS
2987  test -z "$as_dir" && as_dir=.
2988    for ac_exec_ext in '' $ac_executable_extensions; do
2989  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991       ac_prog_rejected=yes
2992       continue
2993     fi
2994    ac_cv_prog_CC="cc"
2995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996    break 2
2997  fi
2998done
2999  done
3000IFS=$as_save_IFS
3001
3002if test $ac_prog_rejected = yes; then
3003  # We found a bogon in the path, so make sure we never use it.
3004  set dummy $ac_cv_prog_CC
3005  shift
3006  if test $# != 0; then
3007    # We chose a different compiler from the bogus one.
3008    # However, it has the same basename, so the bogon will be chosen
3009    # first if we set CC to just the basename; use the full file name.
3010    shift
3011    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3012  fi
3013fi
3014fi
3015fi
3016CC=$ac_cv_prog_CC
3017if test -n "$CC"; then
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019$as_echo "$CC" >&6; }
3020else
3021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022$as_echo "no" >&6; }
3023fi
3024
3025
3026fi
3027if test -z "$CC"; then
3028  if test -n "$ac_tool_prefix"; then
3029  for ac_prog in cl.exe
3030  do
3031    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034$as_echo_n "checking for $ac_word... " >&6; }
3035if ${ac_cv_prog_CC+:} false; then :
3036  $as_echo_n "(cached) " >&6
3037else
3038  if test -n "$CC"; then
3039  ac_cv_prog_CC="$CC" # Let the user override the test.
3040else
3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH
3043do
3044  IFS=$as_save_IFS
3045  test -z "$as_dir" && as_dir=.
3046    for ac_exec_ext in '' $ac_executable_extensions; do
3047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050    break 2
3051  fi
3052done
3053  done
3054IFS=$as_save_IFS
3055
3056fi
3057fi
3058CC=$ac_cv_prog_CC
3059if test -n "$CC"; then
3060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061$as_echo "$CC" >&6; }
3062else
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064$as_echo "no" >&6; }
3065fi
3066
3067
3068    test -n "$CC" && break
3069  done
3070fi
3071if test -z "$CC"; then
3072  ac_ct_CC=$CC
3073  for ac_prog in cl.exe
3074do
3075  # Extract the first word of "$ac_prog", so it can be a program name with args.
3076set dummy $ac_prog; ac_word=$2
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078$as_echo_n "checking for $ac_word... " >&6; }
3079if ${ac_cv_prog_ac_ct_CC+:} false; then :
3080  $as_echo_n "(cached) " >&6
3081else
3082  if test -n "$ac_ct_CC"; then
3083  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084else
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088  IFS=$as_save_IFS
3089  test -z "$as_dir" && as_dir=.
3090    for ac_exec_ext in '' $ac_executable_extensions; do
3091  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092    ac_cv_prog_ac_ct_CC="$ac_prog"
3093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094    break 2
3095  fi
3096done
3097  done
3098IFS=$as_save_IFS
3099
3100fi
3101fi
3102ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103if test -n "$ac_ct_CC"; then
3104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105$as_echo "$ac_ct_CC" >&6; }
3106else
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109fi
3110
3111
3112  test -n "$ac_ct_CC" && break
3113done
3114
3115  if test "x$ac_ct_CC" = x; then
3116    CC=""
3117  else
3118    case $cross_compiling:$ac_tool_warned in
3119yes:)
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122ac_tool_warned=yes ;;
3123esac
3124    CC=$ac_ct_CC
3125  fi
3126fi
3127
3128fi
3129
3130
3131test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133as_fn_error $? "no acceptable C compiler found in \$PATH
3134See \`config.log' for more details" "$LINENO" 5; }
3135
3136# Provide some information about the compiler.
3137$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3138set X $ac_compile
3139ac_compiler=$2
3140for ac_option in --version -v -V -qversion; do
3141  { { ac_try="$ac_compiler $ac_option >&5"
3142case "(($ac_try" in
3143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144  *) ac_try_echo=$ac_try;;
3145esac
3146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147$as_echo "$ac_try_echo"; } >&5
3148  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3149  ac_status=$?
3150  if test -s conftest.err; then
3151    sed '10a\
3152... rest of stderr output deleted ...
3153         10q' conftest.err >conftest.er1
3154    cat conftest.er1 >&5
3155  fi
3156  rm -f conftest.er1 conftest.err
3157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158  test $ac_status = 0; }
3159done
3160
3161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162/* end confdefs.h.  */
3163
3164int
3165main ()
3166{
3167
3168  ;
3169  return 0;
3170}
3171_ACEOF
3172ac_clean_files_save=$ac_clean_files
3173ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3174# Try to create an executable without -o first, disregard a.out.
3175# It will help us diagnose broken compilers, and finding out an intuition
3176# of exeext.
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3178$as_echo_n "checking whether the C compiler works... " >&6; }
3179ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3180
3181# The possible output files:
3182ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3183
3184ac_rmfiles=
3185for ac_file in $ac_files
3186do
3187  case $ac_file in
3188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3189    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3190  esac
3191done
3192rm -f $ac_rmfiles
3193
3194if { { ac_try="$ac_link_default"
3195case "(($ac_try" in
3196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197  *) ac_try_echo=$ac_try;;
3198esac
3199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200$as_echo "$ac_try_echo"; } >&5
3201  (eval "$ac_link_default") 2>&5
3202  ac_status=$?
3203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204  test $ac_status = 0; }; then :
3205  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3206# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3207# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3208# so that the user can short-circuit this test for compilers unknown to
3209# Autoconf.
3210for ac_file in $ac_files ''
3211do
3212  test -f "$ac_file" || continue
3213  case $ac_file in
3214    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3215	;;
3216    [ab].out )
3217	# We found the default executable, but exeext='' is most
3218	# certainly right.
3219	break;;
3220    *.* )
3221	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3222	then :; else
3223	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224	fi
3225	# We set ac_cv_exeext here because the later test for it is not
3226	# safe: cross compilers may not add the suffix if given an `-o'
3227	# argument, so we may need to know it at that point already.
3228	# Even if this section looks crufty: it has the advantage of
3229	# actually working.
3230	break;;
3231    * )
3232	break;;
3233  esac
3234done
3235test "$ac_cv_exeext" = no && ac_cv_exeext=
3236
3237else
3238  ac_file=''
3239fi
3240if test -z "$ac_file"; then :
3241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242$as_echo "no" >&6; }
3243$as_echo "$as_me: failed program was:" >&5
3244sed 's/^/| /' conftest.$ac_ext >&5
3245
3246{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248as_fn_error 77 "C compiler cannot create executables
3249See \`config.log' for more details" "$LINENO" 5; }
3250else
3251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252$as_echo "yes" >&6; }
3253fi
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3255$as_echo_n "checking for C compiler default output file name... " >&6; }
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3257$as_echo "$ac_file" >&6; }
3258ac_exeext=$ac_cv_exeext
3259
3260rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3261ac_clean_files=$ac_clean_files_save
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3263$as_echo_n "checking for suffix of executables... " >&6; }
3264if { { ac_try="$ac_link"
3265case "(($ac_try" in
3266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267  *) ac_try_echo=$ac_try;;
3268esac
3269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270$as_echo "$ac_try_echo"; } >&5
3271  (eval "$ac_link") 2>&5
3272  ac_status=$?
3273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274  test $ac_status = 0; }; then :
3275  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3276# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3277# work properly (i.e., refer to `conftest.exe'), while it won't with
3278# `rm'.
3279for ac_file in conftest.exe conftest conftest.*; do
3280  test -f "$ac_file" || continue
3281  case $ac_file in
3282    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3283    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284	  break;;
3285    * ) break;;
3286  esac
3287done
3288else
3289  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3292See \`config.log' for more details" "$LINENO" 5; }
3293fi
3294rm -f conftest conftest$ac_cv_exeext
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3296$as_echo "$ac_cv_exeext" >&6; }
3297
3298rm -f conftest.$ac_ext
3299EXEEXT=$ac_cv_exeext
3300ac_exeext=$EXEEXT
3301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302/* end confdefs.h.  */
3303#include <stdio.h>
3304int
3305main ()
3306{
3307FILE *f = fopen ("conftest.out", "w");
3308 return ferror (f) || fclose (f) != 0;
3309
3310  ;
3311  return 0;
3312}
3313_ACEOF
3314ac_clean_files="$ac_clean_files conftest.out"
3315# Check that the compiler produces executables we can run.  If not, either
3316# the compiler is broken, or we cross compile.
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3318$as_echo_n "checking whether we are cross compiling... " >&6; }
3319if test "$cross_compiling" != yes; then
3320  { { ac_try="$ac_link"
3321case "(($ac_try" in
3322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323  *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326$as_echo "$ac_try_echo"; } >&5
3327  (eval "$ac_link") 2>&5
3328  ac_status=$?
3329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330  test $ac_status = 0; }
3331  if { ac_try='./conftest$ac_cv_exeext'
3332  { { case "(($ac_try" in
3333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334  *) ac_try_echo=$ac_try;;
3335esac
3336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337$as_echo "$ac_try_echo"; } >&5
3338  (eval "$ac_try") 2>&5
3339  ac_status=$?
3340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341  test $ac_status = 0; }; }; then
3342    cross_compiling=no
3343  else
3344    if test "$cross_compiling" = maybe; then
3345	cross_compiling=yes
3346    else
3347	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349as_fn_error $? "cannot run C compiled programs.
3350If you meant to cross compile, use \`--host'.
3351See \`config.log' for more details" "$LINENO" 5; }
3352    fi
3353  fi
3354fi
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3356$as_echo "$cross_compiling" >&6; }
3357
3358rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3359ac_clean_files=$ac_clean_files_save
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3361$as_echo_n "checking for suffix of object files... " >&6; }
3362if ${ac_cv_objext+:} false; then :
3363  $as_echo_n "(cached) " >&6
3364else
3365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h.  */
3367
3368int
3369main ()
3370{
3371
3372  ;
3373  return 0;
3374}
3375_ACEOF
3376rm -f conftest.o conftest.obj
3377if { { ac_try="$ac_compile"
3378case "(($ac_try" in
3379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380  *) ac_try_echo=$ac_try;;
3381esac
3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383$as_echo "$ac_try_echo"; } >&5
3384  (eval "$ac_compile") 2>&5
3385  ac_status=$?
3386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387  test $ac_status = 0; }; then :
3388  for ac_file in conftest.o conftest.obj conftest.*; do
3389  test -f "$ac_file" || continue;
3390  case $ac_file in
3391    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3392    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3393       break;;
3394  esac
3395done
3396else
3397  $as_echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402as_fn_error $? "cannot compute suffix of object files: cannot compile
3403See \`config.log' for more details" "$LINENO" 5; }
3404fi
3405rm -f conftest.$ac_cv_objext conftest.$ac_ext
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3408$as_echo "$ac_cv_objext" >&6; }
3409OBJEXT=$ac_cv_objext
3410ac_objext=$OBJEXT
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3412$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3413if ${ac_cv_c_compiler_gnu+:} false; then :
3414  $as_echo_n "(cached) " >&6
3415else
3416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417/* end confdefs.h.  */
3418
3419int
3420main ()
3421{
3422#ifndef __GNUC__
3423       choke me
3424#endif
3425
3426  ;
3427  return 0;
3428}
3429_ACEOF
3430if ac_fn_c_try_compile "$LINENO"; then :
3431  ac_compiler_gnu=yes
3432else
3433  ac_compiler_gnu=no
3434fi
3435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436ac_cv_c_compiler_gnu=$ac_compiler_gnu
3437
3438fi
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3440$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3441if test $ac_compiler_gnu = yes; then
3442  GCC=yes
3443else
3444  GCC=
3445fi
3446ac_test_CFLAGS=${CFLAGS+set}
3447ac_save_CFLAGS=$CFLAGS
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449$as_echo_n "checking whether $CC accepts -g... " >&6; }
3450if ${ac_cv_prog_cc_g+:} false; then :
3451  $as_echo_n "(cached) " >&6
3452else
3453  ac_save_c_werror_flag=$ac_c_werror_flag
3454   ac_c_werror_flag=yes
3455   ac_cv_prog_cc_g=no
3456   CFLAGS="-g"
3457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458/* end confdefs.h.  */
3459
3460int
3461main ()
3462{
3463
3464  ;
3465  return 0;
3466}
3467_ACEOF
3468if ac_fn_c_try_compile "$LINENO"; then :
3469  ac_cv_prog_cc_g=yes
3470else
3471  CFLAGS=""
3472      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h.  */
3474
3475int
3476main ()
3477{
3478
3479  ;
3480  return 0;
3481}
3482_ACEOF
3483if ac_fn_c_try_compile "$LINENO"; then :
3484
3485else
3486  ac_c_werror_flag=$ac_save_c_werror_flag
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
3501fi
3502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503fi
3504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505fi
3506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507   ac_c_werror_flag=$ac_save_c_werror_flag
3508fi
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3510$as_echo "$ac_cv_prog_cc_g" >&6; }
3511if test "$ac_test_CFLAGS" = set; then
3512  CFLAGS=$ac_save_CFLAGS
3513elif test $ac_cv_prog_cc_g = yes; then
3514  if test "$GCC" = yes; then
3515    CFLAGS="-g -O2"
3516  else
3517    CFLAGS="-g"
3518  fi
3519else
3520  if test "$GCC" = yes; then
3521    CFLAGS="-O2"
3522  else
3523    CFLAGS=
3524  fi
3525fi
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3527$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3528if ${ac_cv_prog_cc_c89+:} false; then :
3529  $as_echo_n "(cached) " >&6
3530else
3531  ac_cv_prog_cc_c89=no
3532ac_save_CC=$CC
3533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h.  */
3535#include <stdarg.h>
3536#include <stdio.h>
3537#include <sys/types.h>
3538#include <sys/stat.h>
3539/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3540struct buf { int x; };
3541FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542static char *e (p, i)
3543     char **p;
3544     int i;
3545{
3546  return p[i];
3547}
3548static char *f (char * (*g) (char **, int), char **p, ...)
3549{
3550  char *s;
3551  va_list v;
3552  va_start (v,p);
3553  s = g (p, va_arg (v,int));
3554  va_end (v);
3555  return s;
3556}
3557
3558/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3559   function prototypes and stuff, but not '\xHH' hex character constants.
3560   These don't provoke an error unfortunately, instead are silently treated
3561   as 'x'.  The following induces an error, until -std is added to get
3562   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3563   array size at least.  It's necessary to write '\x00'==0 to get something
3564   that's true only with -std.  */
3565int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566
3567/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3568   inside strings and character constants.  */
3569#define FOO(x) 'x'
3570int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3571
3572int test (int i, double x);
3573struct s1 {int (*f) (int a);};
3574struct s2 {int (*f) (double a);};
3575int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576int argc;
3577char **argv;
3578int
3579main ()
3580{
3581return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3582  ;
3583  return 0;
3584}
3585_ACEOF
3586for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3587	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3588do
3589  CC="$ac_save_CC $ac_arg"
3590  if ac_fn_c_try_compile "$LINENO"; then :
3591  ac_cv_prog_cc_c89=$ac_arg
3592fi
3593rm -f core conftest.err conftest.$ac_objext
3594  test "x$ac_cv_prog_cc_c89" != "xno" && break
3595done
3596rm -f conftest.$ac_ext
3597CC=$ac_save_CC
3598
3599fi
3600# AC_CACHE_VAL
3601case "x$ac_cv_prog_cc_c89" in
3602  x)
3603    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3604$as_echo "none needed" >&6; } ;;
3605  xno)
3606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3607$as_echo "unsupported" >&6; } ;;
3608  *)
3609    CC="$CC $ac_cv_prog_cc_c89"
3610    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3611$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3612esac
3613if test "x$ac_cv_prog_cc_c89" != xno; then :
3614
3615fi
3616
3617ac_ext=c
3618ac_cpp='$CPP $CPPFLAGS'
3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623depcc="$CC"   am_compiler_list=
3624
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3626$as_echo_n "checking dependency style of $depcc... " >&6; }
3627if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3628  $as_echo_n "(cached) " >&6
3629else
3630  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3631  # We make a subdir and do the tests there.  Otherwise we can end up
3632  # making bogus files that we don't know about and never remove.  For
3633  # instance it was reported that on HP-UX the gcc test will end up
3634  # making a dummy file named `D' -- because `-MD' means `put the output
3635  # in D'.
3636  mkdir conftest.dir
3637  # Copy depcomp to subdir because otherwise we won't find it if we're
3638  # using a relative directory.
3639  cp "$am_depcomp" conftest.dir
3640  cd conftest.dir
3641  # We will build objects and dependencies in a subdirectory because
3642  # it helps to detect inapplicable dependency modes.  For instance
3643  # both Tru64's cc and ICC support -MD to output dependencies as a
3644  # side effect of compilation, but ICC will put the dependencies in
3645  # the current directory while Tru64 will put them in the object
3646  # directory.
3647  mkdir sub
3648
3649  am_cv_CC_dependencies_compiler_type=none
3650  if test "$am_compiler_list" = ""; then
3651     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3652  fi
3653  am__universal=false
3654  case " $depcc " in #(
3655     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3656     esac
3657
3658  for depmode in $am_compiler_list; do
3659    # Setup a source with many dependencies, because some compilers
3660    # like to wrap large dependency lists on column 80 (with \), and
3661    # we should not choose a depcomp mode which is confused by this.
3662    #
3663    # We need to recreate these files for each test, as the compiler may
3664    # overwrite some of them when testing with obscure command lines.
3665    # This happens at least with the AIX C compiler.
3666    : > sub/conftest.c
3667    for i in 1 2 3 4 5 6; do
3668      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3669      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3670      # Solaris 8's {/usr,}/bin/sh.
3671      touch sub/conftst$i.h
3672    done
3673    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3674
3675    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3676    # mode.  It turns out that the SunPro C++ compiler does not properly
3677    # handle `-M -o', and we need to detect this.  Also, some Intel
3678    # versions had trouble with output in subdirs
3679    am__obj=sub/conftest.${OBJEXT-o}
3680    am__minus_obj="-o $am__obj"
3681    case $depmode in
3682    gcc)
3683      # This depmode causes a compiler race in universal mode.
3684      test "$am__universal" = false || continue
3685      ;;
3686    nosideeffect)
3687      # after this tag, mechanisms are not by side-effect, so they'll
3688      # only be used when explicitly requested
3689      if test "x$enable_dependency_tracking" = xyes; then
3690	continue
3691      else
3692	break
3693      fi
3694      ;;
3695    msvisualcpp | msvcmsys)
3696      # This compiler won't grok `-c -o', but also, the minuso test has
3697      # not run yet.  These depmodes are late enough in the game, and
3698      # so weak that their functioning should not be impacted.
3699      am__obj=conftest.${OBJEXT-o}
3700      am__minus_obj=
3701      ;;
3702    none) break ;;
3703    esac
3704    if depmode=$depmode \
3705       source=sub/conftest.c object=$am__obj \
3706       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3707       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3708         >/dev/null 2>conftest.err &&
3709       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3710       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3711       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3712       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3713      # icc doesn't choke on unknown options, it will just issue warnings
3714      # or remarks (even with -Werror).  So we grep stderr for any message
3715      # that says an option was ignored or not supported.
3716      # When given -MP, icc 7.0 and 7.1 complain thusly:
3717      #   icc: Command line warning: ignoring option '-M'; no argument required
3718      # The diagnosis changed in icc 8.0:
3719      #   icc: Command line remark: option '-MP' not supported
3720      if (grep 'ignoring option' conftest.err ||
3721          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3722        am_cv_CC_dependencies_compiler_type=$depmode
3723        break
3724      fi
3725    fi
3726  done
3727
3728  cd ..
3729  rm -rf conftest.dir
3730else
3731  am_cv_CC_dependencies_compiler_type=none
3732fi
3733
3734fi
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3736$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3737CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3738
3739 if
3740  test "x$enable_dependency_tracking" != xno \
3741  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3742  am__fastdepCC_TRUE=
3743  am__fastdepCC_FALSE='#'
3744else
3745  am__fastdepCC_TRUE='#'
3746  am__fastdepCC_FALSE=
3747fi
3748
3749
3750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3751$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3752if ${ac_cv_prog_cc_c99+:} false; then :
3753  $as_echo_n "(cached) " >&6
3754else
3755  ac_cv_prog_cc_c99=no
3756ac_save_CC=$CC
3757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758/* end confdefs.h.  */
3759#include <stdarg.h>
3760#include <stdbool.h>
3761#include <stdlib.h>
3762#include <wchar.h>
3763#include <stdio.h>
3764
3765// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3766#define debug(...) fprintf (stderr, __VA_ARGS__)
3767#define showlist(...) puts (#__VA_ARGS__)
3768#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3769static void
3770test_varargs_macros (void)
3771{
3772  int x = 1234;
3773  int y = 5678;
3774  debug ("Flag");
3775  debug ("X = %d\n", x);
3776  showlist (The first, second, and third items.);
3777  report (x>y, "x is %d but y is %d", x, y);
3778}
3779
3780// Check long long types.
3781#define BIG64 18446744073709551615ull
3782#define BIG32 4294967295ul
3783#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3784#if !BIG_OK
3785  your preprocessor is broken;
3786#endif
3787#if BIG_OK
3788#else
3789  your preprocessor is broken;
3790#endif
3791static long long int bignum = -9223372036854775807LL;
3792static unsigned long long int ubignum = BIG64;
3793
3794struct incomplete_array
3795{
3796  int datasize;
3797  double data[];
3798};
3799
3800struct named_init {
3801  int number;
3802  const wchar_t *name;
3803  double average;
3804};
3805
3806typedef const char *ccp;
3807
3808static inline int
3809test_restrict (ccp restrict text)
3810{
3811  // See if C++-style comments work.
3812  // Iterate through items via the restricted pointer.
3813  // Also check for declarations in for loops.
3814  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3815    continue;
3816  return 0;
3817}
3818
3819// Check varargs and va_copy.
3820static void
3821test_varargs (const char *format, ...)
3822{
3823  va_list args;
3824  va_start (args, format);
3825  va_list args_copy;
3826  va_copy (args_copy, args);
3827
3828  const char *str;
3829  int number;
3830  float fnumber;
3831
3832  while (*format)
3833    {
3834      switch (*format++)
3835	{
3836	case 's': // string
3837	  str = va_arg (args_copy, const char *);
3838	  break;
3839	case 'd': // int
3840	  number = va_arg (args_copy, int);
3841	  break;
3842	case 'f': // float
3843	  fnumber = va_arg (args_copy, double);
3844	  break;
3845	default:
3846	  break;
3847	}
3848    }
3849  va_end (args_copy);
3850  va_end (args);
3851}
3852
3853int
3854main ()
3855{
3856
3857  // Check bool.
3858  _Bool success = false;
3859
3860  // Check restrict.
3861  if (test_restrict ("String literal") == 0)
3862    success = true;
3863  char *restrict newvar = "Another string";
3864
3865  // Check varargs.
3866  test_varargs ("s, d' f .", "string", 65, 34.234);
3867  test_varargs_macros ();
3868
3869  // Check flexible array members.
3870  struct incomplete_array *ia =
3871    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3872  ia->datasize = 10;
3873  for (int i = 0; i < ia->datasize; ++i)
3874    ia->data[i] = i * 1.234;
3875
3876  // Check named initializers.
3877  struct named_init ni = {
3878    .number = 34,
3879    .name = L"Test wide string",
3880    .average = 543.34343,
3881  };
3882
3883  ni.number = 58;
3884
3885  int dynamic_array[ni.number];
3886  dynamic_array[ni.number - 1] = 543;
3887
3888  // work around unused variable warnings
3889  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3890	  || dynamic_array[ni.number - 1] != 543);
3891
3892  ;
3893  return 0;
3894}
3895_ACEOF
3896for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3897do
3898  CC="$ac_save_CC $ac_arg"
3899  if ac_fn_c_try_compile "$LINENO"; then :
3900  ac_cv_prog_cc_c99=$ac_arg
3901fi
3902rm -f core conftest.err conftest.$ac_objext
3903  test "x$ac_cv_prog_cc_c99" != "xno" && break
3904done
3905rm -f conftest.$ac_ext
3906CC=$ac_save_CC
3907
3908fi
3909# AC_CACHE_VAL
3910case "x$ac_cv_prog_cc_c99" in
3911  x)
3912    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3913$as_echo "none needed" >&6; } ;;
3914  xno)
3915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3916$as_echo "unsupported" >&6; } ;;
3917  *)
3918    CC="$CC $ac_cv_prog_cc_c99"
3919    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3920$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3921esac
3922if test "x$ac_cv_prog_cc_c99" != xno; then :
3923
3924fi
3925
3926
3927
3928ac_ext=c
3929ac_cpp='$CPP $CPPFLAGS'
3930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3934$as_echo_n "checking how to run the C preprocessor... " >&6; }
3935# On Suns, sometimes $CPP names a directory.
3936if test -n "$CPP" && test -d "$CPP"; then
3937  CPP=
3938fi
3939if test -z "$CPP"; then
3940  if ${ac_cv_prog_CPP+:} false; then :
3941  $as_echo_n "(cached) " >&6
3942else
3943      # Double quotes because CPP needs to be expanded
3944    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3945    do
3946      ac_preproc_ok=false
3947for ac_c_preproc_warn_flag in '' yes
3948do
3949  # Use a header file that comes with gcc, so configuring glibc
3950  # with a fresh cross-compiler works.
3951  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3952  # <limits.h> exists even on freestanding compilers.
3953  # On the NeXT, cc -E runs the code through the compiler's parser,
3954  # not just through cpp. "Syntax error" is here to catch this case.
3955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956/* end confdefs.h.  */
3957#ifdef __STDC__
3958# include <limits.h>
3959#else
3960# include <assert.h>
3961#endif
3962		     Syntax error
3963_ACEOF
3964if ac_fn_c_try_cpp "$LINENO"; then :
3965
3966else
3967  # Broken: fails on valid input.
3968continue
3969fi
3970rm -f conftest.err conftest.i conftest.$ac_ext
3971
3972  # OK, works on sane cases.  Now check whether nonexistent headers
3973  # can be detected and how.
3974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975/* end confdefs.h.  */
3976#include <ac_nonexistent.h>
3977_ACEOF
3978if ac_fn_c_try_cpp "$LINENO"; then :
3979  # Broken: success on invalid input.
3980continue
3981else
3982  # Passes both tests.
3983ac_preproc_ok=:
3984break
3985fi
3986rm -f conftest.err conftest.i conftest.$ac_ext
3987
3988done
3989# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3990rm -f conftest.i conftest.err conftest.$ac_ext
3991if $ac_preproc_ok; then :
3992  break
3993fi
3994
3995    done
3996    ac_cv_prog_CPP=$CPP
3997
3998fi
3999  CPP=$ac_cv_prog_CPP
4000else
4001  ac_cv_prog_CPP=$CPP
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4004$as_echo "$CPP" >&6; }
4005ac_preproc_ok=false
4006for ac_c_preproc_warn_flag in '' yes
4007do
4008  # Use a header file that comes with gcc, so configuring glibc
4009  # with a fresh cross-compiler works.
4010  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4011  # <limits.h> exists even on freestanding compilers.
4012  # On the NeXT, cc -E runs the code through the compiler's parser,
4013  # not just through cpp. "Syntax error" is here to catch this case.
4014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h.  */
4016#ifdef __STDC__
4017# include <limits.h>
4018#else
4019# include <assert.h>
4020#endif
4021		     Syntax error
4022_ACEOF
4023if ac_fn_c_try_cpp "$LINENO"; then :
4024
4025else
4026  # Broken: fails on valid input.
4027continue
4028fi
4029rm -f conftest.err conftest.i conftest.$ac_ext
4030
4031  # OK, works on sane cases.  Now check whether nonexistent headers
4032  # can be detected and how.
4033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034/* end confdefs.h.  */
4035#include <ac_nonexistent.h>
4036_ACEOF
4037if ac_fn_c_try_cpp "$LINENO"; then :
4038  # Broken: success on invalid input.
4039continue
4040else
4041  # Passes both tests.
4042ac_preproc_ok=:
4043break
4044fi
4045rm -f conftest.err conftest.i conftest.$ac_ext
4046
4047done
4048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4049rm -f conftest.i conftest.err conftest.$ac_ext
4050if $ac_preproc_ok; then :
4051
4052else
4053  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4056See \`config.log' for more details" "$LINENO" 5; }
4057fi
4058
4059ac_ext=c
4060ac_cpp='$CPP $CPPFLAGS'
4061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064
4065
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4067$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4068if ${ac_cv_path_GREP+:} false; then :
4069  $as_echo_n "(cached) " >&6
4070else
4071  if test -z "$GREP"; then
4072  ac_path_GREP_found=false
4073  # Loop through the user's path and test for each of PROGNAME-LIST
4074  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076do
4077  IFS=$as_save_IFS
4078  test -z "$as_dir" && as_dir=.
4079    for ac_prog in grep ggrep; do
4080    for ac_exec_ext in '' $ac_executable_extensions; do
4081      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4082      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4083# Check for GNU ac_path_GREP and select it if it is found.
4084  # Check for GNU $ac_path_GREP
4085case `"$ac_path_GREP" --version 2>&1` in
4086*GNU*)
4087  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4088*)
4089  ac_count=0
4090  $as_echo_n 0123456789 >"conftest.in"
4091  while :
4092  do
4093    cat "conftest.in" "conftest.in" >"conftest.tmp"
4094    mv "conftest.tmp" "conftest.in"
4095    cp "conftest.in" "conftest.nl"
4096    $as_echo 'GREP' >> "conftest.nl"
4097    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099    as_fn_arith $ac_count + 1 && ac_count=$as_val
4100    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4101      # Best one so far, save it but keep looking for a better one
4102      ac_cv_path_GREP="$ac_path_GREP"
4103      ac_path_GREP_max=$ac_count
4104    fi
4105    # 10*(2^10) chars as input seems more than enough
4106    test $ac_count -gt 10 && break
4107  done
4108  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109esac
4110
4111      $ac_path_GREP_found && break 3
4112    done
4113  done
4114  done
4115IFS=$as_save_IFS
4116  if test -z "$ac_cv_path_GREP"; then
4117    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4118  fi
4119else
4120  ac_cv_path_GREP=$GREP
4121fi
4122
4123fi
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4125$as_echo "$ac_cv_path_GREP" >&6; }
4126 GREP="$ac_cv_path_GREP"
4127
4128
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4130$as_echo_n "checking for egrep... " >&6; }
4131if ${ac_cv_path_EGREP+:} false; then :
4132  $as_echo_n "(cached) " >&6
4133else
4134  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4135   then ac_cv_path_EGREP="$GREP -E"
4136   else
4137     if test -z "$EGREP"; then
4138  ac_path_EGREP_found=false
4139  # Loop through the user's path and test for each of PROGNAME-LIST
4140  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4142do
4143  IFS=$as_save_IFS
4144  test -z "$as_dir" && as_dir=.
4145    for ac_prog in egrep; do
4146    for ac_exec_ext in '' $ac_executable_extensions; do
4147      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4148      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4149# Check for GNU ac_path_EGREP and select it if it is found.
4150  # Check for GNU $ac_path_EGREP
4151case `"$ac_path_EGREP" --version 2>&1` in
4152*GNU*)
4153  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4154*)
4155  ac_count=0
4156  $as_echo_n 0123456789 >"conftest.in"
4157  while :
4158  do
4159    cat "conftest.in" "conftest.in" >"conftest.tmp"
4160    mv "conftest.tmp" "conftest.in"
4161    cp "conftest.in" "conftest.nl"
4162    $as_echo 'EGREP' >> "conftest.nl"
4163    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4164    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4165    as_fn_arith $ac_count + 1 && ac_count=$as_val
4166    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4167      # Best one so far, save it but keep looking for a better one
4168      ac_cv_path_EGREP="$ac_path_EGREP"
4169      ac_path_EGREP_max=$ac_count
4170    fi
4171    # 10*(2^10) chars as input seems more than enough
4172    test $ac_count -gt 10 && break
4173  done
4174  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4175esac
4176
4177      $ac_path_EGREP_found && break 3
4178    done
4179  done
4180  done
4181IFS=$as_save_IFS
4182  if test -z "$ac_cv_path_EGREP"; then
4183    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4184  fi
4185else
4186  ac_cv_path_EGREP=$EGREP
4187fi
4188
4189   fi
4190fi
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4192$as_echo "$ac_cv_path_EGREP" >&6; }
4193 EGREP="$ac_cv_path_EGREP"
4194
4195
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4197$as_echo_n "checking for ANSI C header files... " >&6; }
4198if ${ac_cv_header_stdc+:} false; then :
4199  $as_echo_n "(cached) " >&6
4200else
4201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202/* end confdefs.h.  */
4203#include <stdlib.h>
4204#include <stdarg.h>
4205#include <string.h>
4206#include <float.h>
4207
4208int
4209main ()
4210{
4211
4212  ;
4213  return 0;
4214}
4215_ACEOF
4216if ac_fn_c_try_compile "$LINENO"; then :
4217  ac_cv_header_stdc=yes
4218else
4219  ac_cv_header_stdc=no
4220fi
4221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222
4223if test $ac_cv_header_stdc = yes; then
4224  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226/* end confdefs.h.  */
4227#include <string.h>
4228
4229_ACEOF
4230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231  $EGREP "memchr" >/dev/null 2>&1; then :
4232
4233else
4234  ac_cv_header_stdc=no
4235fi
4236rm -f conftest*
4237
4238fi
4239
4240if test $ac_cv_header_stdc = yes; then
4241  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243/* end confdefs.h.  */
4244#include <stdlib.h>
4245
4246_ACEOF
4247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4248  $EGREP "free" >/dev/null 2>&1; then :
4249
4250else
4251  ac_cv_header_stdc=no
4252fi
4253rm -f conftest*
4254
4255fi
4256
4257if test $ac_cv_header_stdc = yes; then
4258  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4259  if test "$cross_compiling" = yes; then :
4260  :
4261else
4262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263/* end confdefs.h.  */
4264#include <ctype.h>
4265#include <stdlib.h>
4266#if ((' ' & 0x0FF) == 0x020)
4267# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4268# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4269#else
4270# define ISLOWER(c) \
4271		   (('a' <= (c) && (c) <= 'i') \
4272		     || ('j' <= (c) && (c) <= 'r') \
4273		     || ('s' <= (c) && (c) <= 'z'))
4274# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4275#endif
4276
4277#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4278int
4279main ()
4280{
4281  int i;
4282  for (i = 0; i < 256; i++)
4283    if (XOR (islower (i), ISLOWER (i))
4284	|| toupper (i) != TOUPPER (i))
4285      return 2;
4286  return 0;
4287}
4288_ACEOF
4289if ac_fn_c_try_run "$LINENO"; then :
4290
4291else
4292  ac_cv_header_stdc=no
4293fi
4294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4295  conftest.$ac_objext conftest.beam conftest.$ac_ext
4296fi
4297
4298fi
4299fi
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4301$as_echo "$ac_cv_header_stdc" >&6; }
4302if test $ac_cv_header_stdc = yes; then
4303
4304$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4305
4306fi
4307
4308# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4309for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4310		  inttypes.h stdint.h unistd.h
4311do :
4312  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4313ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4314"
4315if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4316  cat >>confdefs.h <<_ACEOF
4317#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318_ACEOF
4319
4320fi
4321
4322done
4323
4324
4325
4326
4327
4328
4329ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4330if test "x$ac_cv_have_decl___clang__" = xyes; then :
4331  CLANGCC="yes"
4332else
4333  CLANGCC="no"
4334fi
4335
4336ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4337if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4338  INTELCC="yes"
4339else
4340  INTELCC="no"
4341fi
4342
4343ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4344if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4345  SUNCC="yes"
4346else
4347  SUNCC="no"
4348fi
4349
4350
4351
4352
4353if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4354	if test -n "$ac_tool_prefix"; then
4355  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4356set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358$as_echo_n "checking for $ac_word... " >&6; }
4359if ${ac_cv_path_PKG_CONFIG+:} false; then :
4360  $as_echo_n "(cached) " >&6
4361else
4362  case $PKG_CONFIG in
4363  [\\/]* | ?:[\\/]*)
4364  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4365  ;;
4366  *)
4367  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH
4369do
4370  IFS=$as_save_IFS
4371  test -z "$as_dir" && as_dir=.
4372    for ac_exec_ext in '' $ac_executable_extensions; do
4373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376    break 2
4377  fi
4378done
4379  done
4380IFS=$as_save_IFS
4381
4382  ;;
4383esac
4384fi
4385PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4386if test -n "$PKG_CONFIG"; then
4387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4388$as_echo "$PKG_CONFIG" >&6; }
4389else
4390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391$as_echo "no" >&6; }
4392fi
4393
4394
4395fi
4396if test -z "$ac_cv_path_PKG_CONFIG"; then
4397  ac_pt_PKG_CONFIG=$PKG_CONFIG
4398  # Extract the first word of "pkg-config", so it can be a program name with args.
4399set dummy pkg-config; ac_word=$2
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401$as_echo_n "checking for $ac_word... " >&6; }
4402if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4403  $as_echo_n "(cached) " >&6
4404else
4405  case $ac_pt_PKG_CONFIG in
4406  [\\/]* | ?:[\\/]*)
4407  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4408  ;;
4409  *)
4410  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
4412do
4413  IFS=$as_save_IFS
4414  test -z "$as_dir" && as_dir=.
4415    for ac_exec_ext in '' $ac_executable_extensions; do
4416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419    break 2
4420  fi
4421done
4422  done
4423IFS=$as_save_IFS
4424
4425  ;;
4426esac
4427fi
4428ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4429if test -n "$ac_pt_PKG_CONFIG"; then
4430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4431$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4432else
4433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434$as_echo "no" >&6; }
4435fi
4436
4437  if test "x$ac_pt_PKG_CONFIG" = x; then
4438    PKG_CONFIG=""
4439  else
4440    case $cross_compiling:$ac_tool_warned in
4441yes:)
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4444ac_tool_warned=yes ;;
4445esac
4446    PKG_CONFIG=$ac_pt_PKG_CONFIG
4447  fi
4448else
4449  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4450fi
4451
4452fi
4453if test -n "$PKG_CONFIG"; then
4454	_pkg_min_version=0.9.0
4455	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4456$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4457	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4458		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4459$as_echo "yes" >&6; }
4460	else
4461		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462$as_echo "no" >&6; }
4463		PKG_CONFIG=""
4464	fi
4465
4466fi
4467# Make sure we can run config.sub.
4468$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4469  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4470
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4472$as_echo_n "checking build system type... " >&6; }
4473if ${ac_cv_build+:} false; then :
4474  $as_echo_n "(cached) " >&6
4475else
4476  ac_build_alias=$build_alias
4477test "x$ac_build_alias" = x &&
4478  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4479test "x$ac_build_alias" = x &&
4480  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4481ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4482  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4483
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4486$as_echo "$ac_cv_build" >&6; }
4487case $ac_cv_build in
4488*-*-*) ;;
4489*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4490esac
4491build=$ac_cv_build
4492ac_save_IFS=$IFS; IFS='-'
4493set x $ac_cv_build
4494shift
4495build_cpu=$1
4496build_vendor=$2
4497shift; shift
4498# Remember, the first character of IFS is used to create $*,
4499# except with old shells:
4500build_os=$*
4501IFS=$ac_save_IFS
4502case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4503
4504
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4506$as_echo_n "checking host system type... " >&6; }
4507if ${ac_cv_host+:} false; then :
4508  $as_echo_n "(cached) " >&6
4509else
4510  if test "x$host_alias" = x; then
4511  ac_cv_host=$ac_cv_build
4512else
4513  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4514    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4515fi
4516
4517fi
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4519$as_echo "$ac_cv_host" >&6; }
4520case $ac_cv_host in
4521*-*-*) ;;
4522*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4523esac
4524host=$ac_cv_host
4525ac_save_IFS=$IFS; IFS='-'
4526set x $ac_cv_host
4527shift
4528host_cpu=$1
4529host_vendor=$2
4530shift; shift
4531# Remember, the first character of IFS is used to create $*,
4532# except with old shells:
4533host_os=$*
4534IFS=$ac_save_IFS
4535case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4536
4537
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4539$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4540if ${ac_cv_path_SED+:} false; then :
4541  $as_echo_n "(cached) " >&6
4542else
4543            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4544     for ac_i in 1 2 3 4 5 6 7; do
4545       ac_script="$ac_script$as_nl$ac_script"
4546     done
4547     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4548     { ac_script=; unset ac_script;}
4549     if test -z "$SED"; then
4550  ac_path_SED_found=false
4551  # Loop through the user's path and test for each of PROGNAME-LIST
4552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555  IFS=$as_save_IFS
4556  test -z "$as_dir" && as_dir=.
4557    for ac_prog in sed gsed; do
4558    for ac_exec_ext in '' $ac_executable_extensions; do
4559      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4560      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4561# Check for GNU ac_path_SED and select it if it is found.
4562  # Check for GNU $ac_path_SED
4563case `"$ac_path_SED" --version 2>&1` in
4564*GNU*)
4565  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4566*)
4567  ac_count=0
4568  $as_echo_n 0123456789 >"conftest.in"
4569  while :
4570  do
4571    cat "conftest.in" "conftest.in" >"conftest.tmp"
4572    mv "conftest.tmp" "conftest.in"
4573    cp "conftest.in" "conftest.nl"
4574    $as_echo '' >> "conftest.nl"
4575    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4576    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4577    as_fn_arith $ac_count + 1 && ac_count=$as_val
4578    if test $ac_count -gt ${ac_path_SED_max-0}; then
4579      # Best one so far, save it but keep looking for a better one
4580      ac_cv_path_SED="$ac_path_SED"
4581      ac_path_SED_max=$ac_count
4582    fi
4583    # 10*(2^10) chars as input seems more than enough
4584    test $ac_count -gt 10 && break
4585  done
4586  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4587esac
4588
4589      $ac_path_SED_found && break 3
4590    done
4591  done
4592  done
4593IFS=$as_save_IFS
4594  if test -z "$ac_cv_path_SED"; then
4595    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4596  fi
4597else
4598  ac_cv_path_SED=$SED
4599fi
4600
4601fi
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4603$as_echo "$ac_cv_path_SED" >&6; }
4604 SED="$ac_cv_path_SED"
4605  rm -f conftest.sed
4606
4607
4608
4609
4610
4611
4612# Check whether --enable-selective-werror was given.
4613if test "${enable_selective_werror+set}" = set; then :
4614  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4615else
4616  SELECTIVE_WERROR=yes
4617fi
4618
4619
4620
4621
4622
4623# -v is too short to test reliably with XORG_TESTSET_CFLAG
4624if test "x$SUNCC" = "xyes"; then
4625    BASE_CFLAGS="-v"
4626else
4627    BASE_CFLAGS=""
4628fi
4629
4630# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644xorg_testset_save_CFLAGS="$CFLAGS"
4645
4646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4647	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4648	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4651  $as_echo_n "(cached) " >&6
4652else
4653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654/* end confdefs.h.  */
4655int i;
4656_ACEOF
4657if ac_fn_c_try_compile "$LINENO"; then :
4658  xorg_cv_cc_flag_unknown_warning_option=yes
4659else
4660  xorg_cv_cc_flag_unknown_warning_option=no
4661fi
4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663fi
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4667	CFLAGS="$xorg_testset_save_CFLAGS"
4668fi
4669
4670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4673	fi
4674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4678  $as_echo_n "(cached) " >&6
4679else
4680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681/* end confdefs.h.  */
4682int i;
4683_ACEOF
4684if ac_fn_c_try_compile "$LINENO"; then :
4685  xorg_cv_cc_flag_unused_command_line_argument=yes
4686else
4687  xorg_cv_cc_flag_unused_command_line_argument=no
4688fi
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690fi
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4694	CFLAGS="$xorg_testset_save_CFLAGS"
4695fi
4696
4697found="no"
4698
4699	if test $found = "no" ; then
4700		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4702		fi
4703
4704		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4706		fi
4707
4708		CFLAGS="$CFLAGS -Wall"
4709
4710		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4711$as_echo_n "checking if $CC supports-Wall... " >&6; }
4712		cacheid=xorg_cv_cc_flag__Wall
4713		if eval \${$cacheid+:} false; then :
4714  $as_echo_n "(cached) " >&6
4715else
4716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717/* end confdefs.h.  */
4718int i;
4719int
4720main ()
4721{
4722
4723  ;
4724  return 0;
4725}
4726_ACEOF
4727if ac_fn_c_try_link "$LINENO"; then :
4728  eval $cacheid=yes
4729else
4730  eval $cacheid=no
4731fi
4732rm -f core conftest.err conftest.$ac_objext \
4733    conftest$ac_exeext conftest.$ac_ext
4734fi
4735
4736
4737		CFLAGS="$xorg_testset_save_CFLAGS"
4738
4739		eval supported=\$$cacheid
4740		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4741$as_echo "$supported" >&6; }
4742		if test "$supported" = "yes" ; then
4743			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4744			found="yes"
4745		fi
4746	fi
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762xorg_testset_save_CFLAGS="$CFLAGS"
4763
4764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4765	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4767$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4768if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4769  $as_echo_n "(cached) " >&6
4770else
4771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h.  */
4773int i;
4774_ACEOF
4775if ac_fn_c_try_compile "$LINENO"; then :
4776  xorg_cv_cc_flag_unknown_warning_option=yes
4777else
4778  xorg_cv_cc_flag_unknown_warning_option=no
4779fi
4780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781fi
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4783$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4784	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4785	CFLAGS="$xorg_testset_save_CFLAGS"
4786fi
4787
4788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4789	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4790		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4791	fi
4792	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4794$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4795if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4796  $as_echo_n "(cached) " >&6
4797else
4798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799/* end confdefs.h.  */
4800int i;
4801_ACEOF
4802if ac_fn_c_try_compile "$LINENO"; then :
4803  xorg_cv_cc_flag_unused_command_line_argument=yes
4804else
4805  xorg_cv_cc_flag_unused_command_line_argument=no
4806fi
4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808fi
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4810$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4811	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4812	CFLAGS="$xorg_testset_save_CFLAGS"
4813fi
4814
4815found="no"
4816
4817	if test $found = "no" ; then
4818		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4820		fi
4821
4822		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4824		fi
4825
4826		CFLAGS="$CFLAGS -Wpointer-arith"
4827
4828		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4829$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4830		cacheid=xorg_cv_cc_flag__Wpointer_arith
4831		if eval \${$cacheid+:} false; then :
4832  $as_echo_n "(cached) " >&6
4833else
4834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h.  */
4836int i;
4837int
4838main ()
4839{
4840
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845if ac_fn_c_try_link "$LINENO"; then :
4846  eval $cacheid=yes
4847else
4848  eval $cacheid=no
4849fi
4850rm -f core conftest.err conftest.$ac_objext \
4851    conftest$ac_exeext conftest.$ac_ext
4852fi
4853
4854
4855		CFLAGS="$xorg_testset_save_CFLAGS"
4856
4857		eval supported=\$$cacheid
4858		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4859$as_echo "$supported" >&6; }
4860		if test "$supported" = "yes" ; then
4861			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4862			found="yes"
4863		fi
4864	fi
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880xorg_testset_save_CFLAGS="$CFLAGS"
4881
4882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4883	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4885$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4886if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4887  $as_echo_n "(cached) " >&6
4888else
4889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890/* end confdefs.h.  */
4891int i;
4892_ACEOF
4893if ac_fn_c_try_compile "$LINENO"; then :
4894  xorg_cv_cc_flag_unknown_warning_option=yes
4895else
4896  xorg_cv_cc_flag_unknown_warning_option=no
4897fi
4898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899fi
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4901$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4902	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4903	CFLAGS="$xorg_testset_save_CFLAGS"
4904fi
4905
4906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4907	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4908		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4909	fi
4910	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4912$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4913if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4914  $as_echo_n "(cached) " >&6
4915else
4916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917/* end confdefs.h.  */
4918int i;
4919_ACEOF
4920if ac_fn_c_try_compile "$LINENO"; then :
4921  xorg_cv_cc_flag_unused_command_line_argument=yes
4922else
4923  xorg_cv_cc_flag_unused_command_line_argument=no
4924fi
4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926fi
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4928$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4929	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4930	CFLAGS="$xorg_testset_save_CFLAGS"
4931fi
4932
4933found="no"
4934
4935	if test $found = "no" ; then
4936		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4937			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4938		fi
4939
4940		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4941			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4942		fi
4943
4944		CFLAGS="$CFLAGS -Wmissing-declarations"
4945
4946		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4947$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4948		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4949		if eval \${$cacheid+:} false; then :
4950  $as_echo_n "(cached) " >&6
4951else
4952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953/* end confdefs.h.  */
4954int i;
4955int
4956main ()
4957{
4958
4959  ;
4960  return 0;
4961}
4962_ACEOF
4963if ac_fn_c_try_link "$LINENO"; then :
4964  eval $cacheid=yes
4965else
4966  eval $cacheid=no
4967fi
4968rm -f core conftest.err conftest.$ac_objext \
4969    conftest$ac_exeext conftest.$ac_ext
4970fi
4971
4972
4973		CFLAGS="$xorg_testset_save_CFLAGS"
4974
4975		eval supported=\$$cacheid
4976		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4977$as_echo "$supported" >&6; }
4978		if test "$supported" = "yes" ; then
4979			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4980			found="yes"
4981		fi
4982	fi
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998xorg_testset_save_CFLAGS="$CFLAGS"
4999
5000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5001	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5003$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5004if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5005  $as_echo_n "(cached) " >&6
5006else
5007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008/* end confdefs.h.  */
5009int i;
5010_ACEOF
5011if ac_fn_c_try_compile "$LINENO"; then :
5012  xorg_cv_cc_flag_unknown_warning_option=yes
5013else
5014  xorg_cv_cc_flag_unknown_warning_option=no
5015fi
5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017fi
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5019$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5020	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5021	CFLAGS="$xorg_testset_save_CFLAGS"
5022fi
5023
5024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5025	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5026		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5027	fi
5028	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5030$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5031if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035/* end confdefs.h.  */
5036int i;
5037_ACEOF
5038if ac_fn_c_try_compile "$LINENO"; then :
5039  xorg_cv_cc_flag_unused_command_line_argument=yes
5040else
5041  xorg_cv_cc_flag_unused_command_line_argument=no
5042fi
5043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044fi
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5046$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5048	CFLAGS="$xorg_testset_save_CFLAGS"
5049fi
5050
5051found="no"
5052
5053	if test $found = "no" ; then
5054		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5056		fi
5057
5058		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060		fi
5061
5062		CFLAGS="$CFLAGS -Wformat=2"
5063
5064		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5065$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5066		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5067		if eval \${$cacheid+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072int i;
5073int
5074main ()
5075{
5076
5077  ;
5078  return 0;
5079}
5080_ACEOF
5081if ac_fn_c_try_link "$LINENO"; then :
5082  eval $cacheid=yes
5083else
5084  eval $cacheid=no
5085fi
5086rm -f core conftest.err conftest.$ac_objext \
5087    conftest$ac_exeext conftest.$ac_ext
5088fi
5089
5090
5091		CFLAGS="$xorg_testset_save_CFLAGS"
5092
5093		eval supported=\$$cacheid
5094		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5095$as_echo "$supported" >&6; }
5096		if test "$supported" = "yes" ; then
5097			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5098			found="yes"
5099		fi
5100	fi
5101
5102	if test $found = "no" ; then
5103		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5104			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105		fi
5106
5107		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5108			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109		fi
5110
5111		CFLAGS="$CFLAGS -Wformat"
5112
5113		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5114$as_echo_n "checking if $CC supports-Wformat... " >&6; }
5115		cacheid=xorg_cv_cc_flag__Wformat
5116		if eval \${$cacheid+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h.  */
5121int i;
5122int
5123main ()
5124{
5125
5126  ;
5127  return 0;
5128}
5129_ACEOF
5130if ac_fn_c_try_link "$LINENO"; then :
5131  eval $cacheid=yes
5132else
5133  eval $cacheid=no
5134fi
5135rm -f core conftest.err conftest.$ac_objext \
5136    conftest$ac_exeext conftest.$ac_ext
5137fi
5138
5139
5140		CFLAGS="$xorg_testset_save_CFLAGS"
5141
5142		eval supported=\$$cacheid
5143		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5144$as_echo "$supported" >&6; }
5145		if test "$supported" = "yes" ; then
5146			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5147			found="yes"
5148		fi
5149	fi
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167xorg_testset_save_CFLAGS="$CFLAGS"
5168
5169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5170	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5174  $as_echo_n "(cached) " >&6
5175else
5176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h.  */
5178int i;
5179_ACEOF
5180if ac_fn_c_try_compile "$LINENO"; then :
5181  xorg_cv_cc_flag_unknown_warning_option=yes
5182else
5183  xorg_cv_cc_flag_unknown_warning_option=no
5184fi
5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186fi
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5190	CFLAGS="$xorg_testset_save_CFLAGS"
5191fi
5192
5193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5196	fi
5197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5201  $as_echo_n "(cached) " >&6
5202else
5203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h.  */
5205int i;
5206_ACEOF
5207if ac_fn_c_try_compile "$LINENO"; then :
5208  xorg_cv_cc_flag_unused_command_line_argument=yes
5209else
5210  xorg_cv_cc_flag_unused_command_line_argument=no
5211fi
5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213fi
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5217	CFLAGS="$xorg_testset_save_CFLAGS"
5218fi
5219
5220found="no"
5221
5222	if test $found = "no" ; then
5223		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5225		fi
5226
5227		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5229		fi
5230
5231		CFLAGS="$CFLAGS -Wstrict-prototypes"
5232
5233		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5234$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5235		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5236		if eval \${$cacheid+:} false; then :
5237  $as_echo_n "(cached) " >&6
5238else
5239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240/* end confdefs.h.  */
5241int i;
5242int
5243main ()
5244{
5245
5246  ;
5247  return 0;
5248}
5249_ACEOF
5250if ac_fn_c_try_link "$LINENO"; then :
5251  eval $cacheid=yes
5252else
5253  eval $cacheid=no
5254fi
5255rm -f core conftest.err conftest.$ac_objext \
5256    conftest$ac_exeext conftest.$ac_ext
5257fi
5258
5259
5260		CFLAGS="$xorg_testset_save_CFLAGS"
5261
5262		eval supported=\$$cacheid
5263		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5264$as_echo "$supported" >&6; }
5265		if test "$supported" = "yes" ; then
5266			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5267			found="yes"
5268		fi
5269	fi
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285xorg_testset_save_CFLAGS="$CFLAGS"
5286
5287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h.  */
5296int i;
5297_ACEOF
5298if ac_fn_c_try_compile "$LINENO"; then :
5299  xorg_cv_cc_flag_unknown_warning_option=yes
5300else
5301  xorg_cv_cc_flag_unknown_warning_option=no
5302fi
5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304fi
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5307	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5308	CFLAGS="$xorg_testset_save_CFLAGS"
5309fi
5310
5311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5312	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5313		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5314	fi
5315	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h.  */
5323int i;
5324_ACEOF
5325if ac_fn_c_try_compile "$LINENO"; then :
5326  xorg_cv_cc_flag_unused_command_line_argument=yes
5327else
5328  xorg_cv_cc_flag_unused_command_line_argument=no
5329fi
5330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5334	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5335	CFLAGS="$xorg_testset_save_CFLAGS"
5336fi
5337
5338found="no"
5339
5340	if test $found = "no" ; then
5341		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5343		fi
5344
5345		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5347		fi
5348
5349		CFLAGS="$CFLAGS -Wmissing-prototypes"
5350
5351		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5352$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5353		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5354		if eval \${$cacheid+:} false; then :
5355  $as_echo_n "(cached) " >&6
5356else
5357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358/* end confdefs.h.  */
5359int i;
5360int
5361main ()
5362{
5363
5364  ;
5365  return 0;
5366}
5367_ACEOF
5368if ac_fn_c_try_link "$LINENO"; then :
5369  eval $cacheid=yes
5370else
5371  eval $cacheid=no
5372fi
5373rm -f core conftest.err conftest.$ac_objext \
5374    conftest$ac_exeext conftest.$ac_ext
5375fi
5376
5377
5378		CFLAGS="$xorg_testset_save_CFLAGS"
5379
5380		eval supported=\$$cacheid
5381		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5382$as_echo "$supported" >&6; }
5383		if test "$supported" = "yes" ; then
5384			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5385			found="yes"
5386		fi
5387	fi
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403xorg_testset_save_CFLAGS="$CFLAGS"
5404
5405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5406	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5410  $as_echo_n "(cached) " >&6
5411else
5412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h.  */
5414int i;
5415_ACEOF
5416if ac_fn_c_try_compile "$LINENO"; then :
5417  xorg_cv_cc_flag_unknown_warning_option=yes
5418else
5419  xorg_cv_cc_flag_unknown_warning_option=no
5420fi
5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5425	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5426	CFLAGS="$xorg_testset_save_CFLAGS"
5427fi
5428
5429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5430	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5431		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5432	fi
5433	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5437  $as_echo_n "(cached) " >&6
5438else
5439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h.  */
5441int i;
5442_ACEOF
5443if ac_fn_c_try_compile "$LINENO"; then :
5444  xorg_cv_cc_flag_unused_command_line_argument=yes
5445else
5446  xorg_cv_cc_flag_unused_command_line_argument=no
5447fi
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5452	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5453	CFLAGS="$xorg_testset_save_CFLAGS"
5454fi
5455
5456found="no"
5457
5458	if test $found = "no" ; then
5459		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5460			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5461		fi
5462
5463		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5464			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5465		fi
5466
5467		CFLAGS="$CFLAGS -Wnested-externs"
5468
5469		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5470$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5471		cacheid=xorg_cv_cc_flag__Wnested_externs
5472		if eval \${$cacheid+:} false; then :
5473  $as_echo_n "(cached) " >&6
5474else
5475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h.  */
5477int i;
5478int
5479main ()
5480{
5481
5482  ;
5483  return 0;
5484}
5485_ACEOF
5486if ac_fn_c_try_link "$LINENO"; then :
5487  eval $cacheid=yes
5488else
5489  eval $cacheid=no
5490fi
5491rm -f core conftest.err conftest.$ac_objext \
5492    conftest$ac_exeext conftest.$ac_ext
5493fi
5494
5495
5496		CFLAGS="$xorg_testset_save_CFLAGS"
5497
5498		eval supported=\$$cacheid
5499		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5500$as_echo "$supported" >&6; }
5501		if test "$supported" = "yes" ; then
5502			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5503			found="yes"
5504		fi
5505	fi
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521xorg_testset_save_CFLAGS="$CFLAGS"
5522
5523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5528  $as_echo_n "(cached) " >&6
5529else
5530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531/* end confdefs.h.  */
5532int i;
5533_ACEOF
5534if ac_fn_c_try_compile "$LINENO"; then :
5535  xorg_cv_cc_flag_unknown_warning_option=yes
5536else
5537  xorg_cv_cc_flag_unknown_warning_option=no
5538fi
5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5544	CFLAGS="$xorg_testset_save_CFLAGS"
5545fi
5546
5547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5550	fi
5551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h.  */
5559int i;
5560_ACEOF
5561if ac_fn_c_try_compile "$LINENO"; then :
5562  xorg_cv_cc_flag_unused_command_line_argument=yes
5563else
5564  xorg_cv_cc_flag_unused_command_line_argument=no
5565fi
5566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567fi
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5570	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5571	CFLAGS="$xorg_testset_save_CFLAGS"
5572fi
5573
5574found="no"
5575
5576	if test $found = "no" ; then
5577		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5579		fi
5580
5581		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5583		fi
5584
5585		CFLAGS="$CFLAGS -Wbad-function-cast"
5586
5587		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5588$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5589		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5590		if eval \${$cacheid+:} false; then :
5591  $as_echo_n "(cached) " >&6
5592else
5593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h.  */
5595int i;
5596int
5597main ()
5598{
5599
5600  ;
5601  return 0;
5602}
5603_ACEOF
5604if ac_fn_c_try_link "$LINENO"; then :
5605  eval $cacheid=yes
5606else
5607  eval $cacheid=no
5608fi
5609rm -f core conftest.err conftest.$ac_objext \
5610    conftest$ac_exeext conftest.$ac_ext
5611fi
5612
5613
5614		CFLAGS="$xorg_testset_save_CFLAGS"
5615
5616		eval supported=\$$cacheid
5617		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5618$as_echo "$supported" >&6; }
5619		if test "$supported" = "yes" ; then
5620			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5621			found="yes"
5622		fi
5623	fi
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639xorg_testset_save_CFLAGS="$CFLAGS"
5640
5641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5642	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5644$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5645if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h.  */
5650int i;
5651_ACEOF
5652if ac_fn_c_try_compile "$LINENO"; then :
5653  xorg_cv_cc_flag_unknown_warning_option=yes
5654else
5655  xorg_cv_cc_flag_unknown_warning_option=no
5656fi
5657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658fi
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5660$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5661	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5662	CFLAGS="$xorg_testset_save_CFLAGS"
5663fi
5664
5665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5666	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5668	fi
5669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5671$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5672if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5673  $as_echo_n "(cached) " >&6
5674else
5675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676/* end confdefs.h.  */
5677int i;
5678_ACEOF
5679if ac_fn_c_try_compile "$LINENO"; then :
5680  xorg_cv_cc_flag_unused_command_line_argument=yes
5681else
5682  xorg_cv_cc_flag_unused_command_line_argument=no
5683fi
5684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685fi
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5687$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5688	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5689	CFLAGS="$xorg_testset_save_CFLAGS"
5690fi
5691
5692found="no"
5693
5694	if test $found = "no" ; then
5695		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5696			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5697		fi
5698
5699		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5700			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5701		fi
5702
5703		CFLAGS="$CFLAGS -Wold-style-definition"
5704
5705		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5706$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5707		cacheid=xorg_cv_cc_flag__Wold_style_definition
5708		if eval \${$cacheid+:} false; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h.  */
5713int i;
5714int
5715main ()
5716{
5717
5718  ;
5719  return 0;
5720}
5721_ACEOF
5722if ac_fn_c_try_link "$LINENO"; then :
5723  eval $cacheid=yes
5724else
5725  eval $cacheid=no
5726fi
5727rm -f core conftest.err conftest.$ac_objext \
5728    conftest$ac_exeext conftest.$ac_ext
5729fi
5730
5731
5732		CFLAGS="$xorg_testset_save_CFLAGS"
5733
5734		eval supported=\$$cacheid
5735		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5736$as_echo "$supported" >&6; }
5737		if test "$supported" = "yes" ; then
5738			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5739			found="yes"
5740		fi
5741	fi
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757xorg_testset_save_CFLAGS="$CFLAGS"
5758
5759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5760	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5762$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5763if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h.  */
5768int i;
5769_ACEOF
5770if ac_fn_c_try_compile "$LINENO"; then :
5771  xorg_cv_cc_flag_unknown_warning_option=yes
5772else
5773  xorg_cv_cc_flag_unknown_warning_option=no
5774fi
5775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776fi
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5778$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5779	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5780	CFLAGS="$xorg_testset_save_CFLAGS"
5781fi
5782
5783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5784	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5785		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5786	fi
5787	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5789$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5790if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5791  $as_echo_n "(cached) " >&6
5792else
5793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794/* end confdefs.h.  */
5795int i;
5796_ACEOF
5797if ac_fn_c_try_compile "$LINENO"; then :
5798  xorg_cv_cc_flag_unused_command_line_argument=yes
5799else
5800  xorg_cv_cc_flag_unused_command_line_argument=no
5801fi
5802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803fi
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5805$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5806	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5807	CFLAGS="$xorg_testset_save_CFLAGS"
5808fi
5809
5810found="no"
5811
5812	if test $found = "no" ; then
5813		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5814			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5815		fi
5816
5817		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5818			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5819		fi
5820
5821		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5822
5823		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5824$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5825		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5826		if eval \${$cacheid+:} false; then :
5827  $as_echo_n "(cached) " >&6
5828else
5829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830/* end confdefs.h.  */
5831int i;
5832int
5833main ()
5834{
5835
5836  ;
5837  return 0;
5838}
5839_ACEOF
5840if ac_fn_c_try_link "$LINENO"; then :
5841  eval $cacheid=yes
5842else
5843  eval $cacheid=no
5844fi
5845rm -f core conftest.err conftest.$ac_objext \
5846    conftest$ac_exeext conftest.$ac_ext
5847fi
5848
5849
5850		CFLAGS="$xorg_testset_save_CFLAGS"
5851
5852		eval supported=\$$cacheid
5853		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5854$as_echo "$supported" >&6; }
5855		if test "$supported" = "yes" ; then
5856			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5857			found="yes"
5858		fi
5859	fi
5860
5861
5862
5863
5864
5865# This chunk adds additional warnings that could catch undesired effects.
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879xorg_testset_save_CFLAGS="$CFLAGS"
5880
5881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5882	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h.  */
5890int i;
5891_ACEOF
5892if ac_fn_c_try_compile "$LINENO"; then :
5893  xorg_cv_cc_flag_unknown_warning_option=yes
5894else
5895  xorg_cv_cc_flag_unknown_warning_option=no
5896fi
5897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898fi
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5902	CFLAGS="$xorg_testset_save_CFLAGS"
5903fi
5904
5905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5908	fi
5909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5913  $as_echo_n "(cached) " >&6
5914else
5915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916/* end confdefs.h.  */
5917int i;
5918_ACEOF
5919if ac_fn_c_try_compile "$LINENO"; then :
5920  xorg_cv_cc_flag_unused_command_line_argument=yes
5921else
5922  xorg_cv_cc_flag_unused_command_line_argument=no
5923fi
5924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925fi
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5928	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5929	CFLAGS="$xorg_testset_save_CFLAGS"
5930fi
5931
5932found="no"
5933
5934	if test $found = "no" ; then
5935		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5936			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5937		fi
5938
5939		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5940			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5941		fi
5942
5943		CFLAGS="$CFLAGS -Wunused"
5944
5945		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5946$as_echo_n "checking if $CC supports-Wunused... " >&6; }
5947		cacheid=xorg_cv_cc_flag__Wunused
5948		if eval \${$cacheid+:} false; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h.  */
5953int i;
5954int
5955main ()
5956{
5957
5958  ;
5959  return 0;
5960}
5961_ACEOF
5962if ac_fn_c_try_link "$LINENO"; then :
5963  eval $cacheid=yes
5964else
5965  eval $cacheid=no
5966fi
5967rm -f core conftest.err conftest.$ac_objext \
5968    conftest$ac_exeext conftest.$ac_ext
5969fi
5970
5971
5972		CFLAGS="$xorg_testset_save_CFLAGS"
5973
5974		eval supported=\$$cacheid
5975		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5976$as_echo "$supported" >&6; }
5977		if test "$supported" = "yes" ; then
5978			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5979			found="yes"
5980		fi
5981	fi
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997xorg_testset_save_CFLAGS="$CFLAGS"
5998
5999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h.  */
6008int i;
6009_ACEOF
6010if ac_fn_c_try_compile "$LINENO"; then :
6011  xorg_cv_cc_flag_unknown_warning_option=yes
6012else
6013  xorg_cv_cc_flag_unknown_warning_option=no
6014fi
6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016fi
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6019	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6020	CFLAGS="$xorg_testset_save_CFLAGS"
6021fi
6022
6023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6024	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6025		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6026	fi
6027	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6031  $as_echo_n "(cached) " >&6
6032else
6033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034/* end confdefs.h.  */
6035int i;
6036_ACEOF
6037if ac_fn_c_try_compile "$LINENO"; then :
6038  xorg_cv_cc_flag_unused_command_line_argument=yes
6039else
6040  xorg_cv_cc_flag_unused_command_line_argument=no
6041fi
6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043fi
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6046	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6047	CFLAGS="$xorg_testset_save_CFLAGS"
6048fi
6049
6050found="no"
6051
6052	if test $found = "no" ; then
6053		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6054			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6055		fi
6056
6057		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6058			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6059		fi
6060
6061		CFLAGS="$CFLAGS -Wuninitialized"
6062
6063		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6064$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6065		cacheid=xorg_cv_cc_flag__Wuninitialized
6066		if eval \${$cacheid+:} false; then :
6067  $as_echo_n "(cached) " >&6
6068else
6069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h.  */
6071int i;
6072int
6073main ()
6074{
6075
6076  ;
6077  return 0;
6078}
6079_ACEOF
6080if ac_fn_c_try_link "$LINENO"; then :
6081  eval $cacheid=yes
6082else
6083  eval $cacheid=no
6084fi
6085rm -f core conftest.err conftest.$ac_objext \
6086    conftest$ac_exeext conftest.$ac_ext
6087fi
6088
6089
6090		CFLAGS="$xorg_testset_save_CFLAGS"
6091
6092		eval supported=\$$cacheid
6093		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6094$as_echo "$supported" >&6; }
6095		if test "$supported" = "yes" ; then
6096			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6097			found="yes"
6098		fi
6099	fi
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115xorg_testset_save_CFLAGS="$CFLAGS"
6116
6117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6122  $as_echo_n "(cached) " >&6
6123else
6124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h.  */
6126int i;
6127_ACEOF
6128if ac_fn_c_try_compile "$LINENO"; then :
6129  xorg_cv_cc_flag_unknown_warning_option=yes
6130else
6131  xorg_cv_cc_flag_unknown_warning_option=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134fi
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6137	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6138	CFLAGS="$xorg_testset_save_CFLAGS"
6139fi
6140
6141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6142	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6143		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6144	fi
6145	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6149  $as_echo_n "(cached) " >&6
6150else
6151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h.  */
6153int i;
6154_ACEOF
6155if ac_fn_c_try_compile "$LINENO"; then :
6156  xorg_cv_cc_flag_unused_command_line_argument=yes
6157else
6158  xorg_cv_cc_flag_unused_command_line_argument=no
6159fi
6160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161fi
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6164	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6165	CFLAGS="$xorg_testset_save_CFLAGS"
6166fi
6167
6168found="no"
6169
6170	if test $found = "no" ; then
6171		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6172			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6173		fi
6174
6175		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6176			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6177		fi
6178
6179		CFLAGS="$CFLAGS -Wshadow"
6180
6181		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6182$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6183		cacheid=xorg_cv_cc_flag__Wshadow
6184		if eval \${$cacheid+:} false; then :
6185  $as_echo_n "(cached) " >&6
6186else
6187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188/* end confdefs.h.  */
6189int i;
6190int
6191main ()
6192{
6193
6194  ;
6195  return 0;
6196}
6197_ACEOF
6198if ac_fn_c_try_link "$LINENO"; then :
6199  eval $cacheid=yes
6200else
6201  eval $cacheid=no
6202fi
6203rm -f core conftest.err conftest.$ac_objext \
6204    conftest$ac_exeext conftest.$ac_ext
6205fi
6206
6207
6208		CFLAGS="$xorg_testset_save_CFLAGS"
6209
6210		eval supported=\$$cacheid
6211		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6212$as_echo "$supported" >&6; }
6213		if test "$supported" = "yes" ; then
6214			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6215			found="yes"
6216		fi
6217	fi
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233xorg_testset_save_CFLAGS="$CFLAGS"
6234
6235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6239if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h.  */
6244int i;
6245_ACEOF
6246if ac_fn_c_try_compile "$LINENO"; then :
6247  xorg_cv_cc_flag_unknown_warning_option=yes
6248else
6249  xorg_cv_cc_flag_unknown_warning_option=no
6250fi
6251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252fi
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6254$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6255	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6256	CFLAGS="$xorg_testset_save_CFLAGS"
6257fi
6258
6259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6260	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6261		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6262	fi
6263	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6265$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6266if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6267  $as_echo_n "(cached) " >&6
6268else
6269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h.  */
6271int i;
6272_ACEOF
6273if ac_fn_c_try_compile "$LINENO"; then :
6274  xorg_cv_cc_flag_unused_command_line_argument=yes
6275else
6276  xorg_cv_cc_flag_unused_command_line_argument=no
6277fi
6278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279fi
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6281$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6282	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6283	CFLAGS="$xorg_testset_save_CFLAGS"
6284fi
6285
6286found="no"
6287
6288	if test $found = "no" ; then
6289		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6290			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6291		fi
6292
6293		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6294			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6295		fi
6296
6297		CFLAGS="$CFLAGS -Wcast-qual"
6298
6299		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6300$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6301		cacheid=xorg_cv_cc_flag__Wcast_qual
6302		if eval \${$cacheid+:} false; then :
6303  $as_echo_n "(cached) " >&6
6304else
6305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306/* end confdefs.h.  */
6307int i;
6308int
6309main ()
6310{
6311
6312  ;
6313  return 0;
6314}
6315_ACEOF
6316if ac_fn_c_try_link "$LINENO"; then :
6317  eval $cacheid=yes
6318else
6319  eval $cacheid=no
6320fi
6321rm -f core conftest.err conftest.$ac_objext \
6322    conftest$ac_exeext conftest.$ac_ext
6323fi
6324
6325
6326		CFLAGS="$xorg_testset_save_CFLAGS"
6327
6328		eval supported=\$$cacheid
6329		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6330$as_echo "$supported" >&6; }
6331		if test "$supported" = "yes" ; then
6332			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6333			found="yes"
6334		fi
6335	fi
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351xorg_testset_save_CFLAGS="$CFLAGS"
6352
6353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6354	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6356$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6357if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362int i;
6363_ACEOF
6364if ac_fn_c_try_compile "$LINENO"; then :
6365  xorg_cv_cc_flag_unknown_warning_option=yes
6366else
6367  xorg_cv_cc_flag_unknown_warning_option=no
6368fi
6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6372$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6373	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6374	CFLAGS="$xorg_testset_save_CFLAGS"
6375fi
6376
6377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6378	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6379		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6380	fi
6381	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6383$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6384if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6385  $as_echo_n "(cached) " >&6
6386else
6387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388/* end confdefs.h.  */
6389int i;
6390_ACEOF
6391if ac_fn_c_try_compile "$LINENO"; then :
6392  xorg_cv_cc_flag_unused_command_line_argument=yes
6393else
6394  xorg_cv_cc_flag_unused_command_line_argument=no
6395fi
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397fi
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6399$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6400	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6401	CFLAGS="$xorg_testset_save_CFLAGS"
6402fi
6403
6404found="no"
6405
6406	if test $found = "no" ; then
6407		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6408			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6409		fi
6410
6411		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6412			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6413		fi
6414
6415		CFLAGS="$CFLAGS -Wmissing-noreturn"
6416
6417		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6418$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6419		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6420		if eval \${$cacheid+:} false; then :
6421  $as_echo_n "(cached) " >&6
6422else
6423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424/* end confdefs.h.  */
6425int i;
6426int
6427main ()
6428{
6429
6430  ;
6431  return 0;
6432}
6433_ACEOF
6434if ac_fn_c_try_link "$LINENO"; then :
6435  eval $cacheid=yes
6436else
6437  eval $cacheid=no
6438fi
6439rm -f core conftest.err conftest.$ac_objext \
6440    conftest$ac_exeext conftest.$ac_ext
6441fi
6442
6443
6444		CFLAGS="$xorg_testset_save_CFLAGS"
6445
6446		eval supported=\$$cacheid
6447		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6448$as_echo "$supported" >&6; }
6449		if test "$supported" = "yes" ; then
6450			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6451			found="yes"
6452		fi
6453	fi
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469xorg_testset_save_CFLAGS="$CFLAGS"
6470
6471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6474$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6475if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h.  */
6480int i;
6481_ACEOF
6482if ac_fn_c_try_compile "$LINENO"; then :
6483  xorg_cv_cc_flag_unknown_warning_option=yes
6484else
6485  xorg_cv_cc_flag_unknown_warning_option=no
6486fi
6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488fi
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6490$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6492	CFLAGS="$xorg_testset_save_CFLAGS"
6493fi
6494
6495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6498	fi
6499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6501$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6502if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6503  $as_echo_n "(cached) " >&6
6504else
6505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h.  */
6507int i;
6508_ACEOF
6509if ac_fn_c_try_compile "$LINENO"; then :
6510  xorg_cv_cc_flag_unused_command_line_argument=yes
6511else
6512  xorg_cv_cc_flag_unused_command_line_argument=no
6513fi
6514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515fi
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6517$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6518	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6519	CFLAGS="$xorg_testset_save_CFLAGS"
6520fi
6521
6522found="no"
6523
6524	if test $found = "no" ; then
6525		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6526			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6527		fi
6528
6529		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6530			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6531		fi
6532
6533		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6534
6535		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6536$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6537		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6538		if eval \${$cacheid+:} false; then :
6539  $as_echo_n "(cached) " >&6
6540else
6541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542/* end confdefs.h.  */
6543int i;
6544int
6545main ()
6546{
6547
6548  ;
6549  return 0;
6550}
6551_ACEOF
6552if ac_fn_c_try_link "$LINENO"; then :
6553  eval $cacheid=yes
6554else
6555  eval $cacheid=no
6556fi
6557rm -f core conftest.err conftest.$ac_objext \
6558    conftest$ac_exeext conftest.$ac_ext
6559fi
6560
6561
6562		CFLAGS="$xorg_testset_save_CFLAGS"
6563
6564		eval supported=\$$cacheid
6565		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6566$as_echo "$supported" >&6; }
6567		if test "$supported" = "yes" ; then
6568			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6569			found="yes"
6570		fi
6571	fi
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587xorg_testset_save_CFLAGS="$CFLAGS"
6588
6589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6590	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6592$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6593if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598int i;
6599_ACEOF
6600if ac_fn_c_try_compile "$LINENO"; then :
6601  xorg_cv_cc_flag_unknown_warning_option=yes
6602else
6603  xorg_cv_cc_flag_unknown_warning_option=no
6604fi
6605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606fi
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6608$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6610	CFLAGS="$xorg_testset_save_CFLAGS"
6611fi
6612
6613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6616	fi
6617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6619$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6620if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6621  $as_echo_n "(cached) " >&6
6622else
6623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h.  */
6625int i;
6626_ACEOF
6627if ac_fn_c_try_compile "$LINENO"; then :
6628  xorg_cv_cc_flag_unused_command_line_argument=yes
6629else
6630  xorg_cv_cc_flag_unused_command_line_argument=no
6631fi
6632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633fi
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6635$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6636	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6637	CFLAGS="$xorg_testset_save_CFLAGS"
6638fi
6639
6640found="no"
6641
6642	if test $found = "no" ; then
6643		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6645		fi
6646
6647		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6649		fi
6650
6651		CFLAGS="$CFLAGS -Wredundant-decls"
6652
6653		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6654$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6655		cacheid=xorg_cv_cc_flag__Wredundant_decls
6656		if eval \${$cacheid+:} false; then :
6657  $as_echo_n "(cached) " >&6
6658else
6659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660/* end confdefs.h.  */
6661int i;
6662int
6663main ()
6664{
6665
6666  ;
6667  return 0;
6668}
6669_ACEOF
6670if ac_fn_c_try_link "$LINENO"; then :
6671  eval $cacheid=yes
6672else
6673  eval $cacheid=no
6674fi
6675rm -f core conftest.err conftest.$ac_objext \
6676    conftest$ac_exeext conftest.$ac_ext
6677fi
6678
6679
6680		CFLAGS="$xorg_testset_save_CFLAGS"
6681
6682		eval supported=\$$cacheid
6683		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6684$as_echo "$supported" >&6; }
6685		if test "$supported" = "yes" ; then
6686			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6687			found="yes"
6688		fi
6689	fi
6690
6691
6692
6693# These are currently disabled because they are noisy.  They will be enabled
6694# in the future once the codebase is sufficiently modernized to silence
6695# them.  For now, I don't want them to drown out the other warnings.
6696# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6697# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6698# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6699
6700# Turn some warnings into errors, so we don't accidently get successful builds
6701# when there are problems that should be fixed.
6702
6703if test "x$SELECTIVE_WERROR" = "xyes" ; then
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717xorg_testset_save_CFLAGS="$CFLAGS"
6718
6719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6724  $as_echo_n "(cached) " >&6
6725else
6726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727/* end confdefs.h.  */
6728int i;
6729_ACEOF
6730if ac_fn_c_try_compile "$LINENO"; then :
6731  xorg_cv_cc_flag_unknown_warning_option=yes
6732else
6733  xorg_cv_cc_flag_unknown_warning_option=no
6734fi
6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736fi
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6739	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6740	CFLAGS="$xorg_testset_save_CFLAGS"
6741fi
6742
6743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6744	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746	fi
6747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756_ACEOF
6757if ac_fn_c_try_compile "$LINENO"; then :
6758  xorg_cv_cc_flag_unused_command_line_argument=yes
6759else
6760  xorg_cv_cc_flag_unused_command_line_argument=no
6761fi
6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763fi
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6766	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6767	CFLAGS="$xorg_testset_save_CFLAGS"
6768fi
6769
6770found="no"
6771
6772	if test $found = "no" ; then
6773		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6774			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6775		fi
6776
6777		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6778			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6779		fi
6780
6781		CFLAGS="$CFLAGS -Werror=implicit"
6782
6783		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6784$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6785		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6786		if eval \${$cacheid+:} false; then :
6787  $as_echo_n "(cached) " >&6
6788else
6789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790/* end confdefs.h.  */
6791int i;
6792int
6793main ()
6794{
6795
6796  ;
6797  return 0;
6798}
6799_ACEOF
6800if ac_fn_c_try_link "$LINENO"; then :
6801  eval $cacheid=yes
6802else
6803  eval $cacheid=no
6804fi
6805rm -f core conftest.err conftest.$ac_objext \
6806    conftest$ac_exeext conftest.$ac_ext
6807fi
6808
6809
6810		CFLAGS="$xorg_testset_save_CFLAGS"
6811
6812		eval supported=\$$cacheid
6813		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6814$as_echo "$supported" >&6; }
6815		if test "$supported" = "yes" ; then
6816			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6817			found="yes"
6818		fi
6819	fi
6820
6821	if test $found = "no" ; then
6822		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6824		fi
6825
6826		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6828		fi
6829
6830		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6831
6832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6833$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6834		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6835		if eval \${$cacheid+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839/* end confdefs.h.  */
6840int i;
6841int
6842main ()
6843{
6844
6845  ;
6846  return 0;
6847}
6848_ACEOF
6849if ac_fn_c_try_link "$LINENO"; then :
6850  eval $cacheid=yes
6851else
6852  eval $cacheid=no
6853fi
6854rm -f core conftest.err conftest.$ac_objext \
6855    conftest$ac_exeext conftest.$ac_ext
6856fi
6857
6858
6859		CFLAGS="$xorg_testset_save_CFLAGS"
6860
6861		eval supported=\$$cacheid
6862		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6863$as_echo "$supported" >&6; }
6864		if test "$supported" = "yes" ; then
6865			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6866			found="yes"
6867		fi
6868	fi
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884xorg_testset_save_CFLAGS="$CFLAGS"
6885
6886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6891  $as_echo_n "(cached) " >&6
6892else
6893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895int i;
6896_ACEOF
6897if ac_fn_c_try_compile "$LINENO"; then :
6898  xorg_cv_cc_flag_unknown_warning_option=yes
6899else
6900  xorg_cv_cc_flag_unknown_warning_option=no
6901fi
6902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903fi
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6907	CFLAGS="$xorg_testset_save_CFLAGS"
6908fi
6909
6910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6913	fi
6914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h.  */
6922int i;
6923_ACEOF
6924if ac_fn_c_try_compile "$LINENO"; then :
6925  xorg_cv_cc_flag_unused_command_line_argument=yes
6926else
6927  xorg_cv_cc_flag_unused_command_line_argument=no
6928fi
6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930fi
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6934	CFLAGS="$xorg_testset_save_CFLAGS"
6935fi
6936
6937found="no"
6938
6939	if test $found = "no" ; then
6940		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6942		fi
6943
6944		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6946		fi
6947
6948		CFLAGS="$CFLAGS -Werror=nonnull"
6949
6950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6951$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6952		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6953		if eval \${$cacheid+:} false; then :
6954  $as_echo_n "(cached) " >&6
6955else
6956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957/* end confdefs.h.  */
6958int i;
6959int
6960main ()
6961{
6962
6963  ;
6964  return 0;
6965}
6966_ACEOF
6967if ac_fn_c_try_link "$LINENO"; then :
6968  eval $cacheid=yes
6969else
6970  eval $cacheid=no
6971fi
6972rm -f core conftest.err conftest.$ac_objext \
6973    conftest$ac_exeext conftest.$ac_ext
6974fi
6975
6976
6977		CFLAGS="$xorg_testset_save_CFLAGS"
6978
6979		eval supported=\$$cacheid
6980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6981$as_echo "$supported" >&6; }
6982		if test "$supported" = "yes" ; then
6983			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6984			found="yes"
6985		fi
6986	fi
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002xorg_testset_save_CFLAGS="$CFLAGS"
7003
7004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7009  $as_echo_n "(cached) " >&6
7010else
7011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012/* end confdefs.h.  */
7013int i;
7014_ACEOF
7015if ac_fn_c_try_compile "$LINENO"; then :
7016  xorg_cv_cc_flag_unknown_warning_option=yes
7017else
7018  xorg_cv_cc_flag_unknown_warning_option=no
7019fi
7020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021fi
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7025	CFLAGS="$xorg_testset_save_CFLAGS"
7026fi
7027
7028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7031	fi
7032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7036  $as_echo_n "(cached) " >&6
7037else
7038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039/* end confdefs.h.  */
7040int i;
7041_ACEOF
7042if ac_fn_c_try_compile "$LINENO"; then :
7043  xorg_cv_cc_flag_unused_command_line_argument=yes
7044else
7045  xorg_cv_cc_flag_unused_command_line_argument=no
7046fi
7047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048fi
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7051	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7052	CFLAGS="$xorg_testset_save_CFLAGS"
7053fi
7054
7055found="no"
7056
7057	if test $found = "no" ; then
7058		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7060		fi
7061
7062		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7064		fi
7065
7066		CFLAGS="$CFLAGS -Werror=init-self"
7067
7068		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7069$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7070		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7071		if eval \${$cacheid+:} false; then :
7072  $as_echo_n "(cached) " >&6
7073else
7074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075/* end confdefs.h.  */
7076int i;
7077int
7078main ()
7079{
7080
7081  ;
7082  return 0;
7083}
7084_ACEOF
7085if ac_fn_c_try_link "$LINENO"; then :
7086  eval $cacheid=yes
7087else
7088  eval $cacheid=no
7089fi
7090rm -f core conftest.err conftest.$ac_objext \
7091    conftest$ac_exeext conftest.$ac_ext
7092fi
7093
7094
7095		CFLAGS="$xorg_testset_save_CFLAGS"
7096
7097		eval supported=\$$cacheid
7098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7099$as_echo "$supported" >&6; }
7100		if test "$supported" = "yes" ; then
7101			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7102			found="yes"
7103		fi
7104	fi
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120xorg_testset_save_CFLAGS="$CFLAGS"
7121
7122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130/* end confdefs.h.  */
7131int i;
7132_ACEOF
7133if ac_fn_c_try_compile "$LINENO"; then :
7134  xorg_cv_cc_flag_unknown_warning_option=yes
7135else
7136  xorg_cv_cc_flag_unknown_warning_option=no
7137fi
7138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139fi
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7143	CFLAGS="$xorg_testset_save_CFLAGS"
7144fi
7145
7146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7149	fi
7150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7154  $as_echo_n "(cached) " >&6
7155else
7156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157/* end confdefs.h.  */
7158int i;
7159_ACEOF
7160if ac_fn_c_try_compile "$LINENO"; then :
7161  xorg_cv_cc_flag_unused_command_line_argument=yes
7162else
7163  xorg_cv_cc_flag_unused_command_line_argument=no
7164fi
7165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166fi
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7169	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7170	CFLAGS="$xorg_testset_save_CFLAGS"
7171fi
7172
7173found="no"
7174
7175	if test $found = "no" ; then
7176		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7178		fi
7179
7180		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7182		fi
7183
7184		CFLAGS="$CFLAGS -Werror=main"
7185
7186		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7187$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7188		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7189		if eval \${$cacheid+:} false; then :
7190  $as_echo_n "(cached) " >&6
7191else
7192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193/* end confdefs.h.  */
7194int i;
7195int
7196main ()
7197{
7198
7199  ;
7200  return 0;
7201}
7202_ACEOF
7203if ac_fn_c_try_link "$LINENO"; then :
7204  eval $cacheid=yes
7205else
7206  eval $cacheid=no
7207fi
7208rm -f core conftest.err conftest.$ac_objext \
7209    conftest$ac_exeext conftest.$ac_ext
7210fi
7211
7212
7213		CFLAGS="$xorg_testset_save_CFLAGS"
7214
7215		eval supported=\$$cacheid
7216		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7217$as_echo "$supported" >&6; }
7218		if test "$supported" = "yes" ; then
7219			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7220			found="yes"
7221		fi
7222	fi
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238xorg_testset_save_CFLAGS="$CFLAGS"
7239
7240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7245  $as_echo_n "(cached) " >&6
7246else
7247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249int i;
7250_ACEOF
7251if ac_fn_c_try_compile "$LINENO"; then :
7252  xorg_cv_cc_flag_unknown_warning_option=yes
7253else
7254  xorg_cv_cc_flag_unknown_warning_option=no
7255fi
7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257fi
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7261	CFLAGS="$xorg_testset_save_CFLAGS"
7262fi
7263
7264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7267	fi
7268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7272  $as_echo_n "(cached) " >&6
7273else
7274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275/* end confdefs.h.  */
7276int i;
7277_ACEOF
7278if ac_fn_c_try_compile "$LINENO"; then :
7279  xorg_cv_cc_flag_unused_command_line_argument=yes
7280else
7281  xorg_cv_cc_flag_unused_command_line_argument=no
7282fi
7283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284fi
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7287	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7288	CFLAGS="$xorg_testset_save_CFLAGS"
7289fi
7290
7291found="no"
7292
7293	if test $found = "no" ; then
7294		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7296		fi
7297
7298		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7300		fi
7301
7302		CFLAGS="$CFLAGS -Werror=missing-braces"
7303
7304		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7305$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7306		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7307		if eval \${$cacheid+:} false; then :
7308  $as_echo_n "(cached) " >&6
7309else
7310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h.  */
7312int i;
7313int
7314main ()
7315{
7316
7317  ;
7318  return 0;
7319}
7320_ACEOF
7321if ac_fn_c_try_link "$LINENO"; then :
7322  eval $cacheid=yes
7323else
7324  eval $cacheid=no
7325fi
7326rm -f core conftest.err conftest.$ac_objext \
7327    conftest$ac_exeext conftest.$ac_ext
7328fi
7329
7330
7331		CFLAGS="$xorg_testset_save_CFLAGS"
7332
7333		eval supported=\$$cacheid
7334		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7335$as_echo "$supported" >&6; }
7336		if test "$supported" = "yes" ; then
7337			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7338			found="yes"
7339		fi
7340	fi
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356xorg_testset_save_CFLAGS="$CFLAGS"
7357
7358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h.  */
7367int i;
7368_ACEOF
7369if ac_fn_c_try_compile "$LINENO"; then :
7370  xorg_cv_cc_flag_unknown_warning_option=yes
7371else
7372  xorg_cv_cc_flag_unknown_warning_option=no
7373fi
7374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375fi
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7379	CFLAGS="$xorg_testset_save_CFLAGS"
7380fi
7381
7382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7385	fi
7386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7390  $as_echo_n "(cached) " >&6
7391else
7392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393/* end confdefs.h.  */
7394int i;
7395_ACEOF
7396if ac_fn_c_try_compile "$LINENO"; then :
7397  xorg_cv_cc_flag_unused_command_line_argument=yes
7398else
7399  xorg_cv_cc_flag_unused_command_line_argument=no
7400fi
7401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402fi
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7406	CFLAGS="$xorg_testset_save_CFLAGS"
7407fi
7408
7409found="no"
7410
7411	if test $found = "no" ; then
7412		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7414		fi
7415
7416		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7418		fi
7419
7420		CFLAGS="$CFLAGS -Werror=sequence-point"
7421
7422		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7423$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7424		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7425		if eval \${$cacheid+:} false; then :
7426  $as_echo_n "(cached) " >&6
7427else
7428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h.  */
7430int i;
7431int
7432main ()
7433{
7434
7435  ;
7436  return 0;
7437}
7438_ACEOF
7439if ac_fn_c_try_link "$LINENO"; then :
7440  eval $cacheid=yes
7441else
7442  eval $cacheid=no
7443fi
7444rm -f core conftest.err conftest.$ac_objext \
7445    conftest$ac_exeext conftest.$ac_ext
7446fi
7447
7448
7449		CFLAGS="$xorg_testset_save_CFLAGS"
7450
7451		eval supported=\$$cacheid
7452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7453$as_echo "$supported" >&6; }
7454		if test "$supported" = "yes" ; then
7455			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7456			found="yes"
7457		fi
7458	fi
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474xorg_testset_save_CFLAGS="$CFLAGS"
7475
7476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7477	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7479$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7480if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7481  $as_echo_n "(cached) " >&6
7482else
7483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484/* end confdefs.h.  */
7485int i;
7486_ACEOF
7487if ac_fn_c_try_compile "$LINENO"; then :
7488  xorg_cv_cc_flag_unknown_warning_option=yes
7489else
7490  xorg_cv_cc_flag_unknown_warning_option=no
7491fi
7492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493fi
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7495$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7496	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7497	CFLAGS="$xorg_testset_save_CFLAGS"
7498fi
7499
7500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7501	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7502		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7503	fi
7504	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7506$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7507if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7508  $as_echo_n "(cached) " >&6
7509else
7510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511/* end confdefs.h.  */
7512int i;
7513_ACEOF
7514if ac_fn_c_try_compile "$LINENO"; then :
7515  xorg_cv_cc_flag_unused_command_line_argument=yes
7516else
7517  xorg_cv_cc_flag_unused_command_line_argument=no
7518fi
7519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520fi
7521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7522$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7524	CFLAGS="$xorg_testset_save_CFLAGS"
7525fi
7526
7527found="no"
7528
7529	if test $found = "no" ; then
7530		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532		fi
7533
7534		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7536		fi
7537
7538		CFLAGS="$CFLAGS -Werror=return-type"
7539
7540		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7541$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7542		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7543		if eval \${$cacheid+:} false; then :
7544  $as_echo_n "(cached) " >&6
7545else
7546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547/* end confdefs.h.  */
7548int i;
7549int
7550main ()
7551{
7552
7553  ;
7554  return 0;
7555}
7556_ACEOF
7557if ac_fn_c_try_link "$LINENO"; then :
7558  eval $cacheid=yes
7559else
7560  eval $cacheid=no
7561fi
7562rm -f core conftest.err conftest.$ac_objext \
7563    conftest$ac_exeext conftest.$ac_ext
7564fi
7565
7566
7567		CFLAGS="$xorg_testset_save_CFLAGS"
7568
7569		eval supported=\$$cacheid
7570		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7571$as_echo "$supported" >&6; }
7572		if test "$supported" = "yes" ; then
7573			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7574			found="yes"
7575		fi
7576	fi
7577
7578	if test $found = "no" ; then
7579		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7581		fi
7582
7583		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7585		fi
7586
7587		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7588
7589		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7590$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7591		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7592		if eval \${$cacheid+:} false; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597int i;
7598int
7599main ()
7600{
7601
7602  ;
7603  return 0;
7604}
7605_ACEOF
7606if ac_fn_c_try_link "$LINENO"; then :
7607  eval $cacheid=yes
7608else
7609  eval $cacheid=no
7610fi
7611rm -f core conftest.err conftest.$ac_objext \
7612    conftest$ac_exeext conftest.$ac_ext
7613fi
7614
7615
7616		CFLAGS="$xorg_testset_save_CFLAGS"
7617
7618		eval supported=\$$cacheid
7619		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7620$as_echo "$supported" >&6; }
7621		if test "$supported" = "yes" ; then
7622			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7623			found="yes"
7624		fi
7625	fi
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641xorg_testset_save_CFLAGS="$CFLAGS"
7642
7643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7644	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7648  $as_echo_n "(cached) " >&6
7649else
7650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h.  */
7652int i;
7653_ACEOF
7654if ac_fn_c_try_compile "$LINENO"; then :
7655  xorg_cv_cc_flag_unknown_warning_option=yes
7656else
7657  xorg_cv_cc_flag_unknown_warning_option=no
7658fi
7659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660fi
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7663	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7664	CFLAGS="$xorg_testset_save_CFLAGS"
7665fi
7666
7667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7668	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7669		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7670	fi
7671	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7675  $as_echo_n "(cached) " >&6
7676else
7677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h.  */
7679int i;
7680_ACEOF
7681if ac_fn_c_try_compile "$LINENO"; then :
7682  xorg_cv_cc_flag_unused_command_line_argument=yes
7683else
7684  xorg_cv_cc_flag_unused_command_line_argument=no
7685fi
7686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687fi
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7690	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7691	CFLAGS="$xorg_testset_save_CFLAGS"
7692fi
7693
7694found="no"
7695
7696	if test $found = "no" ; then
7697		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7698			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7699		fi
7700
7701		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7702			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7703		fi
7704
7705		CFLAGS="$CFLAGS -Werror=trigraphs"
7706
7707		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7708$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7709		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7710		if eval \${$cacheid+:} false; then :
7711  $as_echo_n "(cached) " >&6
7712else
7713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714/* end confdefs.h.  */
7715int i;
7716int
7717main ()
7718{
7719
7720  ;
7721  return 0;
7722}
7723_ACEOF
7724if ac_fn_c_try_link "$LINENO"; then :
7725  eval $cacheid=yes
7726else
7727  eval $cacheid=no
7728fi
7729rm -f core conftest.err conftest.$ac_objext \
7730    conftest$ac_exeext conftest.$ac_ext
7731fi
7732
7733
7734		CFLAGS="$xorg_testset_save_CFLAGS"
7735
7736		eval supported=\$$cacheid
7737		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7738$as_echo "$supported" >&6; }
7739		if test "$supported" = "yes" ; then
7740			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7741			found="yes"
7742		fi
7743	fi
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759xorg_testset_save_CFLAGS="$CFLAGS"
7760
7761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7762	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769/* end confdefs.h.  */
7770int i;
7771_ACEOF
7772if ac_fn_c_try_compile "$LINENO"; then :
7773  xorg_cv_cc_flag_unknown_warning_option=yes
7774else
7775  xorg_cv_cc_flag_unknown_warning_option=no
7776fi
7777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778fi
7779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7781	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7782	CFLAGS="$xorg_testset_save_CFLAGS"
7783fi
7784
7785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7786	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7787		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788	fi
7789	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h.  */
7797int i;
7798_ACEOF
7799if ac_fn_c_try_compile "$LINENO"; then :
7800  xorg_cv_cc_flag_unused_command_line_argument=yes
7801else
7802  xorg_cv_cc_flag_unused_command_line_argument=no
7803fi
7804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7808	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7809	CFLAGS="$xorg_testset_save_CFLAGS"
7810fi
7811
7812found="no"
7813
7814	if test $found = "no" ; then
7815		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7816			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7817		fi
7818
7819		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7820			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7821		fi
7822
7823		CFLAGS="$CFLAGS -Werror=array-bounds"
7824
7825		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7826$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7827		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7828		if eval \${$cacheid+:} false; then :
7829  $as_echo_n "(cached) " >&6
7830else
7831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832/* end confdefs.h.  */
7833int i;
7834int
7835main ()
7836{
7837
7838  ;
7839  return 0;
7840}
7841_ACEOF
7842if ac_fn_c_try_link "$LINENO"; then :
7843  eval $cacheid=yes
7844else
7845  eval $cacheid=no
7846fi
7847rm -f core conftest.err conftest.$ac_objext \
7848    conftest$ac_exeext conftest.$ac_ext
7849fi
7850
7851
7852		CFLAGS="$xorg_testset_save_CFLAGS"
7853
7854		eval supported=\$$cacheid
7855		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7856$as_echo "$supported" >&6; }
7857		if test "$supported" = "yes" ; then
7858			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7859			found="yes"
7860		fi
7861	fi
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877xorg_testset_save_CFLAGS="$CFLAGS"
7878
7879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7884  $as_echo_n "(cached) " >&6
7885else
7886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887/* end confdefs.h.  */
7888int i;
7889_ACEOF
7890if ac_fn_c_try_compile "$LINENO"; then :
7891  xorg_cv_cc_flag_unknown_warning_option=yes
7892else
7893  xorg_cv_cc_flag_unknown_warning_option=no
7894fi
7895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896fi
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7899	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7900	CFLAGS="$xorg_testset_save_CFLAGS"
7901fi
7902
7903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7904	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7905		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7906	fi
7907	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7911  $as_echo_n "(cached) " >&6
7912else
7913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h.  */
7915int i;
7916_ACEOF
7917if ac_fn_c_try_compile "$LINENO"; then :
7918  xorg_cv_cc_flag_unused_command_line_argument=yes
7919else
7920  xorg_cv_cc_flag_unused_command_line_argument=no
7921fi
7922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7927	CFLAGS="$xorg_testset_save_CFLAGS"
7928fi
7929
7930found="no"
7931
7932	if test $found = "no" ; then
7933		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7935		fi
7936
7937		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7939		fi
7940
7941		CFLAGS="$CFLAGS -Werror=write-strings"
7942
7943		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7944$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7945		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7946		if eval \${$cacheid+:} false; then :
7947  $as_echo_n "(cached) " >&6
7948else
7949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950/* end confdefs.h.  */
7951int i;
7952int
7953main ()
7954{
7955
7956  ;
7957  return 0;
7958}
7959_ACEOF
7960if ac_fn_c_try_link "$LINENO"; then :
7961  eval $cacheid=yes
7962else
7963  eval $cacheid=no
7964fi
7965rm -f core conftest.err conftest.$ac_objext \
7966    conftest$ac_exeext conftest.$ac_ext
7967fi
7968
7969
7970		CFLAGS="$xorg_testset_save_CFLAGS"
7971
7972		eval supported=\$$cacheid
7973		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7974$as_echo "$supported" >&6; }
7975		if test "$supported" = "yes" ; then
7976			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7977			found="yes"
7978		fi
7979	fi
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995xorg_testset_save_CFLAGS="$CFLAGS"
7996
7997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8002  $as_echo_n "(cached) " >&6
8003else
8004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h.  */
8006int i;
8007_ACEOF
8008if ac_fn_c_try_compile "$LINENO"; then :
8009  xorg_cv_cc_flag_unknown_warning_option=yes
8010else
8011  xorg_cv_cc_flag_unknown_warning_option=no
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014fi
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8018	CFLAGS="$xorg_testset_save_CFLAGS"
8019fi
8020
8021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8024	fi
8025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8029  $as_echo_n "(cached) " >&6
8030else
8031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032/* end confdefs.h.  */
8033int i;
8034_ACEOF
8035if ac_fn_c_try_compile "$LINENO"; then :
8036  xorg_cv_cc_flag_unused_command_line_argument=yes
8037else
8038  xorg_cv_cc_flag_unused_command_line_argument=no
8039fi
8040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041fi
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8045	CFLAGS="$xorg_testset_save_CFLAGS"
8046fi
8047
8048found="no"
8049
8050	if test $found = "no" ; then
8051		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8053		fi
8054
8055		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8057		fi
8058
8059		CFLAGS="$CFLAGS -Werror=address"
8060
8061		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8062$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8063		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8064		if eval \${$cacheid+:} false; then :
8065  $as_echo_n "(cached) " >&6
8066else
8067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068/* end confdefs.h.  */
8069int i;
8070int
8071main ()
8072{
8073
8074  ;
8075  return 0;
8076}
8077_ACEOF
8078if ac_fn_c_try_link "$LINENO"; then :
8079  eval $cacheid=yes
8080else
8081  eval $cacheid=no
8082fi
8083rm -f core conftest.err conftest.$ac_objext \
8084    conftest$ac_exeext conftest.$ac_ext
8085fi
8086
8087
8088		CFLAGS="$xorg_testset_save_CFLAGS"
8089
8090		eval supported=\$$cacheid
8091		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8092$as_echo "$supported" >&6; }
8093		if test "$supported" = "yes" ; then
8094			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8095			found="yes"
8096		fi
8097	fi
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113xorg_testset_save_CFLAGS="$CFLAGS"
8114
8115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8120  $as_echo_n "(cached) " >&6
8121else
8122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h.  */
8124int i;
8125_ACEOF
8126if ac_fn_c_try_compile "$LINENO"; then :
8127  xorg_cv_cc_flag_unknown_warning_option=yes
8128else
8129  xorg_cv_cc_flag_unknown_warning_option=no
8130fi
8131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132fi
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8135	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8136	CFLAGS="$xorg_testset_save_CFLAGS"
8137fi
8138
8139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8140	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8141		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8142	fi
8143	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8147  $as_echo_n "(cached) " >&6
8148else
8149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150/* end confdefs.h.  */
8151int i;
8152_ACEOF
8153if ac_fn_c_try_compile "$LINENO"; then :
8154  xorg_cv_cc_flag_unused_command_line_argument=yes
8155else
8156  xorg_cv_cc_flag_unused_command_line_argument=no
8157fi
8158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159fi
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8163	CFLAGS="$xorg_testset_save_CFLAGS"
8164fi
8165
8166found="no"
8167
8168	if test $found = "no" ; then
8169		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8171		fi
8172
8173		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8175		fi
8176
8177		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8178
8179		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8180$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8181		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8182		if eval \${$cacheid+:} false; then :
8183  $as_echo_n "(cached) " >&6
8184else
8185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186/* end confdefs.h.  */
8187int i;
8188int
8189main ()
8190{
8191
8192  ;
8193  return 0;
8194}
8195_ACEOF
8196if ac_fn_c_try_link "$LINENO"; then :
8197  eval $cacheid=yes
8198else
8199  eval $cacheid=no
8200fi
8201rm -f core conftest.err conftest.$ac_objext \
8202    conftest$ac_exeext conftest.$ac_ext
8203fi
8204
8205
8206		CFLAGS="$xorg_testset_save_CFLAGS"
8207
8208		eval supported=\$$cacheid
8209		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8210$as_echo "$supported" >&6; }
8211		if test "$supported" = "yes" ; then
8212			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8213			found="yes"
8214		fi
8215	fi
8216
8217	if test $found = "no" ; then
8218		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8220		fi
8221
8222		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8224		fi
8225
8226		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8227
8228		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8229$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8230		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8231		if eval \${$cacheid+:} false; then :
8232  $as_echo_n "(cached) " >&6
8233else
8234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235/* end confdefs.h.  */
8236int i;
8237int
8238main ()
8239{
8240
8241  ;
8242  return 0;
8243}
8244_ACEOF
8245if ac_fn_c_try_link "$LINENO"; then :
8246  eval $cacheid=yes
8247else
8248  eval $cacheid=no
8249fi
8250rm -f core conftest.err conftest.$ac_objext \
8251    conftest$ac_exeext conftest.$ac_ext
8252fi
8253
8254
8255		CFLAGS="$xorg_testset_save_CFLAGS"
8256
8257		eval supported=\$$cacheid
8258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8259$as_echo "$supported" >&6; }
8260		if test "$supported" = "yes" ; then
8261			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8262			found="yes"
8263		fi
8264	fi
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280xorg_testset_save_CFLAGS="$CFLAGS"
8281
8282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8286if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8287  $as_echo_n "(cached) " >&6
8288else
8289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290/* end confdefs.h.  */
8291int i;
8292_ACEOF
8293if ac_fn_c_try_compile "$LINENO"; then :
8294  xorg_cv_cc_flag_unknown_warning_option=yes
8295else
8296  xorg_cv_cc_flag_unknown_warning_option=no
8297fi
8298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8301$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8302	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8303	CFLAGS="$xorg_testset_save_CFLAGS"
8304fi
8305
8306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8307	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8308		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8309	fi
8310	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8312$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8313if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8314  $as_echo_n "(cached) " >&6
8315else
8316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317/* end confdefs.h.  */
8318int i;
8319_ACEOF
8320if ac_fn_c_try_compile "$LINENO"; then :
8321  xorg_cv_cc_flag_unused_command_line_argument=yes
8322else
8323  xorg_cv_cc_flag_unused_command_line_argument=no
8324fi
8325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326fi
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8328$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8329	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8330	CFLAGS="$xorg_testset_save_CFLAGS"
8331fi
8332
8333found="no"
8334
8335	if test $found = "no" ; then
8336		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8337			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8338		fi
8339
8340		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8341			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8342		fi
8343
8344		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8345
8346		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8347$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8348		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8349		if eval \${$cacheid+:} false; then :
8350  $as_echo_n "(cached) " >&6
8351else
8352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353/* end confdefs.h.  */
8354int i;
8355int
8356main ()
8357{
8358
8359  ;
8360  return 0;
8361}
8362_ACEOF
8363if ac_fn_c_try_link "$LINENO"; then :
8364  eval $cacheid=yes
8365else
8366  eval $cacheid=no
8367fi
8368rm -f core conftest.err conftest.$ac_objext \
8369    conftest$ac_exeext conftest.$ac_ext
8370fi
8371
8372
8373		CFLAGS="$xorg_testset_save_CFLAGS"
8374
8375		eval supported=\$$cacheid
8376		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8377$as_echo "$supported" >&6; }
8378		if test "$supported" = "yes" ; then
8379			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8380			found="yes"
8381		fi
8382	fi
8383
8384 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8385else
8386{ $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
8387$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;}
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401xorg_testset_save_CFLAGS="$CFLAGS"
8402
8403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8404	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8408  $as_echo_n "(cached) " >&6
8409else
8410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411/* end confdefs.h.  */
8412int i;
8413_ACEOF
8414if ac_fn_c_try_compile "$LINENO"; then :
8415  xorg_cv_cc_flag_unknown_warning_option=yes
8416else
8417  xorg_cv_cc_flag_unknown_warning_option=no
8418fi
8419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420fi
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8423	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8424	CFLAGS="$xorg_testset_save_CFLAGS"
8425fi
8426
8427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8428	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8429		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8430	fi
8431	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8435  $as_echo_n "(cached) " >&6
8436else
8437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438/* end confdefs.h.  */
8439int i;
8440_ACEOF
8441if ac_fn_c_try_compile "$LINENO"; then :
8442  xorg_cv_cc_flag_unused_command_line_argument=yes
8443else
8444  xorg_cv_cc_flag_unused_command_line_argument=no
8445fi
8446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447fi
8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8451	CFLAGS="$xorg_testset_save_CFLAGS"
8452fi
8453
8454found="no"
8455
8456	if test $found = "no" ; then
8457		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8459		fi
8460
8461		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8463		fi
8464
8465		CFLAGS="$CFLAGS -Wimplicit"
8466
8467		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8468$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8469		cacheid=xorg_cv_cc_flag__Wimplicit
8470		if eval \${$cacheid+:} false; then :
8471  $as_echo_n "(cached) " >&6
8472else
8473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474/* end confdefs.h.  */
8475int i;
8476int
8477main ()
8478{
8479
8480  ;
8481  return 0;
8482}
8483_ACEOF
8484if ac_fn_c_try_link "$LINENO"; then :
8485  eval $cacheid=yes
8486else
8487  eval $cacheid=no
8488fi
8489rm -f core conftest.err conftest.$ac_objext \
8490    conftest$ac_exeext conftest.$ac_ext
8491fi
8492
8493
8494		CFLAGS="$xorg_testset_save_CFLAGS"
8495
8496		eval supported=\$$cacheid
8497		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8498$as_echo "$supported" >&6; }
8499		if test "$supported" = "yes" ; then
8500			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8501			found="yes"
8502		fi
8503	fi
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519xorg_testset_save_CFLAGS="$CFLAGS"
8520
8521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8522	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8524$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8525if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8526  $as_echo_n "(cached) " >&6
8527else
8528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529/* end confdefs.h.  */
8530int i;
8531_ACEOF
8532if ac_fn_c_try_compile "$LINENO"; then :
8533  xorg_cv_cc_flag_unknown_warning_option=yes
8534else
8535  xorg_cv_cc_flag_unknown_warning_option=no
8536fi
8537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8540$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8541	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8542	CFLAGS="$xorg_testset_save_CFLAGS"
8543fi
8544
8545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8546	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8547		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8548	fi
8549	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8551$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8552if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8553  $as_echo_n "(cached) " >&6
8554else
8555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556/* end confdefs.h.  */
8557int i;
8558_ACEOF
8559if ac_fn_c_try_compile "$LINENO"; then :
8560  xorg_cv_cc_flag_unused_command_line_argument=yes
8561else
8562  xorg_cv_cc_flag_unused_command_line_argument=no
8563fi
8564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565fi
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8567$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8568	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8569	CFLAGS="$xorg_testset_save_CFLAGS"
8570fi
8571
8572found="no"
8573
8574	if test $found = "no" ; then
8575		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8576			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8577		fi
8578
8579		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8580			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8581		fi
8582
8583		CFLAGS="$CFLAGS -Wnonnull"
8584
8585		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8586$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8587		cacheid=xorg_cv_cc_flag__Wnonnull
8588		if eval \${$cacheid+:} false; then :
8589  $as_echo_n "(cached) " >&6
8590else
8591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592/* end confdefs.h.  */
8593int i;
8594int
8595main ()
8596{
8597
8598  ;
8599  return 0;
8600}
8601_ACEOF
8602if ac_fn_c_try_link "$LINENO"; then :
8603  eval $cacheid=yes
8604else
8605  eval $cacheid=no
8606fi
8607rm -f core conftest.err conftest.$ac_objext \
8608    conftest$ac_exeext conftest.$ac_ext
8609fi
8610
8611
8612		CFLAGS="$xorg_testset_save_CFLAGS"
8613
8614		eval supported=\$$cacheid
8615		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8616$as_echo "$supported" >&6; }
8617		if test "$supported" = "yes" ; then
8618			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8619			found="yes"
8620		fi
8621	fi
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637xorg_testset_save_CFLAGS="$CFLAGS"
8638
8639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8640	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8642$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8643if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8644  $as_echo_n "(cached) " >&6
8645else
8646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647/* end confdefs.h.  */
8648int i;
8649_ACEOF
8650if ac_fn_c_try_compile "$LINENO"; then :
8651  xorg_cv_cc_flag_unknown_warning_option=yes
8652else
8653  xorg_cv_cc_flag_unknown_warning_option=no
8654fi
8655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656fi
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8658$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8659	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8660	CFLAGS="$xorg_testset_save_CFLAGS"
8661fi
8662
8663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8664	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8665		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8666	fi
8667	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8669$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8670if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8671  $as_echo_n "(cached) " >&6
8672else
8673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674/* end confdefs.h.  */
8675int i;
8676_ACEOF
8677if ac_fn_c_try_compile "$LINENO"; then :
8678  xorg_cv_cc_flag_unused_command_line_argument=yes
8679else
8680  xorg_cv_cc_flag_unused_command_line_argument=no
8681fi
8682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683fi
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8685$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8686	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8687	CFLAGS="$xorg_testset_save_CFLAGS"
8688fi
8689
8690found="no"
8691
8692	if test $found = "no" ; then
8693		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8694			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8695		fi
8696
8697		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8698			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8699		fi
8700
8701		CFLAGS="$CFLAGS -Winit-self"
8702
8703		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8704$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8705		cacheid=xorg_cv_cc_flag__Winit_self
8706		if eval \${$cacheid+:} false; then :
8707  $as_echo_n "(cached) " >&6
8708else
8709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710/* end confdefs.h.  */
8711int i;
8712int
8713main ()
8714{
8715
8716  ;
8717  return 0;
8718}
8719_ACEOF
8720if ac_fn_c_try_link "$LINENO"; then :
8721  eval $cacheid=yes
8722else
8723  eval $cacheid=no
8724fi
8725rm -f core conftest.err conftest.$ac_objext \
8726    conftest$ac_exeext conftest.$ac_ext
8727fi
8728
8729
8730		CFLAGS="$xorg_testset_save_CFLAGS"
8731
8732		eval supported=\$$cacheid
8733		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8734$as_echo "$supported" >&6; }
8735		if test "$supported" = "yes" ; then
8736			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8737			found="yes"
8738		fi
8739	fi
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755xorg_testset_save_CFLAGS="$CFLAGS"
8756
8757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8758	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8760$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8761if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8762  $as_echo_n "(cached) " >&6
8763else
8764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765/* end confdefs.h.  */
8766int i;
8767_ACEOF
8768if ac_fn_c_try_compile "$LINENO"; then :
8769  xorg_cv_cc_flag_unknown_warning_option=yes
8770else
8771  xorg_cv_cc_flag_unknown_warning_option=no
8772fi
8773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774fi
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8776$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8777	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8778	CFLAGS="$xorg_testset_save_CFLAGS"
8779fi
8780
8781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8782	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8783		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8784	fi
8785	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8786	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8787$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8788if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8789  $as_echo_n "(cached) " >&6
8790else
8791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792/* end confdefs.h.  */
8793int i;
8794_ACEOF
8795if ac_fn_c_try_compile "$LINENO"; then :
8796  xorg_cv_cc_flag_unused_command_line_argument=yes
8797else
8798  xorg_cv_cc_flag_unused_command_line_argument=no
8799fi
8800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801fi
8802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8803$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8804	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8805	CFLAGS="$xorg_testset_save_CFLAGS"
8806fi
8807
8808found="no"
8809
8810	if test $found = "no" ; then
8811		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8812			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8813		fi
8814
8815		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8816			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8817		fi
8818
8819		CFLAGS="$CFLAGS -Wmain"
8820
8821		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8822$as_echo_n "checking if $CC supports-Wmain... " >&6; }
8823		cacheid=xorg_cv_cc_flag__Wmain
8824		if eval \${$cacheid+:} false; then :
8825  $as_echo_n "(cached) " >&6
8826else
8827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828/* end confdefs.h.  */
8829int i;
8830int
8831main ()
8832{
8833
8834  ;
8835  return 0;
8836}
8837_ACEOF
8838if ac_fn_c_try_link "$LINENO"; then :
8839  eval $cacheid=yes
8840else
8841  eval $cacheid=no
8842fi
8843rm -f core conftest.err conftest.$ac_objext \
8844    conftest$ac_exeext conftest.$ac_ext
8845fi
8846
8847
8848		CFLAGS="$xorg_testset_save_CFLAGS"
8849
8850		eval supported=\$$cacheid
8851		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8852$as_echo "$supported" >&6; }
8853		if test "$supported" = "yes" ; then
8854			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8855			found="yes"
8856		fi
8857	fi
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873xorg_testset_save_CFLAGS="$CFLAGS"
8874
8875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8878$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8879if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8880  $as_echo_n "(cached) " >&6
8881else
8882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883/* end confdefs.h.  */
8884int i;
8885_ACEOF
8886if ac_fn_c_try_compile "$LINENO"; then :
8887  xorg_cv_cc_flag_unknown_warning_option=yes
8888else
8889  xorg_cv_cc_flag_unknown_warning_option=no
8890fi
8891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892fi
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8894$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8895	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8896	CFLAGS="$xorg_testset_save_CFLAGS"
8897fi
8898
8899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8900	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8901		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8902	fi
8903	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8905$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8906if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8907  $as_echo_n "(cached) " >&6
8908else
8909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910/* end confdefs.h.  */
8911int i;
8912_ACEOF
8913if ac_fn_c_try_compile "$LINENO"; then :
8914  xorg_cv_cc_flag_unused_command_line_argument=yes
8915else
8916  xorg_cv_cc_flag_unused_command_line_argument=no
8917fi
8918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919fi
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8921$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8922	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8923	CFLAGS="$xorg_testset_save_CFLAGS"
8924fi
8925
8926found="no"
8927
8928	if test $found = "no" ; then
8929		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8930			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8931		fi
8932
8933		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8934			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8935		fi
8936
8937		CFLAGS="$CFLAGS -Wmissing-braces"
8938
8939		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8940$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8941		cacheid=xorg_cv_cc_flag__Wmissing_braces
8942		if eval \${$cacheid+:} false; then :
8943  $as_echo_n "(cached) " >&6
8944else
8945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946/* end confdefs.h.  */
8947int i;
8948int
8949main ()
8950{
8951
8952  ;
8953  return 0;
8954}
8955_ACEOF
8956if ac_fn_c_try_link "$LINENO"; then :
8957  eval $cacheid=yes
8958else
8959  eval $cacheid=no
8960fi
8961rm -f core conftest.err conftest.$ac_objext \
8962    conftest$ac_exeext conftest.$ac_ext
8963fi
8964
8965
8966		CFLAGS="$xorg_testset_save_CFLAGS"
8967
8968		eval supported=\$$cacheid
8969		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8970$as_echo "$supported" >&6; }
8971		if test "$supported" = "yes" ; then
8972			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8973			found="yes"
8974		fi
8975	fi
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991xorg_testset_save_CFLAGS="$CFLAGS"
8992
8993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8994	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8998  $as_echo_n "(cached) " >&6
8999else
9000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003_ACEOF
9004if ac_fn_c_try_compile "$LINENO"; then :
9005  xorg_cv_cc_flag_unknown_warning_option=yes
9006else
9007  xorg_cv_cc_flag_unknown_warning_option=no
9008fi
9009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010fi
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9013	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9014	CFLAGS="$xorg_testset_save_CFLAGS"
9015fi
9016
9017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9018	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9019		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9020	fi
9021	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9025  $as_echo_n "(cached) " >&6
9026else
9027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028/* end confdefs.h.  */
9029int i;
9030_ACEOF
9031if ac_fn_c_try_compile "$LINENO"; then :
9032  xorg_cv_cc_flag_unused_command_line_argument=yes
9033else
9034  xorg_cv_cc_flag_unused_command_line_argument=no
9035fi
9036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9037fi
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9040	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9041	CFLAGS="$xorg_testset_save_CFLAGS"
9042fi
9043
9044found="no"
9045
9046	if test $found = "no" ; then
9047		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9049		fi
9050
9051		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9053		fi
9054
9055		CFLAGS="$CFLAGS -Wsequence-point"
9056
9057		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9058$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9059		cacheid=xorg_cv_cc_flag__Wsequence_point
9060		if eval \${$cacheid+:} false; then :
9061  $as_echo_n "(cached) " >&6
9062else
9063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064/* end confdefs.h.  */
9065int i;
9066int
9067main ()
9068{
9069
9070  ;
9071  return 0;
9072}
9073_ACEOF
9074if ac_fn_c_try_link "$LINENO"; then :
9075  eval $cacheid=yes
9076else
9077  eval $cacheid=no
9078fi
9079rm -f core conftest.err conftest.$ac_objext \
9080    conftest$ac_exeext conftest.$ac_ext
9081fi
9082
9083
9084		CFLAGS="$xorg_testset_save_CFLAGS"
9085
9086		eval supported=\$$cacheid
9087		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9088$as_echo "$supported" >&6; }
9089		if test "$supported" = "yes" ; then
9090			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9091			found="yes"
9092		fi
9093	fi
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109xorg_testset_save_CFLAGS="$CFLAGS"
9110
9111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9112	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9114$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9115if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9116  $as_echo_n "(cached) " >&6
9117else
9118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h.  */
9120int i;
9121_ACEOF
9122if ac_fn_c_try_compile "$LINENO"; then :
9123  xorg_cv_cc_flag_unknown_warning_option=yes
9124else
9125  xorg_cv_cc_flag_unknown_warning_option=no
9126fi
9127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128fi
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9130$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9131	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9132	CFLAGS="$xorg_testset_save_CFLAGS"
9133fi
9134
9135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9136	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9137		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9138	fi
9139	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9141$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9142if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9143  $as_echo_n "(cached) " >&6
9144else
9145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146/* end confdefs.h.  */
9147int i;
9148_ACEOF
9149if ac_fn_c_try_compile "$LINENO"; then :
9150  xorg_cv_cc_flag_unused_command_line_argument=yes
9151else
9152  xorg_cv_cc_flag_unused_command_line_argument=no
9153fi
9154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155fi
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9157$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9159	CFLAGS="$xorg_testset_save_CFLAGS"
9160fi
9161
9162found="no"
9163
9164	if test $found = "no" ; then
9165		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9167		fi
9168
9169		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9171		fi
9172
9173		CFLAGS="$CFLAGS -Wreturn-type"
9174
9175		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9176$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9177		cacheid=xorg_cv_cc_flag__Wreturn_type
9178		if eval \${$cacheid+:} false; then :
9179  $as_echo_n "(cached) " >&6
9180else
9181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182/* end confdefs.h.  */
9183int i;
9184int
9185main ()
9186{
9187
9188  ;
9189  return 0;
9190}
9191_ACEOF
9192if ac_fn_c_try_link "$LINENO"; then :
9193  eval $cacheid=yes
9194else
9195  eval $cacheid=no
9196fi
9197rm -f core conftest.err conftest.$ac_objext \
9198    conftest$ac_exeext conftest.$ac_ext
9199fi
9200
9201
9202		CFLAGS="$xorg_testset_save_CFLAGS"
9203
9204		eval supported=\$$cacheid
9205		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9206$as_echo "$supported" >&6; }
9207		if test "$supported" = "yes" ; then
9208			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9209			found="yes"
9210		fi
9211	fi
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227xorg_testset_save_CFLAGS="$CFLAGS"
9228
9229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9232$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9233if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9234  $as_echo_n "(cached) " >&6
9235else
9236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238int i;
9239_ACEOF
9240if ac_fn_c_try_compile "$LINENO"; then :
9241  xorg_cv_cc_flag_unknown_warning_option=yes
9242else
9243  xorg_cv_cc_flag_unknown_warning_option=no
9244fi
9245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246fi
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9248$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9250	CFLAGS="$xorg_testset_save_CFLAGS"
9251fi
9252
9253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9256	fi
9257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9259$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9260if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9261  $as_echo_n "(cached) " >&6
9262else
9263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264/* end confdefs.h.  */
9265int i;
9266_ACEOF
9267if ac_fn_c_try_compile "$LINENO"; then :
9268  xorg_cv_cc_flag_unused_command_line_argument=yes
9269else
9270  xorg_cv_cc_flag_unused_command_line_argument=no
9271fi
9272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273fi
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9275$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9276	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9277	CFLAGS="$xorg_testset_save_CFLAGS"
9278fi
9279
9280found="no"
9281
9282	if test $found = "no" ; then
9283		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9284			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9285		fi
9286
9287		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9288			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9289		fi
9290
9291		CFLAGS="$CFLAGS -Wtrigraphs"
9292
9293		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9294$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9295		cacheid=xorg_cv_cc_flag__Wtrigraphs
9296		if eval \${$cacheid+:} false; then :
9297  $as_echo_n "(cached) " >&6
9298else
9299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300/* end confdefs.h.  */
9301int i;
9302int
9303main ()
9304{
9305
9306  ;
9307  return 0;
9308}
9309_ACEOF
9310if ac_fn_c_try_link "$LINENO"; then :
9311  eval $cacheid=yes
9312else
9313  eval $cacheid=no
9314fi
9315rm -f core conftest.err conftest.$ac_objext \
9316    conftest$ac_exeext conftest.$ac_ext
9317fi
9318
9319
9320		CFLAGS="$xorg_testset_save_CFLAGS"
9321
9322		eval supported=\$$cacheid
9323		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9324$as_echo "$supported" >&6; }
9325		if test "$supported" = "yes" ; then
9326			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9327			found="yes"
9328		fi
9329	fi
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345xorg_testset_save_CFLAGS="$CFLAGS"
9346
9347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9348	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9350$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9351if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9352  $as_echo_n "(cached) " >&6
9353else
9354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355/* end confdefs.h.  */
9356int i;
9357_ACEOF
9358if ac_fn_c_try_compile "$LINENO"; then :
9359  xorg_cv_cc_flag_unknown_warning_option=yes
9360else
9361  xorg_cv_cc_flag_unknown_warning_option=no
9362fi
9363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364fi
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9366$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9367	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9368	CFLAGS="$xorg_testset_save_CFLAGS"
9369fi
9370
9371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9372	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9373		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9374	fi
9375	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9377$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9378if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9379  $as_echo_n "(cached) " >&6
9380else
9381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382/* end confdefs.h.  */
9383int i;
9384_ACEOF
9385if ac_fn_c_try_compile "$LINENO"; then :
9386  xorg_cv_cc_flag_unused_command_line_argument=yes
9387else
9388  xorg_cv_cc_flag_unused_command_line_argument=no
9389fi
9390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391fi
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9393$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9394	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9395	CFLAGS="$xorg_testset_save_CFLAGS"
9396fi
9397
9398found="no"
9399
9400	if test $found = "no" ; then
9401		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9402			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9403		fi
9404
9405		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9406			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9407		fi
9408
9409		CFLAGS="$CFLAGS -Warray-bounds"
9410
9411		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9412$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9413		cacheid=xorg_cv_cc_flag__Warray_bounds
9414		if eval \${$cacheid+:} false; then :
9415  $as_echo_n "(cached) " >&6
9416else
9417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418/* end confdefs.h.  */
9419int i;
9420int
9421main ()
9422{
9423
9424  ;
9425  return 0;
9426}
9427_ACEOF
9428if ac_fn_c_try_link "$LINENO"; then :
9429  eval $cacheid=yes
9430else
9431  eval $cacheid=no
9432fi
9433rm -f core conftest.err conftest.$ac_objext \
9434    conftest$ac_exeext conftest.$ac_ext
9435fi
9436
9437
9438		CFLAGS="$xorg_testset_save_CFLAGS"
9439
9440		eval supported=\$$cacheid
9441		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9442$as_echo "$supported" >&6; }
9443		if test "$supported" = "yes" ; then
9444			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9445			found="yes"
9446		fi
9447	fi
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463xorg_testset_save_CFLAGS="$CFLAGS"
9464
9465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9466	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9468$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9469if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9470  $as_echo_n "(cached) " >&6
9471else
9472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474int i;
9475_ACEOF
9476if ac_fn_c_try_compile "$LINENO"; then :
9477  xorg_cv_cc_flag_unknown_warning_option=yes
9478else
9479  xorg_cv_cc_flag_unknown_warning_option=no
9480fi
9481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9482fi
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9484$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9485	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9486	CFLAGS="$xorg_testset_save_CFLAGS"
9487fi
9488
9489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9490	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9491		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9492	fi
9493	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9496if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9497  $as_echo_n "(cached) " >&6
9498else
9499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500/* end confdefs.h.  */
9501int i;
9502_ACEOF
9503if ac_fn_c_try_compile "$LINENO"; then :
9504  xorg_cv_cc_flag_unused_command_line_argument=yes
9505else
9506  xorg_cv_cc_flag_unused_command_line_argument=no
9507fi
9508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509fi
9510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9511$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9513	CFLAGS="$xorg_testset_save_CFLAGS"
9514fi
9515
9516found="no"
9517
9518	if test $found = "no" ; then
9519		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9521		fi
9522
9523		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9525		fi
9526
9527		CFLAGS="$CFLAGS -Wwrite-strings"
9528
9529		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9530$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9531		cacheid=xorg_cv_cc_flag__Wwrite_strings
9532		if eval \${$cacheid+:} false; then :
9533  $as_echo_n "(cached) " >&6
9534else
9535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536/* end confdefs.h.  */
9537int i;
9538int
9539main ()
9540{
9541
9542  ;
9543  return 0;
9544}
9545_ACEOF
9546if ac_fn_c_try_link "$LINENO"; then :
9547  eval $cacheid=yes
9548else
9549  eval $cacheid=no
9550fi
9551rm -f core conftest.err conftest.$ac_objext \
9552    conftest$ac_exeext conftest.$ac_ext
9553fi
9554
9555
9556		CFLAGS="$xorg_testset_save_CFLAGS"
9557
9558		eval supported=\$$cacheid
9559		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9560$as_echo "$supported" >&6; }
9561		if test "$supported" = "yes" ; then
9562			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9563			found="yes"
9564		fi
9565	fi
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581xorg_testset_save_CFLAGS="$CFLAGS"
9582
9583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9584	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9588  $as_echo_n "(cached) " >&6
9589else
9590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591/* end confdefs.h.  */
9592int i;
9593_ACEOF
9594if ac_fn_c_try_compile "$LINENO"; then :
9595  xorg_cv_cc_flag_unknown_warning_option=yes
9596else
9597  xorg_cv_cc_flag_unknown_warning_option=no
9598fi
9599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600fi
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9604	CFLAGS="$xorg_testset_save_CFLAGS"
9605fi
9606
9607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9610	fi
9611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9615  $as_echo_n "(cached) " >&6
9616else
9617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618/* end confdefs.h.  */
9619int i;
9620_ACEOF
9621if ac_fn_c_try_compile "$LINENO"; then :
9622  xorg_cv_cc_flag_unused_command_line_argument=yes
9623else
9624  xorg_cv_cc_flag_unused_command_line_argument=no
9625fi
9626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9627fi
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9630	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9631	CFLAGS="$xorg_testset_save_CFLAGS"
9632fi
9633
9634found="no"
9635
9636	if test $found = "no" ; then
9637		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9638			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9639		fi
9640
9641		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9642			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643		fi
9644
9645		CFLAGS="$CFLAGS -Waddress"
9646
9647		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9648$as_echo_n "checking if $CC supports-Waddress... " >&6; }
9649		cacheid=xorg_cv_cc_flag__Waddress
9650		if eval \${$cacheid+:} false; then :
9651  $as_echo_n "(cached) " >&6
9652else
9653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h.  */
9655int i;
9656int
9657main ()
9658{
9659
9660  ;
9661  return 0;
9662}
9663_ACEOF
9664if ac_fn_c_try_link "$LINENO"; then :
9665  eval $cacheid=yes
9666else
9667  eval $cacheid=no
9668fi
9669rm -f core conftest.err conftest.$ac_objext \
9670    conftest$ac_exeext conftest.$ac_ext
9671fi
9672
9673
9674		CFLAGS="$xorg_testset_save_CFLAGS"
9675
9676		eval supported=\$$cacheid
9677		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9678$as_echo "$supported" >&6; }
9679		if test "$supported" = "yes" ; then
9680			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9681			found="yes"
9682		fi
9683	fi
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699xorg_testset_save_CFLAGS="$CFLAGS"
9700
9701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9706  $as_echo_n "(cached) " >&6
9707else
9708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709/* end confdefs.h.  */
9710int i;
9711_ACEOF
9712if ac_fn_c_try_compile "$LINENO"; then :
9713  xorg_cv_cc_flag_unknown_warning_option=yes
9714else
9715  xorg_cv_cc_flag_unknown_warning_option=no
9716fi
9717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718fi
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9722	CFLAGS="$xorg_testset_save_CFLAGS"
9723fi
9724
9725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9728	fi
9729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9733  $as_echo_n "(cached) " >&6
9734else
9735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736/* end confdefs.h.  */
9737int i;
9738_ACEOF
9739if ac_fn_c_try_compile "$LINENO"; then :
9740  xorg_cv_cc_flag_unused_command_line_argument=yes
9741else
9742  xorg_cv_cc_flag_unused_command_line_argument=no
9743fi
9744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745fi
9746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9748	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9749	CFLAGS="$xorg_testset_save_CFLAGS"
9750fi
9751
9752found="no"
9753
9754	if test $found = "no" ; then
9755		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9757		fi
9758
9759		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9761		fi
9762
9763		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9764
9765		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9766$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9767		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9768		if eval \${$cacheid+:} false; then :
9769  $as_echo_n "(cached) " >&6
9770else
9771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9772/* end confdefs.h.  */
9773int i;
9774int
9775main ()
9776{
9777
9778  ;
9779  return 0;
9780}
9781_ACEOF
9782if ac_fn_c_try_link "$LINENO"; then :
9783  eval $cacheid=yes
9784else
9785  eval $cacheid=no
9786fi
9787rm -f core conftest.err conftest.$ac_objext \
9788    conftest$ac_exeext conftest.$ac_ext
9789fi
9790
9791
9792		CFLAGS="$xorg_testset_save_CFLAGS"
9793
9794		eval supported=\$$cacheid
9795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9796$as_echo "$supported" >&6; }
9797		if test "$supported" = "yes" ; then
9798			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9799			found="yes"
9800		fi
9801	fi
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817xorg_testset_save_CFLAGS="$CFLAGS"
9818
9819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9824  $as_echo_n "(cached) " >&6
9825else
9826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h.  */
9828int i;
9829_ACEOF
9830if ac_fn_c_try_compile "$LINENO"; then :
9831  xorg_cv_cc_flag_unknown_warning_option=yes
9832else
9833  xorg_cv_cc_flag_unknown_warning_option=no
9834fi
9835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9836fi
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9840	CFLAGS="$xorg_testset_save_CFLAGS"
9841fi
9842
9843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9846	fi
9847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9851  $as_echo_n "(cached) " >&6
9852else
9853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854/* end confdefs.h.  */
9855int i;
9856_ACEOF
9857if ac_fn_c_try_compile "$LINENO"; then :
9858  xorg_cv_cc_flag_unused_command_line_argument=yes
9859else
9860  xorg_cv_cc_flag_unused_command_line_argument=no
9861fi
9862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9863fi
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9867	CFLAGS="$xorg_testset_save_CFLAGS"
9868fi
9869
9870found="no"
9871
9872	if test $found = "no" ; then
9873		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9875		fi
9876
9877		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9879		fi
9880
9881		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9882
9883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9884$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9885		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9886		if eval \${$cacheid+:} false; then :
9887  $as_echo_n "(cached) " >&6
9888else
9889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890/* end confdefs.h.  */
9891int i;
9892int
9893main ()
9894{
9895
9896  ;
9897  return 0;
9898}
9899_ACEOF
9900if ac_fn_c_try_link "$LINENO"; then :
9901  eval $cacheid=yes
9902else
9903  eval $cacheid=no
9904fi
9905rm -f core conftest.err conftest.$ac_objext \
9906    conftest$ac_exeext conftest.$ac_ext
9907fi
9908
9909
9910		CFLAGS="$xorg_testset_save_CFLAGS"
9911
9912		eval supported=\$$cacheid
9913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9914$as_echo "$supported" >&6; }
9915		if test "$supported" = "yes" ; then
9916			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9917			found="yes"
9918		fi
9919	fi
9920
9921
9922fi
9923
9924
9925
9926
9927
9928
9929
9930		CWARNFLAGS="$BASE_CFLAGS"
9931		if  test "x$GCC" = xyes ; then
9932		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9933		fi
9934
9935
9936
9937
9938
9939
9940
9941
9942# Check whether --enable-strict-compilation was given.
9943if test "${enable_strict_compilation+set}" = set; then :
9944  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9945else
9946  STRICT_COMPILE=no
9947fi
9948
9949
9950
9951
9952
9953
9954STRICT_CFLAGS=""
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968xorg_testset_save_CFLAGS="$CFLAGS"
9969
9970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9971	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9975  $as_echo_n "(cached) " >&6
9976else
9977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h.  */
9979int i;
9980_ACEOF
9981if ac_fn_c_try_compile "$LINENO"; then :
9982  xorg_cv_cc_flag_unknown_warning_option=yes
9983else
9984  xorg_cv_cc_flag_unknown_warning_option=no
9985fi
9986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987fi
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9991	CFLAGS="$xorg_testset_save_CFLAGS"
9992fi
9993
9994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9997	fi
9998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10002  $as_echo_n "(cached) " >&6
10003else
10004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005/* end confdefs.h.  */
10006int i;
10007_ACEOF
10008if ac_fn_c_try_compile "$LINENO"; then :
10009  xorg_cv_cc_flag_unused_command_line_argument=yes
10010else
10011  xorg_cv_cc_flag_unused_command_line_argument=no
10012fi
10013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014fi
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10017	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10018	CFLAGS="$xorg_testset_save_CFLAGS"
10019fi
10020
10021found="no"
10022
10023	if test $found = "no" ; then
10024		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10025			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10026		fi
10027
10028		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10029			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10030		fi
10031
10032		CFLAGS="$CFLAGS -pedantic"
10033
10034		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10035$as_echo_n "checking if $CC supports-pedantic... " >&6; }
10036		cacheid=xorg_cv_cc_flag__pedantic
10037		if eval \${$cacheid+:} false; then :
10038  $as_echo_n "(cached) " >&6
10039else
10040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h.  */
10042int i;
10043int
10044main ()
10045{
10046
10047  ;
10048  return 0;
10049}
10050_ACEOF
10051if ac_fn_c_try_link "$LINENO"; then :
10052  eval $cacheid=yes
10053else
10054  eval $cacheid=no
10055fi
10056rm -f core conftest.err conftest.$ac_objext \
10057    conftest$ac_exeext conftest.$ac_ext
10058fi
10059
10060
10061		CFLAGS="$xorg_testset_save_CFLAGS"
10062
10063		eval supported=\$$cacheid
10064		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10065$as_echo "$supported" >&6; }
10066		if test "$supported" = "yes" ; then
10067			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10068			found="yes"
10069		fi
10070	fi
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086xorg_testset_save_CFLAGS="$CFLAGS"
10087
10088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10091$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10092if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10093  $as_echo_n "(cached) " >&6
10094else
10095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096/* end confdefs.h.  */
10097int i;
10098_ACEOF
10099if ac_fn_c_try_compile "$LINENO"; then :
10100  xorg_cv_cc_flag_unknown_warning_option=yes
10101else
10102  xorg_cv_cc_flag_unknown_warning_option=no
10103fi
10104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105fi
10106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10107$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10108	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10109	CFLAGS="$xorg_testset_save_CFLAGS"
10110fi
10111
10112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10113	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10114		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10115	fi
10116	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10118$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10119if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10120  $as_echo_n "(cached) " >&6
10121else
10122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h.  */
10124int i;
10125_ACEOF
10126if ac_fn_c_try_compile "$LINENO"; then :
10127  xorg_cv_cc_flag_unused_command_line_argument=yes
10128else
10129  xorg_cv_cc_flag_unused_command_line_argument=no
10130fi
10131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10132fi
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10134$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10135	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10136	CFLAGS="$xorg_testset_save_CFLAGS"
10137fi
10138
10139found="no"
10140
10141	if test $found = "no" ; then
10142		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10143			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10144		fi
10145
10146		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10147			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10148		fi
10149
10150		CFLAGS="$CFLAGS -Werror"
10151
10152		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10153$as_echo_n "checking if $CC supports-Werror... " >&6; }
10154		cacheid=xorg_cv_cc_flag__Werror
10155		if eval \${$cacheid+:} false; then :
10156  $as_echo_n "(cached) " >&6
10157else
10158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159/* end confdefs.h.  */
10160int i;
10161int
10162main ()
10163{
10164
10165  ;
10166  return 0;
10167}
10168_ACEOF
10169if ac_fn_c_try_link "$LINENO"; then :
10170  eval $cacheid=yes
10171else
10172  eval $cacheid=no
10173fi
10174rm -f core conftest.err conftest.$ac_objext \
10175    conftest$ac_exeext conftest.$ac_ext
10176fi
10177
10178
10179		CFLAGS="$xorg_testset_save_CFLAGS"
10180
10181		eval supported=\$$cacheid
10182		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10183$as_echo "$supported" >&6; }
10184		if test "$supported" = "yes" ; then
10185			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10186			found="yes"
10187		fi
10188	fi
10189
10190	if test $found = "no" ; then
10191		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10192			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10193		fi
10194
10195		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10196			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10197		fi
10198
10199		CFLAGS="$CFLAGS -errwarn"
10200
10201		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10202$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10203		cacheid=xorg_cv_cc_flag__errwarn
10204		if eval \${$cacheid+:} false; then :
10205  $as_echo_n "(cached) " >&6
10206else
10207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208/* end confdefs.h.  */
10209int i;
10210int
10211main ()
10212{
10213
10214  ;
10215  return 0;
10216}
10217_ACEOF
10218if ac_fn_c_try_link "$LINENO"; then :
10219  eval $cacheid=yes
10220else
10221  eval $cacheid=no
10222fi
10223rm -f core conftest.err conftest.$ac_objext \
10224    conftest$ac_exeext conftest.$ac_ext
10225fi
10226
10227
10228		CFLAGS="$xorg_testset_save_CFLAGS"
10229
10230		eval supported=\$$cacheid
10231		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10232$as_echo "$supported" >&6; }
10233		if test "$supported" = "yes" ; then
10234			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10235			found="yes"
10236		fi
10237	fi
10238
10239
10240
10241# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10242# activate it with -Werror, so we add it here explicitly.
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256xorg_testset_save_CFLAGS="$CFLAGS"
10257
10258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10259	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10260	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10263  $as_echo_n "(cached) " >&6
10264else
10265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266/* end confdefs.h.  */
10267int i;
10268_ACEOF
10269if ac_fn_c_try_compile "$LINENO"; then :
10270  xorg_cv_cc_flag_unknown_warning_option=yes
10271else
10272  xorg_cv_cc_flag_unknown_warning_option=no
10273fi
10274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10275fi
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10278	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10279	CFLAGS="$xorg_testset_save_CFLAGS"
10280fi
10281
10282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10283	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10284		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10285	fi
10286	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10290  $as_echo_n "(cached) " >&6
10291else
10292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293/* end confdefs.h.  */
10294int i;
10295_ACEOF
10296if ac_fn_c_try_compile "$LINENO"; then :
10297  xorg_cv_cc_flag_unused_command_line_argument=yes
10298else
10299  xorg_cv_cc_flag_unused_command_line_argument=no
10300fi
10301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10302fi
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10305	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10306	CFLAGS="$xorg_testset_save_CFLAGS"
10307fi
10308
10309found="no"
10310
10311	if test $found = "no" ; then
10312		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10313			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10314		fi
10315
10316		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10317			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10318		fi
10319
10320		CFLAGS="$CFLAGS -Werror=attributes"
10321
10322		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10323$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10324		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10325		if eval \${$cacheid+:} false; then :
10326  $as_echo_n "(cached) " >&6
10327else
10328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329/* end confdefs.h.  */
10330int i;
10331int
10332main ()
10333{
10334
10335  ;
10336  return 0;
10337}
10338_ACEOF
10339if ac_fn_c_try_link "$LINENO"; then :
10340  eval $cacheid=yes
10341else
10342  eval $cacheid=no
10343fi
10344rm -f core conftest.err conftest.$ac_objext \
10345    conftest$ac_exeext conftest.$ac_ext
10346fi
10347
10348
10349		CFLAGS="$xorg_testset_save_CFLAGS"
10350
10351		eval supported=\$$cacheid
10352		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10353$as_echo "$supported" >&6; }
10354		if test "$supported" = "yes" ; then
10355			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10356			found="yes"
10357		fi
10358	fi
10359
10360
10361
10362if test "x$STRICT_COMPILE" = "xyes"; then
10363    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10364    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10365fi
10366
10367
10368
10369
10370
10371
10372cat >>confdefs.h <<_ACEOF
10373#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10374_ACEOF
10375
10376	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10377	if test "x$PVM" = "x"; then
10378		PVM="0"
10379	fi
10380
10381cat >>confdefs.h <<_ACEOF
10382#define PACKAGE_VERSION_MINOR $PVM
10383_ACEOF
10384
10385	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10386	if test "x$PVP" = "x"; then
10387		PVP="0"
10388	fi
10389
10390cat >>confdefs.h <<_ACEOF
10391#define PACKAGE_VERSION_PATCHLEVEL $PVP
10392_ACEOF
10393
10394
10395
10396CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10397mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10398|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10399echo 'git directory not found: installing possibly empty changelog.' >&2)"
10400
10401
10402
10403
10404macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10405INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10406mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10407|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10408echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10409
10410
10411
10412
10413
10414
10415if test x$APP_MAN_SUFFIX = x    ; then
10416    APP_MAN_SUFFIX=1
10417fi
10418if test x$APP_MAN_DIR = x    ; then
10419    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10420fi
10421
10422if test x$LIB_MAN_SUFFIX = x    ; then
10423    LIB_MAN_SUFFIX=3
10424fi
10425if test x$LIB_MAN_DIR = x    ; then
10426    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10427fi
10428
10429if test x$FILE_MAN_SUFFIX = x    ; then
10430    case $host_os in
10431	solaris*)	FILE_MAN_SUFFIX=4  ;;
10432	*)		FILE_MAN_SUFFIX=5  ;;
10433    esac
10434fi
10435if test x$FILE_MAN_DIR = x    ; then
10436    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10437fi
10438
10439if test x$MISC_MAN_SUFFIX = x    ; then
10440    case $host_os in
10441	solaris*)	MISC_MAN_SUFFIX=5  ;;
10442	*)		MISC_MAN_SUFFIX=7  ;;
10443    esac
10444fi
10445if test x$MISC_MAN_DIR = x    ; then
10446    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10447fi
10448
10449if test x$DRIVER_MAN_SUFFIX = x    ; then
10450    case $host_os in
10451	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10452	*)		DRIVER_MAN_SUFFIX=4  ;;
10453    esac
10454fi
10455if test x$DRIVER_MAN_DIR = x    ; then
10456    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10457fi
10458
10459if test x$ADMIN_MAN_SUFFIX = x    ; then
10460    case $host_os in
10461	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10462	*)		ADMIN_MAN_SUFFIX=8  ;;
10463    esac
10464fi
10465if test x$ADMIN_MAN_DIR = x    ; then
10466    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10467fi
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483XORG_MAN_PAGE="X Version 11"
10484
10485MAN_SUBSTS="\
10486	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10487	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10488	-e 's|__xservername__|Xorg|g' \
10489	-e 's|__xconfigfile__|xorg.conf|g' \
10490	-e 's|__projectroot__|\$(prefix)|g' \
10491	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10492	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10493	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10494	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10495	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10496	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10497	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10498
10499
10500
10501# Check whether --enable-silent-rules was given.
10502if test "${enable_silent_rules+set}" = set; then :
10503  enableval=$enable_silent_rules;
10504fi
10505
10506case $enable_silent_rules in
10507yes) AM_DEFAULT_VERBOSITY=0;;
10508no)  AM_DEFAULT_VERBOSITY=1;;
10509*)   AM_DEFAULT_VERBOSITY=0;;
10510esac
10511AM_BACKSLASH='\'
10512
10513
10514
10515
10516# Check whether --enable-docs was given.
10517if test "${enable_docs+set}" = set; then :
10518  enableval=$enable_docs; build_docs=$enableval
10519else
10520  build_docs=yes
10521fi
10522
10523
10524 if test x$build_docs = xyes; then
10525  ENABLE_DOCS_TRUE=
10526  ENABLE_DOCS_FALSE='#'
10527else
10528  ENABLE_DOCS_TRUE='#'
10529  ENABLE_DOCS_FALSE=
10530fi
10531
10532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
10533$as_echo_n "checking whether to build documentation... " >&6; }
10534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
10535$as_echo "$build_docs" >&6; }
10536
10537
10538
10539
10540
10541# Check whether --with-xmlto was given.
10542if test "${with_xmlto+set}" = set; then :
10543  withval=$with_xmlto; use_xmlto=$withval
10544else
10545  use_xmlto=auto
10546fi
10547
10548
10549
10550if test "x$use_xmlto" = x"auto"; then
10551   # Extract the first word of "xmlto", so it can be a program name with args.
10552set dummy xmlto; ac_word=$2
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554$as_echo_n "checking for $ac_word... " >&6; }
10555if ${ac_cv_path_XMLTO+:} false; then :
10556  $as_echo_n "(cached) " >&6
10557else
10558  case $XMLTO in
10559  [\\/]* | ?:[\\/]*)
10560  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10561  ;;
10562  *)
10563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564for as_dir in $PATH
10565do
10566  IFS=$as_save_IFS
10567  test -z "$as_dir" && as_dir=.
10568    for ac_exec_ext in '' $ac_executable_extensions; do
10569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10570    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10572    break 2
10573  fi
10574done
10575  done
10576IFS=$as_save_IFS
10577
10578  ;;
10579esac
10580fi
10581XMLTO=$ac_cv_path_XMLTO
10582if test -n "$XMLTO"; then
10583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10584$as_echo "$XMLTO" >&6; }
10585else
10586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587$as_echo "no" >&6; }
10588fi
10589
10590
10591   if test "x$XMLTO" = "x"; then
10592        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10593$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10594	have_xmlto=no
10595   else
10596        have_xmlto=yes
10597   fi
10598elif test "x$use_xmlto" = x"yes" ; then
10599   # Extract the first word of "xmlto", so it can be a program name with args.
10600set dummy xmlto; ac_word=$2
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602$as_echo_n "checking for $ac_word... " >&6; }
10603if ${ac_cv_path_XMLTO+:} false; then :
10604  $as_echo_n "(cached) " >&6
10605else
10606  case $XMLTO in
10607  [\\/]* | ?:[\\/]*)
10608  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10609  ;;
10610  *)
10611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612for as_dir in $PATH
10613do
10614  IFS=$as_save_IFS
10615  test -z "$as_dir" && as_dir=.
10616    for ac_exec_ext in '' $ac_executable_extensions; do
10617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10618    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10620    break 2
10621  fi
10622done
10623  done
10624IFS=$as_save_IFS
10625
10626  ;;
10627esac
10628fi
10629XMLTO=$ac_cv_path_XMLTO
10630if test -n "$XMLTO"; then
10631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10632$as_echo "$XMLTO" >&6; }
10633else
10634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635$as_echo "no" >&6; }
10636fi
10637
10638
10639   if test "x$XMLTO" = "x"; then
10640        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10641   fi
10642   have_xmlto=yes
10643elif test "x$use_xmlto" = x"no" ; then
10644   if test "x$XMLTO" != "x"; then
10645      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
10646$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
10647   fi
10648   have_xmlto=no
10649else
10650   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
10651fi
10652
10653# Test for a minimum version of xmlto, if provided.
10654if test "$have_xmlto" = yes; then
10655    # scrape the xmlto version
10656    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
10657$as_echo_n "checking the xmlto version... " >&6; }
10658    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
10659    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
10660$as_echo "$xmlto_version" >&6; }
10661    as_arg_v1=$xmlto_version
10662as_arg_v2=0.0.22
10663awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10664case $? in #(
10665  1) :
10666    if test "x$use_xmlto" = xauto; then
10667            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
10668$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
10669            have_xmlto=no
10670        else
10671            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
10672        fi ;; #(
10673  0) :
10674     ;; #(
10675  2) :
10676     ;; #(
10677  *) :
10678     ;;
10679esac
10680fi
10681
10682# Test for the ability of xmlto to generate a text target
10683have_xmlto_text=no
10684cat > conftest.xml << "EOF"
10685EOF
10686if test "$have_xmlto" = yes; then :
10687  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
10688  have_xmlto_text=yes
10689else
10690  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
10691$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
10692fi
10693fi
10694rm -f conftest.xml
10695 if test $have_xmlto_text = yes; then
10696  HAVE_XMLTO_TEXT_TRUE=
10697  HAVE_XMLTO_TEXT_FALSE='#'
10698else
10699  HAVE_XMLTO_TEXT_TRUE='#'
10700  HAVE_XMLTO_TEXT_FALSE=
10701fi
10702
10703 if test "$have_xmlto" = yes; then
10704  HAVE_XMLTO_TRUE=
10705  HAVE_XMLTO_FALSE='#'
10706else
10707  HAVE_XMLTO_TRUE='#'
10708  HAVE_XMLTO_FALSE=
10709fi
10710
10711
10712
10713
10714
10715
10716# Check whether --with-fop was given.
10717if test "${with_fop+set}" = set; then :
10718  withval=$with_fop; use_fop=$withval
10719else
10720  use_fop=auto
10721fi
10722
10723
10724
10725if test "x$use_fop" = x"auto"; then
10726   # Extract the first word of "fop", so it can be a program name with args.
10727set dummy fop; ac_word=$2
10728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729$as_echo_n "checking for $ac_word... " >&6; }
10730if ${ac_cv_path_FOP+:} false; then :
10731  $as_echo_n "(cached) " >&6
10732else
10733  case $FOP in
10734  [\\/]* | ?:[\\/]*)
10735  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
10736  ;;
10737  *)
10738  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10739for as_dir in $PATH
10740do
10741  IFS=$as_save_IFS
10742  test -z "$as_dir" && as_dir=.
10743    for ac_exec_ext in '' $ac_executable_extensions; do
10744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10745    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
10746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10747    break 2
10748  fi
10749done
10750  done
10751IFS=$as_save_IFS
10752
10753  ;;
10754esac
10755fi
10756FOP=$ac_cv_path_FOP
10757if test -n "$FOP"; then
10758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
10759$as_echo "$FOP" >&6; }
10760else
10761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10762$as_echo "no" >&6; }
10763fi
10764
10765
10766   if test "x$FOP" = "x"; then
10767        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
10768$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
10769	have_fop=no
10770   else
10771        have_fop=yes
10772   fi
10773elif test "x$use_fop" = x"yes" ; then
10774   # Extract the first word of "fop", so it can be a program name with args.
10775set dummy fop; ac_word=$2
10776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777$as_echo_n "checking for $ac_word... " >&6; }
10778if ${ac_cv_path_FOP+:} false; then :
10779  $as_echo_n "(cached) " >&6
10780else
10781  case $FOP in
10782  [\\/]* | ?:[\\/]*)
10783  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
10784  ;;
10785  *)
10786  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787for as_dir in $PATH
10788do
10789  IFS=$as_save_IFS
10790  test -z "$as_dir" && as_dir=.
10791    for ac_exec_ext in '' $ac_executable_extensions; do
10792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10793    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
10794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10795    break 2
10796  fi
10797done
10798  done
10799IFS=$as_save_IFS
10800
10801  ;;
10802esac
10803fi
10804FOP=$ac_cv_path_FOP
10805if test -n "$FOP"; then
10806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
10807$as_echo "$FOP" >&6; }
10808else
10809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810$as_echo "no" >&6; }
10811fi
10812
10813
10814   if test "x$FOP" = "x"; then
10815        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
10816   fi
10817   have_fop=yes
10818elif test "x$use_fop" = x"no" ; then
10819   if test "x$FOP" != "x"; then
10820      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
10821$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
10822   fi
10823   have_fop=no
10824else
10825   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
10826fi
10827
10828# Test for a minimum version of fop, if provided.
10829
10830 if test "$have_fop" = yes; then
10831  HAVE_FOP_TRUE=
10832  HAVE_FOP_FALSE='#'
10833else
10834  HAVE_FOP_TRUE='#'
10835  HAVE_FOP_FALSE=
10836fi
10837
10838
10839
10840
10841# Preserves the interface, should it be implemented later
10842
10843
10844
10845# Check whether --with-xsltproc was given.
10846if test "${with_xsltproc+set}" = set; then :
10847  withval=$with_xsltproc; use_xsltproc=$withval
10848else
10849  use_xsltproc=auto
10850fi
10851
10852
10853
10854if test "x$use_xsltproc" = x"auto"; then
10855   # Extract the first word of "xsltproc", so it can be a program name with args.
10856set dummy xsltproc; ac_word=$2
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858$as_echo_n "checking for $ac_word... " >&6; }
10859if ${ac_cv_path_XSLTPROC+:} false; then :
10860  $as_echo_n "(cached) " >&6
10861else
10862  case $XSLTPROC in
10863  [\\/]* | ?:[\\/]*)
10864  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10865  ;;
10866  *)
10867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868for as_dir in $PATH
10869do
10870  IFS=$as_save_IFS
10871  test -z "$as_dir" && as_dir=.
10872    for ac_exec_ext in '' $ac_executable_extensions; do
10873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10874    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876    break 2
10877  fi
10878done
10879  done
10880IFS=$as_save_IFS
10881
10882  ;;
10883esac
10884fi
10885XSLTPROC=$ac_cv_path_XSLTPROC
10886if test -n "$XSLTPROC"; then
10887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10888$as_echo "$XSLTPROC" >&6; }
10889else
10890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891$as_echo "no" >&6; }
10892fi
10893
10894
10895   if test "x$XSLTPROC" = "x"; then
10896        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
10897$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
10898	have_xsltproc=no
10899   else
10900        have_xsltproc=yes
10901   fi
10902elif test "x$use_xsltproc" = x"yes" ; then
10903   # Extract the first word of "xsltproc", so it can be a program name with args.
10904set dummy xsltproc; ac_word=$2
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10906$as_echo_n "checking for $ac_word... " >&6; }
10907if ${ac_cv_path_XSLTPROC+:} false; then :
10908  $as_echo_n "(cached) " >&6
10909else
10910  case $XSLTPROC in
10911  [\\/]* | ?:[\\/]*)
10912  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10913  ;;
10914  *)
10915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10916for as_dir in $PATH
10917do
10918  IFS=$as_save_IFS
10919  test -z "$as_dir" && as_dir=.
10920    for ac_exec_ext in '' $ac_executable_extensions; do
10921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10922    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10924    break 2
10925  fi
10926done
10927  done
10928IFS=$as_save_IFS
10929
10930  ;;
10931esac
10932fi
10933XSLTPROC=$ac_cv_path_XSLTPROC
10934if test -n "$XSLTPROC"; then
10935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10936$as_echo "$XSLTPROC" >&6; }
10937else
10938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939$as_echo "no" >&6; }
10940fi
10941
10942
10943   if test "x$XSLTPROC" = "x"; then
10944        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
10945   fi
10946   have_xsltproc=yes
10947elif test "x$use_xsltproc" = x"no" ; then
10948   if test "x$XSLTPROC" != "x"; then
10949      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
10950$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
10951   fi
10952   have_xsltproc=no
10953else
10954   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
10955fi
10956
10957 if test "$have_xsltproc" = yes; then
10958  HAVE_XSLTPROC_TRUE=
10959  HAVE_XSLTPROC_FALSE='#'
10960else
10961  HAVE_XSLTPROC_TRUE='#'
10962  HAVE_XSLTPROC_FALSE=
10963fi
10964
10965
10966
10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
10968$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
10969XORG_SGML_PATH=
10970if test -n "$PKG_CONFIG" && \
10971    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
10972  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
10973  ac_status=$?
10974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10975  test $ac_status = 0; }; then
10976  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
10977else
10978  :
10979
10980fi
10981
10982# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
10983# the path and the name of the doc stylesheet
10984if test "x$XORG_SGML_PATH" != "x" ; then
10985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
10986$as_echo "$XORG_SGML_PATH" >&6; }
10987   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
10988   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
10989else
10990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991$as_echo "no" >&6; }
10992fi
10993
10994
10995
10996
10997 if test "x$XSL_STYLESHEET" != "x"; then
10998  HAVE_STYLESHEETS_TRUE=
10999  HAVE_STYLESHEETS_FALSE='#'
11000else
11001  HAVE_STYLESHEETS_TRUE='#'
11002  HAVE_STYLESHEETS_FALSE=
11003fi
11004
11005
11006
11007# Because xtrans is included into other modules rather than being linked
11008# with, these defines have to be added to the cflags line
11009
11010# fchown()
11011
11012ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
11013if test "x$ac_cv_func_fchown" = xyes; then :
11014  fchown_define="-DHAS_FCHOWN"
11015else
11016  fchown_define=""
11017fi
11018
11019
11020
11021
11022# sticky bit
11023#
11024# if any system exists without sticky dir bits this
11025# needs to be redone with a real autoconf test
11026
11027sticky_bit_define="-DHAS_STICKY_DIR_BIT"
11028
11029
11030
11031ac_config_files="$ac_config_files Makefile doc/Makefile xtrans.pc"
11032
11033cat >confcache <<\_ACEOF
11034# This file is a shell script that caches the results of configure
11035# tests run on this system so they can be shared between configure
11036# scripts and configure runs, see configure's option --config-cache.
11037# It is not useful on other systems.  If it contains results you don't
11038# want to keep, you may remove or edit it.
11039#
11040# config.status only pays attention to the cache file if you give it
11041# the --recheck option to rerun configure.
11042#
11043# `ac_cv_env_foo' variables (set or unset) will be overridden when
11044# loading this file, other *unset* `ac_cv_foo' will be assigned the
11045# following values.
11046
11047_ACEOF
11048
11049# The following way of writing the cache mishandles newlines in values,
11050# but we know of no workaround that is simple, portable, and efficient.
11051# So, we kill variables containing newlines.
11052# Ultrix sh set writes to stderr and can't be redirected directly,
11053# and sets the high bit in the cache file unless we assign to the vars.
11054(
11055  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11056    eval ac_val=\$$ac_var
11057    case $ac_val in #(
11058    *${as_nl}*)
11059      case $ac_var in #(
11060      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11061$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11062      esac
11063      case $ac_var in #(
11064      _ | IFS | as_nl) ;; #(
11065      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11066      *) { eval $ac_var=; unset $ac_var;} ;;
11067      esac ;;
11068    esac
11069  done
11070
11071  (set) 2>&1 |
11072    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11073    *${as_nl}ac_space=\ *)
11074      # `set' does not quote correctly, so add quotes: double-quote
11075      # substitution turns \\\\ into \\, and sed turns \\ into \.
11076      sed -n \
11077	"s/'/'\\\\''/g;
11078	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11079      ;; #(
11080    *)
11081      # `set' quotes correctly as required by POSIX, so do not add quotes.
11082      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11083      ;;
11084    esac |
11085    sort
11086) |
11087  sed '
11088     /^ac_cv_env_/b end
11089     t clear
11090     :clear
11091     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11092     t end
11093     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11094     :end' >>confcache
11095if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11096  if test -w "$cache_file"; then
11097    if test "x$cache_file" != "x/dev/null"; then
11098      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11099$as_echo "$as_me: updating cache $cache_file" >&6;}
11100      if test ! -f "$cache_file" || test -h "$cache_file"; then
11101	cat confcache >"$cache_file"
11102      else
11103        case $cache_file in #(
11104        */* | ?:*)
11105	  mv -f confcache "$cache_file"$$ &&
11106	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11107        *)
11108	  mv -f confcache "$cache_file" ;;
11109	esac
11110      fi
11111    fi
11112  else
11113    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11114$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11115  fi
11116fi
11117rm -f confcache
11118
11119test "x$prefix" = xNONE && prefix=$ac_default_prefix
11120# Let make expand exec_prefix.
11121test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11122
11123# Transform confdefs.h into DEFS.
11124# Protect against shell expansion while executing Makefile rules.
11125# Protect against Makefile macro expansion.
11126#
11127# If the first sed substitution is executed (which looks for macros that
11128# take arguments), then branch to the quote section.  Otherwise,
11129# look for a macro that doesn't take arguments.
11130ac_script='
11131:mline
11132/\\$/{
11133 N
11134 s,\\\n,,
11135 b mline
11136}
11137t clear
11138:clear
11139s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
11140t quote
11141s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
11142t quote
11143b any
11144:quote
11145s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11146s/\[/\\&/g
11147s/\]/\\&/g
11148s/\$/$$/g
11149H
11150:any
11151${
11152	g
11153	s/^\n//
11154	s/\n/ /g
11155	p
11156}
11157'
11158DEFS=`sed -n "$ac_script" confdefs.h`
11159
11160
11161ac_libobjs=
11162ac_ltlibobjs=
11163U=
11164for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11165  # 1. Remove the extension, and $U if already installed.
11166  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11167  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11168  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11169  #    will be set to the directory where LIBOBJS objects are built.
11170  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11171  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11172done
11173LIBOBJS=$ac_libobjs
11174
11175LTLIBOBJS=$ac_ltlibobjs
11176
11177
11178 if test -n "$EXEEXT"; then
11179  am__EXEEXT_TRUE=
11180  am__EXEEXT_FALSE='#'
11181else
11182  am__EXEEXT_TRUE='#'
11183  am__EXEEXT_FALSE=
11184fi
11185
11186if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11187  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11188Usually this means the macro was only invoked conditionally." "$LINENO" 5
11189fi
11190if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11191  as_fn_error $? "conditional \"AMDEP\" was never defined.
11192Usually this means the macro was only invoked conditionally." "$LINENO" 5
11193fi
11194if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11195  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11196Usually this means the macro was only invoked conditionally." "$LINENO" 5
11197fi
11198if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
11199  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
11200Usually this means the macro was only invoked conditionally." "$LINENO" 5
11201fi
11202if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11203  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11204Usually this means the macro was only invoked conditionally." "$LINENO" 5
11205fi
11206if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11207  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11208Usually this means the macro was only invoked conditionally." "$LINENO" 5
11209fi
11210if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11211  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11212Usually this means the macro was only invoked conditionally." "$LINENO" 5
11213fi
11214if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11215  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11216Usually this means the macro was only invoked conditionally." "$LINENO" 5
11217fi
11218if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
11219  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
11220Usually this means the macro was only invoked conditionally." "$LINENO" 5
11221fi
11222
11223: "${CONFIG_STATUS=./config.status}"
11224ac_write_fail=0
11225ac_clean_files_save=$ac_clean_files
11226ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11227{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11228$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11229as_write_fail=0
11230cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11231#! $SHELL
11232# Generated by $as_me.
11233# Run this file to recreate the current configuration.
11234# Compiler output produced by configure, useful for debugging
11235# configure, is in config.log if it exists.
11236
11237debug=false
11238ac_cs_recheck=false
11239ac_cs_silent=false
11240
11241SHELL=\${CONFIG_SHELL-$SHELL}
11242export SHELL
11243_ASEOF
11244cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11245## -------------------- ##
11246## M4sh Initialization. ##
11247## -------------------- ##
11248
11249# Be more Bourne compatible
11250DUALCASE=1; export DUALCASE # for MKS sh
11251if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11252  emulate sh
11253  NULLCMD=:
11254  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11255  # is contrary to our usage.  Disable this feature.
11256  alias -g '${1+"$@"}'='"$@"'
11257  setopt NO_GLOB_SUBST
11258else
11259  case `(set -o) 2>/dev/null` in #(
11260  *posix*) :
11261    set -o posix ;; #(
11262  *) :
11263     ;;
11264esac
11265fi
11266
11267
11268as_nl='
11269'
11270export as_nl
11271# Printing a long string crashes Solaris 7 /usr/bin/printf.
11272as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11273as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11274as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11275# Prefer a ksh shell builtin over an external printf program on Solaris,
11276# but without wasting forks for bash or zsh.
11277if test -z "$BASH_VERSION$ZSH_VERSION" \
11278    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11279  as_echo='print -r --'
11280  as_echo_n='print -rn --'
11281elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11282  as_echo='printf %s\n'
11283  as_echo_n='printf %s'
11284else
11285  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11286    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11287    as_echo_n='/usr/ucb/echo -n'
11288  else
11289    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11290    as_echo_n_body='eval
11291      arg=$1;
11292      case $arg in #(
11293      *"$as_nl"*)
11294	expr "X$arg" : "X\\(.*\\)$as_nl";
11295	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11296      esac;
11297      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11298    '
11299    export as_echo_n_body
11300    as_echo_n='sh -c $as_echo_n_body as_echo'
11301  fi
11302  export as_echo_body
11303  as_echo='sh -c $as_echo_body as_echo'
11304fi
11305
11306# The user is always right.
11307if test "${PATH_SEPARATOR+set}" != set; then
11308  PATH_SEPARATOR=:
11309  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11310    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11311      PATH_SEPARATOR=';'
11312  }
11313fi
11314
11315
11316# IFS
11317# We need space, tab and new line, in precisely that order.  Quoting is
11318# there to prevent editors from complaining about space-tab.
11319# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11320# splitting by setting IFS to empty value.)
11321IFS=" ""	$as_nl"
11322
11323# Find who we are.  Look in the path if we contain no directory separator.
11324as_myself=
11325case $0 in #((
11326  *[\\/]* ) as_myself=$0 ;;
11327  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328for as_dir in $PATH
11329do
11330  IFS=$as_save_IFS
11331  test -z "$as_dir" && as_dir=.
11332    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11333  done
11334IFS=$as_save_IFS
11335
11336     ;;
11337esac
11338# We did not find ourselves, most probably we were run as `sh COMMAND'
11339# in which case we are not to be found in the path.
11340if test "x$as_myself" = x; then
11341  as_myself=$0
11342fi
11343if test ! -f "$as_myself"; then
11344  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11345  exit 1
11346fi
11347
11348# Unset variables that we do not need and which cause bugs (e.g. in
11349# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11350# suppresses any "Segmentation fault" message there.  '((' could
11351# trigger a bug in pdksh 5.2.14.
11352for as_var in BASH_ENV ENV MAIL MAILPATH
11353do eval test x\${$as_var+set} = xset \
11354  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11355done
11356PS1='$ '
11357PS2='> '
11358PS4='+ '
11359
11360# NLS nuisances.
11361LC_ALL=C
11362export LC_ALL
11363LANGUAGE=C
11364export LANGUAGE
11365
11366# CDPATH.
11367(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11368
11369
11370# as_fn_error STATUS ERROR [LINENO LOG_FD]
11371# ----------------------------------------
11372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11374# script with STATUS, using 1 if that was 0.
11375as_fn_error ()
11376{
11377  as_status=$1; test $as_status -eq 0 && as_status=1
11378  if test "$4"; then
11379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11381  fi
11382  $as_echo "$as_me: error: $2" >&2
11383  as_fn_exit $as_status
11384} # as_fn_error
11385
11386
11387# as_fn_set_status STATUS
11388# -----------------------
11389# Set $? to STATUS, without forking.
11390as_fn_set_status ()
11391{
11392  return $1
11393} # as_fn_set_status
11394
11395# as_fn_exit STATUS
11396# -----------------
11397# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11398as_fn_exit ()
11399{
11400  set +e
11401  as_fn_set_status $1
11402  exit $1
11403} # as_fn_exit
11404
11405# as_fn_unset VAR
11406# ---------------
11407# Portably unset VAR.
11408as_fn_unset ()
11409{
11410  { eval $1=; unset $1;}
11411}
11412as_unset=as_fn_unset
11413# as_fn_append VAR VALUE
11414# ----------------------
11415# Append the text in VALUE to the end of the definition contained in VAR. Take
11416# advantage of any shell optimizations that allow amortized linear growth over
11417# repeated appends, instead of the typical quadratic growth present in naive
11418# implementations.
11419if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11420  eval 'as_fn_append ()
11421  {
11422    eval $1+=\$2
11423  }'
11424else
11425  as_fn_append ()
11426  {
11427    eval $1=\$$1\$2
11428  }
11429fi # as_fn_append
11430
11431# as_fn_arith ARG...
11432# ------------------
11433# Perform arithmetic evaluation on the ARGs, and store the result in the
11434# global $as_val. Take advantage of shells that can avoid forks. The arguments
11435# must be portable across $(()) and expr.
11436if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11437  eval 'as_fn_arith ()
11438  {
11439    as_val=$(( $* ))
11440  }'
11441else
11442  as_fn_arith ()
11443  {
11444    as_val=`expr "$@" || test $? -eq 1`
11445  }
11446fi # as_fn_arith
11447
11448
11449if expr a : '\(a\)' >/dev/null 2>&1 &&
11450   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11451  as_expr=expr
11452else
11453  as_expr=false
11454fi
11455
11456if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11457  as_basename=basename
11458else
11459  as_basename=false
11460fi
11461
11462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11463  as_dirname=dirname
11464else
11465  as_dirname=false
11466fi
11467
11468as_me=`$as_basename -- "$0" ||
11469$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11470	 X"$0" : 'X\(//\)$' \| \
11471	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11472$as_echo X/"$0" |
11473    sed '/^.*\/\([^/][^/]*\)\/*$/{
11474	    s//\1/
11475	    q
11476	  }
11477	  /^X\/\(\/\/\)$/{
11478	    s//\1/
11479	    q
11480	  }
11481	  /^X\/\(\/\).*/{
11482	    s//\1/
11483	    q
11484	  }
11485	  s/.*/./; q'`
11486
11487# Avoid depending upon Character Ranges.
11488as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11489as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11490as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11491as_cr_digits='0123456789'
11492as_cr_alnum=$as_cr_Letters$as_cr_digits
11493
11494ECHO_C= ECHO_N= ECHO_T=
11495case `echo -n x` in #(((((
11496-n*)
11497  case `echo 'xy\c'` in
11498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11499  xy)  ECHO_C='\c';;
11500  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11501       ECHO_T='	';;
11502  esac;;
11503*)
11504  ECHO_N='-n';;
11505esac
11506
11507rm -f conf$$ conf$$.exe conf$$.file
11508if test -d conf$$.dir; then
11509  rm -f conf$$.dir/conf$$.file
11510else
11511  rm -f conf$$.dir
11512  mkdir conf$$.dir 2>/dev/null
11513fi
11514if (echo >conf$$.file) 2>/dev/null; then
11515  if ln -s conf$$.file conf$$ 2>/dev/null; then
11516    as_ln_s='ln -s'
11517    # ... but there are two gotchas:
11518    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11519    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11520    # In both cases, we have to default to `cp -p'.
11521    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11522      as_ln_s='cp -p'
11523  elif ln conf$$.file conf$$ 2>/dev/null; then
11524    as_ln_s=ln
11525  else
11526    as_ln_s='cp -p'
11527  fi
11528else
11529  as_ln_s='cp -p'
11530fi
11531rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11532rmdir conf$$.dir 2>/dev/null
11533
11534
11535# as_fn_mkdir_p
11536# -------------
11537# Create "$as_dir" as a directory, including parents if necessary.
11538as_fn_mkdir_p ()
11539{
11540
11541  case $as_dir in #(
11542  -*) as_dir=./$as_dir;;
11543  esac
11544  test -d "$as_dir" || eval $as_mkdir_p || {
11545    as_dirs=
11546    while :; do
11547      case $as_dir in #(
11548      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11549      *) as_qdir=$as_dir;;
11550      esac
11551      as_dirs="'$as_qdir' $as_dirs"
11552      as_dir=`$as_dirname -- "$as_dir" ||
11553$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11554	 X"$as_dir" : 'X\(//\)[^/]' \| \
11555	 X"$as_dir" : 'X\(//\)$' \| \
11556	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11557$as_echo X"$as_dir" |
11558    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11559	    s//\1/
11560	    q
11561	  }
11562	  /^X\(\/\/\)[^/].*/{
11563	    s//\1/
11564	    q
11565	  }
11566	  /^X\(\/\/\)$/{
11567	    s//\1/
11568	    q
11569	  }
11570	  /^X\(\/\).*/{
11571	    s//\1/
11572	    q
11573	  }
11574	  s/.*/./; q'`
11575      test -d "$as_dir" && break
11576    done
11577    test -z "$as_dirs" || eval "mkdir $as_dirs"
11578  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11579
11580
11581} # as_fn_mkdir_p
11582if mkdir -p . 2>/dev/null; then
11583  as_mkdir_p='mkdir -p "$as_dir"'
11584else
11585  test -d ./-p && rmdir ./-p
11586  as_mkdir_p=false
11587fi
11588
11589if test -x / >/dev/null 2>&1; then
11590  as_test_x='test -x'
11591else
11592  if ls -dL / >/dev/null 2>&1; then
11593    as_ls_L_option=L
11594  else
11595    as_ls_L_option=
11596  fi
11597  as_test_x='
11598    eval sh -c '\''
11599      if test -d "$1"; then
11600	test -d "$1/.";
11601      else
11602	case $1 in #(
11603	-*)set "./$1";;
11604	esac;
11605	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11606	???[sx]*):;;*)false;;esac;fi
11607    '\'' sh
11608  '
11609fi
11610as_executable_p=$as_test_x
11611
11612# Sed expression to map a string onto a valid CPP name.
11613as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11614
11615# Sed expression to map a string onto a valid variable name.
11616as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11617
11618
11619exec 6>&1
11620## ----------------------------------- ##
11621## Main body of $CONFIG_STATUS script. ##
11622## ----------------------------------- ##
11623_ASEOF
11624test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11625
11626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11627# Save the log message, to keep $0 and so on meaningful, and to
11628# report actual input values of CONFIG_FILES etc. instead of their
11629# values after options handling.
11630ac_log="
11631This file was extended by xtrans $as_me 1.2.7, which was
11632generated by GNU Autoconf 2.68.  Invocation command line was
11633
11634  CONFIG_FILES    = $CONFIG_FILES
11635  CONFIG_HEADERS  = $CONFIG_HEADERS
11636  CONFIG_LINKS    = $CONFIG_LINKS
11637  CONFIG_COMMANDS = $CONFIG_COMMANDS
11638  $ $0 $@
11639
11640on `(hostname || uname -n) 2>/dev/null | sed 1q`
11641"
11642
11643_ACEOF
11644
11645case $ac_config_files in *"
11646"*) set x $ac_config_files; shift; ac_config_files=$*;;
11647esac
11648
11649
11650
11651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11652# Files that config.status was made for.
11653config_files="$ac_config_files"
11654config_commands="$ac_config_commands"
11655
11656_ACEOF
11657
11658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11659ac_cs_usage="\
11660\`$as_me' instantiates files and other configuration actions
11661from templates according to the current configuration.  Unless the files
11662and actions are specified as TAGs, all are instantiated by default.
11663
11664Usage: $0 [OPTION]... [TAG]...
11665
11666  -h, --help       print this help, then exit
11667  -V, --version    print version number and configuration settings, then exit
11668      --config     print configuration, then exit
11669  -q, --quiet, --silent
11670                   do not print progress messages
11671  -d, --debug      don't remove temporary files
11672      --recheck    update $as_me by reconfiguring in the same conditions
11673      --file=FILE[:TEMPLATE]
11674                   instantiate the configuration file FILE
11675
11676Configuration files:
11677$config_files
11678
11679Configuration commands:
11680$config_commands
11681
11682Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11683
11684_ACEOF
11685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11686ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11687ac_cs_version="\\
11688xtrans config.status 1.2.7
11689configured by $0, generated by GNU Autoconf 2.68,
11690  with options \\"\$ac_cs_config\\"
11691
11692Copyright (C) 2010 Free Software Foundation, Inc.
11693This config.status script is free software; the Free Software Foundation
11694gives unlimited permission to copy, distribute and modify it."
11695
11696ac_pwd='$ac_pwd'
11697srcdir='$srcdir'
11698INSTALL='$INSTALL'
11699MKDIR_P='$MKDIR_P'
11700AWK='$AWK'
11701test -n "\$AWK" || AWK=awk
11702_ACEOF
11703
11704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11705# The default lists apply if the user does not specify any file.
11706ac_need_defaults=:
11707while test $# != 0
11708do
11709  case $1 in
11710  --*=?*)
11711    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11712    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11713    ac_shift=:
11714    ;;
11715  --*=)
11716    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11717    ac_optarg=
11718    ac_shift=:
11719    ;;
11720  *)
11721    ac_option=$1
11722    ac_optarg=$2
11723    ac_shift=shift
11724    ;;
11725  esac
11726
11727  case $ac_option in
11728  # Handling of the options.
11729  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11730    ac_cs_recheck=: ;;
11731  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11732    $as_echo "$ac_cs_version"; exit ;;
11733  --config | --confi | --conf | --con | --co | --c )
11734    $as_echo "$ac_cs_config"; exit ;;
11735  --debug | --debu | --deb | --de | --d | -d )
11736    debug=: ;;
11737  --file | --fil | --fi | --f )
11738    $ac_shift
11739    case $ac_optarg in
11740    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11741    '') as_fn_error $? "missing file argument" ;;
11742    esac
11743    as_fn_append CONFIG_FILES " '$ac_optarg'"
11744    ac_need_defaults=false;;
11745  --he | --h |  --help | --hel | -h )
11746    $as_echo "$ac_cs_usage"; exit ;;
11747  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11748  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11749    ac_cs_silent=: ;;
11750
11751  # This is an error.
11752  -*) as_fn_error $? "unrecognized option: \`$1'
11753Try \`$0 --help' for more information." ;;
11754
11755  *) as_fn_append ac_config_targets " $1"
11756     ac_need_defaults=false ;;
11757
11758  esac
11759  shift
11760done
11761
11762ac_configure_extra_args=
11763
11764if $ac_cs_silent; then
11765  exec 6>/dev/null
11766  ac_configure_extra_args="$ac_configure_extra_args --silent"
11767fi
11768
11769_ACEOF
11770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11771if \$ac_cs_recheck; then
11772  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11773  shift
11774  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11775  CONFIG_SHELL='$SHELL'
11776  export CONFIG_SHELL
11777  exec "\$@"
11778fi
11779
11780_ACEOF
11781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11782exec 5>>config.log
11783{
11784  echo
11785  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11786## Running $as_me. ##
11787_ASBOX
11788  $as_echo "$ac_log"
11789} >&5
11790
11791_ACEOF
11792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11793#
11794# INIT-COMMANDS
11795#
11796AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11797
11798_ACEOF
11799
11800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11801
11802# Handling of arguments.
11803for ac_config_target in $ac_config_targets
11804do
11805  case $ac_config_target in
11806    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11807    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11808    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11809    "xtrans.pc") CONFIG_FILES="$CONFIG_FILES xtrans.pc" ;;
11810
11811  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11812  esac
11813done
11814
11815
11816# If the user did not use the arguments to specify the items to instantiate,
11817# then the envvar interface is used.  Set only those that are not.
11818# We use the long form for the default assignment because of an extremely
11819# bizarre bug on SunOS 4.1.3.
11820if $ac_need_defaults; then
11821  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11822  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11823fi
11824
11825# Have a temporary directory for convenience.  Make it in the build tree
11826# simply because there is no reason against having it here, and in addition,
11827# creating and moving files from /tmp can sometimes cause problems.
11828# Hook for its removal unless debugging.
11829# Note that there is a small window in which the directory will not be cleaned:
11830# after its creation but before its name has been assigned to `$tmp'.
11831$debug ||
11832{
11833  tmp= ac_tmp=
11834  trap 'exit_status=$?
11835  : "${ac_tmp:=$tmp}"
11836  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11837' 0
11838  trap 'as_fn_exit 1' 1 2 13 15
11839}
11840# Create a (secure) tmp directory for tmp files.
11841
11842{
11843  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11844  test -d "$tmp"
11845}  ||
11846{
11847  tmp=./conf$$-$RANDOM
11848  (umask 077 && mkdir "$tmp")
11849} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11850ac_tmp=$tmp
11851
11852# Set up the scripts for CONFIG_FILES section.
11853# No need to generate them if there are no CONFIG_FILES.
11854# This happens for instance with `./config.status config.h'.
11855if test -n "$CONFIG_FILES"; then
11856
11857
11858ac_cr=`echo X | tr X '\015'`
11859# On cygwin, bash can eat \r inside `` if the user requested igncr.
11860# But we know of no other shell where ac_cr would be empty at this
11861# point, so we can use a bashism as a fallback.
11862if test "x$ac_cr" = x; then
11863  eval ac_cr=\$\'\\r\'
11864fi
11865ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11866if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11867  ac_cs_awk_cr='\\r'
11868else
11869  ac_cs_awk_cr=$ac_cr
11870fi
11871
11872echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11873_ACEOF
11874
11875
11876{
11877  echo "cat >conf$$subs.awk <<_ACEOF" &&
11878  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11879  echo "_ACEOF"
11880} >conf$$subs.sh ||
11881  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11882ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11883ac_delim='%!_!# '
11884for ac_last_try in false false false false false :; do
11885  . ./conf$$subs.sh ||
11886    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11887
11888  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11889  if test $ac_delim_n = $ac_delim_num; then
11890    break
11891  elif $ac_last_try; then
11892    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11893  else
11894    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11895  fi
11896done
11897rm -f conf$$subs.sh
11898
11899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11900cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11901_ACEOF
11902sed -n '
11903h
11904s/^/S["/; s/!.*/"]=/
11905p
11906g
11907s/^[^!]*!//
11908:repl
11909t repl
11910s/'"$ac_delim"'$//
11911t delim
11912:nl
11913h
11914s/\(.\{148\}\)..*/\1/
11915t more1
11916s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11917p
11918n
11919b repl
11920:more1
11921s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11922p
11923g
11924s/.\{148\}//
11925t nl
11926:delim
11927h
11928s/\(.\{148\}\)..*/\1/
11929t more2
11930s/["\\]/\\&/g; s/^/"/; s/$/"/
11931p
11932b
11933:more2
11934s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11935p
11936g
11937s/.\{148\}//
11938t delim
11939' <conf$$subs.awk | sed '
11940/^[^""]/{
11941  N
11942  s/\n//
11943}
11944' >>$CONFIG_STATUS || ac_write_fail=1
11945rm -f conf$$subs.awk
11946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11947_ACAWK
11948cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11949  for (key in S) S_is_set[key] = 1
11950  FS = ""
11951
11952}
11953{
11954  line = $ 0
11955  nfields = split(line, field, "@")
11956  substed = 0
11957  len = length(field[1])
11958  for (i = 2; i < nfields; i++) {
11959    key = field[i]
11960    keylen = length(key)
11961    if (S_is_set[key]) {
11962      value = S[key]
11963      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11964      len += length(value) + length(field[++i])
11965      substed = 1
11966    } else
11967      len += 1 + keylen
11968  }
11969
11970  print line
11971}
11972
11973_ACAWK
11974_ACEOF
11975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11976if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11977  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11978else
11979  cat
11980fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11981  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11982_ACEOF
11983
11984# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11985# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11986# trailing colons and then remove the whole line if VPATH becomes empty
11987# (actually we leave an empty line to preserve line numbers).
11988if test "x$srcdir" = x.; then
11989  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11990h
11991s///
11992s/^/:/
11993s/[	 ]*$/:/
11994s/:\$(srcdir):/:/g
11995s/:\${srcdir}:/:/g
11996s/:@srcdir@:/:/g
11997s/^:*//
11998s/:*$//
11999x
12000s/\(=[	 ]*\).*/\1/
12001G
12002s/\n//
12003s/^[^=]*=[	 ]*$//
12004}'
12005fi
12006
12007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12008fi # test -n "$CONFIG_FILES"
12009
12010
12011eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12012shift
12013for ac_tag
12014do
12015  case $ac_tag in
12016  :[FHLC]) ac_mode=$ac_tag; continue;;
12017  esac
12018  case $ac_mode$ac_tag in
12019  :[FHL]*:*);;
12020  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12021  :[FH]-) ac_tag=-:-;;
12022  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12023  esac
12024  ac_save_IFS=$IFS
12025  IFS=:
12026  set x $ac_tag
12027  IFS=$ac_save_IFS
12028  shift
12029  ac_file=$1
12030  shift
12031
12032  case $ac_mode in
12033  :L) ac_source=$1;;
12034  :[FH])
12035    ac_file_inputs=
12036    for ac_f
12037    do
12038      case $ac_f in
12039      -) ac_f="$ac_tmp/stdin";;
12040      *) # Look for the file first in the build tree, then in the source tree
12041	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12042	 # because $ac_f cannot contain `:'.
12043	 test -f "$ac_f" ||
12044	   case $ac_f in
12045	   [\\/$]*) false;;
12046	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12047	   esac ||
12048	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12049      esac
12050      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12051      as_fn_append ac_file_inputs " '$ac_f'"
12052    done
12053
12054    # Let's still pretend it is `configure' which instantiates (i.e., don't
12055    # use $as_me), people would be surprised to read:
12056    #    /* config.h.  Generated by config.status.  */
12057    configure_input='Generated from '`
12058	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12059	`' by configure.'
12060    if test x"$ac_file" != x-; then
12061      configure_input="$ac_file.  $configure_input"
12062      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12063$as_echo "$as_me: creating $ac_file" >&6;}
12064    fi
12065    # Neutralize special characters interpreted by sed in replacement strings.
12066    case $configure_input in #(
12067    *\&* | *\|* | *\\* )
12068       ac_sed_conf_input=`$as_echo "$configure_input" |
12069       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12070    *) ac_sed_conf_input=$configure_input;;
12071    esac
12072
12073    case $ac_tag in
12074    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12075      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12076    esac
12077    ;;
12078  esac
12079
12080  ac_dir=`$as_dirname -- "$ac_file" ||
12081$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12082	 X"$ac_file" : 'X\(//\)[^/]' \| \
12083	 X"$ac_file" : 'X\(//\)$' \| \
12084	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12085$as_echo X"$ac_file" |
12086    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12087	    s//\1/
12088	    q
12089	  }
12090	  /^X\(\/\/\)[^/].*/{
12091	    s//\1/
12092	    q
12093	  }
12094	  /^X\(\/\/\)$/{
12095	    s//\1/
12096	    q
12097	  }
12098	  /^X\(\/\).*/{
12099	    s//\1/
12100	    q
12101	  }
12102	  s/.*/./; q'`
12103  as_dir="$ac_dir"; as_fn_mkdir_p
12104  ac_builddir=.
12105
12106case "$ac_dir" in
12107.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12108*)
12109  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12110  # A ".." for each directory in $ac_dir_suffix.
12111  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12112  case $ac_top_builddir_sub in
12113  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12114  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12115  esac ;;
12116esac
12117ac_abs_top_builddir=$ac_pwd
12118ac_abs_builddir=$ac_pwd$ac_dir_suffix
12119# for backward compatibility:
12120ac_top_builddir=$ac_top_build_prefix
12121
12122case $srcdir in
12123  .)  # We are building in place.
12124    ac_srcdir=.
12125    ac_top_srcdir=$ac_top_builddir_sub
12126    ac_abs_top_srcdir=$ac_pwd ;;
12127  [\\/]* | ?:[\\/]* )  # Absolute name.
12128    ac_srcdir=$srcdir$ac_dir_suffix;
12129    ac_top_srcdir=$srcdir
12130    ac_abs_top_srcdir=$srcdir ;;
12131  *) # Relative name.
12132    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12133    ac_top_srcdir=$ac_top_build_prefix$srcdir
12134    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12135esac
12136ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12137
12138
12139  case $ac_mode in
12140  :F)
12141  #
12142  # CONFIG_FILE
12143  #
12144
12145  case $INSTALL in
12146  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12147  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12148  esac
12149  ac_MKDIR_P=$MKDIR_P
12150  case $MKDIR_P in
12151  [\\/$]* | ?:[\\/]* ) ;;
12152  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12153  esac
12154_ACEOF
12155
12156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12157# If the template does not know about datarootdir, expand it.
12158# FIXME: This hack should be removed a few years after 2.60.
12159ac_datarootdir_hack=; ac_datarootdir_seen=
12160ac_sed_dataroot='
12161/datarootdir/ {
12162  p
12163  q
12164}
12165/@datadir@/p
12166/@docdir@/p
12167/@infodir@/p
12168/@localedir@/p
12169/@mandir@/p'
12170case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12171*datarootdir*) ac_datarootdir_seen=yes;;
12172*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12173  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12174$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12175_ACEOF
12176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12177  ac_datarootdir_hack='
12178  s&@datadir@&$datadir&g
12179  s&@docdir@&$docdir&g
12180  s&@infodir@&$infodir&g
12181  s&@localedir@&$localedir&g
12182  s&@mandir@&$mandir&g
12183  s&\\\${datarootdir}&$datarootdir&g' ;;
12184esac
12185_ACEOF
12186
12187# Neutralize VPATH when `$srcdir' = `.'.
12188# Shell code in configure.ac might set extrasub.
12189# FIXME: do we really want to maintain this feature?
12190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12191ac_sed_extra="$ac_vpsub
12192$extrasub
12193_ACEOF
12194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12195:t
12196/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12197s|@configure_input@|$ac_sed_conf_input|;t t
12198s&@top_builddir@&$ac_top_builddir_sub&;t t
12199s&@top_build_prefix@&$ac_top_build_prefix&;t t
12200s&@srcdir@&$ac_srcdir&;t t
12201s&@abs_srcdir@&$ac_abs_srcdir&;t t
12202s&@top_srcdir@&$ac_top_srcdir&;t t
12203s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12204s&@builddir@&$ac_builddir&;t t
12205s&@abs_builddir@&$ac_abs_builddir&;t t
12206s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12207s&@INSTALL@&$ac_INSTALL&;t t
12208s&@MKDIR_P@&$ac_MKDIR_P&;t t
12209$ac_datarootdir_hack
12210"
12211eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12212  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12213
12214test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12215  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12216  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12217      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12218  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12219which seems to be undefined.  Please make sure it is defined" >&5
12220$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12221which seems to be undefined.  Please make sure it is defined" >&2;}
12222
12223  rm -f "$ac_tmp/stdin"
12224  case $ac_file in
12225  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12226  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12227  esac \
12228  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12229 ;;
12230
12231
12232  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12233$as_echo "$as_me: executing $ac_file commands" >&6;}
12234 ;;
12235  esac
12236
12237
12238  case $ac_file$ac_mode in
12239    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12240  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12241  # are listed without --file.  Let's play safe and only enable the eval
12242  # if we detect the quoting.
12243  case $CONFIG_FILES in
12244  *\'*) eval set x "$CONFIG_FILES" ;;
12245  *)   set x $CONFIG_FILES ;;
12246  esac
12247  shift
12248  for mf
12249  do
12250    # Strip MF so we end up with the name of the file.
12251    mf=`echo "$mf" | sed -e 's/:.*$//'`
12252    # Check whether this is an Automake generated Makefile or not.
12253    # We used to match only the files named `Makefile.in', but
12254    # some people rename them; so instead we look at the file content.
12255    # Grep'ing the first line is not enough: some people post-process
12256    # each Makefile.in and add a new line on top of each file to say so.
12257    # Grep'ing the whole file is not good either: AIX grep has a line
12258    # limit of 2048, but all sed's we know have understand at least 4000.
12259    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12260      dirpart=`$as_dirname -- "$mf" ||
12261$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12262	 X"$mf" : 'X\(//\)[^/]' \| \
12263	 X"$mf" : 'X\(//\)$' \| \
12264	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12265$as_echo X"$mf" |
12266    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12267	    s//\1/
12268	    q
12269	  }
12270	  /^X\(\/\/\)[^/].*/{
12271	    s//\1/
12272	    q
12273	  }
12274	  /^X\(\/\/\)$/{
12275	    s//\1/
12276	    q
12277	  }
12278	  /^X\(\/\).*/{
12279	    s//\1/
12280	    q
12281	  }
12282	  s/.*/./; q'`
12283    else
12284      continue
12285    fi
12286    # Extract the definition of DEPDIR, am__include, and am__quote
12287    # from the Makefile without running `make'.
12288    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12289    test -z "$DEPDIR" && continue
12290    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12291    test -z "am__include" && continue
12292    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12293    # When using ansi2knr, U may be empty or an underscore; expand it
12294    U=`sed -n 's/^U = //p' < "$mf"`
12295    # Find all dependency output files, they are included files with
12296    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12297    # simplest approach to changing $(DEPDIR) to its actual value in the
12298    # expansion.
12299    for file in `sed -n "
12300      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12301	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12302      # Make sure the directory exists.
12303      test -f "$dirpart/$file" && continue
12304      fdir=`$as_dirname -- "$file" ||
12305$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12306	 X"$file" : 'X\(//\)[^/]' \| \
12307	 X"$file" : 'X\(//\)$' \| \
12308	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12309$as_echo X"$file" |
12310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12311	    s//\1/
12312	    q
12313	  }
12314	  /^X\(\/\/\)[^/].*/{
12315	    s//\1/
12316	    q
12317	  }
12318	  /^X\(\/\/\)$/{
12319	    s//\1/
12320	    q
12321	  }
12322	  /^X\(\/\).*/{
12323	    s//\1/
12324	    q
12325	  }
12326	  s/.*/./; q'`
12327      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12328      # echo "creating $dirpart/$file"
12329      echo '# dummy' > "$dirpart/$file"
12330    done
12331  done
12332}
12333 ;;
12334
12335  esac
12336done # for ac_tag
12337
12338
12339as_fn_exit 0
12340_ACEOF
12341ac_clean_files=$ac_clean_files_save
12342
12343test $ac_write_fail = 0 ||
12344  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12345
12346
12347# configure is writing to config.log, and then calls config.status.
12348# config.status does its own redirection, appending to config.log.
12349# Unfortunately, on DOS this fails, as config.log is still kept open
12350# by configure, so config.status won't be able to write to it; its
12351# output is simply discarded.  So we exec the FD to /dev/null,
12352# effectively closing config.log, so it can be properly (re)opened and
12353# appended to by config.status.  When coming back to configure, we
12354# need to make the FD available again.
12355if test "$no_create" != yes; then
12356  ac_cs_success=:
12357  ac_config_status_args=
12358  test "$silent" = yes &&
12359    ac_config_status_args="$ac_config_status_args --quiet"
12360  exec 5>/dev/null
12361  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12362  exec 5>>config.log
12363  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12364  # would make configure fail if this is the last instruction.
12365  $ac_cs_success || as_fn_exit 1
12366fi
12367if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12368  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12369$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12370fi
12371
12372